local TraceFrame = DEFAULT_CHAT_FRAME;

--local DBCS_debug = 2;	-- ne doit pas exister sauf pour le dev

local DBCS_Region_wow_build_info;
local DBCS_Region_wow_build_info_live = 18414;	--16135;	--14545;

_, DBCS_Region_wow_build_info, _, _ = GetBuildInfo();
DBCS_Region_wow_build_info = tonumber(DBCS_Region_wow_build_info);

--augmenter le numéro de version si modification ds les noms des régions ( ou tout simplement modif de l'addon )
local DBCS_Region_numversion = 165;

DBCS_Region_wow_build = DBCS_Region_wow_build_info..GetLocale()..DBCS_Region_numversion;

--/script DBCS_region_tester_difficulte();
--/script DBCS_region_tester_difficulte(0);

DBCS_Region_Minimap_mesuivre = 1;
DBCS_Region_Minimap_echelle = 4;
DBCS_Region_Minimap_radar = 0;

--[[
Difficulties:

    0 - None
    1 - 5-player instance
    2 - 5-player heroic instance
    3 - 10-player raid
    4 - 25-player raid
    5 - 10-player heroic raid
    6 - 25-player heroic raid
    7 - 25-player raid finder
    8 - challenge mode
    9 - 40-player raid
    10 - unused
    11 - heroic scenario
    12 - scenario
    13 - unused
    14 - 10-30-player flexible raid
    15 - 10-30-player flexible heroic raid
    16 - 20-player mythic raid
    17 - 10-30-player flexible LFR
--]]


--/script DBCS_Region_Minimap:SetDegrees(0)
--/script DBCS_Region_Minimap:SetDegrees(10)
--/script DBCS_Region_Minimap_carte1:SetRotation(nil)
--/script DBCS_Region_Minimap_carte1:SetRotation(math.rad(0))
--/script DBCS_Region_Minimap_carte1:SetRotation(math.rad(0),0)
--/script DBCS_Region_Minimap_carte1:SetRotation(math.rad(10),0,0)
--/script DBCS_Region_Minimap_carte1:SetRotation(math.rad(10),1,1)
--/script DBCS_Region_Minimap_carte1:SetRotation(math.rad(45))
--/script DBCS_Region_Minimap_carte1:SetRotation(math.rad(90))

--/script DBCS_Region_RotateTexture(DBCS_Region_Minimap_carte1,0);
--/script DBCS_Region_RotateTexture(DBCS_Region_Minimap_carte1,10);
--/script DBCS_Region_RotateTexture(DBCS_Region_Minimap_carte1,90);
--function DBCS_Region_RotateTexture(self, degrees)
--
--	local angle = math.rad(degrees);
--	local icos, isin = math.cos(angle), math.sin(angle);
--	self:SetTexCoord((isin - icos), -(icos + isin), -icos, -isin, isin, -icos, 0, 0);
--
--end

--function DBCS_Region_CalculateCorner(angle)
--
--local s2 = sqrt(2);
--local r = math.rad(angle);
--
--	--return 0.5 + math.cos(r) / s2, 0.5 + math.sin(r) / s2;
--	return 0.5 + math.cos(r) , 0.5 + math.sin(r) ;
--
--end

--/script DBCS_Region_RotateTexture2(DBCS_Region_Minimap_carte1,-1);
--/script DBCS_Region_RotateTexture2(DBCS_Region_Minimap_carte1,0);
--/script DBCS_Region_RotateTexture2(DBCS_Region_Minimap_carte1,1);
--/script DBCS_Region_RotateTexture2(DBCS_Region_Minimap_carte1,45);
--/script DBCS_Region_RotateTexture2(DBCS_Region_Minimap_carte1,90);
--/script DBCS_Region_RotateTexture2(DBCS_Region_Minimap_carte1,180);
--/script DBCS_Region_RotateTexture2(DBCS_Region_Minimap_carte1,270);
--/script DBCS_Region_RotateTexture2(DBCS_Region_Minimap_carte1,360);
--function DBCS_Region_RotateTexture2(texture, angle)
--
--local LRx, LRy = DBCS_Region_CalculateCorner(angle + 45);
--local LLx, LLy = DBCS_Region_CalculateCorner(angle + 135);
--local ULx, ULy = DBCS_Region_CalculateCorner(angle + 225);
--local URx, URy = DBCS_Region_CalculateCorner(angle - 45);
--	
--texture:SetTexCoord(ULx, ULy, LLx, LLy, URx, URy, LRx, LRy);
--
--end

--/script DBCS_Region_Minimap_carte1:SetTexCoord(0,0,0,1,1,0,1,1);	--	0 degrees
--/script DBCS_Region_Minimap_carte1:SetTexCoord(0,1,1,1,0,0,1,0);	--	90 degrees
--/script DBCS_Region_Minimap_carte1:SetTexCoord(1,1,1,0,0,1,0,0);	--	180 degrees
--/script DBCS_Region_Minimap_carte1:SetTexCoord(1,0,0,0,1,1,0,1);	--	270 degrees

--/script DBCS_Region_Minimap_carte1:SetTexCoord(-1,-1,-1,2,2,-1,2,2);	--	0 degrees
--/script DBCS_Region_Minimap_carte1:SetTexCoord(-1,2,2,2,-1,-1,2,-1);	--	90 degrees
--/script DBCS_Region_Minimap_carte1:SetTexCoord(2,2,2,-1,-1,2,-1,-1);	--	180 degrees
--/script DBCS_Region_Minimap_carte1:SetTexCoord(2,-1,-1,-1,2,2,-1,2);	--	270 degrees


--name, type, difficulty, difficultyName = GetInstanceInfo()
--inInstance, instanceType = IsInInstance()
--level = GetCurrentMapDungeonLevel();	--	0	1	2	etc
--levels = GetNumDungeonMapLevels();	--	0	1	2	etc
--ProcessMapClick(x, y)
--SetMapByID(MapID);
--/script i=i+1;DEFAULT_CHAT_FRAME:AddMessage(i);SetMapByID(i);
--/script DEFAULT_CHAT_FRAME:AddMessage(GetQuestWorldMapAreaID());
--/script DEFAULT_CHAT_FRAME:AddMessage(GetCurrentMapAreaID());
--GetQuestWorldMapAreaID();
--4 = Durotar
--9 = Mulgore
--11 = Barrens / tarides du nord
--13 = Kalimdor
--14 = Azeroth / royaumes de l'est
--15 = -------------Alterac
--16 = Arathi / hautes terres arathies
--17 = Badlands
--19 = BlastedLands
--20 = Tirisfal
--21 = Silverpine
--22 = WesternPlaguelands
--23 = EasternPlaguelands
--24 = Hilsbrad
--26 = Hinterlands
--27 = DunMorogh
--28 = SearingGorge
--29 = BurningSteppes
--30 = Elwynn
--32 = DeadwindPass
--34 = Duskwood
--35 = LochModan
--36 = Redridge
--37 = Stranglethorn
--38 = SwampOfSorrows
--39 = Westfall
--40 = Wetlands
--41 = Teldrassil
--42 = Darkshore
--43 = Ashenvale
--61 = ThousandNeedles
--81 = StonetalonMountains
--101 = Desolace
--121 = Feralas
--141 = Dustwallow
--161 = Tanaris
--181 = Aszhara
--182 = Felwood
--201 = UngoroCrater
--241 = Moonglade
--261 = Silithus
--281 = Winterspring
--301 = Stormwind
--321 = Ogrimmar
--341 = Ironforge
--362 = ThunderBluff
--381 = Darnassis
--382 = Undercity
--401 = AlteracValley
--443 = WarsongGulch
--461 = ArathiBasin
--462 = EversongWoods
--463 = Ghostlands
--464 = AzuremystIsle
--465 = Hellfire
--466 = Expansion01
--467 = Zangarmarsh
--471 = TheExodar
--473 = ShadowmoonValley
--475 = BladesEdgeMountains
--476 = BloodmystIsle
--477 = Nagrand
--478 = TerokkarForest
--479 = Netherstorm
--480 = SilvermoonCity
--481 = ShattrathCity
--482 = NetherstormArena
--485 = Northrend
--486 = BoreanTundra
--488 = Dragonblight
--490 = GrizzlyHills
--491 = HowlingFjord
--492 = IcecrownGlacier
--493 = SholazarBasin
--495 = TheStormPeaks
--496 = ZulDrak
--499 = Sunwell
--501 = LakeWintergrasp
--502 = ScarletEnclave
--504 = Dalaran
--510 = CrystalsongForest
--512 = StrandoftheAncients
--520 = TheNexus
--521 = CoTStratholme
--522 = Ahnkahet
--523 = UtgardeKeep
--524 = UtgardePinnacle
--525 = HallsofLightning
--526 = Ulduar77
--527 = TheEyeofEternity
--528 = Nexus80
--529 = Ulduar
--530 = Gundrak
--531 = TheObsidianSanctum
--532 = VaultofArchavon
--533 = AzjolNerub
--534 = DrakTharonKeep
--535 = Naxxramas
--536 = VioletHold
--539 = ???????? tout vert / gilnéas
--540 = IsleofConquest
--541 = HrothgarsLanding
--542 = TheArgentColiseum
--543 = l'épreuve du croisé
--544 = les iles perdues ( voir 681 )
--545 = gilnéas
--601 = la forge des ames
--602 = fosse de saron
--603 = salles des reflets
--604 = citadelle de la couronne de glace
--605 = kezan
--606 = mont hyjal ( voir 683 )
--607 = tarides du sud
--609 = RubySanctum
--610 = foret de varech'thar
--611 = gilnéas tout vert
--613 = vashj'ir
--614 = profondeurs abyssales
--615 = étendues chatoyantes

--[[
626 = TwinPeaks
640 = le tréfonds
673 = cap strangleronce
677 = la bataille de gilnéas (ancienne carte de la ville) / toute verte
680 = RagefireChasm
681 = les iles perdues ( voir 544 )
683 = mont hyjal ( voir 606 )
684 = ruines de gilnéas
685 = ruines de gilnéas (ville)
686 = ZulFarrak
687 = TheTempleOfAtalHakkar
688 = BlackfathomDeeps
689 = vallée de strangleronce
690 = TheStockade
691 = Gnomeregan
692 = Uldaman
696 = MoltenCore
697 = zul'gurub
699 = DireMaul (multiple layers for each wing)
700 = hautes terres du crépuscule
704 = BlackrockDepths
708 = tol'barad
709 = péninsule de tol'barad
710 = les salles brisées
717 = RuinsofAhnQiraj
718 = OnyxiasLair
720 = uldum
721 = BlackrockSpire
722 = cryptes auchenai
723 = les salles des sethekk
724 = labyrinthe des ombres
725 = la fournaise du sang
726 = la basse-tourbière
727 = le caveau de la vapeur
728 = les enclos aux esclaves
729 = la botanica
730 = le méchanar
731 = l'arcatraz
732 = tombes-mana
733 = le noir marécage
734 = contreforts de hautebrande d'antan
736 = BattleForGilneas
737 = le maélstrom
747 = LostCityOfTheTolvir
748 = uldum
749 = WailingCaverns
750 = Maraudon
751 = zones du maélstrom ( pas de nom )
752 = BardinHold
753 = BlackrockCaverns
754 = BlackwingDescent
755 = BlackwingLair
756 = TheDeadmines
757 = GrimBatol
758 = BastionOfTwilight
759 = HallsOfOrigination
760 = RazorfenDowns
761 = RazorfenKraul
762 = ScarletMonastery (multiple layers for each wing)
763 = Scholomance
764 = ShadowfangKeep
765 = Stratholme
766 = AhnQiraj
767 = ThroneOfTheTides
768 = TheStonecore
769 = TheVortexPinnacle
770 = hautes terres du crépuscule
772 = ahn'qiraj : le royaume déchu
773 = ThroneOfTheFourWinds
775 = la bataille du mont hyjal
776 = repaire de gruul
779 = le repaire de magtheridon
780 = caverne du sanctuaire du serpent
781 = zul'aman
782 = donjon de la tempete
789 = plateau du puits de soleil
793 = zul'gurub
795 = front du magma
796 = temple noir
797 = remparts des flammes infernales
798 = terrasse des magistères
799 = karazhan
800 = terres de feu
803 = le nexus ( légendaire )
--]]

--	539		carte toute verte
--	545		carte toute verte	+	gilneas
--	611		carte toute verte
--	677		carte toute verte
--	678		carte toute verte	+	gilneas
--	679		carte toute verte	+	gilneas
--	681		carte toute verte	+	maelstrom
--	879


--	achievement 107	:	Créatures tuées :	Bêtes		Démons	Draconiens		Elémentaires	Géants	Humanoïdes		Machines	Mort-vivant		Non spécifiés	Totems
--			382	:	Bassin d'Arathi	Vallée d'Alterac	Goulet des Chanteguerres	OEil du cyclone	Rivage des Anciens
--			699	:	Arène des Tranchantes		Arène de Nagrand		Ruines de Lordaeron	L'Arène des valeureux		Egouts de Dalaran
--	tempo 3300

--INSTANCE_LOCK_SS = "L'instance %2s |2 %1s est verrouillée.";

--L'instance machin d'UNKNOWN est verrouillée.
--/script i=0;
--/script i=30;
--/script i=209;
--/script i=545;
--/script i=550;
--/script i=600;
--/script i=610;
--/script i=620;
--/script i=650;
--/script i=730;
--/script i=760;
--/script i=i+1;DEFAULT_CHAT_FRAME:AddMessage(i);SetItemRef("instancelock:0180000000328C9D:"..i..":0:0");
--/script i=i-1;DEFAULT_CHAT_FRAME:AddMessage(i);SetItemRef("instancelock:0180000000328C9D:"..i..":0:0");
--	0	Royaumes de l'est
--	1	Kalimdor
--	13	Test
--	25	Test de Scott
--	30	Vallée d'Alterac
--	33	Donjon d'Ombrecroc
--/script DEFAULT_CHAT_FRAME:AddMessage(CMS_GetItemLink("@@Donjon d'Ombrecroc@-9@0180000000328C9D:33:0:0@@"));
--	34	Prison de Hurlevent
--/script DEFAULT_CHAT_FRAME:AddMessage(CMS_GetItemLink("@@Prison de Hurlevent@-9@0180000000328C9D:34:0:0@@"));
--	36	Mortemines
--	37	Cratère d'Azshara
--	42	Test de Collin
--	43	Cavernes des Lamentations
--	47	Kraal de Tranchebauge
--	48	Profondeurs de Brassenoire
--	70	Uldaman
--	90	Gnomeregan
--	109	Temple englouti
--	129	Souilles de Tranchebauge
--	169	Rêve d'émeraude
--	189	Monastère écarlate d'antan
--	209	Zul'Farrak
--	229	Pic Rochenoire
--	230	Profondeurs de Rochenoire
--	249	Repaire d'Onyxia
--	269	Ouverture de la Porte des ténèbres
--	289	Scholomance
--	309	Zul'Gurub
--	329	Stratholme
--	349	Maraudon
--	369	Tram des profondeurs
--	389	Gouffre de Ragefeu
--	409	Coe(collés)ur du Magma
--	429	Hache-tripes
--	449	Baraquements Alliance JcJ
--	450	Baraquements Horde JcJ
--	451	Terre en développement
--	469	Repaire de l'Aile noire
--	489	Goulet des Chanteguerres
--	509	Ruines d'Ahn'Qiraj
--	529	Bassin d'Arathi
--	530	Outreterre
--	531	Temple d'Ahn'Qiraj
--	532	Karazhan
--	533	Naxxramas
--	534	La bataille du mont Hyjal
--	540	Citadelle des Flammes infernales : les Salles brisées
--	542	Citadelle des Flammes infernales : la Fournaise du sang
--	543	Citadelle des Flammes infernales : les Remparts
--	544	Repaire de Magtheridon
--	545	Glissecroc : le Caveau de la vapeur
--	546	Glissecroc : la Basse-tourbière
--	547	Glissecroc : les Enclos aux esclaves
--	548	Glissecroc : caverne du sanctuaire du Serpent
--	550	Donjon de la Tempête
--	552	Donjon de la Tempête : l'Arcatraz
--	553	Donjon de la Tempête : la Botanica
--	554	Donjon de la Tempête : le Méchanar
--	555	Auchindoun : Labyrinthe des ombres
--	556	Auchindoun : Salles des Sethekk
--	557	Auchindoun : Tombes-mana
--	558	Auchindoun : Cryptes Auchenaï
--	559	Arène de Nagrand
--	560	L'évasion de Fort-de-Durn
--	562	Arène des Tranchantes
--	564	Temple noir
--	565	Le repaire de Gruul
--	566	L'OE(collés)il du cyclone
--	568	Zul'Aman
--	571	Norfendre
--	572	Ruines de Lordaeron
--	573	Test d'extérieur
--	574	Donjon d'Utgarde
--	575	Cime d'Utgarde
--	576	Le Nexus
--	578	L'Oculus
--	580	Le Puits de soleil
--	582	Transport : de Rut'theran à Auberdine
--	584	Transport : de Menethil à Theramore
--	585	Terrasse des magistères
--	586	Transport : de l'Exodar à Auberdine
--	587	Transport : bac de Pennelune
--	588	Transport : de Menethil à Auberdine
--	589	Transport : d'Orgrimmar à Grom'Gol
--	590	Transport : de Grom'Gol à Fossoyeuse
--	591	Transport : de Fossoyeuse à Orgrimmar
--	592	Transport : test de la toundra Boréenne
--	593	Transport : Baie-du-Butin à Cabestan
--	594	Transport : Fjord hurlant Soe(collés)ur Miséricorde (quête)
--	595	L'Eépuration de Stratholme
--	596	Transport: Naglfar
--	597	Test de Craig
--	598	Correction du puits de soleil (inutilisé)
--	599	Les salles de Pierre
--	600	Donjon de Drak'Tharon
--	601	Azjol -Nérub
--	602	Les salles de Foudre
--	603	Ulduar
--	604	Gundrak
--	605	Terre en développement (textures sans pesanteur)
--	606	AQ et DVD
--	607	Rivage des Anciens
--	608	Le fort Pourpre
--	609	Le fort d'Eébène
--	610	Transport : de Tirisfal à l'accostage de la Vengeance
--	612	Transport : de Menethil à Valgarde
--	613	Transport : d'Orgrimmar au bastion Chanteguerre
--	614	Transport : de Hurlevent au donjon de la Bravoure
--	615	Le sanctum Obsidien
--	616	L'OE(collés)il de l'éternité
--	617	Eégouts de Dalaran
--	618	L'arène des Valeureux
--	619	Ahn'kahet : l'Ancien royaume
--	620	Transport : Moa'ki à Unu'pe
--	621	Transport : Moa'ki à Kamagua
--	622	Transport : le Marteau d'Orgrim
--	623	Transport : le Brise-ciel
--	624	Caveau d'Archavon
--	628	Île des Conquérants
--	631	Citadelle de la Couronne de glace
--	632	La Forge des âmes
--	641	Transport : CB Vaisseau de l'Alliance
--	642	Transport : CB Vaisseau de la Horde
--	647	Transport : d'Orgrimmar aux Pitons-du-Tonnerre
--	649	L'épreuve du croisé
--	650	L'épreuve du champion
--	658	Fosse de Saron
--	668	Salles des Reflets
--	672	Transport : le Brise-ciel (raid de la citadelle de la Couronne de glace)
--	673	Transport : le Marteau d'Orgrim (raid de la citadelle de la Couronne de glace)
--	712	Transport : le Brise-ciel (donjon de la Couronne de glace)
--	713	Transport : le Marteau d'Orgrim (donjon de la Couronne de glace)
--	718	Transport : le Grand vent (raid de la Couronne de glace)
--	723	Hurlevent
--	724	Le sanctum Rubis
--	734	Terrasse d'Ahn'Qiraj

--	637	Extérieur de la Gueule des abysses
--	638	Gilnéas
--	x643	Trône des marées
--	x644	Salles de l'Origine
--	x645	Cavernes de Rochenoire
--	646	Le Tréfonds
--	648	Îles perdues
--	651	Test de création d'ascenseur
--	654	Gilnéas 2
--	655	Gilnéas phase 1
--	656	Gilnéas phase 2
--	x657	Cime du Vortex
--	659	Eéruption volcanique des îles Perdues
--	660	Toit du Tréfonds
--	661	Îles perdues Ville-en-Boîte
--	662	Transport : vaisseau de l'Alliance vers Vashj'ir
--	x669	Descente de l'Aile noire
--	x670	Grim Batol
--	x671	Le bastion du Crépuscule
--	674	Transport : bateau pour Vashj'ir
--	719	Mont Hyjal Phase 1
--	720	Terres de Feu
--	721	Terrain 2 de Terres de Feu
--	x725	Le Coeur-de-pierre
--	x726	Pics jumeaux
--	727	CdB Mine de diamants
--	728	La bataille de Gilnéas
--	730	Région du maelström
--	731	Bombe des Serres-rocheuses
--	732	Tol Barad
--	736	Phase Gueule-de-dragons des hautes-terres du Crépuscule
--	738	Vaisseau vers Vashj'ir (Orgrimmar -> Vashj'ir)
--	739	Sous-marin de Vashj'ir - Horde
--	740	Sous-marin de Vashj'ir - Alliance
--	741	Transport Horde des hautes-terres du Crépuscule
--	742	Sous-marin de Vashj'ir - Horde autour de la Gueule des abysses
--	743	Sous-marin de Vashj'ir - Alliance autour de la Gueule des abysses
--	746	Oasis phasée d'Uldum
--	747	Transport : canonnnière du Tréfonds
--	748	Transport : ascenseur Onyxia/Nefarian
--	749	Transport : canonnnière mobile de Gilnéas
--	750	Transport : canonnière fixe de Gilnéas
--	751	Carmines - bombe orc
--	752	Carmines - pont phase 1
--	753	Carmines - pont phase 2
--	x754	Trône des quatre vents
--	x755	Cité perdue des Tol'vir
--	x757	Bastion de Baradin
--	759	Entrée phasée d'Uldum
--	760	Entrée phasée des Hautes-terres du Crépuscule
--	761	La bataille de Gilnéas
--	762	Zeppelin des Hautes-terres du Crépuscule 1
--	763	Zeppelin des Hautes-terres du Crépuscule 2
--	764	Uldum - Phase du camp démoli
--	765	Zeppelin d'attaque du Kraazar
--	766 Transport : canonnière qui se déplace en Gilnéas 02
--	767 Transport : canonnière qui se déplace en Gilnéas 03

--	727	Mines d'Eéclargent
--	859	Zul'Gurub
--	860	L'île Vagabonde
--	861	Front du Magma
--	870	Pandarie
--	930	(INUTILISE) Scénario : île d'Alcaz
--	938	La Fin des temps
--	939	Puits d'éternité
--	940	L'Heure du Crépuscule
----	950	Nexus (légendaire)
--	951	Nexus (légendaire)
--	959	Monastère Pandashan				( 4 boss )
--	960	Temple du Serpent de jade		( 4 boss )
--	961	Brasserie Brune d'Orage			( 3 boss )
--	962	Porte du Soleil couchant		( 4 boss )
--	967	Âme des dragons
--	968	L'OEil du cyclone coté
--	971	Phase Alliance de la forêt de jade
--	972	Phase champ de bataille de la forêt de jade
--	974	Foire de Sombrelune
--	975	Vaisseau tortue phase 1
--	976	Vaisseau tortue phase 2
--	977	Combat contre Aile de mort dans le Maelström
--	980	Arène Tol'viron
--	994	Palais Mogu'shan				( 2 boss )
--	995	[INUTILISE] Les profondeurs
--	996	Terrasse Printanière			( 4 boss )
--	998	Temple de Kotmogu
--	999	Chute de Theramore
--	1000	Chute de Theramore
--	1001	Salles éEcarlates			( 3 boss )
--	1004	Monastère éEcarlate			( 3 boss )
--	1005	Une bière foudroyante
--	1007	Scholomance					( 5 boss )
--	1008	Caveaux Mogu'shan			( 6 boss )
--	1009	Coeur de la peur			( 6 boss )
--	1010	CTF3
--	1011	Siège du temple de Niuzao	( 4 boss )
--	1014	Pic de la Sérénité
--	1019	Ruines de Theramore
--	1024	Pierre-Verte	( Razzia sur la mousse )
--	1028	(INUTILISE) Scénario : ruines mogu
--	1029	(INUTILISE) Scénario : crypte mogu
--	1030	Crypte des Rois oubliés
--	1031	Arène de l'Annihilation
--	1032	Combat de mascottes - La forêt de jade
--	1035	Temple of Kotmogu
--	1043	Arène de Castagn'ar		( Arène de Hurlenfer )		( Brawl'gar Arena )			5.1
--	1048	Bonne biture des brasseurs
--	1049	(INUTILISE) Scénario : temple du Buffle noir
--	1050	L'assaut de Zan'vess
--	1051	Festival de Brasse-Lune
--	1060	Level Design Land - Dev Only
--	1066	Zone de départ de la Pandarie, canonnière de Hurlevent
--	1074	Départ pour la Pandarie dans la canonnière d'Orgrimmar		( Orgrimmar Gunship Pandaria Start )
--	1075	Phase de la chute de Theramor	( Theramore's Fall Phase )
--	1076	Zone de départ de la Horde dans la forêt de Jade	( Jade Forest Horde Starting Area )

--5.1
--	1043	Arène de Castagn'ar		( Arène de Hurlenfer )		( Brawl'gar Arena )			5.1
--	1050	L'assaut de Zan'vess
--	1061	Plage de la Horde - Zone de quêtes journalières
--	1062	Plage de l'Alliance - Zone de quêtes journalières
--	1095	Scénario : ambuscade de Vol'jin
--	1099	Scénario : bataille navale
--	1102	Scénario : plage de la base de la Horde
--	1103	Scénario : plage de la base de l'Alliance
--	1104	Scénario : un peu de patience
--	1106	Scénario : Jaina à Dalaran
--	1112	Aà la poursuite de la Sombre récolte
--	1113	Transport: manège de Sombrelune

-->	1500

--CavernOfEndlessEchoes		14	14	14
--DarrowmereLake			0	0	0
--DeadminesWestfall			17	17	17
--OonaKagu					16	16	16
--ScarletCathedral			1	2	1		1004
--ScarletHalls				1	2	1		1001
--ScarletMonastery			1	4	1
--Scholomance				1	4	1		1007
--TempleofKotmogu			0	0	0		=	ValleyOfPowerScenario

DBCS_Region_liste = {};

--	DBCS_RegionData[0][1]  = { index = 30, name = "Ahn'Qiraj" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][2]  = { index = 3, name = "Bassin d'Arathi" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][3]  = { index = 4, name = "Cavernes des lamentations" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][4]  = { index = 5, name = "C\197\147ur du Magma" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][5]  = { index = 6, name = "Donjon d'Ombrecroc" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][6]  = { index = 7, name = "Gnomeregan" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][7]  = { index = 8, name = "Gouffre de Ragefeu" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][8]  = { index = 9, name = "Goulet des Chanteguerres" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][9]  = { index = 10, name = "Hache-tripes" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][10]  = { index = 11, name = "Kraal de Tranchebauge" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][11]  = { index = 12, name = "La Prison" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][12]  = { index = 13, name = "Le temple d'Atal'Hakkar" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][13]  = { index = 14, name = "Les Mortemines" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][14]  = { index = 15, name = "Maraudon" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][15]  = { index = 16, name = "Monast\195\168re \195\169carlate" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][16]  = { index = 17, name = "Mont Rochenoire" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][17]  = { index = 32, name = "Naxxramas 60" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][18]  = { index = 18, name = "Pic Rochenoire" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][19]  = { index = 20, name = "Profondeurs de Brassenoire" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][20]  = { index = 19, name = "Profondeurs de Rochenoire" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][21]  = { index = 21, name = "Repaire de l'Aile noire" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][22]  = { index = 22, name = "Repaire d'Onyxia" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][23]  = { index = 31, name = "Ruines d'Ahn'Qiraj" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][24]  = { index = 23, name = "Scholomance" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][25]  = { index = 24, name = "Souilles de Tranchebauge" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][26]  = { index = 25, name = "Stratholme" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][27]  = { index = 26, name = "Uldaman" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][28]  = { index = 27, name = "Vall\195\169e d'Alterac" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][29]  = { index = 28, name = "Zul'Farrak" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][30]  = { index = 29, name = "Zul'Gurub" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][31]  = { index = 1, name = "Capitales" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][32]  = { index = 2, name = "ex tram" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][33]  = { index = 33, name = "Remparts des Flammes infernales" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };			-- validé à 5
--	DBCS_RegionData[0][34]  = { index = 34, name = "La Fournaise du sang" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };					-- validé à 5
--	DBCS_RegionData[0][35]  = { index = 35, name = "Les Salles bris\195\169es" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };				-- validé à 5
--	DBCS_RegionData[0][36]  = { index = 36, name = "Le repaire de Magtheridon" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };				-- validé
--	DBCS_RegionData[0][37]  = { index = 37, name = "Cryptes Auchena\195\175" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };	-- ( 65/66 à 5)		-- validé
--	DBCS_RegionData[0][38]  = { index = 38, name = "Labyrinthe des ombres" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };					-- validé
--	DBCS_RegionData[0][39]  = { index = 39, name = "Les salles des Sethekk" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };	-- ( 67/68 à 5)		-- validé
--	DBCS_RegionData[0][40]  = { index = 40, name = "Tombes-mana" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };				-- ( 64 )			-- validé
--	DBCS_RegionData[0][41]  = { index = 41, name = "Temple noir" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };								-- ???????????????
--	DBCS_RegionData[0][42]  = { index = 42, name = "Les enclos aux esclaves" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };	--( 62/64 )			-- validé
--	DBCS_RegionData[0][43]  = { index = 43, name = "La Basse-tourbi\195\168re" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };		--( 63/65 )	-- validé
--	DBCS_RegionData[0][44]  = { index = 44, name = "Le Caveau de la vapeur" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };	--( 70/72 )			-- validé
--	DBCS_RegionData[0][45]  = { index = 45, name = "Caverne du sanctuaire du Serpent" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };	--( raid )	-- validé
--	DBCS_RegionData[0][46]  = { index = 46, name = "Repaire de Gruul" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };		--(raid)			-- validé
--	DBCS_RegionData[0][47]  = { index = 47, name = "Le M\195\169chanar" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };	-- ( 69/72 )				-- validé
--	DBCS_RegionData[0][48]  = { index = 48, name = "La Botanica" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };	-- ( 70/72 )						-- validé
--	DBCS_RegionData[0][49]  = { index = 49, name = "L'Arcatraz" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };	-- ( 70/72 )						-- validé
--	DBCS_RegionData[0][50]  = { index = 57, name = "Donjon de la Temp\195\170te" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };	-- ( raid 25 )	-- validé
--	DBCS_RegionData[0][51]  = { index = 50, name = "L'\197\146il du cyclone" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };	-- ( raid jcj)			-- ?????????????????
--	DBCS_RegionData[0][52]  = { index = 51, name = "Karazhan" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };								-- validé
--	DBCS_RegionData[0][53]  = { index = 52, name = "Ar\195\168ne de Nagrand" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };					-- validé
--	DBCS_RegionData[0][54]  = { index = 53, name = "Ar\195\168ne des Tranchantes" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };			-- validé
--	DBCS_RegionData[0][55]  = { index = 58, name = "Ruines de Lordaeron" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][56]  = { index = 54, name = "Contreforts de Hautebrande d'antan" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };	-- gt1	-- validé
--	DBCS_RegionData[0][57]  = { index = 55, name = "Le Noir Mar\195\169cage" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };				-- gt2	-- validé
--	DBCS_RegionData[0][58]  = { index = 56, name = "Sommet d'Hyjal" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };				-- gt3			-- validé
--	DBCS_RegionData[0][59]  = { index = 59, name = "Zul'Aman" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][60]  = { index = 60, name = "Terrasse des Magist\195\168res" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][61]  = { index = 61, name = "Plateau du Puits de soleil" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][62]  = { index = 62, name = "Donjon d'Utgarde" , nummap = 0 , repertoire = "UtgardeKeep" , fichier = "UtgardeKeep1_" , ressx = 0 , ressy = 0 };								-- 70-71 (05-05)	haut fait 477+489	:	Prince Keleseth	Skarvald le Constructeur	Dalronn le Contrôleur	Ingvar le Pilleur
--	DBCS_RegionData[0][63]  = { index = 63, name = "Le Nexus" , nummap = 0 , repertoire = "TheNexus" , fichier = "TheNexus1_" , ressx = 0 , ressy = 0 };											-- 70-71 (05-05)	haut fait 478+490	:	Grand magus Telestra	Anomalus	Ormorok le Sculpte-arbre	Keristrasza		( Commandant Stoutbeard )
--	DBCS_RegionData[0][64]  = { index = 64, name = "Azjol-N\195\169rub" , nummap = 0 , repertoire = "AzjolNerub" , fichier = "AzjolNerub1_" , ressx = 0 , ressy = 0 };								-- 72-74 (05-05)	haut fait 480+491		:	Krik'thir le Gardien de porte	Hadronox	Anub'arak
--	DBCS_RegionData[0][65]  = { index = 65, name = "Donjon de Drak'Tharon" , nummap = 0 , repertoire = "DrakTharonKeep" , fichier = "DrakTharonKeep1_" , ressx = 0 , ressy = 0 };						-- 73-75 (05-05)	haut fait 482+493	:	Trollétripe	Novos l'Invocateur	Roi Dred	Le prophète Tharon'ja
--	DBCS_RegionData[0][66]  = { index = 66, name = "Les salles de Pierre" , nummap = 0 , repertoire = "Ulduar77" , fichier = "Ulduar771_" , ressx = 0 , ressy = 0 };								-- 77-79 (05-05)	haut fait 485+496	:	Damoiselle de peine	Le tribunal des Âges	Krystallus	Sjonnir le Sculptefer
--	DBCS_RegionData[0][67]  = { index = 67, name = "Rivage des Anciens" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };											--jcj bg
--	DBCS_RegionData[0][68]  = { index = 68, name = "Les salles de Foudre" , nummap = 0 , repertoire = "HallsofLightning" , fichier = "HallsofLightning1_" , ressx = 0 , ressy = 0 };						-- 80-80 (05-05)	haut fait 486+497	:	Général Bjarngrin		Ionar		Volkhan	Loken
--	DBCS_RegionData[0][69]  = { index = 69, name = "L'Oculus" , nummap = 0 , repertoire = "Nexus80" , fichier = "Nexus801_" , ressx = 0 , ressy = 0 };											-- 80-80 (05-05)	haut fait 487+498	:	Drakos l'Interrogateur	Seigneur-mage Urom	Varos Arpentenuée	Gardien-tellurique Eregos
--	DBCS_RegionData[0][70]  = { index = 70, name = "L'\195\137puration de Stratholme" , nummap = 0 , repertoire = "CoTStratholme" , fichier = "CoTStratholme1_" , ressx = 0 , ressy = 0 };				-- 80-80 (05-05)	haut fait 479+500	:	Grancrochet	Chronoseigneur Epoch	Salramm le Façonneur de chair		Mal'Ganis
--	DBCS_RegionData[0][71]  = { index = 71, name = "Cime d'Utgarde" , nummap = 0 , repertoire = "UtgardePinnacle" , fichier = "UtgardePinnacle1_" , ressx = 0 , ressy = 0 };								-- 80-80 (05-05)	haut fait 488+499	:	Skadi le Brutal	Svala Tristetombe		Gortok Pâle-sabot		Roi Ymiron
--	DBCS_RegionData[0][72]  = { index = 72, name = "L'\197\146il de l'\195\169ternit\195\169" , nummap = 0 , repertoire = "TheEyeOfEternity" , fichier = "TheEyeOfEternity1_" , ressx = 0 , ressy = 0 };	-- 80-80 (10-25)				:	Malygos
--	DBCS_RegionData[0][73]  = { index = 73, name = "Gundrak" , nummap = 0 , repertoire = "GunDrak" , fichier = "GunDrak1_" , ressx = 0 , ressy = 0 };												-- 73-75 (05-05)	haut fait 484+495	:	Slad'ran	Moorabi	Colosse drakkari	Gal'darah	Eck le Féroce
--	DBCS_RegionData[0][74]  = { index = 74, name = "Ahn'kahet\194\160: l'Ancien royaume" , nummap = 0 , repertoire = "Ahnkahet" , fichier = "Ahnkahet1_" , ressx = 0 , ressy = 0 };				-- 73-75 (05-05)	haut fait 481+492		:	Prince Taldaram	Ancien Nadox	Jedoga Cherchelombre	Héraut Volazj	Amanitar
--	DBCS_RegionData[0][75]  = { index = 75, name = "Le fort Pourpre" , nummap = 0 , repertoire = "VioletHold" , fichier = "VioletHold1_" , ressx = 0 , ressy = 0 };									-- 75-77 (05-05)	haut fait 483+494	:	Erekem	Ichoron	Lavanthor	Moragg	Xevozz	Zuramat l'Oblitérateur		Cyanigosa
--	DBCS_RegionData[0][76]  = { index = 76, name = "Le sanctum Obsidien" , nummap = 0 , fichier = "TheObsidianSanctum" , ressx = 0 , ressy = 0 };						-- 80-80 (10-25)					:	Sartharion
--	DBCS_RegionData[0][77]  = { index = 77, name = "Naxxramas" , nummap = 0 , repertoire = "Naxxramas" , fichier = "Naxxramas5_" , ressx = 0 , ressy = 0 };											-- 80-80 '10-25)	haut fait 562,564,566,568,572,574		Anub'Rekhan	Grande veuve Faerlina	Maexxna	Le Recousu		Grobbulus	Gluth		Thaddius	Noth le Porte-peste	Heigan l'Impur	Horreb	Instructeur Razuvious	Gothik le Moissonneur	Les quatre cavaliers	Saphiron	Kel'Thuzad
--	DBCS_RegionData[0][78]  = { index = 78, name = "L'Ar\195\168ne des valeureux" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };								-- arene
--	DBCS_RegionData[0][79]  = { index = 79, name = "\195\137gouts de Dalaran" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };									-- arene
--	DBCS_RegionData[0][80]  = { index = 80, name = "Caveau d'Archavon" , nummap = 0 , repertoire = "VaultofArchavon" , fichier = "VaultofArchavon1_" , ressx = 0 , ressy = 0 };							-- 80-80 (10-25)
--	DBCS_RegionData[0][81]  = { index = 81, name = "Ulduar" , nummap = 0 , fichier = "Ulduar" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][82]  = { index = 82, name = "Maleterres : l'enclave \195\137carlate" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][83]  = { index = 83, name = "L'\195\169preuve du champion" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][84]  = { index = 84, name = "L'\195\169preuve du crois\195\169" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][85]  = { index = 86, name = "\195\174le des Conqu\195\169rants" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };
--	DBCS_RegionData[0][86]  = { index = 85, name = "les salles Gel\195\169es" , nummap = 0 , fichier = "" , ressx = 0 , ressy = 0 };

local i = 0;
local j;
local k;
local l;

DBCS_Region_liste[0] = {};

i=i+1;DBCS_Region_liste[0][i] = { sval = "000" };																																	--Mondial						à vérifier
i=i+1;DBCS_Region_liste[0][i] = { sval = "001" };																																	--Capitales						à vérifier
i=i+1;DBCS_Region_liste[0][i] = { sval = "002" };																																	--ex tram	369					à vérifier
i=i+1;DBCS_Region_liste[0][i] = { sval = "003", instancelock = 529, srepertoire = "ArathiBasin", areaid = 461, achiev = 382, achiev_ligne = 7, achiev_left = 1, sregionloc = "202", slocloc = "@46x45@74x29@" };		--Bassin d'Arathi					vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "004", instancelock = 43, srepertoire = "WailingCaverns", areaid = 749, inbnivmin = 1, inbnivmax = 1, inumniv = 1, achiev = 630, sregionloc = "117", slocloc = "@46x36@" };		--Cavernes des lamentations			vérifié	15-25
i=i+1;DBCS_Region_liste[0][i] = { sval = "005", instancelock = 409, srepertoire = "MoltenCore", areaid = 696, inbnivmin = 1, inbnivmax = 1, inumniv = 1, achiev = 686, sregionloc = "205", slocloc = "@18x25@" };	--Coeur du Magma					vérifié
--i=i+1;DBCS_Region_liste[0][i] = { sval = "006", srepertoire = "minimap", achiev = 631, sregionloc = "216", slocloc = "@45x68@" };													--Donjon d'Ombrecroc				vérifié	16-26
i=i+1;DBCS_Region_liste[0][i] = { sval = "006", instancelock = 33, srepertoire = "ShadowfangKeep", areaid = 764, inbnivmin = 1, inbnivmax = 7, inumniv = 1, achiev = 631, sregionloc = "216", slocloc = "@45x68@" };		--Donjon d'Ombrecroc				vérifié	16-26
i=i+1;DBCS_Region_liste[0][i] = { sval = "007", instancelock = 90, srepertoire = "Gnomeregan", areaid = 691, inbnivmin = 1, inbnivmax = 4, inumniv = 1, achiev = 634, sregionloc = "207", slocloc = "@24x40@18x39@21x30@" };		--Gnomeregan					vérifié	23-33
i=i+1;DBCS_Region_liste[0][i] = { sval = "008", instancelock = 389, srepertoire = "Ragefire", areaid = 680, inbnivmin = 1, inbnivmax = 1, inumniv = 1, achiev = 629, sregionloc = "112", slocloc = "@52x50@" };		--Gouffre de Ragefeu				vérifié	15-21
--i=i+1;DBCS_Region_liste[0][i] = { sval = "009", srepertoire = "WarsongGulch", achiev = 382, achiev_ligne = 8, achiev_left = 1, sregionloc = "117", slocloc = "@47x8@" };			--Goulet des Chanteguerres			vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "009", instancelock = 489, srepertoire = "WarsongGulch", areaid = 443, achiev = 382, achiev_ligne = 8, achiev_left = 1, sregionloc = "101", slocloc = "@62x84@" };			--Goulet des Chanteguerres			vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "010", instancelock = 429, srepertoire = "DireMaul", areaid = 699, inbnivmin = 1, inbnivmax = 6, inumniv = 1, sregionloc = "109", slocloc = "@77x37@59x45@" };				--Hache-tripes					vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "011", instancelock = 47, srepertoire = "RazorfenKraul", areaid = 761, inbnivmin = 1, inbnivmax = 1, inumniv = 1, achiev = 635, sregionloc = "117", slocloc = "@42x90@" };	--Kraal de Tranchebauge				vérifié	22-32
i=i+1;DBCS_Region_liste[0][i] = { sval = "012", instancelock = 34, srepertoire = "TheStockade", areaid = 690, inbnivmin = 1, inbnivmax = 1, inumniv = 1, achiev = 633, sregionloc = "217", slocloc = "@52x70@" };	--La Prison						vérifié	20-30	Prison de Hurlevent
i=i+1;DBCS_Region_liste[0][i] = { sval = "013", instancelock = 109, name2 = "Le temple d'Atal'Hakkar", srepertoire = "TheTempleofAtalhakkar", areaid = 687, inbnivmin = 1, inbnivmax = 1, inumniv = 1, achiev = 641, sregionloc = "219", slocloc = "@69x56@77x36@" };		--Le temple d'Atal'Hakkar			vérifié ( 2 noms )	45-55
i=i+1;DBCS_Region_liste[0][i] = { sval = "014", instancelock = 36, name2 = "Les Mortemines", srepertoire = "TheDeadmines", areaid = 756, inbnivmin = 1, inbnivmax = 2, inumniv = 1, achiev = 628, sregionloc = "224", slocloc = "@42x72@38x77@39x84@" };		--Mortemines					vérifié ( 2 noms )	15-25
--i=i+1;DBCS_Region_liste[0][i] = { sval = "015", srepertoire = "minimap", achiev = 640, sregionloc = "105", slocloc = "@29x62@36x64@30x54@29x61@" };									--Maraudon						vérifié	39-49 ( violet )		41-51 ( orange )		43-53 ( eaux pures )
i=i+1;DBCS_Region_liste[0][i] = { sval = "015", instancelock = 349, srepertoire = "Maraudon", areaid = 750, inbnivmin = 1, inbnivmax = 2, inumniv = 1, achiev = 640, sregionloc = "105", slocloc = "@29x62@36x64@30x54@29x61@" };		--Maraudon						vérifié	39-49 ( violet )		41-51 ( orange )		43-53 ( eaux pures )
i=i+1;DBCS_Region_liste[0][i] = { sval = "016", instancelock = 189, srepertoire = "ScarletMonastery", areaid = 762, inbnivmin = 1, inbnivmax = 4, inumniv = 1, achiev = 637, sregionloc = "221", slocloc = "@82x33@" };	--Monastère écarlate				vérifié	27-37 ( cimetière )	30-40 ( bibliothèque )	armurerie ( 32-42 )	cathédrale ( 35-45 )
i=i+1;DBCS_Region_liste[0][i] = { sval = "017", sregionloc = "205", slocloc = "@21x39@" };																							--Mont Rochenoire				vérifié
--i=i+1;DBCS_Region_liste[0][i] = { sval = "018", achiev = 643, sregionloc = "215", slocloc = "@35x84@" };	--	Pic Rochenoire				à vérifier
i=i+1;DBCS_Region_liste[0][i] = { sval = "018", instancelock = 229, srepertoire = "BlackrockSpire", areaid = 721, inbnivmin = 1, inbnivmax = 7, inumniv = 4, sregionloc = "205", slocloc = "@24x25@" };			--Pic Rochenoire					vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "019", instancelock = 230, srepertoire = "BlackrockDepths", areaid = 704, inbnivmin = 1, inbnivmax = 2, inumniv = 1, achiev = 642, sregionloc = "205", slocloc = "@14x9@" };		--Profondeurs de Rochenoire			vérifié	47-57 ( Pris...)	51-61 ( Vill... )
i=i+1;DBCS_Region_liste[0][i] = { sval = "020", instancelock = 48, srepertoire = "BlackFathomDeeps", areaid = 688, inbnivmin = 1, inbnivmax = 3, inumniv = 1, achiev = 632, sregionloc = "101", slocloc = "@14x14@" };	--Profondeurs de Brassenoire			vérifié	19-29
i=i+1;DBCS_Region_liste[0][i] = { sval = "021", instancelock = 469, srepertoire = "BlackwingLair", areaid = 755, inbnivmin = 1, inbnivmax = 4, inumniv = 1, achiev = 685, sregionloc = "205", slocloc = "@24x32@" };	--Repaire de l'Aile noire				vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "022", instancelock = 249, srepertoire = "OnyxiasLair", areaid = 718, inbnivmin = 1, inbnivmax = 1, inumniv = 1, sregionloc = "107", slocloc = "@52x77@" };					--Repaire d'Onyxia				vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "023", instancelock = 289, bvalid = false, srepertoire = "Scholomance", inbnivmin = 1, inbnivmax = 4, inumniv = 1, achiev = 645, sregionloc = "223", slocloc = "@69x73@" };	--Scholomance					vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "024", instancelock = 129, srepertoire = "RazorfenDowns", areaid = 760, inbnivmin = 1, inbnivmax = 1, inumniv = 1, achiev = 636, sregionloc = "117", slocloc = "@51x93@" };	--Souilles de Tranchebauge			vérifié	32-42
i=i+1;DBCS_Region_liste[0][i] = { sval = "025", instancelock = 329, srepertoire = "Stratholme", areaid = 765, inbnivmin = 1, inbnivmax = 2, inumniv = 1, achiev = 646, sregionloc = "209", slocloc = "@43x20@27x13@" };	--Stratholme					vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "026", instancelock = 70, srepertoire = "Uldaman", areaid = 692, inbnivmin = 1, inbnivmax = 2, inumniv = 1, achiev = 638, sregionloc = "203", slocloc = "@45x12@35x11@65x43@68x44@" };	--Uldaman						vérifié	35-45
i=i+1;DBCS_Region_liste[0][i] = { sval = "027", instancelock = 30, srepertoire = "AlteracValley", areaid = 401, achiev = 382, achiev_ligne = 7, achiev_left = 0, sregionloc = "211", slocloc = "@39x81@64x60@" };	--Vallée d'Alterac					vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "028", instancelock = 209, srepertoire = "ZulFarrak", areaid = 686, achiev = 639, sregionloc = "115", slocloc = "@39x20@" };													--Zul'Farrak					vérifié	41-51
i=i+1;DBCS_Region_liste[0][i] = { sval = "030", instancelock = 531, srepertoire = "AhnQiraj", areaid = 766, inbnivmin = 1, inbnivmax = 3, inumniv = 2, achiev = 687, sregionloc = "113", slocloc = "@29x92@25x100@15x98@" };		--Ahn'Qiraj						vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "031", instancelock = 509, srepertoire = "RuinsofAhnQiraj", areaid = 717, achiev = 689, sregionloc = "113", slocloc = "@29x92@30x100@" };									--Ruines d'Ahn'Qiraj				vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "032", srepertoire = "Naxxramas", bvalid = false, inbnivmin = 1, inbnivmax = 6, inumniv = 5, sregionloc = "209", slocloc = "@37x22@" };					--Naxxramas 60					n'existe plus
i=i+1;DBCS_Region_liste[0][i] = { sval = "050", instancelock = 566, name2 = "L'\197\146il du cyclone", srepertoire = "NetherstormArena", areaid = 482, achiev = 382, achiev_ligne = 8, achiev_left = 0, sregionloc = "306", slocloc = "@33x65@" };--L'OEil du cyclone	vérifié
--i=i+1;DBCS_Region_liste[0][i] = { sval = "050", instancelock = 566, name2 = "L'\197\146il du cyclone", srepertoire = "NetherstormArena", areaid = 813, achiev = 382, achiev_ligne = 8, achiev_left = 0, sregionloc = "306", slocloc = "@33x65@" };--L'OEil du cyclone	vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "052", instancelock = 559, achiev = 699, achiev_ligne = 7, achiev_left = 0, sregionloc = "304", slocloc = "@66x57@" };											--Arène de Nagrand				vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "053", instancelock = 562, achiev = 699, achiev_ligne = 7, achiev_left = 1, sregionloc = "302", slocloc = "@54x43@" };											--Arène des Tranchantes				vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "058", instancelock = 572, achiev = 699, achiev_ligne = 8, achiev_left = 1, sregionloc = "211", slocloc = "@14x65@" };											--Ruines de Lordaeron				vérifié

--if ( DBCS_Region_wow_build_info > DBCS_Region_wow_build_info_live ) then

i=i+1;DBCS_Region_liste[0][i] = { sval = "029", instancelock = 309, bvalid = false, srepertoire = "ZulGurub", achiev = 688, sregionloc = "218", slocloc = "@54x17@" };													--L'antique Zul'Gurub						vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "033", instancelock = 543, srepertoire = "HellfireRamparts", areaid = 797, inbnivmin = 1, inbnivmax = 1, inumniv = 1, name2 = "Citadelle des Flammes infernales\194\160: Les Remparts", achiev = 647, sregionloc = "305", slocloc = "@48x54@" };			--Remparts des Flammes infernales		vérifié ( 2 noms )
i=i+1;DBCS_Region_liste[0][i] = { sval = "034", instancelock = 542, srepertoire = "TheBloodFurnace", areaid = 725, inbnivmin = 1, inbnivmax = 1, inumniv = 1, name2 = "Citadelle des Flammes infernales\194\160: la Fournaise du sang", achiev = 648, sregionloc = "305", slocloc = "@46x52@" };	--La Fournaise du sang				vérifié ( 2 noms )
i=i+1;DBCS_Region_liste[0][i] = { sval = "035", instancelock = 540, srepertoire = "TheShatteredHalls", areaid = 710, inbnivmin = 1, inbnivmax = 1, inumniv = 1, name2 = "Citadelle des Flammes infernales\194\160: les Salles bris\195\169es", achiev = 657, sregionloc = "305", slocloc = "@48x52@" };	--Les Salles brisées			vérifié ( 2 noms )
i=i+1;DBCS_Region_liste[0][i] = { sval = "036", instancelock = 544, srepertoire = "Magtheridonslair", areaid = 779, inbnivmin = 1, inbnivmax = 1, inumniv = 1, achiev = 693, sregionloc = "305", slocloc = "@46x53@" };																			--Le repaire de Magtheridon			vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "037", instancelock = 558, srepertoire = "AuchenaiCrypts", areaid = 722, inbnivmin = 1, inbnivmax = 2, inumniv = 2, name2 = "Auchindoun\194\160: Cryptes Auchena\195\175", achiev = 666, sregionloc = "301", slocloc = "@34x66@" };						--Cryptes Auchenaï				vérifié ( 2 noms )
i=i+1;DBCS_Region_liste[0][i] = { sval = "038", instancelock = 555, srepertoire = "ShadowLabyrinth", areaid = 724, inbnivmin = 1, inbnivmax = 1, inumniv = 1, name2 = "Auchindoun\194\160: Labyrinthe des ombres", achiev = 654, sregionloc = "301", slocloc = "@40x71@" };						--Labyrinthe des ombres				vérifié ( 2 noms )
i=i+1;DBCS_Region_liste[0][i] = { sval = "039", instancelock = 556, srepertoire = "SethekkHalls", areaid = 723, inbnivmin = 1, inbnivmax = 2, inumniv = 1, name2 = "Auchindoun\194\160: Salles des Sethekk", achiev = 653, sregionloc = "301", slocloc = "@45x66@" };							--Les salles des Sethekk				vérifié ( 2 noms )
i=i+1;DBCS_Region_liste[0][i] = { sval = "040", instancelock = 557, srepertoire = "ManaTombs", areaid = 732, inbnivmin = 1, inbnivmax = 1, inumniv = 1, name2 = "Auchindoun\194\160: Tombes-mana", achiev = 651, sregionloc = "301", slocloc = "@40x58@" };									--Tombes-mana					vérifié ( 2 noms )
--i=i+1;DBCS_Region_liste[0][i] = { sval = "041", instancelock = 564, name2 = "Temple noir", achiev = 697, sregionloc = "308", slocloc = "@71x46@" };														--Temple noir					vérifié ( 2 noms )
i=i+1;DBCS_Region_liste[0][i] = { sval = "041", instancelock = 564, srepertoire = "BlackTemple", areaid = 796, inbnivmin = 0, inbnivmax = 7, inumniv = 1, name2 = "Temple noir", achiev = 697, sregionloc = "308", slocloc = "@71x46@" };														--Temple noir					vérifié ( 2 noms )
i=i+1;DBCS_Region_liste[0][i] = { sval = "042", instancelock = 547, srepertoire = "TheSlavePens", areaid = 728, inbnivmin = 1, inbnivmax = 1, inumniv = 1, name2 = "Glissecroc\194\160: les Enclos aux esclaves", achiev = 649, sregionloc = "303", slocloc = "@50x41@49x36@" };				--Les enclos aux esclaves			vérifié ( 2 noms )
i=i+1;DBCS_Region_liste[0][i] = { sval = "043", instancelock = 546, srepertoire = "TheUnderbog", areaid = 726, inbnivmin = 1, inbnivmax = 1, inumniv = 1, name2 = "Glissecroc\194\160: la Basse-tourbi\195\168re", achiev = 650, sregionloc = "303", slocloc = "@50x41@54x34@" };				--La Basse-tourbière				vérifié ( 2 noms )
i=i+1;DBCS_Region_liste[0][i] = { sval = "044", instancelock = 545, srepertoire = "TheSteamvault", areaid = 727, inbnivmin = 1, inbnivmax = 2, inumniv = 1, name2 = "Glissecroc\194\160: le Caveau de la vapeur", achiev = 656, sregionloc = "303", slocloc = "@50x41@50x33@" };				--Le Caveau de la vapeur				vérifié ( 2 noms )
i=i+1;DBCS_Region_liste[0][i] = { sval = "045", instancelock = 548, srepertoire = "CoilfangReservoir", areaid = 780, inbnivmin = 1, inbnivmax = 1, inumniv = 1, name2 = "Glissecroc\194\160: caverne du sanctuaire du Serpent", achiev = 694, sregionloc = "303", slocloc = "@50x41@52x33@" };		--Caverne du sanctuaire du Serpent		vérifié ( 2 noms )
i=i+1;DBCS_Region_liste[0][i] = { sval = "046", instancelock = 565, srepertoire = "GruulsLair", areaid = 776, inbnivmin = 1, inbnivmax = 1, inumniv = 1, name2 = "Le repaire de Gruul", achiev = 692, sregionloc = "302", slocloc = "@69x24@" };												--Repaire de Gruul				vérifié ( 2 noms )
i=i+1;DBCS_Region_liste[0][i] = { sval = "047", instancelock = 554, srepertoire = "TheMechanar", areaid = 730, inbnivmin = 1, inbnivmax = 2, inumniv = 1, name2 = "Donjon de la Temp\195\170te\194\160: le M\195\169chanar", achiev = 658, sregionloc = "306", slocloc = "@71x70@" };			--Le Méchanar					vérifié ( 2 noms )
i=i+1;DBCS_Region_liste[0][i] = { sval = "048", instancelock = 553, srepertoire = "TheBotanica", areaid = 729, inbnivmin = 1, inbnivmax = 1, inumniv = 1, name2 = "Donjon de la Temp\195\170te\194\160: la Botanica", achiev = 659, sregionloc = "306", slocloc = "@72x55@" };				--La Botanica					vérifié ( 2 noms )
i=i+1;DBCS_Region_liste[0][i] = { sval = "049", instancelock = 552, srepertoire = "TheArcatraz", areaid = 731, inbnivmin = 1, inbnivmax = 3, inumniv = 1, name2 = "Donjon de la Temp\195\170te\194\160: l'Arcatraz", achiev = 660, sregionloc = "306", slocloc = "@74x58@" };					--L'Arcatraz					vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "051", instancelock = 532, srepertoire = "Karazhan", areaid = 799, inbnivmin = 1, inbnivmax = 17, inumniv = 1, achiev = 690, sregionloc = "206", slocloc = "@47x75@48x67@" };																		--Karazhan						à vérifier
i=i+1;DBCS_Region_liste[0][i] = { sval = "054", instancelock = 560, srepertoire = "CoTHillsbradFoothills", areaid = 734, achiev = 652, sregionloc = "115", slocloc = "@61x50@56x54@" };					--L'évasion de Fort-de-Durn			--Contreforts de Hautebrande d'antan	vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "055", instancelock = 269, srepertoire = "CoTTheBlackMorass", areaid = 733, achiev = 655, sregionloc = "115", slocloc = "@61x50@57x63@" };					--Ouverture de la Porte des ténèbres								--Le Noir Marécage				vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "056", instancelock = 534, srepertoire = "CoTMountHyjal", areaid = 775, achiev = 695, sregionloc = "115", slocloc = "@61x50@57x50@" };					--La bataille du mont Hyjal			--Sommet d'Hyjal					vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "057", instancelock = 550, srepertoire = "TempestKeep", areaid = 782, inbnivmin = 1, inbnivmax = 1, inumniv = 1, achiev = 696, sregionloc = "306", slocloc = "@74x64@" };																			--Donjon de la Tempête				vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "059", instancelock = 568, srepertoire = "ZulAman", areaid = 781, achiev = 691, sregionloc = "229", slocloc = "@82x64@" };																			--Zul'Aman						vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "060", instancelock = 585, srepertoire = "MagistersTerrace", areaid = 798, inbnivmin = 1, inbnivmax = 2, inumniv = 1, achiev = 661, sregionloc = "231", slocloc = "@61x31@" };																			--Terrasse des Magistères			vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "061", instancelock = 580, srepertoire = "SunwellPlateau", areaid = 789, inbnivmin = 0, inbnivmax = 1, inumniv = 0, name2 = "Le Puits de soleil", achiev = 698, sregionloc = "231", slocloc = "@44x46@" };												--Plateau du Puits de soleil			vérifié ( 2 noms )

--[[
else

i=i+1;DBCS_Region_liste[0][i] = { sval = "029", instancelock = 309, achiev = 688, sregionloc = "218", slocloc = "@54x17@" };																			--Zul'Gurub						vérifié
--i=i+1;DBCS_Region_liste[0][i] = { sval = "033", instancelock = 543, name2 = "Citadelle des Flammes infernales\194\160: Les Remparts", srepertoire = "minimap", achiev = 647, sregionloc = "305", slocloc = "@48x54@" };			--Remparts des Flammes infernales		vérifié ( 2 noms )
i=i+1;DBCS_Region_liste[0][i] = { sval = "033", instancelock = 543, name2 = "Citadelle des Flammes infernales\194\160: Les Remparts", achiev = 647, sregionloc = "305", slocloc = "@48x54@" };			--Remparts des Flammes infernales		vérifié ( 2 noms )
--i=i+1;DBCS_Region_liste[0][i] = { sval = "034", name2 = "Citadelle des Flammes infernales\194\160: la Fournaise du sang", srepertoire = "minimap", achiev = 648, sregionloc = "305", slocloc = "@46x52@" };	--La Fournaise du sang				vérifié ( 2 noms )
i=i+1;DBCS_Region_liste[0][i] = { sval = "034", instancelock = 542, name2 = "Citadelle des Flammes infernales\194\160: la Fournaise du sang", achiev = 648, sregionloc = "305", slocloc = "@46x52@" };	--La Fournaise du sang				vérifié ( 2 noms )
--i=i+1;DBCS_Region_liste[0][i] = { sval = "035", name2 = "Citadelle des Flammes infernales\194\160: les Salles bris\195\169es", srepertoire = "minimap", achiev = 657, sregionloc = "305", slocloc = "@48x52@" };	--Les Salles brisées			vérifié ( 2 noms )
i=i+1;DBCS_Region_liste[0][i] = { sval = "035", instancelock = 540, name2 = "Citadelle des Flammes infernales\194\160: les Salles bris\195\169es", achiev = 657, sregionloc = "305", slocloc = "@48x52@" };	--Les Salles brisées			vérifié ( 2 noms )
--i=i+1;DBCS_Region_liste[0][i] = { sval = "036", srepertoire = "minimap", achiev = 693, sregionloc = "305", slocloc = "@46x53@" };																			--Le repaire de Magtheridon			vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "036", instancelock = 544, achiev = 693, sregionloc = "305", slocloc = "@46x53@" };																			--Le repaire de Magtheridon			vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "037", instancelock = 558, name2 = "Auchindoun\194\160: Cryptes Auchena\195\175", achiev = 666, sregionloc = "301", slocloc = "@34x66@" };						--Cryptes Auchenaï				vérifié ( 2 noms )
i=i+1;DBCS_Region_liste[0][i] = { sval = "038", instancelock = 555, name2 = "Auchindoun\194\160: Labyrinthe des ombres", achiev = 654, sregionloc = "301", slocloc = "@40x71@" };						--Labyrinthe des ombres				vérifié ( 2 noms )
i=i+1;DBCS_Region_liste[0][i] = { sval = "039", instancelock = 556, name2 = "Auchindoun\194\160: Salles des Sethekk", achiev = 653, sregionloc = "301", slocloc = "@45x66@" };							--Les salles des Sethekk				vérifié ( 2 noms )
i=i+1;DBCS_Region_liste[0][i] = { sval = "040", instancelock = 557, name2 = "Auchindoun\194\160: Tombes-mana", achiev = 651, sregionloc = "301", slocloc = "@40x58@" };									--Tombes-mana					vérifié ( 2 noms )
i=i+1;DBCS_Region_liste[0][i] = { sval = "041", instancelock = 564, name2 = "Temple noir", achiev = 697, sregionloc = "308", slocloc = "@71x46@" };														--Temple noir					vérifié ( 2 noms )
--i=i+1;DBCS_Region_liste[0][i] = { sval = "042", instancelock = 547, name2 = "Glissecroc\194\160: les Enclos aux esclaves", srepertoire = "minimap", achiev = 649, sregionloc = "303", slocloc = "@50x41@49x36@" };				--Les enclos aux esclaves			vérifié ( 2 noms )
i=i+1;DBCS_Region_liste[0][i] = { sval = "042", instancelock = 547, name2 = "Glissecroc\194\160: les Enclos aux esclaves", achiev = 649, sregionloc = "303", slocloc = "@50x41@49x36@" };				--Les enclos aux esclaves			vérifié ( 2 noms )
--i=i+1;DBCS_Region_liste[0][i] = { sval = "043", name2 = "Glissecroc\194\160: la Basse-tourbi\195\168re", srepertoire = "minimap", achiev = 650, sregionloc = "303", slocloc = "@50x41@54x34@" };				--La Basse-tourbière				vérifié ( 2 noms )
i=i+1;DBCS_Region_liste[0][i] = { sval = "043", instancelock = 546, name2 = "Glissecroc\194\160: la Basse-tourbi\195\168re", achiev = 650, sregionloc = "303", slocloc = "@50x41@54x34@" };				--La Basse-tourbière				vérifié ( 2 noms )
i=i+1;DBCS_Region_liste[0][i] = { sval = "044", instancelock = 545, name2 = "Glissecroc\194\160: le Caveau de la vapeur", achiev = 656, sregionloc = "303", slocloc = "@50x41@50x33@" };				--Le Caveau de la vapeur				vérifié ( 2 noms )
i=i+1;DBCS_Region_liste[0][i] = { sval = "045", instancelock = 548, name2 = "Glissecroc\194\160: caverne du sanctuaire du Serpent", achiev = 694, sregionloc = "303", slocloc = "@50x41@52x33@" };		--Caverne du sanctuaire du Serpent		vérifié ( 2 noms )
i=i+1;DBCS_Region_liste[0][i] = { sval = "046", instancelock = 565, name2 = "Le repaire de Gruul", achiev = 692, sregionloc = "302", slocloc = "@69x24@" };												--Repaire de Gruul				vérifié ( 2 noms )
i=i+1;DBCS_Region_liste[0][i] = { sval = "047", instancelock = 554, name2 = "Donjon de la Temp\195\170te\194\160: le M\195\169chanar", achiev = 658, sregionloc = "306", slocloc = "@71x70@" };			--Le Méchanar					vérifié ( 2 noms )
i=i+1;DBCS_Region_liste[0][i] = { sval = "048", instancelock = 553, name2 = "Donjon de la Temp\195\170te\194\160: la Botanica", achiev = 659, sregionloc = "306", slocloc = "@72x55@" };				--La Botanica					vérifié ( 2 noms )
i=i+1;DBCS_Region_liste[0][i] = { sval = "049", instancelock = 552, name2 = "Donjon de la Temp\195\170te\194\160: l'Arcatraz", achiev = 660, sregionloc = "306", slocloc = "@74x58@" };					--L'Arcatraz					vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "051", instancelock = 532, achiev = 690, sregionloc = "206", slocloc = "@47x75@48x67@" };																		--Karazhan						à vérifier
--i=i+1;DBCS_Region_liste[0][i] = { sval = "054", instancelock = 560, srepertoire = "minimap", achiev = 652, sregionloc = "115", slocloc = "@61x50@56x54@" };					--L'évasion de Fort-de-Durn			--Contreforts de Hautebrande d'antan	vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "054", instancelock = 560, achiev = 652, sregionloc = "115", slocloc = "@61x50@56x54@" };					--L'évasion de Fort-de-Durn			--Contreforts de Hautebrande d'antan	vérifié
--i=i+1;DBCS_Region_liste[0][i] = { sval = "055", instancelock = 269, srepertoire = "minimap", achiev = 655, sregionloc = "115", slocloc = "@61x50@57x63@" };					--Ouverture de la Porte des ténèbres								--Le Noir Marécage				vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "055", instancelock = 269, achiev = 655, sregionloc = "115", slocloc = "@61x50@57x63@" };					--Ouverture de la Porte des ténèbres								--Le Noir Marécage				vérifié
--i=i+1;DBCS_Region_liste[0][i] = { sval = "056", instancelock = 534, srepertoire = "minimap", achiev = 695, sregionloc = "115", slocloc = "@61x50@57x50@" };					--La bataille du mont Hyjal			--Sommet d'Hyjal					vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "056", instancelock = 534, achiev = 695, sregionloc = "115", slocloc = "@61x50@57x50@" };					--La bataille du mont Hyjal			--Sommet d'Hyjal					vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "057", instancelock = 550, achiev = 696, sregionloc = "306", slocloc = "@74x64@" };																			--Donjon de la Tempête				vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "059", instancelock = 568, achiev = 691, sregionloc = "229", slocloc = "@82x64@" };																			--Zul'Aman						vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "060", instancelock = 585, achiev = 661, sregionloc = "231", slocloc = "@61x31@" };																			--Terrasse des Magistères			vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "061", instancelock = 580, name2 = "Le Puits de soleil", achiev = 698, sregionloc = "231", slocloc = "@44x46@" };												--Plateau du Puits de soleil			vérifié ( 2 noms )

end
--]]

i=i+1;DBCS_Region_liste[0][i] = { sval = "062", instancelock = 574, srepertoire = "UtgardeKeep", areaid = 523, achiev = 477, inbnivmin = 1, inbnivmax = 3, inumniv = 1, sregionloc = "404", slocloc = "@57x47@" };	--Donjon d'Utgarde				vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "063", instancelock = 576, srepertoire = "TheNexus", areaid = 520, achiev = 478, inbnivmin = 1, inbnivmax = 1, inumniv = 1, sregionloc = "409", slocloc = "@27x26@" };		--Le Nexus						vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "064", instancelock = 601, name2 = "Azjol -N\195\169rub", srepertoire = "AzjolNerub", areaid = 533, achiev = 480, inbnivmin = 1, inbnivmax = 3, inumniv = 3, sregionloc = "403", slocloc = "@26x51@" };	--Azjol-Nérub	vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "065", instancelock = 600, srepertoire = "DrakTharonKeep", areaid = 534, achiev = 482, inbnivmin = 1, inbnivmax = 2, inumniv = 1, sregionloc = "410", slocloc = "@28x87@" };	--Donjon de Drak'Tharon			vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "066", instancelock = 599, srepertoire = "Ulduar77", areaid = 526, achiev = 485, inbnivmin = 1, inbnivmax = 1, inumniv = 1, sregionloc = "408", slocloc = "@40x27@" };		--Les salles de Pierre				vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "067", instancelock = 607, srepertoire = "StrandoftheAncients", areaid = 512, achiev = 382, achiev_ligne = 9, achiev_left = 1, sregionloc = "403", slocloc = "@82x75@" };	--Rivage des Anciens				vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "068", instancelock = 602, srepertoire = "HallsofLightning", areaid = 525, achiev = 486, inbnivmin = 1, inbnivmax = 2, inumniv = 1, sregionloc = "408", slocloc = "@45x21@" };	--Les salles de Foudre			vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "069", instancelock = 578, srepertoire = "Nexus80", areaid = 528, achiev = 487, inbnivmin = 0, inbnivmax = 4, inumniv = 1, sregionloc = "409", slocloc = "@27x27@" };		--L'Oculus						vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "070", instancelock = 595, srepertoire = "CoTStratholme", areaid = 521, achiev = 479, inbnivmin = 0, inbnivmax = 1, inumniv = 0, sregionloc = "115", slocloc = "@61x50@61x63@" };--L'Eépuration de stratholme		vérifié	bug avec les niv carte
i=i+1;DBCS_Region_liste[0][i] = { sval = "071", instancelock = 575, srepertoire = "UtgardePinnacle", areaid = 524, achiev = 488, inbnivmin = 1, inbnivmax = 2, inumniv = 2, sregionloc = "404", slocloc = "@57x47@" };	--Cime d'Utgarde				vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "072", instancelock = 616, srepertoire = "TheEyeOfEternity", areaid = 527, inbnivmin = 1, inbnivmax = 1, inumniv = 1, sregionloc = "409", slocloc = "@27x27@" };				--L'Oeil de l'éternité				vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "073", instancelock = 604, srepertoire = "GunDrak", areaid = 530, achiev = 484, inbnivmin = 1, inbnivmax = 1, inumniv = 1, sregionloc = "410", slocloc = "@76x21@81x29@" };	--Gundrak						vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "074", instancelock = 619, name2 = "Ahn'kahet : l'Ancien royaume", srepertoire = "Ahnkahet", areaid = 522, achiev = 481, inbnivmin = 1, inbnivmax = 2, inumniv = 1, sregionloc = "403", slocloc = "@28x52@" };	--Ahn'kahet : l'Ancien royaume	vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "075", instancelock = 608, srepertoire = "VioletHold", areaid = 536, achiev = 483, inbnivmin = 1, inbnivmax = 1, inumniv = 1, sregionloc = "402", slocloc = "@66x68@" };		--Le fort Pourpre					vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "076", instancelock = 615, srepertoire = "TheObsidianSanctum", areaid = 531, sregionloc = "403", slocloc = "@60x57@" };														--Le sanctum Obsidien				vérifié
--/script DBCS_Region_Minimap_init("077");
i=i+1;DBCS_Region_liste[0][i] = { sval = "077", instancelock = 533, srepertoire = "Naxxramas", areaid = 535, inbnivmin = 1, inbnivmax = 6, inumniv = 5, sregionloc = "403", slocloc = "@87x51@" };					--Naxxramas					vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "078", instancelock = 618, achiev = 699, achiev_ligne = 8, achiev_left = 0, sregionloc = "112", slocloc = "@75x16@" };											--L'Arène des valeureux				vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "079", instancelock = 617, achiev = 699, achiev_ligne = 9, achiev_left = 1, sregionloc = "402", inivloc = 2, slocloc = "@55x52@" };							--Egouts de Dalaran				vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "080", instancelock = 624, srepertoire = "VaultofArchavon", areaid = 532, inbnivmin = 1, inbnivmax = 1, inumniv = 1, sregionloc = "412", slocloc = "@50x12@" };				--Caveau d'Archavon				vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "081", instancelock = 603, srepertoire = "Ulduar", areaid = 529, inbnivmin = 0, inbnivmax = 5, inumniv = 0, sregionloc = "408", slocloc = "@42x18@" };						--Ulduar						vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "082", instancelock = 609, name2 = "Le fort d'\195\137b\195\168ne", srepertoire = "ScarletEnclave", areaid = 502 };															--Maleterres : l'enclave écarlate		vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "083", instancelock = 650, srepertoire = "TheArgentColiseum", areaid = 542, inbnivmin = 1, inbnivmax = 1, inumniv = 1, sregionloc = "406", slocloc = "@74x20@" };			--L'épreuve du champion				vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "084", instancelock = 649, srepertoire = "TheArgentColiseum", areaid = 543, inbnivmin = 1, inbnivmax = 2, inumniv = 1, sregionloc = "406", slocloc = "@75x22@" };			--L'épreuve du croisé				vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "086", instancelock = 628, srepertoire = "IsleofConquest", areaid = 540, sregionloc = "400", slocloc = "@20x30@" };															--Ile des Conquérants				vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "090", instancelock = 724, srepertoire = "TheRubySanctum", areaid = 609, sregionloc = "403", slocloc = "@60x57@" };															--Le sanctum Rubis

i=i+1;DBCS_Region_liste[0][i] = { sval = "122", sregionloc = "113", slocloc = "@29x92@" };																							--Portes d'Ahn'Qiraj				vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "126", sregionloc = "112", slocloc = "@41x69@" };																							--Hall des Légendes				n'existe plus
i=i+1;DBCS_Region_liste[0][i] = { sval = "127", sregionloc = "100" };																												--La Mer voilée					vérifié
--areaid = 922		tram des profondeurs		Bar-Tabasse de Bizmo		DeeprunTram		1	2	sval = "226"
i=i+1;DBCS_Region_liste[0][i] = { sval = "226", instancelock = 369, srepertoire = "DeeprunTram", areaid = 922, inbnivmin = 1, inbnivmax = 2, inumniv = 1, sregionloc = "217", slocloc = "@69x31@", binstance = true; };		--Tram des profondeurs				vérifié
--i=i+1;DBCS_Region_liste[0][i] = { sval = "226", instancelock = 369, sregionloc = "217", slocloc = "@69x31@", binstance = true; };																		--Tram des profondeurs				vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "227", sregionloc = "217", slocloc = "@76x66@" };																							--Hall des Champions				n'existe plus
i=i+1;DBCS_Region_liste[0][i] = { sval = "411", sregionloc = "400" };																												--La mer Boréale					vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "413", sregionloc = "400" };																												--La mer Gelée					vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "085", instancelock = 632, srepertoire = "TheForgeofSouls", areaid = 601, inbnivmin = 1, inbnivmax = 1, inumniv = 1, sregionloc = "406", slocloc = "@52x89@" };				--La Forge des âmes				vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "087", instancelock = 658, srepertoire = "PitofSaron", areaid = 602, sregionloc = "406", slocloc = "@52x89@" };																--Fosse de Saron					à vérifier
i=i+1;DBCS_Region_liste[0][i] = { sval = "088", instancelock = 631, srepertoire = "IcecrownCitadel", areaid = 604, inbnivmin = 1, inbnivmax = 8, inumniv = 1, sregionloc = "406", slocloc = "@53x85@" };				--Citadelle de la Couronne de glace		à vérifier
i=i+1;DBCS_Region_liste[0][i] = { sval = "089", instancelock = 668, srepertoire = "HallsofReflection", areaid = 603, inbnivmin = 1, inbnivmax = 1, inumniv = 1, sregionloc = "406", slocloc = "@52x89@" };			--Salles des Reflets				à vérifier
i=i+1;DBCS_Region_liste[0][i] = { sval = "100", instancelock = 1, srepertoire = "Kalimdor", areaid = 13 };																											--Kalimdor						à vérifier
--i=i+1;DBCS_Region_liste[0][i] = { sval = "200", srepertoire = "Azeroth", srepertoire = "minimap" };																											--Azeroth						à vérifier
i=i+1;DBCS_Region_liste[0][i] = { sval = "200", instancelock = 0, srepertoire = "Azeroth", areaid = 14 };																											--Azeroth						à vérifier
i=i+1;DBCS_Region_liste[0][i] = { sval = "300", instancelock = 530, srepertoire = "Expansion01", areaid = 466 };																										--Outreterre					à vérifier
i=i+1;DBCS_Region_liste[0][i] = { sval = "309", sregionloc = "300" };																												--Le Néant distordu				vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "400", instancelock = 571, srepertoire = "Northrend", areaid = 485 };																										--Norfendre					à vérifier
i=i+1;DBCS_Region_liste[0][i] = { sval = "COS", srepertoire = "cosmic" };																											--Cosmic						à vérifier
i=i+1;DBCS_Region_liste[0][i] = { sval = "WOR", srepertoire = "World" };																											--Monde						à vérifier

--i=i+1;DBCS_Region_liste[0][i] = { sval = "0A6", instancelock = 734, srepertoire = "RuinsofAhnQiraj", sregionloc = "113", slocloc = "@29x92@30x100@" };								--Terrasse d'Ahn'Qiraj
i=i+1;DBCS_Region_liste[0][i] = { sval = "0A6", instancelock = 734, sregionloc = "113", slocloc = "@29x92@30x100@" };								--Terrasse d'Ahn'Qiraj

--cataclysme
i=i+1;DBCS_Region_liste[0][i] = { sval = "500", instancelock = 730, srepertoire = "TheMaelstromContinent", areaid = 751 };																							--Le Maelstrom					à vérifier
i=i+1;DBCS_Region_liste[0][i] = { sval = "091", instancelock = 644, srepertoire = "HallsOfOrigination", areaid = 759, inbnivmin = 1, inbnivmax = 3, inumniv = 1 };										--Salles de l'Origine				à vérifier
--i=i+1;DBCS_Region_liste[0][i] = { sval = "092", instancelock = 728, srepertoire = "GilneasBattleground2" };																							--La bataille de Gilnéas				à vérifier
i=i+1;DBCS_Region_liste[0][i] = { sval = "092", instancelock = 761, srepertoire = "GilneasBattleground2", areaid = 736 };																								--La bataille de Gilnéas				à vérifier
i=i+1;DBCS_Region_liste[0][i] = { sval = "093", instancelock = 643, srepertoire = "ThroneOfTides", areaid = 767, inbnivmin = 1, inbnivmax = 2, inumniv = 1 };											--Trône des marées				à vérifier
i=i+1;DBCS_Region_liste[0][i] = { sval = "094", instancelock = 670, srepertoire = "GrimBatol", areaid = 757, inbnivmin = 1, inbnivmax = 1, inumniv = 1 };												--Grim Batol					à vérifier
i=i+1;DBCS_Region_liste[0][i] = { sval = "095", instancelock = 725, srepertoire = "TheStoneCore", areaid = 768, inbnivmin = 1, inbnivmax = 1, inumniv = 1 };											--Le Coeur-de-Pierre				à vérifier
i=i+1;DBCS_Region_liste[0][i] = { sval = "096", instancelock = 645, srepertoire = "BlackrockCaverns", areaid = 753, inbnivmin = 1, inbnivmax = 2, inumniv = 1 };										--Cavernes de Rochenoire			à vérifier
i=i+1;DBCS_Region_liste[0][i] = { sval = "098", instancelock = 671, srepertoire = "TheBastionofTwilight", areaid = 758, inbnivmin = 1, inbnivmax = 3, inumniv = 1 };			--raid					--Bastion du Crépuscule				à vérifier
i=i+1;DBCS_Region_liste[0][i] = { sval = "099", instancelock = 669, srepertoire = "BlackwingDescent", areaid = 754, inbnivmin = 1, inbnivmax = 2, inumniv = 1 };				--raid					--Descente de l'aile noire			à vérifier
i=i+1;DBCS_Region_liste[0][i] = { sval = "0A0", instancelock = 657, srepertoire = "Skywall", areaid = 769, inbnivmin = 1, inbnivmax = 1, inumniv = 1 };													--Cime du Vortex					à vérifier
--SkywallDungeon\SkywallDungeon1
i=i+1;DBCS_Region_liste[0][i] = { sval = "0A1", instancelock = 755, srepertoire = "LostCityofTolvir", areaid = 747 };																					--cit\195\169 perdue des Tol'vir		à vérifier
i=i+1;DBCS_Region_liste[0][i] = { sval = "0A2", instancelock = 754, srepertoire = "Throneofthefourwinds", areaid = 773, inbnivmin = 1, inbnivmax = 1, inumniv = 1 };			--raid					--Tr\195\180ne des quatre vents		à vérifier
i=i+1;DBCS_Region_liste[0][i] = { sval = "0A3", instancelock = 757, srepertoire = "Baradinhold", areaid = 752, inbnivmin = 1, inbnivmax = 1, inumniv = 1 };					--raid						--Bastion de Baradin				à vérifier
i=i+1;DBCS_Region_liste[0][i] = { sval = "0A5", instancelock = 726, srepertoire = "TwinPeaks", areaid = 626 };																										--Pics Jumeaux					à vérifier

i=i+1;DBCS_Region_liste[0][i] = { sval = "132", sregionloc = "100" };																																	--Les bassins de Vapeur

--i=i+1;DBCS_Region_liste[0][i] = { sval = "097", instancelock = 859, srepertoire = "ZulGurub", areaid = 697, achiev = 688, sregionloc = "218", slocloc = "@54x17@" };													--Zul'Gurub						vérifié
--i=i+1;DBCS_Region_liste[0][i] = { sval = "097", instancelock = 859, srepertoire = "ZulGurub", areaid = 793, achiev = 688, sregionloc = "218", slocloc = "@54x17@" };													--Zul'Gurub						vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "097", instancelock = 859, srepertoire = "ZulGurub", achiev = 688, sregionloc = "218", slocloc = "@54x17@" };													--Zul'Gurub						vérifié

i=i+1;DBCS_Region_liste[0][i] = { sval = "0A4", instancelock = 720, srepertoire = "FireLands", areaid = 800, inbnivmin = 0, inbnivmax = 2, inumniv = 0 };												--Terres de Feu
i=i+1;DBCS_Region_liste[0][i] = { sval = "0A7", instancelock = 861, srepertoire = "MoltenFront", areaid = 795 };																						--Front du Magma
i=i+1;DBCS_Region_liste[0][i] = { sval = "0A8", instancelock = 951, srepertoire = "TheNexusLegendary", areaid = 803, inbnivmin = 1, inbnivmax = 1, inumniv = 1 };														--Le Nexus - Legendaire
--	638	Gilnéas
i=i+1;DBCS_Region_liste[0][i] = { sval = "0A9", instancelock = 638, srepertoire = "RuinsofGilneasCity", areaid = 611 };																					--Gilnéas
i=i+1;DBCS_Region_liste[0][i] = { sval = "0AA", instancelock = 638, srepertoire = "RuinsofGilneas", areaid = 679 };																						--Gilnéas
--areaid = 545	Gilnéas 2	instancelock = 654	srepertoire = "Gilneas"
--	4.3
--if ( DBCS_Region_wow_build_info > DBCS_Region_wow_build_info_live ) then
i=i+1;DBCS_Region_liste[0][i] = { sval = "0AB", instancelock = 967, srepertoire = "DragonSoul", areaid = 824, inbnivmin = 0, inbnivmax = 6, inumniv = 0 };														--raid					--l’Âme des dragons
i=i+1;DBCS_Region_liste[0][i] = { sval = "0AC", instancelock = 938, srepertoire = "EndTime", areaid = 820, inbnivmin = 0, inbnivmax = 5, inumniv = 0 };																					--Fin des Temps
i=i+1;DBCS_Region_liste[0][i] = { sval = "0AD", instancelock = 940, srepertoire = "HourOfTwilight", areaid = 819, inbnivmin = 0, inbnivmax = 1, inumniv = 0 };																			--L’Heure du Crépuscule
i=i+1;DBCS_Region_liste[0][i] = { sval = "0AE", instancelock = 939, srepertoire = "WellOfEternity", areaid = 816 };																														--Le Puits d'Eternité
i=i+1;DBCS_Region_liste[0][i] = { sval = "0AF", instancelock = 974, srepertoire = "DarkmoonFaireIsland", areaid = 823 };																														--Foire de Sombrelune
--end

--[[
5.0 areaid

806 = la foret de jade
807 = vallée des quatres vents
808 = l'ile vagabonde
809 = sommet de kun-lai
810 = steppes de tanglong
811 = val de l'éternel printemps
813 = l'oeil du cyclone
816 = puits d'éternité
819 = l'heure du crépuscule
820 = la fin des temps
823 = ile de sombrelune
824 = l'ame des dragons
851 = la chute de theramore
856 = temple de kotmogu
857 = étendues sauvages de krasarang
858 = terres de l'angoisse
860 = mines d'éclargent ( vallée de strangleronce )
862 = pandarie
864 = comté-du-nord
866 = vallée des frigères
867 = temple du serpent de jade
871 = salles écarlates
873 = l'escalier dérobé
874 = monastère écarlate
875 = porte du soleil couchant
876 = brasserie brunes-d'orage
877 = monastère des pandashan
878 = une bière foudroyante
879 = pic de la sérénité
880 = pierre-verte
881 = temple de kotmogu
882 = unga ingou
883 = l'assaut de zan'vess
884 = festival de brasse-lune
885 = palais mogu'shan
886 = terrasse printanière
887 = siège du temple de niuzao
888 = sombrevallon
889 = vallée des épreuves
890 = camp narache
891 = iles de l'écho
892 = le glas
893 = ile de haut-soleil
894 = val d'ammen
895 = nouvelle brika-brok
896 = caveaux mogu'shan
897 = coeur de la peur
898 = scholomance
899 = arene de l'annihilation
900 = crypte des rois oubliés
903 = sanctuaire des deux lunes
905 = sanctuaire des sept étoiles
906 = la chute de theramore
907 = marécage d'aprefange
910 = étendues sauvage de krasarang
911 = territoire du lion
912 = un peu de patience
914 = une dague dans la nuit
919 = temple noir
920 = halte de la domination
922 = tram des profondeurs
924 = dalaran
925 = arène de castagn'ar
928 = ile du tonnerre
929 = ile des géants
930 = trone du tonnerre
933 = ile du tonnerre
934 = citadelle du roi-tonnerre
935 = gorge de vent-caverneux ( bg )
937 = le sombre coeur de la pandarie
938 = les secrets de ragefeu
939 = du sang dans la neige
940 = bataille en haute mer
--]]

--if ( 1 == 1 ) then
i=i+1;DBCS_Region_liste[0][i] = { sval = "600", instancelock = 870, srepertoire = "Pandaria", areaid = 862 };																							--Pandarie
i=i+1;DBCS_Region_liste[0][i] = { sval = "0AJ", instancelock = 960, srepertoire = "EastTemple", areaid = 867, inbnivmin = 1, inbnivmax = 2, inumniv = 1, sregionloc = "602", slocloc = "@56x58@" };					--	temple du serpent de jade	donj niv 85
i=i+1;DBCS_Region_liste[0][i] = { sval = "0AS", instancelock = 961, srepertoire = "StormstoutBrewery", areaid = 876, inbnivmin = 1, inbnivmax = 4, inumniv = 1, sregionloc = "610", slocloc = "@36x69@" };			--	brasserie brune d'orage		donj niv 85
i=i+1;DBCS_Region_liste[0][i] = { sval = "0AN", instancelock = 994, srepertoire = "MogushanPalace", areaid = 885, inbnivmin = 1, inbnivmax = 3, inumniv = 1, sregionloc = "609", slocloc = "@80x33@" };				--	palais mogu'shan			donj niv 87
i=i+1;DBCS_Region_liste[0][i] = { sval = "0AQ", instancelock = 959, srepertoire = "ShadowpanHideout", areaid = 877, inbnivmin = 0, inbnivmax = 3, inumniv = 1, sregionloc = "606", slocloc = "@37x48@" };			--	monastère des pandashan		donj niv 87
i=i+1;DBCS_Region_liste[0][i] = { sval = "0AR", instancelock = 1011, srepertoire = "SiegeofNiuzaoTemple", areaid = 887, inbnivmin = 0, inbnivmax = 2, inumniv = 1, sregionloc = "607", slocloc = "@35x82@" };		--	siège du temple de niuzao	donj niv 90
i=i+1;DBCS_Region_liste[0][i] = { sval = "0AV", instancelock = 962, srepertoire = "TheGreatWall", areaid = 875, inbnivmin = 1, inbnivmax = 2, inumniv = 1, sregionloc = "609", slocloc = "@16x74@" };				--	porte du soleil couchant	donj niv 90

i=i+1;DBCS_Region_liste[0][i] = { sval = "0AK", instancelock = 1009, srepertoire = "HeartOfFear", areaid = 897, inbnivmin = 1, inbnivmax = 2, inumniv = 1, sregionloc = "608", slocloc = "@39x35@" };				--	coeur de la peur			raid niv 90
i=i+1;DBCS_Region_liste[0][i] = { sval = "0AO", instancelock = 1008, srepertoire = "MogushanVaults", areaid = 896, inbnivmin = 1, inbnivmax = 3, inumniv = 1, sregionloc = "606", slocloc = "@60x39@" };			--	caveaux mogu'shan			raid niv 90
i=i+1;DBCS_Region_liste[0][i] = { sval = "0AU", instancelock = 996, srepertoire = "TerraceOfEndlessSpring", areaid = 886, inbnivmin = 0, inbnivmax = 0, inumniv = 0, sregionloc = "603", slocloc = "@48x61@" };		--	terrasse printanière		raid niv 90

i=i+1;DBCS_Region_liste[0][i] = { sval = "0AZ", instancelock = 860, srepertoire = "TheWanderingIsle", areaid = 808, inbnivmin = 0, inbnivmax = 0, inumniv = 0, ressx = 0.5, ressy = 0.7, xoffset = 5.7232137535425*140, yoffset = 3.8125008653427*140 };		--	L'île Vagabonde		région

i=i+1;DBCS_Region_liste[0][i] = { sval = "0AG", instancelock = 1030, srepertoire = "AncientMoguCrypt", areaid = 900, inbnivmin = 1, inbnivmax = 2, inumniv = 1 };			--	crypte des rois oubliés			scénario
i=i+1;DBCS_Region_liste[0][i] = { sval = "0AH", instancelock = 1005, srepertoire = "BrewmasterScenario01", areaid = 878, inbnivmin = 0, inbnivmax = 0, inumniv = 0, sregionloc = "602", slocloc = "@37x30@" };		--	une bière foudroyante			scénario
i=i+1;DBCS_Region_liste[0][i] = { sval = "0AI", instancelock = 1048, srepertoire = "BrewmasterScenario03", areaid = 882, inbnivmin = 0, inbnivmax = 0, inumniv = 0, sregionloc = "601", slocloc = "@48x87@" };		--	unga ingou		scénario					( Bonne biture des brasseurs )
i=i+1;DBCS_Region_liste[0][i] = { sval = "0AL", instancelock = 1051, srepertoire = "KunLaiPassScenario", areaid = 884, inbnivmin = 0, inbnivmax = 0, inumniv = 0, sregionloc = "606" };		--	festival de brasse-lune					scénario
i=i+1;DBCS_Region_liste[0][i] = { sval = "0AM", instancelock = 1014, srepertoire = "KunLaiSummitScenario", areaid = 879, inbnivmin = 0, inbnivmax = 0, inumniv = 0, sregionloc = "606" };		--	pic de la sérénité						???????
i=i+1;DBCS_Region_liste[0][i] = { sval = "0AW", instancelock = 1024, srepertoire = "TheJadeForestScenario", areaid = 880, inbnivmin = 0, inbnivmax = 0, inumniv = 0, sregionloc = "602", slocloc = "@48x36@" };	--	pierre-verte		scénario					( Razzia sur la mousse )
i=i+1;DBCS_Region_liste[0][i] = { sval = "0AX", instancelock = 1050, srepertoire = "Tyrivess", areaid = 883, inbnivmin = 0, inbnivmax = 0, inumniv = 0, sregionloc = "608" };					--	l'assaut de zan'vess					???????

i=i+1;DBCS_Region_liste[0][i] = { sval = "0AP", instancelock = 1031, srepertoire = "ProvingGrounds", areaid = 899, inbnivmin = 1, inbnivmax = 1, inumniv = 1 };			--	arene de l'annihilation			scénario

i=i+1;DBCS_Region_liste[0][i] = { sval = "0AT", instancelock = 727, srepertoire = "STVDiamondMineBG", areaid = 860, inbnivmin = 1, inbnivmax = 1, inumniv = 1 };			--	mines d'éclargent				BG
--ValleyOfPower
i=i+1;DBCS_Region_liste[0][i] = { sval = "0AY", instancelock = 998, srepertoire = "ValleyOfPowerScenario", areaid = 856, inbnivmin = 0, inbnivmax = 0, inumniv = 0 };		--	temple de kotmogu				BG
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0AY", instancelock = 998, srepertoire = "ValleyOfPowerScenario", areaid = 881, inbnivmin = 0, inbnivmax = 0, inumniv = 0 };		--	temple de kotmogu				BG

--i=i+1;DBCS_Region_liste[0][i] = { sval = "0AZ", instancelock = 860, srepertoire = "TheWanderingIsle", areaid = 808, inbnivmin = 0, inbnivmax = 0, inumniv = 0, ressx = 0.5, ressy = 0.7, xoffset = 5.7232137535425*140, yoffset = 3.8125008653427*140 };		--	L'île Vagabonde

--Fe-FangVillage		/
--MandoriVillage		/
--MorningBreezeVillage	/
--Pei-WuForest			/
--PoolofthePaw
--RidgeofLaughingWinds	/
--SkyfireCrash-Site		/
--TempleofFiveDawns		/
--TheDawningValley		/
--TheRows				/
--TheSingingPools		/
--TheWoodofStaves		/

i=i+1;DBCS_Region_liste[0][i] = { sval = "0B0", smicrodungeon = "TheJadeForest", srepertoire = "GreenstoneQuarry", inbnivmin = 6, inbnivmax = 7, inumniv = 6, sregionloc = "602" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0B2", smicrodungeon = "TheJadeForest", srepertoire = "TheWidowsWail", inbnivmin = 15, inbnivmax = 15, inumniv = 15, sregionloc = "602", slocloc = "@58x32@" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0B3", smicrodungeon = "TheHiddenPass", srepertoire = "TheAncientPassage", inbnivmin = 5, inbnivmax = 5, inumniv = 5, sregionloc = "603" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0B4", smicrodungeon = "ValeOfEternalBlossoms", srepertoire = "ShrineofTwoMoons", areaid = 903, inbnivmin = 1, inbnivmax = 2, inumniv = 1, sregionloc = "609" };	--ValeofEternalBlossoms
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0B4", smicrodungeon = "ValeOfEternalBlossoms", srepertoire = "ShrineofTwoMoons", inbnivmin = 1, inbnivmax = 2, inumniv = 1, sregionloc = "609" };	--ValeofEternalBlossoms
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0B6", smicrodungeon = "ValeOfEternalBlossoms", srepertoire = "ShrineofSevenStars", inbnivmin = 3, inbnivmax = 4, inumniv = 3, sregionloc = "609" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0B6", smicrodungeon = "ValeOfEternalBlossoms", srepertoire = "ShrineofSevenStars", areaid = 905, inbnivmin = 3, inbnivmax = 4, inumniv = 3, sregionloc = "609" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0B8", smicrodungeon = "ValeOfEternalBlossoms", srepertoire = "GuoLaiHalls", inbnivmin = 18, inbnivmax = 19, inumniv = 18, sregionloc = "609" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0B1", smicrodungeon = "AzuremystIsle", srepertoire = "StillpineHold", inbnivmin = 3, inbnivmax = 3, inumniv = 3, sregionloc = "123" };			--, dungeon = { [3] = "0B1", [2] = "0B5" }
i=i+1;DBCS_Region_liste[0][i] = { sval = "0B5", smicrodungeon = "AzuremystIsle", srepertoire = "TidesHollow", inbnivmin = 2, inbnivmax = 2, inumniv = 2, sregionloc = "123" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0B7", smicrodungeon = "Barrens", srepertoire = "WailingCavernsBarrens", inbnivmin = 20, inbnivmax = 20, inumniv = 20, sregionloc = "117" };		--, dungeon = { [20] = "0B7" }
i=i+1;DBCS_Region_liste[0][i] = { sval = "0B9", smicrodungeon = "BurningSteppes", srepertoire = "BlackrockMountain", inbnivmin = 14, inbnivmax = 16, inumniv = 14, sregionloc = "205" };	--, dungeon = { [14] = "0B9", [15] = "0B9", [16] = "0B9" }
i=i+1;DBCS_Region_liste[0][i] = { sval = "0BA", smicrodungeon = "ColdridgeValley", srepertoire = "FrostmaneHovel", inbnivmin = 9, inbnivmax = 9, inumniv = 9, sregionloc = "247" };			--, dungeon = { [9] = "0BA" }
i=i+1;DBCS_Region_liste[0][i] = { sval = "0BB", smicrodungeon = "Desolace", srepertoire = "MaraudonOutside", inbnivmin = 21, inbnivmax = 22, inumniv = 21, sregionloc = "105" };			--, dungeon = { [21] = "0BB", [22] = "0BB" }
i=i+1;DBCS_Region_liste[0][i] = { sval = "0BC", smicrodungeon = "DunMorogh", srepertoire = "ColdridgePass", inbnivmin = 6, inbnivmax = 6, inumniv = 6, sregionloc = "207" };				--, dungeon = { [6] = "0BC", [7] = "0BG", [8] = "0BD", [10] = "0BE", [11] = "0BF" }
i=i+1;DBCS_Region_liste[0][i] = { sval = "0BD", smicrodungeon = "DunMorogh", srepertoire = "FrostmaneHold", inbnivmin = 8, inbnivmax = 8, inumniv = 8, sregionloc = "207" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0BE", smicrodungeon = "DunMorogh", srepertoire = "Gnomeregan", inbnivmin = 10, inbnivmax = 10, inumniv = 10, sregionloc = "207" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0BF", smicrodungeon = "DunMorogh", srepertoire = "GolBolarQuarry", inbnivmin = 11, inbnivmax = 11, inumniv = 11, sregionloc = "207" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0BG", smicrodungeon = "DunMorogh", srepertoire = "TheGrizzledDen", inbnivmin = 7, inbnivmax = 7, inumniv = 7, sregionloc = "207" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0BH", smicrodungeon = "Durotar", srepertoire = "BurningBladeCoven", inbnivmin = 8, inbnivmax = 8, inumniv = 8, sregionloc = "106" };				--, dungeon = { [8] = "0BH", [9] = "0BK", [10] = "0BL", [11] = "0BL", [12] = "0BJ", [19] = "0BI" }
i=i+1;DBCS_Region_liste[0][i] = { sval = "0BI", smicrodungeon = "Durotar", srepertoire = "DustwindCave", inbnivmin = 19, inbnivmax = 19, inumniv = 19, sregionloc = "106" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0BJ", smicrodungeon = "Durotar", srepertoire = "SkullRock", inbnivmin = 12, inbnivmax = 12, inumniv = 12, sregionloc = "106" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0BK", smicrodungeon = "Durotar", srepertoire = "SpitescaleCavern", inbnivmin = 9, inbnivmax = 9, inumniv = 9, sregionloc = "106" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0BL", smicrodungeon = "Durotar", srepertoire = "TiragardeKeep", inbnivmin = 10, inbnivmax = 11, inumniv = 10, sregionloc = "106" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0BM", smicrodungeon = "Elwynn", srepertoire = "Fargodeepmine", inbnivmin = 1, inbnivmax = 2, inumniv = 1, sregionloc = "210" };					--, dungeon = { [1] = "0BM", [2] = "0BM", [19] = "0BN" }
i=i+1;DBCS_Region_liste[0][i] = { sval = "0BN", smicrodungeon = "Elwynn", srepertoire = "JasperlodeMine", inbnivmin = 19, inbnivmax = 19, inumniv = 19, sregionloc = "210" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0BO", smicrodungeon = "Ghostlands", srepertoire = "AmaniCatacombs", inbnivmin = 1, inbnivmax = 1, inumniv = 1, sregionloc = "229" };				--, dungeon = { [1] = "0BO" }
i=i+1;DBCS_Region_liste[0][i] = { sval = "0BP", smicrodungeon = "Gilneas", srepertoire = "EmberstoneMine", inbnivmin = 1, inbnivmax = 1, inumniv = 1, sregionloc = "238" };					--, dungeon = { [1] = "0BP", [2] = "0BQ", [3] = "0BQ" }
i=i+1;DBCS_Region_liste[0][i] = { sval = "0BQ", smicrodungeon = "Gilneas", srepertoire = "GreymaneManor", inbnivmin = 2, inbnivmax = 3, inumniv = 2, sregionloc = "238" };
--Gilneas_Terrain1
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0BP", smicrodungeon = "Gilneas", srepertoire = "EmberstoneMine", inbnivmin = 1, inbnivmax = 1, inumniv = 1, sregionloc = "238" };					--, dungeon = { [1] = "0BP", [2] = "0BQ", [3] = "0BQ" }
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0BQ", smicrodungeon = "Gilneas", srepertoire = "GreymaneManor", inbnivmin = 2, inbnivmax = 3, inumniv = 2, sregionloc = "238" };
--Gilneas_Terrain2
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0BP", smicrodungeon = "Gilneas", srepertoire = "EmberstoneMine", inbnivmin = 1, inbnivmax = 1, inumniv = 1, sregionloc = "238" };					--, dungeon = { [1] = "0BP", [2] = "0BQ", [3] = "0BQ" }
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0BQ", smicrodungeon = "Gilneas", srepertoire = "GreymaneManor", inbnivmin = 2, inbnivmax = 3, inumniv = 2, sregionloc = "238" };

i=i+1;DBCS_Region_liste[0][i] = { sval = "0BR", smicrodungeon = "Kezan", srepertoire = "Kajamine", inbnivmin = 5, inbnivmax = 7, inumniv = 5, sregionloc = "501" };							--, dungeon = { [5] = "0BR", [6] = "0BR", [7] = "0BR" }
i=i+1;DBCS_Region_liste[0][i] = { sval = "0BS", smicrodungeon = "KunLaiSummit", srepertoire = "HowlingwindCavern", inbnivmin = 8, inbnivmax = 8, inumniv = 8, sregionloc = "606", slocloc = "@59x53@" };			--, dungeon = { [8] = "0BS", [9] = "0BU", [10] = "0BT", [11] = "0BV", [12] = "0BV", [17] = "0BW" }
i=i+1;DBCS_Region_liste[0][i] = { sval = "0BT", smicrodungeon = "KunLaiSummit", srepertoire = "KnucklethumpHole", inbnivmin = 10, inbnivmax = 10, inumniv = 10, sregionloc = "606", slocloc = "@50x62@" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0BU", smicrodungeon = "KunLaiSummit", srepertoire = "PrankstersHollow", inbnivmin = 9, inbnivmax = 9, inumniv = 9, sregionloc = "606", slocloc = "@73x73@" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0BV", smicrodungeon = "KunLaiSummit", srepertoire = "TheDeeper", inbnivmin = 11, inbnivmax = 12, inumniv = 11, sregionloc = "606", slocloc = "@53x72@" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0BW", smicrodungeon = "KunLaiSummit", srepertoire = "TombofConquerors", inbnivmin = 17, inbnivmax = 17, inumniv = 17, sregionloc = "606", slocloc = "@53x47@" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0BX", smicrodungeon = "Mulgore", srepertoire = "PalemaneRock", inbnivmin = 6, inbnivmax = 6, inumniv = 6, sregionloc = "111" };					--, dungeon = { [6] = "0BX", [7] = "0BY" }
i=i+1;DBCS_Region_liste[0][i] = { sval = "0BY", smicrodungeon = "Mulgore", srepertoire = "TheVentureCoMine", inbnivmin = 7, inbnivmax = 7, inumniv = 7, sregionloc = "111" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0BZ", smicrodungeon = "Northshire", srepertoire = "EchoRidgeMine", inbnivmin = 3, inbnivmax = 3, inumniv = 3, sregionloc = "243" };				--, dungeon = { [3] = "0BZ" }
i=i+1;DBCS_Region_liste[0][i] = { sval = "0C0", smicrodungeon = "SearingGorge", srepertoire = "BlackrockMountain", inbnivmin = 14, inbnivmax = 16, inumniv = 14, sregionloc = "215" };		--, dungeon = { [14] = "0C0", [15] = "0C0", [16] = "0C0" }
i=i+1;DBCS_Region_liste[0][i] = { sval = "0C1", smicrodungeon = "Silithus", srepertoire = "TwilightsRun", inbnivmin = 13, inbnivmax = 13, inumniv = 13, sregionloc = "113", slocloc = "@70x16@" };				--, dungeon = { [13] = "0C1" }
i=i+1;DBCS_Region_liste[0][i] = { sval = "0C2", smicrodungeon = "Tanaris", srepertoire = "CavernsofTime", inbnivmin = 17, inbnivmax = 18, inumniv = 17, sregionloc = "115" };				--, dungeon = { [15] = "0C4", [16] = "0C3", [17] = "0C2", [18] = "0C2" }
i=i+1;DBCS_Region_liste[0][i] = { sval = "0C3", smicrodungeon = "Tanaris", srepertoire = "TheGapingChasm", inbnivmin = 16, inbnivmax = 16, inumniv = 16, sregionloc = "115" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0C4", smicrodungeon = "Tanaris", srepertoire = "TheNoxiousLair", inbnivmin = 15, inbnivmax = 15, inumniv = 15, sregionloc = "115" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0C5", smicrodungeon = "Teldrassil", srepertoire = "BanethilBarrowden", inbnivmin = 4, inbnivmax = 5, inumniv = 4, sregionloc = "116" };			--, dungeon = { [2] = "0C7", [3] = "0C6", [4] = "0C5", [5] = "0C5" }
i=i+1;DBCS_Region_liste[0][i] = { sval = "0C6", smicrodungeon = "Teldrassil", srepertoire = "FelRock", inbnivmin = 3, inbnivmax = 3, inumniv = 3, sregionloc = "116" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0C7", smicrodungeon = "Teldrassil", srepertoire = "ShadowthreadCave", inbnivmin = 2, inbnivmax = 2, inumniv = 2, sregionloc = "116" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0CG", smicrodungeon = "TheLostIsles", srepertoire = "GallywixLaborMine", inbnivmin = 3, inbnivmax = 4, inumniv = 3, sregionloc = "504" };			--, dungeon = { [1] = "0C8", [2] = "0C9", [3] = "0CG", [4] = "0CG" }
i=i+1;DBCS_Region_liste[0][i] = { sval = "0C8", smicrodungeon = "TheLostIsles", srepertoire = "KajamiteCavern", inbnivmin = 1, inbnivmax = 1, inumniv = 1, sregionloc = "504" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0C9", smicrodungeon = "TheLostIsles", srepertoire = "VolcanothsLair", inbnivmin = 2, inbnivmax = 2, inumniv = 2, sregionloc = "504" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0CA", smicrodungeon = "Tirisfal", srepertoire = "NightWebsHollow", inbnivmin = 12, inbnivmax = 12, inumniv = 12, sregionloc = "221" };			--, dungeon = { [12] = "0CA", [13] = "0CB" }
i=i+1;DBCS_Region_liste[0][i] = { sval = "0CB", smicrodungeon = "Tirisfal", srepertoire = "ScarletMonasteryEntrance", inbnivmin = 13, inbnivmax = 13, inumniv = 13, sregionloc = "221" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0CC", smicrodungeon = "TownlongWastes", srepertoire = "NiuzaoCatacombs", inbnivmin = 13, inbnivmax = 13, inumniv = 13, sregionloc = "607", slocloc = "@33x61@" };		--, dungeon = { [13] = "0CC" }
i=i+1;DBCS_Region_liste[0][i] = { sval = "0CD", smicrodungeon = "UngoroCrater", srepertoire = "TheSlitheringScar", inbnivmin = 14, inbnivmax = 14, inumniv = 14, sregionloc = "120" };		--, dungeon = { [14] = "0CD" }
i=i+1;DBCS_Region_liste[0][i] = { sval = "0CE", smicrodungeon = "Westfall", srepertoire = "GoldCoastQuarry", inbnivmin = 4, inbnivmax = 4, inumniv = 4, sregionloc = "224" };				--, dungeon = { [4] = "0CE", [5] = "0CF" }
i=i+1;DBCS_Region_liste[0][i] = { sval = "0CF", smicrodungeon = "Westfall", srepertoire = "JangolodeMine", inbnivmin = 5, inbnivmax = 5, inumniv = 5, sregionloc = "224" };
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0CG", smicrodungeon = "TheLostIsles", srepertoire = "GallywixLaborMine", inbnivmin = 3, inbnivmax = 4, inumniv = 3, sregionloc = "504" };
--CavernOfEndlessEchoes		14	14	14
--DarrowmereLake			0	0	0
--DeadminesWestfall			17	17	17
--OonaKagu					16	16	16
--ScarletCathedral			1	2	1
--ScarletHalls				1	2	1
--ScarletMonastery			1	4	1
--Scholomance				1	4	1
--TempleofKotmogu			0	0	0
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0CH", instancelock = 1007, srepertoire = "Scholomance", areaid = 763, inbnivmin = 1, inbnivmax = 4, inumniv = 1, achiev = 645, sregionloc = "223", slocloc = "@69x73@" };			--Scholomance
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0CH", instancelock = 1007, srepertoire = "Scholomance", areaid = 898, inbnivmin = 1, inbnivmax = 4, inumniv = 1, achiev = 645, sregionloc = "223", slocloc = "@69x73@" };			--Scholomance
i=i+1;DBCS_Region_liste[0][i] = { sval = "0CH", instancelock = 1007, srepertoire = "Scholomance", inbnivmin = 1, inbnivmax = 4, inumniv = 1, achiev = 645, sregionloc = "223", slocloc = "@69x73@" };			--Scholomance

i=i+1;DBCS_Region_liste[0][i] = { sval = "0CI", instancelock = 1004, srepertoire = "ScarletCathedral", areaid = 874, inbnivmin = 1, inbnivmax = 2, inumniv = 1, sregionloc = "221", slocloc = "@82x33@" };	--monastère écarlate
i=i+1;DBCS_Region_liste[0][i] = { sval = "0CJ", instancelock = 1001, srepertoire = "ScarletHalls", areaid = 871, inbnivmin = 1, inbnivmax = 2, inumniv = 1, sregionloc = "221", slocloc = "@82x33@" };	--salles écarlates
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0CK", srepertoire = "CavernOfEndlessEchoes", inbnivmin = 14, inbnivmax = 14, inumniv = 14 };
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0CL", srepertoire = "DarrowmereLake", inbnivmin = 0, inbnivmax = 0, inumniv = 0 };
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0CM", srepertoire = "DeadminesWestfall", inbnivmin = 17, inbnivmax = 17, inumniv = 17, sregionloc = "224", name3 = "DUNGEON_FLOOR_WESTFALL17" };
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0CM", smicrodungeon = "Westfall", srepertoire = "DeadminesWestfall", inbnivmin = 17, inbnivmax = 17, inumniv = 17, sregionloc = "224", name3 = "DUNGEON_FLOOR_WESTFALL17" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0CM", smicrodungeon = "Westfall", srepertoire = "DeadminesWestfall", inbnivmin = 17, inbnivmax = 17, inumniv = 17, sregionloc = "224" };
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0E5", smicrodungeon = "Westfall", srepertoire = "DeadminesWestfall", inbnivmin = 17, inbnivmax = 17, inumniv = 17, sregionloc = "224" };
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0CN", srepertoire = "OonaKagu", inbnivmin = 16, inbnivmax = 16, inumniv = 16 };
--chute de théramor : 906	Chute de Theramore instance lock = 999	nomsurcarte = LA CHUTE DE THERAMORE	x=2.2678586897647	y=1.5133931401093
i=i+1;DBCS_Region_liste[0][i] = { sval = "0CP", instancelock = 1000, srepertoire = "DustwallowMarshScenarioAlliance", areaid = 906, inbnivmin = 0, inbnivmax = 0, inumniv = 0, ressx = 0, ressy = 0, xoffset = 2.2678587295248*140, yoffset = 1.5133928488022*140 };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0CO", instancelock = 999, srepertoire = "DustwallowMarshScenario", areaid = 851, inbnivmin = 0, inbnivmax = 0, inumniv = 0, ressx = 0, ressy = 0, xoffset = 2.2678587295248*140, yoffset = 1.5133928488022*140 };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0CQ", instancelock = 980, sregionloc = "131" };		--Arène Tol'viron			Arène

--5.1
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0AX", instancelock = 1050, srepertoire = "Tyrivess", areaid = 883, inbnivmin = 0, inbnivmax = 0, inumniv = 0, sregionloc = "608" };					--	L'assaut de Zan'vess	scénario 	--validé
--if ( DBCS_Region_wow_build_info > DBCS_Region_wow_build_info_live ) then
i=i+1;DBCS_Region_liste[0][i] = { sval = "0CR", instancelock = 1043, srepertoire = "BrawlgarArena", areaid = 925, inbnivmin = 1, inbnivmax = 1, inumniv = 1 };		--Arène de Castagn'ar			Arène
i=i+1;DBCS_Region_liste[0][i] = { sval = "0CS", instancelock = 1102, srepertoire = "KrasarangHorde", areaid = 920, inbnivmin = 0, inbnivmax = 0, inumniv = 0 };		--Halte de la domination	scénario horde
i=i+1;DBCS_Region_liste[0][i] = { sval = "0CT", instancelock = 1095, srepertoire = "VoljinScenario", areaid = 914, inbnivmin = 0, inbnivmax = 1, inumniv = 0 };		--Une dague dans la nuit	scénario horde		--validé
i=i+1;DBCS_Region_liste[0][i] = { sval = "0CU", instancelock = 1104, srepertoire = "KrasarangPatience", areaid = 912, inbnivmin = 0, inbnivmax = 0, inumniv = 0 };		--Un peu de patience	scénario alliance	--validé
i=i+1;DBCS_Region_liste[0][i] = { sval = "0CV", instancelock = 1103, srepertoire = "KrasarangAlliance", areaid = 911, inbnivmin = 0, inbnivmax = 0, inumniv = 0 };		--Territoire du lion	scénario alliance	--validé
--areaid = 920		Halte de la domination	, instancelock = 1102	KrasarangHorde		0	0				horde
--areaid = 914		Une dague dans la nuit	, instancelock = 1095	VoljinScenario	0	1					horde
--areaid = 912		Un peu de patience		, instancelock = 1104	KrasarangPatience	0	0				alliance	Un peu de patience			--validé
--areaid = 911		Territoire du lion		, instancelock = 1103	KrasarangAlliance	0	0				alliance	Le territoire du Lion

--areaid = 922		tram des profondeurs		Bar-Tabasse de Bizmo		DeeprunTram		1	2	sval = "226"
--MicroDungeon/Krasarang_Terrain1/RuinsofOgudei	1	2	3
i=i+1;DBCS_Region_liste[0][i] = { sval = "0CX", smicrodungeon = "Krasarang_Terrain1", srepertoire = "RuinsofOgudei", inbnivmin = 1, inbnivmax = 3, inumniv = 1, sregionloc = "601", slocloc = "@80x17@" };
--Microdungeon/KunlaiSummit/RuinsofKorune	20	21
i=i+1;DBCS_Region_liste[0][i] = { sval = "0CW", smicrodungeon = "KunLaiSummit", srepertoire = "RuinsofKorune", inbnivmin = 20, inbnivmax = 21, inumniv = 20, sregionloc = "606", slocloc = "@33x27@" };
--DUNGEON_FLOOR_BLACKTEMPLESCENARIO0 - Illidari Training Grounds
--DUNGEON_FLOOR_BLACKTEMPLESCENARIO1 - Karabor Sewers
--DUNGEON_FLOOR_BLACKTEMPLESCENARIO2 - Sanctuary of Shadows
--DUNGEON_FLOOR_BLACKTEMPLESCENARIO3 - Halls of Anguish
--DUNGEON_FLOOR_BLACKTEMPLESCENARIO4 - Gorefiend's Vigil
--DUNGEON_FLOOR_BLACKTEMPLESCENARIO5 - Den of Mortal Delights
--DUNGEON_FLOOR_BLACKTEMPLESCENARIO6 - Chamber of Command
--DUNGEON_FLOOR_BLACKTEMPLESCENARIO7 - Temple Summit
--DUNGEON_FLOOR_DALARANCITY1 - Dalaran City
--DUNGEON_FLOOR_DALARANCITY2 - The Underbelly
--DUNGEON_FLOOR_DEEPRUNTRAM1 - Deeprun Tram
--DUNGEON_FLOOR_DEEPRUNTRAM2 - Bizmo's Brawlpub
--DUNGEON_FLOOR_KRASARANG_TERRAIN11 - Explorers' League HQ
--DUNGEON_FLOOR_KRASARANG_TERRAIN12 - Ruins of Ogudei
--DUNGEON_FLOOR_KRASARANG_TERRAIN13 - Reliquary Incursion
--DUNGEON_FLOOR_KUNLAISUMMIT20 - Ruins of Korune
--DUNGEON_FLOOR_KUNLAISUMMIT21 - Crypt of Korune
--DUNGEON_FLOOR_VOLJINSCENARIO0 - The Hidden Pass
--DUNGEON_FLOOR_VOLJINSCENARIO1 - The Ancient Passage
i=i+1;DBCS_Region_liste[0][i] = { sval = "0CY", instancelock = 1107, srepertoire = "BlackTempleScenario", areaid = 919, inbnivmin = 0, inbnivmax = 7, inumniv = 0, sregionloc = "308", slocloc = "@71x46@" };		--Temple noir
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0CY", instancelock = 564, srepertoire = "BlackTempleScenario", areaid = 919, inbnivmin = 0, inbnivmax = 7, inumniv = 0, sregionloc = "308", slocloc = "@71x46@" };		--Temple noir
i=i+1;DBCS_Region_liste[0][i] = { sval = "0CZ", instancelock = 1106, srepertoire = "DalaranCity", areaid = 924, inbnivmin = 1, inbnivmax = 2, inumniv = 1 };		--jaina à dalaran
--end
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0D0", srepertoire = "CavernOfEndlessEchoes", inbnivmin = 14, inbnivmax = 14, inumniv = 14, sregionloc = "610", slocloc = "@37x23@", name3 = "DUNGEON_FLOOR_VALLEYOFTHEFOURWINDS14" };
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0D0", smicrodungeon = "Valleyofthefourwinds", srepertoire = "CavernOfEndlessEchoes", inbnivmin = 14, inbnivmax = 14, inumniv = 14, sregionloc = "610", slocloc = "@37x23@", name3 = "DUNGEON_FLOOR_VALLEYOFTHEFOURWINDS14" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0D0", smicrodungeon = "Valleyofthefourwinds", srepertoire = "CavernOfEndlessEchoes", inbnivmin = 14, inbnivmax = 14, inumniv = 14, sregionloc = "610", slocloc = "@37x23@" };
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0E4", smicrodungeon = "Valleyofthefourwinds", srepertoire = "CavernOfEndlessEchoes", inbnivmin = 14, inbnivmax = 14, inumniv = 14, sregionloc = "610" };

i=i+1;DBCS_Region_liste[0][i] = { sval = "0D1", instancelock = 1098, srepertoire = "ThunderKingRaid", areaid = 930, inbnivmin = 1, inbnivmax = 8, inumniv = 1 };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0D2", instancelock = 1126, srepertoire = "IsleoftheThunderKingScenario", areaid = 933, dungeon = { [1] = "0D6" } };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0D3", instancelock = 1135, srepertoire = "ThunderKingLootRoom", areaid = 934, inbnivmin = 1, inbnivmax = 1, inumniv = 1 };

i=i+1;DBCS_Region_liste[0][i] = { sval = "0D4", smicrodungeon = "IsleoftheThunderKing", srepertoire = "GhostlyVeins", inbnivmin = 1, inbnivmax = 1, inumniv = 1, sregionloc = "611", slocloc = "@49x33@49x25@54x29@" };			--veine de foudremine
i=i+1;DBCS_Region_liste[0][i] = { sval = "0D5", smicrodungeon = "IsleoftheThunderKing", srepertoire = "TheSwollenVault", inbnivmin = 2, inbnivmax = 2, inumniv = 2, sregionloc = "611", slocloc = "@62x40@" };					--le caveau démesuré
i=i+1;DBCS_Region_liste[0][i] = { sval = "0D6", smicrodungeon = "IsleoftheThunderKingScenario", srepertoire = "GhostlyVeins", inbnivmin = 1, inbnivmax = 1, inumniv = 1, sregionloc = "0D2", slocloc = "@49x33@49x25@54x29@" };	--veine de foudremine

--areaid = 919		Temple noir		, srepertoire = "BlackTempleScenario"	BlackTempleScenario		0	7		instancelock 1107 ?
--areaid = 910		Eétendues sauvages de Krasarang					857
--areaid = 907		, srepertoire = "Dustwallow", areaid = 141

--5.1
--	1061	Plage de la Horde - Zone de quêtes journalières
--	1062	Plage de l'Alliance - Zone de quêtes journalières
--	1095	Scénario : ambuscade de Vol'jin						Une dague dans la nuit
--	1099	Scénario : bataille navale
--	1102	Scénario : plage de la base de la Horde				Halte de la domination
--	1103	Scénario : plage de la base de l'Alliance			Territoire du Lion
--	1104	Scénario : un peu de patience						Un peu de patience
--	1106	Scénario : Jaina à Dalaran
--	1112	Aà la poursuite de la Sombre récolte
--	1113	Transport : manège de Sombrelune

--5.2 areaid
--	928		Île du Tonnerre					IsleoftheThunderKing		instancelock 1064 validé
--	929		Île des Géants					IsleOfGiants
--	930		trône du tonnerre	new ulduar		1	à	8		ThunderKingRaid		instancelock 1098	12 boss
--	933		IsleoftheThunderKingScenario		instancelock	1135 ?
--	934		ThunderKingLootRoom					Citadelle du roi-tonnerre

--5.2	instancelock
--	1064	Île mogu - Zone de quêtes journalières
--	1098	Trône du tonnerre							12 boss
--	1101	Défense de la taverne
--	1105	CdB ruée vers l'or	( Gorge de Vent-Caverneux 5.3 )
--	1107	Zone des démonistes
--	1120	Plateforme de la Horde du roi-tonnerre
--	1121	Plateforme de l'Alliance de l'île du tonnerre
--	1122	Siège de la ville - Scénario de progression de l'île mogu
--	1123	Forge de foudre - Scénario de progression de l'île mogu
--	1124	Chantier naval - Scénario de progression de l'île mogu
--	1125	Phase alliance - Scénario de progression de l'île mogu
--	1126	Eévènements de progression de l'île mogu						Horde Hub - Mogu Island Progression Scenario
--	1127	Dernière porte - Scénario de progression de l'île mogu
--	1128	Eévènements de l'île mogu - Base Horde
--	1129	Eévènements de l'île mogu - Base Alliance
--	1132	Transport : le Gibeciel (arène de Castagn'ar)
--	1133	Transport : navire zandalari (île mogu)
--	1135	Salle du butin de l'île mogu

--	1099	Scénario : bataille navale
--	1101	Défense de la taverne
--	1112	Aà la poursuite de la Sombre récolte
--	1120x	Plateforme de la Horde du roi-tonnerre
--	1121x	Plateforme de l'Alliance de l'île du tonnerre
--	1122x	Siège de la ville - Scénario de progression de l'île mogu
--	1123x	Forge de foudre - Scénario de progression de l'île mogu
--	1124x	Chantier naval - Scénario de progression de l'île mogu
--	1125x	Phase alliance - Scénario de progression de l'île mogu
--	1127x	Dernière porte - Scénario de progression de l'île mogu
--	1128x	Eévènements de l'île mogu - Base Horde
--	1129x	Eévènements de l'île mogu - Base Alliance
--	1132	Transport : le Gibeciel (arène de Castagn'ar)
--	1133	Transport : navire zandalari (île mogu)

--/script DBCS_region_tester_difficulte();

--5.3	areaid

i=i+1;DBCS_Region_liste[0][i] = { sval = "0D7", instancelock = 1105, srepertoire = "GoldRush", areaid = 935 };						--	Gorge de Vent-Caverneux			BG
i=i+1;DBCS_Region_liste[0][i] = { sval = "0D8", instancelock = 1144, srepertoire = "ValeOfEternalBlossomsScenario", inbnivmin = 0, inbnivmax = 1, inumniv = 1, areaid = 937 };	--	Le Sombre Coeur de la Pandarie	scénario
i=i+1;DBCS_Region_liste[0][i] = { sval = "0D9", instancelock = 1131, srepertoire = "EmberdeepScenario", inbnivmin = 1, inbnivmax = 1, inumniv = 1, areaid = 938 };				--	Les secrets de Ragefeu			scénario
i=i+1;DBCS_Region_liste[0][i] = { sval = "0DA", instancelock = 1130, srepertoire = "DunMoroghScenario", areaid = 939 };				--	Du sang dans la neige			scénario
i=i+1;DBCS_Region_liste[0][i] = { sval = "0DB", instancelock = 1099, srepertoire = "tempKrasarangHordeBase", areaid = 940 };		--	Bataille en haute mer			scénario
i=i+1;DBCS_Region_liste[0][i] = { sval = "0DC", instancelock = 1134, sregionloc = "606" };											--	Le croc du Tigre				arène

--DUNGEON_FLOOR_OONAKAGU16 = "Ouna Kagu";
--DUNGEON_FLOOR_SHADOWGLEN2 = "Grotte de Sombrefil";

--	935		GoldRush						1105	Gorge de Vent-Caverneux			BG
--	937		ValeOfEternalBlossomsScenario	1144	Le Sombre Coeur de la Pandarie	scénario
--	938		EmberdeepScenario				1131	Les secrets de Ragefeu			scénario
--	939		DunMoroghScenario				1130	Du sang dans la neige			scénario
--	940		tempKrasarangHordeBase			1099	Bataille en haute mer			scénario
--											1134	Le croc du Tigre				arène

--5.3	instancelock

--	1105	Gorge de Vent-Caverneux
--	1130	Du sang dans la neige
--	1131	Les secrets de Ragefeu
--	1134	Le croc du Tigre	( The Tiger's Peak )
--	1144	Scénario du Coeur des Dieux très anciens

--DUNGEON_FLOOR_ISLEOFTHETHUNDERKING1 - Ghostly Veins
--DUNGEON_FLOOR_ISLEOFTHETHUNDERKING2 - The Swollen Vault
--DUNGEON_FLOOR_THUNDERKINGRAID1 - Overgrown Statuary
--DUNGEON_FLOOR_THUNDERKINGRAID2 - Royal Amphitheater
--DUNGEON_FLOOR_THUNDERKINGRAID3 - Forgotten Depths
--DUNGEON_FLOOR_THUNDERKINGRAID4 - Roost of Ji-Kun
--DUNGEON_FLOOR_THUNDERKINGRAID5 - Halls of Shaping
--DUNGEON_FLOOR_THUNDERKINGRAID6 - Hall of Kings
--DUNGEON_FLOOR_THUNDERKINGRAID7 - Pinnacle of Storms
--DUNGEON_FLOOR_THUNDERKINGRAID8 - Hidden Cell

--HordeAmbushScenario

--5.4

i=i+1;DBCS_Region_liste[0][i] = { sval = "0DD", instancelock = 1136, srepertoire = "OrgrimmarRaid", inbnivmin = 0, inbnivmax = 14, inumniv = 0, areaid = 953 };		--	Siège d'Orgrimmar	raid 14 boss
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0DE", smicrodungeon = "TimelessIsle", srepertoire = "CavernofLostSpirits", inbnivmin = 22, inbnivmax = 22, inumniv = 22, sregionloc = "613", name3 = "DUNGEON_FLOOR_TIMELESSISLE22" };	--	Cavern of Lost Spirits
i=i+1;DBCS_Region_liste[0][i] = { sval = "0DE", smicrodungeon = "TimelessIsle", srepertoire = "CavernofLostSpirits", inbnivmin = 22, inbnivmax = 22, inumniv = 22, sregionloc = "613" };	--	Cavern of Lost Spirits
i=i+1;DBCS_Region_liste[0][i] = { sval = "0DF", instancelock = 1161, srepertoire = "CelestialChallenge", areaid = 955 };											--	Tournoi des Astres vénérables		scénario
i=i+1;DBCS_Region_liste[0][i] = { sval = "0DG", instancelock = 1148, srepertoire = "ProvingGrounds", areaid = 899, inbnivmin = 1, inbnivmax = 1, inumniv = 1 };			--	Ordalie			scénario

i=i+1;DBCS_Region_liste[0][i] = { sval = "0DH", instancelock = 654, srepertoire = "Gilneas", areaid = 545 };																						--Gilnéas 2
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0DH", instancelock = 654, srepertoire = "GilneasCity", areaid = 545 };																						--Gilnéas 2
--areaid = 545	Gilnéas 2	instancelock = 654	srepertoire = "Gilneas"

--[[
i=i+1;DBCS_Region_liste[0][i] = { sval = "613", srepertoire = "TimelessIsle", areaid = 951, dungeon = { [22] = "0DE" } };													--	Ïle du Temps figé
i=i+1;DBCS_Region_liste[0][i] = { sval = "0DD", instancelock = 1136, srepertoire = "OrgrimmarRaid", inbnivmin = 0, inbnivmax = 14, inumniv = 0, areaid = 953 };		--	Siège d'Orgrimmar	raid 14 boss
i=i+1;DBCS_Region_liste[0][i] = { sval = "0DE", srepertoire = "CavernOfEndlessEchoes", inbnivmin = 22, inbnivmax = 22, inumniv = 22, sregionloc = "613", name3 = "DUNGEON_FLOOR_TIMELESSISLE22" };	--	Cavern of Lost Spirits

--i=i+1;DBCS_Region_liste[0][i] = { sval = "0DD", srepertoire = "TimelessIsle", areaid = 951 };													--	Ïle du Temps figé
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0DF", instancelock = 0000, srepertoire = "CelestialChallenge", areaid = 955 };											--
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0DG", instancelock = 1136, srepertoire = "OrgrimmarRaid", inbnivmin = 0, inbnivmax = 14, inumniv = 0, areaid = 956 };		--	Siège d'Orgrimmar	raid 14 boss
--]]

--5.4	areaid

--	951		TimelessIsle					Ïle du Temps figé
--	953		OrgrimmarRaid					Siège d'Orgrimmar	1	15
--	955		CelestialChallenge				

--5.4	instancelock

--	DUNGEON_FLOOR_TIMELESSISLE22 - Cavern of Lost Spirits
--	1136	Siège d'Orgrimmar				raid 14 boss
--	1148	Ordalie
--	1155	Donjon de Stromgarde
--	1157	Scénario de Micolline
--	1161	Tournoi des Astres vénérables

--	1172	Transport : siège d'Orgrimmar (Alliance)
--	1173	Transport : siège d'Orgrimmar (Horde)

if ( DBCS_Region_wow_build_info > DBCS_Region_wow_build_info_live ) then

i=i+1;DBCS_Region_liste[0][i] = { sval = "700", instancelock = 1116, srepertoire = "Draenor", areaid = 962 };																--	Draenor

i=i+1;DBCS_Region_liste[0][i] = { sval = "0DI", instancelock = 1175, srepertoire = "OgreMines", areaid = 964, inbnivmin = 1, inbnivmax = 1, inumniv = 1, sregionloc = "702", slocloc = "@50x25@" };					--	Mine de la Masse-Sanglante			4 boss	90-92
i=i+1;DBCS_Region_liste[0][i] = { sval = "0DO", instancelock = 1195, srepertoire = "IronDocks", areaid = 987, inbnivmin = 1, inbnivmax = 1, inumniv = 1, sregionloc = "704", slocloc = "@45x14@" };					--	Quais de Fer						4 boss	92-94
i=i+1;DBCS_Region_liste[0][i] = { sval = "0DM", instancelock = 1182, srepertoire = "DraenorAuchindoun", areaid = 984, inbnivmin = 1, inbnivmax = 1, inumniv = 1, sregionloc = "707", slocloc = "@46x74@" };			--	Auchindoun							4 boss	94-97
i=i+1;DBCS_Region_liste[0][i] = { sval = "0DQ", instancelock = 1209, srepertoire = "SpiresofArakDungeon", areaid = 989, inbnivmin = 1, inbnivmax = 2, inumniv = 1, sregionloc = "703", slocloc = "@36x34@" };		--	Orée-du-Ciel						4 boss	97-99
i=i+1;DBCS_Region_liste[0][i] = { sval = "0DJ", instancelock = 1176, srepertoire = "ShadowmoonDungeon", areaid = 969, inbnivmin = 1, inbnivmax = 3, inumniv = 1, sregionloc = "708", slocloc = "@32x42@" };			--	Terres sacrées d'Ombrelune			4 boss	100
i=i+1;DBCS_Region_liste[0][i] = { sval = "0DS", instancelock = 1208, srepertoire = "BlackrockTrainDepotDungeon", areaid = 993, inbnivmin = 1, inbnivmax = 4, inumniv = 1, sregionloc = "704", slocloc = "@55x31@" };--	Dépôt de Tristerail					3 boss	100
i=i+1;DBCS_Region_liste[0][i] = { sval = "0DV", instancelock = 1279, srepertoire = "OvergrownOutpost", areaid = 1008, inbnivmin = 0, inbnivmax = 1, inumniv = 0, sregionloc = "704", slocloc = "@60x45@" };			--	La Flore éternelle					5 boss	100
i=i+1;DBCS_Region_liste[0][i] = { sval = "0DU", instancelock = 1358, srepertoire = "UpperBlackrockSpire", areaid = 995, inbnivmin = 1, inbnivmax = 3, inumniv = 1, sregionloc = "205", slocloc = "@21x38@27x24@" };	--	Sommet du pic Rochenoire			5 boss	90	100

i=i+1;DBCS_Region_liste[0][i] = { sval = "0DT", instancelock = 1228, srepertoire = "HighmaulRaid", areaid = 994, inbnivmin = 0, inbnivmax = 5, inumniv = 0, sregionloc = "706", slocloc = "@33x38@" };				--	Cognefort							7 boss	raid 1
i=i+1;DBCS_Region_liste[0][i] = { sval = "0DP", instancelock = 1205, srepertoire = "FoundryRaid", areaid = 988, inbnivmin = 1, inbnivmax = 5, inumniv = 3, sregionloc = "704", slocloc = "@52x27@" };				--	Fonderie des Rochenoires			10 boss

i=i+1;DBCS_Region_liste[0][i] = { sval = "0DX", instancelock = 1280, srepertoire = "HillsbradFoothillsBG", areaid = 1010 };													--	Moulin-de-tarren contre Austrivage	BG

i=i+1;DBCS_Region_liste[0][i] = { sval = "0DK", instancelock = 1265, srepertoire = "TanaanJungleIntro", areaid = 970, dungeon = { [1] = "0EV" } };							--	assaut sur la porte des ténèbres	scénario
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0DL", instancelock = 1277, srepertoire = "DefenseofKarabor", areaid = 983 };			--	Défense de Karabor					scénario	carte verte
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0DN", instancelock = 1207, srepertoire = "TaladorScenario", areaid = 986 };			--	La bataille de Shattrath			scénario	carte verte

--i=i+1;DBCS_Region_liste[0][i] = { sval = "0DR", instancelock = 1190, srepertoire = "BlastedLands_terrain1", areaid = 992 };													--	Terres Foudroyées

----à placer sur le continent draenor	--fait
i=i+1;DBCS_Region_liste[0][i] = { sval = "0DW", srepertoire = "AshranAllianceFactionHub", areaid = 1009, sregionloc = "701" };																	--	bouclier des tempetes
i=i+1;DBCS_Region_liste[0][i] = { sval = "0DY", srepertoire = "AshranHordeFactionHub", areaid = 1011, sregionloc = "701" };																		--	fer de lance

--FrostfireRidge\BladespireFortress\BladespireFortress1
--FrostfireRidge\BladespireFortress\BladespireFortress2
--FrostfireRidge\BladespireFortress\BladespireFortress3
--FrostfireRidge\BladespireFortress\BladespireFortress4	-> mauvaise carte
i=i+1;DBCS_Region_liste[0][i] = { sval = "0E4", smicrodungeon = "FrostfireRidge", srepertoire = "BladespireFortress", inbnivmin = 1, inbnivmax = 3, inumniv = 1, sregionloc = "702" };

--, areaid = 971
i=i+1;DBCS_Region_liste[0][i] = { sval = "0E5", instancelock = 1158, srepertoire = "garrisonsmvalliance_tier1", sregionloc = "708", dungeon = { [23] = "0E8", [24] = "0E9", [25] = "0EA" } };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0E6", instancelock = 1331, srepertoire = "garrisonsmvalliance_tier2", sregionloc = "708", dungeon = { [23] = "0E8", [24] = "0E9", [25] = "0EA" } };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0E7", instancelock = 1159, srepertoire = "garrisonsmvalliance_tier3", sregionloc = "708", dungeon = { [23] = "0E8", [24] = "0E9", [25] = "0EA" } };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0E8", smicrodungeon = "garrisonsmvalliance", srepertoire = "LunarfallMine1", inbnivmin = 23, inbnivmax = 23, inumniv = 23, sregionloc = "708" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0E9", smicrodungeon = "garrisonsmvalliance", srepertoire = "LunarfallMine2", inbnivmin = 24, inbnivmax = 24, inumniv = 24, sregionloc = "708" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0EA", smicrodungeon = "garrisonsmvalliance", srepertoire = "LunarfallMine3", inbnivmin = 25, inbnivmax = 25, inumniv = 25, sregionloc = "708" };
--, areaid = 976
i=i+1;DBCS_Region_liste[0][i] = { sval = "0EB", instancelock = 1152, srepertoire = "Garrisonffhorde_Tier1", sregionloc = "702", dungeon = { [26] = "0EE", [27] = "0EF", [28] = "0EG" } };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0EC", instancelock = 1330, srepertoire = "Garrisonffhorde_Tier2", sregionloc = "702", dungeon = { [26] = "0EE", [27] = "0EF", [28] = "0EG" } };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0ED", instancelock = 1153, srepertoire = "Garrisonffhorde_Tier3", sregionloc = "702", dungeon = { [26] = "0EE", [27] = "0EF", [28] = "0EG" } };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0EE", smicrodungeon = "Garrisonffhorde", srepertoire = "FrostwallMine1", inbnivmin = 26, inbnivmax = 26, inumniv = 26, sregionloc = "702" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0EF", smicrodungeon = "Garrisonffhorde", srepertoire = "FrostwallMine2", inbnivmin = 27, inbnivmax = 27, inumniv = 27, sregionloc = "702" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0EG", smicrodungeon = "Garrisonffhorde", srepertoire = "FrostwallMine3", inbnivmin = 28, inbnivmax = 28, inumniv = 28, sregionloc = "702" };
----i=i+1;DBCS_Region_liste[0][i] = { sval = "0EH", srepertoire = "garrisonsmvalliance_tier4", sregionloc = "708" };

--/script DBCS_region_tester_difficulte();
--/script DBCS_region_tester_difficulte(0);

--Interface\WorldMap\Garrisonffhorde_Tier1\Garrisonffhorde_Tier1
--Interface\WorldMap\Garrisonffhorde_Tier2\Garrisonffhorde_Tier2
--Interface\WorldMap\Garrisonffhorde_tier3\Garrisonffhorde_tier3
--Interface\WorldMap\garrisonsmvalliance_tier1\garrisonsmvalliance_tier1
--Interface\WorldMap\garrisonsmvalliance_tier2\garrisonsmvalliance_tier2	areaid = 971	Chutelune
--Interface\WorldMap\garrisonsmvalliance_tier3\garrisonsmvalliance_tier3
--Interface\WorldMap\garrisonsmvalliance_tier4\garrisonsmvalliance_tier4

--Interface\WorldMap\MicroDungeon\FrostfireRidge\FavelaMines\FavelaMines4
--Interface\WorldMap\MicroDungeon\FrostfireRidge\FrostbiteHollowInterrior\FrostbiteHollowInterrior9
--Interface\WorldMap\MicroDungeon\FrostfireRidge\TheSavageCrag\TheSavageCrag7
--Interface\WorldMap\MicroDungeon\FrostfireRidge\TheSavageCrag\TheSavageCrag8
--Interface\WorldMap\MicroDungeon\FrostfireRidge\ThunderlordCityInterior\ThunderlordCityInterior6
i=i+1;DBCS_Region_liste[0][i] = { sval = "0EH", smicrodungeon = "FrostfireRidge", srepertoire = "FavelaMines", inbnivmin = 4, inbnivmax = 4, inumniv = 4, sregionloc = "702" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0EI", smicrodungeon = "FrostfireRidge", srepertoire = "FrostbiteHollowInterrior", inbnivmin = 9, inbnivmax = 9, inumniv = 9, sregionloc = "702" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0EJ", smicrodungeon = "FrostfireRidge", srepertoire = "TheSavageCrag", inbnivmin = 7, inbnivmax = 8, inumniv = 7, sregionloc = "702" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0EK", smicrodungeon = "FrostfireRidge", srepertoire = "ThunderlordCityInterior", inbnivmin = 6, inbnivmax = 6, inumniv = 6, sregionloc = "702" };

--Interface\WorldMap\MicroDungeon\Frostwall\FrostwallMine1
--Interface\WorldMap\MicroDungeon\Frostwall\FrostwallMine2
--Interface\WorldMap\MicroDungeon\Frostwall\FrostwallMine3
--Interface\WorldMap\MicroDungeon\Garrisonffhorde\FrostwallMine1\FrostwallMine1
--Interface\WorldMap\MicroDungeon\Garrisonffhorde\FrostwallMine1\FrostwallMine126
--Interface\WorldMap\MicroDungeon\Garrisonffhorde\FrostwallMine2\FrostwallMine2
--Interface\WorldMap\MicroDungeon\Garrisonffhorde\FrostwallMine2\FrostwallMine227
--Interface\WorldMap\MicroDungeon\Garrisonffhorde\FrostwallMine3\FrostwallMine3
--Interface\WorldMap\MicroDungeon\Garrisonffhorde\FrostwallMine3\FrostwallMine328
--Interface\WorldMap\MicroDungeon\garrisonsmvalliance\LunarfallMine1\LunarfallMine1
--Interface\WorldMap\MicroDungeon\garrisonsmvalliance\LunarfallMine1\LunarfallMine123
--Interface\WorldMap\MicroDungeon\garrisonsmvalliance\LunarfallMine2\LunarfallMine2
--Interface\WorldMap\MicroDungeon\garrisonsmvalliance\LunarfallMine2\LunarfallMine224
--Interface\WorldMap\MicroDungeon\garrisonsmvalliance\LunarfallMine3\LunarfallMine3
--Interface\WorldMap\MicroDungeon\garrisonsmvalliance\LunarfallMine3\LunarfallMine325

--Interface\WorldMap\MicroDungeon\Gorgrond\CragplumeCauldron\CragplumeCauldron20
--Interface\WorldMap\MicroDungeon\Gorgrond\CragplumeCauldron\CragplumeCauldron21
--Interface\WorldMap\MicroDungeon\Gorgrond\FissureOfFury\FissureOfFury18
--Interface\WorldMap\MicroDungeon\Gorgrond\FissureOfFury\FissureOfFury19
--Interface\WorldMap\MicroDungeon\Gorgrond\MoirasReach\MoirasReach16
--Interface\WorldMap\MicroDungeon\Gorgrond\MoirasReach\MoirasReach17
i=i+1;DBCS_Region_liste[0][i] = { sval = "0EL", smicrodungeon = "Gorgrond", srepertoire = "CragplumeCauldron", inbnivmin = 20, inbnivmax = 21, inumniv = 20, sregionloc = "704" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0EM", smicrodungeon = "Gorgrond", srepertoire = "FissureOfFury", inbnivmin = 18, inbnivmax = 19, inumniv = 18, sregionloc = "704" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0EN", smicrodungeon = "Gorgrond", srepertoire = "MoirasReach", inbnivmin = 16, inbnivmax = 17, inumniv = 16, sregionloc = "704", slocloc = "@48x94@" };

--Interface\WorldMap\MicroDungeon\LunarfallRuins\LunarfallMine1
--Interface\WorldMap\MicroDungeon\LunarfallRuins\LunarfallMine2
--Interface\WorldMap\MicroDungeon\LunarfallRuins\LunarfallMine3

--Interface\WorldMap\MicroDungeon\NagrandDraenor\ShadowfallCanyon\ShadowfallCanyon12
--Interface\WorldMap\MicroDungeon\NagrandDraenor\StonecragGorge\StonecragGorge11
--Interface\WorldMap\MicroDungeon\NagrandDraenor\TheMastersCavern\TheMastersCavern10
i=i+1;DBCS_Region_liste[0][i] = { sval = "0EO", smicrodungeon = "NagrandDraenor", srepertoire = "ShadowfallCanyon", inbnivmin = 12, inbnivmax = 12, inumniv = 12, sregionloc = "706" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0EP", smicrodungeon = "NagrandDraenor", srepertoire = "StonecragGorge", inbnivmin = 11, inbnivmax = 11, inumniv = 11, sregionloc = "706" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0EQ", smicrodungeon = "NagrandDraenor", srepertoire = "TheMastersCavern", inbnivmin = 10, inbnivmax = 10, inumniv = 10, sregionloc = "706" };

--Interface\WorldMap\MicroDungeon\ShadowmoonValleyDR\BloodthornCave\BloodthornCave15
--Interface\WorldMap\MicroDungeon\ShadowmoonValleyDR\DenofSecrets\DenofSecrets22
i=i+1;DBCS_Region_liste[0][i] = { sval = "0ER", smicrodungeon = "ShadowmoonValleyDR", srepertoire = "BloodthornCave", inbnivmin = 15, inbnivmax = 15, inumniv = 15, sregionloc = "708" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0ES", smicrodungeon = "ShadowmoonValleyDR", srepertoire = "DenofSecrets", inbnivmin = 22, inbnivmax = 22, inumniv = 22, sregionloc = "708" };

--Interface\WorldMap\MicroDungeon\Talador\TombofLights\TombofLights13
--Interface\WorldMap\MicroDungeon\Talador\TombOfSouls\TombofSouls14
i=i+1;DBCS_Region_liste[0][i] = { sval = "0ET", smicrodungeon = "Talador", srepertoire = "TombofLights", inbnivmin = 13, inbnivmax = 13, inumniv = 13, sregionloc = "707" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0EU", smicrodungeon = "Talador", srepertoire = "TombOfSouls", inbnivmin = 14, inbnivmax = 14, inumniv = 14, sregionloc = "707" };

--Interface\WorldMap\MicroDungeon\TanaanJungleIntro\UmbralMines\UmbralMines1
i=i+1;DBCS_Region_liste[0][i] = { sval = "0EV", smicrodungeon = "TanaanJungleIntro", srepertoire = "UmbralMines", inbnivmin = 1, inbnivmax = 1, inumniv = 1, sregionloc = "0DK" };

i=i+1;DBCS_Region_liste[0][i] = { sval = "0EW" };

--inutilisé		i=i+1;DBCS_Region_liste[0][i] = { sval = "0DR", instancelock = 1190, srepertoire = "BlastedLands_terrain1", areaid = 992 };													--	Terres Foudroyées

--[[

DBCS_Region_liste[7][1] = { sval = "701", srepertoire = "Ashran", areaid = 978, ressx = 0, ressy = 0, xoffset = 0, yoffset = 0};				--	A'shran
DBCS_Region_liste[7][2] = { sval = "702", srepertoire = "FrostfireRidge", areaid = 941, ressx = 0, ressy = 0, xoffset = 0, yoffset = 0, dungeon = { [1] = "0E4", [2] = "0E4", [3] = "0E4", [4] = "0E4" } };		--	Crête de Givrefeu
DBCS_Region_liste[7][3] = { sval = "703", srepertoire = "SpiresOfArak", areaid = 948, ressx = 0, ressy = 0, xoffset = 0, yoffset = 0};			--	Flèches d'Arak
DBCS_Region_liste[7][4] = { sval = "704", srepertoire = "Gorgrond", areaid = 949, ressx = 0, ressy = 0, xoffset = 0, yoffset = 0};				--	Gorgrond
DBCS_Region_liste[7][5] = { sval = "705", srepertoire = "TanaanJungle", areaid = 945, ressx = 0, ressy = 0, xoffset = 0, yoffset = 0};			--	Jungle de Tanaan
DBCS_Region_liste[7][6] = { sval = "706", srepertoire = "NagrandDraenor", areaid = 950, ressx = 0, ressy = 0, xoffset = 0, yoffset = 0};		--	Nagrand
DBCS_Region_liste[7][7] = { sval = "707", srepertoire = "Talador", areaid = 946, ressx = 0, ressy = 0, xoffset = 0, yoffset = 0};				--	Talador
DBCS_Region_liste[7][8] = { sval = "708", srepertoire = "ShadowmoonValleyDR", areaid = 947, ressx = 0, ressy = 0, xoffset = 0, yoffset = 0};	--	Vallée d'Ombrelune

--]]

end

--TheJadeForest\OonaKagu\OonaKagu16
i=i+1;DBCS_Region_liste[0][i] = { sval = "0DZ", smicrodungeon = "TheJadeForest", srepertoire = "OonaKagu", inbnivmin = 16, inbnivmax = 16, inumniv = 16, sregionloc = "602" };
--Badlands\Uldaman\Uldaman18
i=i+1;DBCS_Region_liste[0][i] = { sval = "0E0", smicrodungeon = "Badlands", srepertoire = "Uldaman", inbnivmin = 18, inbnivmax = 18, inumniv = 18, sregionloc = "203" };
--DeathknellStart\NightWebsHollow\NightWebsHollow12
i=i+1;DBCS_Region_liste[0][i] = { sval = "0E1", smicrodungeon = "DeathknellStart", srepertoire = "NightWebsHollow", inbnivmin = 12, inbnivmax = 12, inumniv = 12, sregionloc = "246" };
--EchoIslesStart\SpitescaleCavern\SpitescaleCavern9
i=i+1;DBCS_Region_liste[0][i] = { sval = "0E2", smicrodungeon = "EchoIslesStart", srepertoire = "SpitescaleCavern", inbnivmin = 9, inbnivmax = 9, inumniv = 9, sregionloc = "134" };
--NewTinkertownStart\FrostmaneHold\FrostmaneHold8
i=i+1;DBCS_Region_liste[0][i] = { sval = "0E3", smicrodungeon = "NewTinkertownStart", srepertoire = "FrostmaneHold", inbnivmin = 8, inbnivmax = 8, inumniv = 8, sregionloc = "245" };

----Valleyofthefourwinds\CavernOfEndlessEchoes\CavernOfEndlessEchoes14	-- voir "0D0"
----i=i+1;DBCS_Region_liste[0][i] = { sval = "0E4", smicrodungeon = "Valleyofthefourwinds", srepertoire = "CavernOfEndlessEchoes", inbnivmin = 14, inbnivmax = 14, inumniv = 14, sregionloc = "610" };
----Westfall\DeadminesWestfall\DeadminesWestfall17						-- voir "0CM"
----i=i+1;DBCS_Region_liste[0][i] = { sval = "0E5", smicrodungeon = "Westfall", srepertoire = "DeadminesWestfall", inbnivmin = 17, inbnivmax = 17, inumniv = 17, sregionloc = "224" };

--[[
6.0 areaid

941 = crete de givrefeu									FrostfireRidge
945 = jungle de tanaan									TanaanJungle
946 = talador											Talador
947 = vallée d'ombrelune								ShadowmoonValleyDR
948 = flèches d'arak									SpiresOfArak
949 = gorgrond											Gorgrond
950 = nagrand											NagrandDraenor
951 = ile du temps figé
953 = siège d'orgrimmar
955 = tournoi des astres vénérables
962 = draenor											Draenor
964 = mine de scories de la masse-sanglante				OgreMines					ds 941
969 = terres sacrées d'ombrelune			1 à 3		ShadowmoonDungeon			ds 947
970 = assaut sur la porte des ténèbres					TanaanJungleIntro			ds 962
971 = vallée d'ombrelune	SMV Alliance Garrison Level 2
973 = vallée d'ombrelune
974 = vallée d'ombrelune
975 = vallée d'ombrelune
976 = crète de givrefeu
978 = a'shran											Ashran						ds 962
980 = crète de givrefeu
981 = crète de givrefeu
982 = crète de givrefeu
983 = défense de karabor								DefenseofKarabor									DefenseOfKaraborScenario ?	DefenseOfTheAleHouseBG ?
984 = auchindoun										DraenorAuchindoun			ds 946
986 = shattrath											TaladorScenario
987 = quais de fer										IronDocks					ds 949
988 = fonderie des rochenoires				1 à 5		FoundryRaid					ds 949
989 = orée du ciel							1 à 2		SpiresofArakDungeon			ds 948
990 = crète de givrefeu
991 = vallée d'ombrelune
992 = terres foudroyées									BlastedLands_terrain1		ds royaumes de l'est
993 = dépot de tristerail					1 à 4		BlackrockTrainDepotDungeon	ds 949
994 = cognefort								1 à 6		HighmaulRaid				ds 950
995 = sommet du pic rochenoire				1 à 3		UpperBlackrockSpire			ds steppes ardentes
1008 = la flore éternelle					1 à 2		OvergrownOutpost			ds 949
1009 = bouclier des tempetes							AshranAllianceFactionHub	ds 978
1010 = moulin-de-tarren contre austrivage				HillsbradFoothillsBG
1011 = fer de lance										AshranHordeFactionHub		ds 978

6.0	instancelock

1116	=	Draenor							2 world boss
1152	=	FW Horde Garrison Level 1
1153	=	FW Horde Garrison Level 3
1154	=	FW Horde Garrison Level 4
1158	=	SMV Alliance Garrison Level 1
1159	=	SMV Alliance Garrison Level 3
1160	=	SMV Alliance Garrison Level 4
1166	=	Small Battleground A
1168	=	The Purge Of Grommar - Scenario
1169	=	Small Battleground B
1170	=	Small Battleground C
1171	=	Small Battleground D
1175	=	Mine de la Masse-Sanglante			4 boss
1176	=	Terres sacrées d'Ombrelune			4 boss
1179	=	Héros de Warcraft
1181	=	PattyMack Test Garrison Bldg Map
1182	=	Auchindoun							4 boss
1187	=	GOR Alliance Garrison Level 1
1188	=	GOR Alliance Garrison Level 2
1189	=	GOR Alliance Garrison Level 3
1190	=	Terres Foudroyées
1191	=	Ashran - World PvP
1192	=	Transport: Gorgrond Train
1195	=	Quais de Fer						4 boss
1200	=	Scénario d'Osville
1203	=	Frostfire Finale Scenario
1205	=	Fonderie des Rochenoires			10 boss
1207	=	La bataille de Shattrath
1208	=	Dépôt de Tristerail					3 boss
1209	=	Orée-du-Ciel						4 boss
1212	=	Garrison - Alliance - Blacksmith Hub
1213	=	Garrison - Alliance - Alchemy 1
1214	=	Garrison - Alliance - Enchanting Hub
1215	=	Garrison - Alliance - Engineering NR
1216	=	Garrison - Alliance - Farm 1
1217	=	Garrison - Alliance - Inscription
1218	=	Garrison - Alliance - Jewelcrafting 1
1219	=	Garrison - Alliance - Leatherworking
1221	=	Garrison - Alliance Mine 1
1222	=	Garrison - Alliance Mine 2
1223	=	Garrison - Alliance Mine 3
1224	=	Garrison - Alliance Stable 1
1225	=	Garrison - Alliance Stable 2
1226	=	Garrison - Alliance Stable 3
1227	=	Garrison - Alliance Tailoring
1228	=	Cognefort							7 boss
1229	=	Garrison - Alliance - Inn 1
1230	=	Garrison - Alliance - Barn 1
1231	=	Transport: Wavemurder Barge
1232	=	GOR Horde Garrison Level 0
1233	=	GOR Horde Garrison Level 3
1234	=	TAL Alliance Garrison Level 0
1235	=	TAL Alliance Garrison Level 3
1236	=	TAL Horde Garrison Level 0
1237	=	TAL Horde Garrison Level 3
1238	=	SOA Alliance Garrison Level 0
1239	=	SOA Alliance Garrison Level 3
1240	=	SOA Horde Garrison Level 0
1241	=	SOA Horde Garrison Level 3
1242	=	NAG Alliance Garrison Level 0
1243	=	NAG Alliance Garrison Level 3
1244	=	NAG Horde Garrison Level 0
1245	=	NAG Horde Garrison Level 3
1247	=	Garrison - Alliance - Armory 1
1248	=	Garrison - Alliance - Barracks 1
1249	=	Garrison - Alliance - Engineering 1
1250	=	Alliance - Garrison - Herb Garden 1
1251	=	Alliance - Garrison - Inn 1
1252	=	Garrison - Alliance - Lumbermill 1
1253	=	Garrison - Alliance - Mage Tower 1
1254	=	Garrison - Alliance - Pet Stable 1
1255	=	Garrison - Alliance - Salvage Yard 1
1256	=	Garrison - Alliance - StoreHouse 1
1257	=	Garrison - Alliance - Trading Post 1
1258	=	Garrison - Alliance - Tailoring 1
1259	=	Garrison - Alliance - Enchanting 1
1260	=	Garrison - Alliance - Blacksmith 1
1261	=	Garrison - Alliance - Plot Small
1262	=	Garrison - Alliance - Plot Medium
1263	=	Garrison - Alliance - Plot Large
1264	=	Propland - Dev Only
1265	=	Tanaan Jungle Intro
1266	=	Scénario du Cercle de sang
1268	=	Affrontement de Teron'gor
1270	=	Development Land 3
1273	=	Nagrand - Garrison Camp - Stable2
1277	=	Défense de Karabor
1278	=	Garrison - Horde - Barracks 1
1279	=	La Flore éternelle					5 boss
1280	=	Moulin-de-tarren contre Austrivage
1281	=	Garrison - Horde - Alchemy 1
1282	=	Garrison - Horde - Armory 1
...
1306	=	Garrison - Horde - Plot Small
1307	=	Tanaan Jungle Intro - Forge Phase
...
1310	=	Expansion 5 QA Model Map
...
1329	=	Grommashar Scenario
...
1354
1358	=	Sommet du pic Rochenoire			5 boss
1361
...
1372
1374	=	Quête d'Auchindoun
1375
...
1401
1402	=	Phase finale de Gorgrond
1403
...
1406
1407	=	zzzOld
1409
...
1426
1427	=	PattyMack Test Garrison Bld Map2
1429
...
1430
1431	=	Le Colisée
1432
...
1442
1446
1447

--]]

--[[
DUNGEON_FLOOR_BLACKROCKTRAINDEPOTDUNGEON1 - Train Depot
DUNGEON_FLOOR_BLACKROCKTRAINDEPOTDUNGEON2 - Rafters
DUNGEON_FLOOR_BLACKROCKTRAINDEPOTDUNGEON3 - Rear Train Cars
DUNGEON_FLOOR_BLACKROCKTRAINDEPOTDUNGEON4 - Forward Train Cars
DUNGEON_FLOOR_FOUNDRYRAID1 - Dread Grotto
DUNGEON_FLOOR_FOUNDRYRAID2 - Heart of the Mountain
DUNGEON_FLOOR_FOUNDRYRAID3 - The Workshop
DUNGEON_FLOOR_FOUNDRYRAID4 - Foundry Terminus
DUNGEON_FLOOR_FOUNDRYRAID5 - The Iron Crucible
DUNGEON_FLOOR_FROSTFIRERIDGE6 - Grom'gar
DUNGEON_FLOOR_FROSTFIRERIDGE7 - The Savage Crag
DUNGEON_FLOOR_FROSTFIRERIDGE8 - Grulloc's Lair
DUNGEON_FLOOR_FROSTFIRERIDGE9 - Snowfall Alcove
DUNGEON_FLOOR_GORGROND16 - Moira's Bastion
DUNGEON_FLOOR_GORGROND17 - The Armory
DUNGEON_FLOOR_GORGROND18 - Fissure of Fury
DUNGEON_FLOOR_GORGROND19 - Heart of Fury
DUNGEON_FLOOR_GORGROND20 - Cragplume Crater
DUNGEON_FLOOR_GORGROND21 - Cragplume Depths
DUNGEON_FLOOR_HIGHMAULRAID0 - Path of Victors
DUNGEON_FLOOR_HIGHMAULRAID1 - Gladiator's Rest
DUNGEON_FLOOR_HIGHMAULRAID2 - The Coliseum
DUNGEON_FLOOR_HIGHMAULRAID3 - Chamber of Nullification
DUNGEON_FLOOR_HIGHMAULRAID4 - Imperator's Rise
DUNGEON_FLOOR_HIGHMAULRAID5 - Throne of the Imperator
DUNGEON_FLOOR_NAGRANDDRAENOR10 - The Master's Cavern
DUNGEON_FLOOR_NAGRANDDRAENOR11 - Stonecrag Gorge
DUNGEON_FLOOR_NAGRANDDRAENOR12 - The Underpale
DUNGEON_FLOOR_OVERGROWNOUTPOST0 - The Evergrowth
DUNGEON_FLOOR_OVERGROWNOUTPOST1 - The Overlook
DUNGEON_FLOOR_SHADOWMOONDUNGEON1 - Crypt of the Ancients
DUNGEON_FLOOR_SHADOWMOONDUNGEON2 - Altar of Shadow
DUNGEON_FLOOR_SHADOWMOONDUNGEON3 - Edge of Reality
DUNGEON_FLOOR_SPIRESOFARAKDUNGEON1 - Lower Quarter
DUNGEON_FLOOR_SPIRESOFARAKDUNGEON2 - Grand Spire
DUNGEON_FLOOR_TALADOR13 - Tomb of Lights
DUNGEON_FLOOR_TALADOR14 - Tomb of Souls
DUNGEON_FLOOR_UPPERBLACKROCKSPIRE1 - Dragonspire Hall
DUNGEON_FLOOR_UPPERBLACKROCKSPIRE2 - The Rookery
DUNGEON_FLOOR_UPPERBLACKROCKSPIRE3 - Hall of Blackhand
--]]


--DBCS_Region_liste[6][2] = { sval = "602", srepertoire = "TheJadeForest", areaid = 806, ressx = 0.2, ressy = 0.3, xoffset = 14.964282144684*140, yoffset = 9.9732162888034*140, dungeon = { [6] = "000", [7] = "000", [15] = "000"} };
--donjon	nivcarte	6	Carrière de Pierre-Verte		MicroDungeon	TheJadeForest	GreenstoneQuarry	6	7
--donjon	nivcarte	15	????????????????????????		MicroDungeon	TheJadeForest	TheWidowsWail		15	15

--Fe-FangVillage
--MandoriVillage
--MorningBreezeVillage
--Pei-WuForest
--PoolofthePaw
--RidgeofLaughingWinds
--SkyfireCrash-Site
--TempleofFiveDawns
--TheDawningValley
--TheRows
--TheSingingPools
--TheWoodofStaves
--L'île Vagabonde		--/128/153/195/174
--end

--/script DBCS_region_tester_difficulte();
--L'Ancien passage		873


--	727	Mines d'Eéclargent
--	859	Zul'Gurub
--	860	L'île Vagabonde
--	861	Front du Magma
--	870	Pandarie
--	930	(INUTILISE) Scénario : île d'Alcaz
--	938	La Fin des temps
--	939	Puits d'éternité
--	940	L'Heure du Crépuscule
----	950	Nexus (légendaire)
--	951	Nexus (légendaire)
--	959	Monastère des Pandashan			( 4 boss )
--	960	Temple du Serpent de jade		( 4 boss )
--	961	Brasserie Brune d'Orage			( 3 boss )
--	962	Porte du Soleil couchant		( 4 boss )
--	967	Âme des dragons
--	968	L'OEil du cyclone coté
--	971	Phase alliance de la forêt de jade
--	972	Phase champ de bataille de la forêt de jade
--	974	Foire de Sombrelune
--	975	Vaisseau tortue phase 1
--	976	Vaisseau tortue phase 2
--	977	Combat contre Aile de mort dans le Maelström
--	980	Arène Tol'viron
--	994	Palais Mogu'shan				( 2 boss )
--	995	[INUTILISE] Les profondeurs
--	996	Terrasse Printanière			( 4 boss )
--	998	Temple de Kotmogu
--	999	Chute de Theramore
--	1000	Chute de Theramore
--	1001	Salles éEcarlates			( 3 boss )
--	1004	Monastère éEcarlate			( 3 boss )
--	1005	Une bière foudroyante
--	1007	Scholomance					( 5 boss )
--	1008	Caveaux Mogu'shan			( 6 boss )
--	1009	Coe(e ds o)ur de la peur			( 6 boss )
--	1010	CTF3
--	1011	Siège du temple de Niuzao	( 4 boss )
--	1014	Pic de la Sérénité
--	1019	Ruines de Theramore
--	1024	Pierre-verte			( Razzia sur la mousse )
--	1028	(INUTILISE) Scénario : ruines mogu
--	1029	(INUTILISE) Scénario : crypte mogu
--	1030	Crypte des Rois oubliés
--	1031	Arène de l'Annihilation
--	1032	Combat de mascottes - La forêt de jade
--	1035	Temple de Kotmogu
--	1043	Arène de Hurlenfer
--	1048	Bonne biture des brasseurs
--	1049	(INUTILISE) Scénario : temple du Buffle noir
--	1050	L'assaut de Zan'Vess
--	1051	Festival de Brasse-Lune
--	1060	Level Design Land - Dev Only
--	1066	Zone de départ de la Pandarie, canonnière de Hurlevent
--	1074	Départ pour la Pandarie dans la canonnière d'Orgrimmar
--	1075	Phase de la chute de Theramore
--	1076	Zone de départ de la Horde dans la forêt de Jade

local DBCS_Region_liste_maj = {};
DBCS_Region_liste_maj["000"] = "Mondial";
DBCS_Region_liste_maj["001"] = "Capitales";
DBCS_Region_liste_maj["002"] = "ex tram";
--DBCS_Region_liste_maj["010"] = "Hache-tripes";		--instancelock
DBCS_Region_liste_maj["017"] = "Mont Rochenoire";
--DBCS_Region_liste_maj["018"] = "Pic Rochenoire";		--instancelock
--DBCS_Region_liste_maj["022"] = "Repaire d'Onyxia";		--instancelock
DBCS_Region_liste_maj["032"] = "Naxxramas 60";
--DBCS_Region_liste_maj["072"] = "L'\197\146il de l'\195\169ternit\195\169";		--instancelock
--DBCS_Region_liste_maj["076"] = "Le sanctum Obsidien";		--instancelock
--DBCS_Region_liste_maj["077"] = "Naxxramas";		--instancelock
--DBCS_Region_liste_maj["080"] = "Caveau d'Archavon";		--instancelock
--DBCS_Region_liste_maj["081"] = "Ulduar";		--instancelock
DBCS_Region_liste_maj["082"] = "Maleterres : l'enclave \195\137carlate";
--DBCS_Region_liste_maj["083"] = "L'\195\169preuve du champion";		--instancelock
--DBCS_Region_liste_maj["084"] = "L'\195\169preuve du crois\195\169";		--instancelock
--DBCS_Region_liste_maj["086"] = "\195\142le des Conqu\195\169rants";		--instancelock
DBCS_Region_liste_maj["122"] = "Portes d'Ahn'Qiraj";
DBCS_Region_liste_maj["126"] = "Hall des L\195\169gendes";
DBCS_Region_liste_maj["127"] = "La Mer voil\195\169e";
--DBCS_Region_liste_maj["226"] = "Tram des profondeurs";		--instancelock
DBCS_Region_liste_maj["227"] = "Hall des Champions";
DBCS_Region_liste_maj["309"] = "Le N\195\169ant distordu";
DBCS_Region_liste_maj["411"] = "La mer Bor\195\169ale";
DBCS_Region_liste_maj["413"] = "La mer Gel\195\169e";

--DBCS_Region_liste_maj["085"] = "La Forge des \195\162mes";		--instancelock
--DBCS_Region_liste_maj["087"] = "Fosse de Saron";		--instancelock
--DBCS_Region_liste_maj["088"] = "Citadelle de la Couronne de glace";		--instancelock
--DBCS_Region_liste_maj["089"] = "Salles des Reflets";		--instancelock
--DBCS_Region_liste_maj["090"] = "Le sanctum Rubis";		--instancelock

--DBCS_Region_liste_maj["0A6"] = "Terrasse d'Ahn'Qiraj";

--DBCS_Region_liste_maj["100"] = "Kalimdor";		--instancelock
--DBCS_Region_liste_maj["200"] = "Royaumes de l'est";	--instancelock
--DBCS_Region_liste_maj["300"] = "Outreterre";		--instancelock
--DBCS_Region_liste_maj["400"] = "Norfendre";		--instancelock
DBCS_Region_liste_maj["COS"] = "Cosmos";
DBCS_Region_liste_maj["WOR"] = "Azeroth";

DBCS_Region_liste_maj["0EW"] = "Fief";

--cataclysme
--DBCS_Region_liste_maj["091"] = "Salles de l'Origine";
--DBCS_Region_liste_maj["092"] = "La bataille de Giln\195\169as";
--DBCS_Region_liste_maj["093"] = "Tr\195\180ne des mar\195\169es";
--DBCS_Region_liste_maj["094"] = "Grim Batol";
--DBCS_Region_liste_maj["095"] = "Le C\197\147ur-de-pierre";
--DBCS_Region_liste_maj["096"] = "Cavernes de Rochenoire";
--DBCS_Region_liste_maj["098"] = "Le bastion du Cr\195\169puscule";
--DBCS_Region_liste_maj["099"] = "Descente de l'Aile noire";
--DBCS_Region_liste_maj["0A0"] = "Cime du Vortex";
--DBCS_Region_liste_maj["0A1"] = "Cit\195\169 perdue des Tol'vir";
--DBCS_Region_liste_maj["0A2"] = "Tr\195\180ne des quatre vents";
--DBCS_Region_liste_maj["0A3"] = "Bastion de Baradin";
--DBCS_Region_liste_maj["0A5"] = "Pics Jumeaux";

--DBCS_Region_liste_maj["097"] = "x097";
--DBCS_Region_liste_maj["0A4"] = "x0A4";
--DBCS_Region_liste_maj["0A7"] = "Front du Magma";
--DBCS_Region_liste_maj["0A8"] = "Le Nexus - L\195\169gendaire";

--DBCS_Region_liste_maj["500"] = "Cataclysme";	--Région du maelström
--DBCS_Region_liste_maj["500"] = "Région du maelström";	--Région du maelström
--DBCS_Region_liste_maj["501"] = "xDeepholm";
--DBCS_Region_liste_maj["502"] = "xGiln\195\169as";
--DBCS_Region_liste_maj["503"] = "xVille de Giln\195\169as";
--DBCS_Region_liste_maj["504"] = "xHyjal";
--DBCS_Region_liste_maj["505"] = "xKezan";
--DBCS_Region_liste_maj["506"] = "xRuines de Giln\195\169as";
--DBCS_Region_liste_maj["507"] = "xLes \195\174les perdues";
--DBCS_Region_liste_maj["508"] = "xVashj'ir";
--DBCS_Region_liste_maj["509"] = "xVashj'ir Kelp Forest";
--DBCS_Region_liste_maj["510"] = "xVashj'ir Ruines";

DBCS_Region_liste_maj["132"] = "Les bassins de Vapeur";

--DBCS_Region_liste_maj["131"] = "Uldum";

--if ( DBCS_Region_wow_build_info > DBCS_Region_wow_build_info_live ) then
--DBCS_Region_liste_maj["0AB"] = "\195\130me des dragons";
--DBCS_Region_liste_maj["0AC"] = "La Fin des temps";
--DBCS_Region_liste_maj["0AD"] = "L'Heure du Cr\195\169puscule";
--DBCS_Region_liste_maj["0AE"] = "Puits d'\195\137ternit\195\169";
--DBCS_Region_liste_maj["0AF"] = "Foire de Sombrelune";
--end

for i = 1 , table.getn(DBCS_Region_liste[0]) do
	if ( DBCS_Region_liste_maj[DBCS_Region_liste[0][i].sval] ) then
		DBCS_Region_liste[0][i].name = DBCS_Region_liste_maj[DBCS_Region_liste[0][i].sval];
	end
end

--/script DBCS_region_tester_difficulte();
--/script DBCS_region_tester_difficulte(0);

--/script DBCS_Region_LoadZones2(0);	-- rien
--/script DBCS_Region_LoadZones2(1);	-- kalimdor
--/script DBCS_Region_LoadZones2(2);	-- royaumes de l'est
--/script DBCS_Region_LoadZones2(3);	-- outreterre
--/script DBCS_Region_LoadZones2(4);	-- norfendre
--/script DBCS_Region_LoadZones2(5);	-- Maelstrom
--/script DBCS_Region_LoadZones2(6);	-- Pandarie
--/script DBCS_Region_LoadZones2(7);	-- Draenor
if ( ( 1 == 0 ) and ( DBCS_Region_wow_build_info > DBCS_Region_wow_build_info_live ) ) then
	function DBCS_Region_LoadZones2(icont)

		local tablo;
		local idx;
		local zone;
		local tablo_areaid;
		local tablo_name;
		local inumMapAreaID;
		local dbcs_mapFileName;
		local dbcs_textureHeight;
		local dbcs_textureWidth;
		--local dbcs_isMicrodungeon;
		--local dbcs_microDungeonMapName;

		if ( icont ) then
			inumMapAreaID = GetCurrentMapAreaID();
			tablo_areaid = {};
			tablo_name = {};
			i = 0;
			j = 0;
			tablo = { GetMapZones(icont) };
			for idx, zone in ipairs(tablo) do
				if ( i == 0 ) then
					j = j + 1;
					tablo_areaid[j] = zone;
					i = 1;
				else
					tablo_name[j] = zone;
					i = 0;
					SetMapByID(tablo_areaid[j]);
					--mapFileName, textureHeight, textureWidth, isMicrodungeon, microDungeonMapName = GetMapInfo();
					dbcs_mapFileName, dbcs_textureHeight, dbcs_textureWidth, _, _ = GetMapInfo();
					DEFAULT_CHAT_FRAME:AddMessage("areaid = "..tablo_areaid[j].." , nom = "..tablo_name[j].." , fichier : "..dbcs_mapFileName.." , longueur : "..dbcs_textureWidth.." , hauteur : "..dbcs_textureHeight);
				end
				--DEFAULT_CHAT_FRAME:AddMessage("Zone #"..idx .. ": " .. zone);
			end
			SetMapByID(inumMapAreaID);
		else
			return nil;
		end

	end
else
	function DBCS_Region_LoadZones2(icont)

		local dbcs_mapFileName;
		local dbcs_textureHeight;
		local dbcs_textureWidth;
		local tablo;

		if ( icont ) then
			tablo = { GetMapZones(icont) };
		else
			return nil;
		end
		for i = 1 , table.getn(tablo) do
			SetMapZoom(icont,i);
			--mapFileName, textureHeight, textureWidth, isMicrodungeon, microDungeonMapName = GetMapInfo();
			dbcs_mapFileName, dbcs_textureHeight, dbcs_textureWidth = GetMapInfo();
			DEFAULT_CHAT_FRAME:AddMessage("continent "..icont.." region "..i.." = "..tablo[i].." fichier : "..dbcs_mapFileName.." longueur : "..dbcs_textureWidth.." hauteur : "..dbcs_textureHeight);
		end
	end
end

--/script DBCS_Region_GetMapInfo();
function DBCS_Region_GetMapInfo()

	local inumMapAreaID;
	local dbcs_mapFileName;
	local dbcs_textureHeight;
	local dbcs_textureWidth;
	local dbcs_isMicrodungeon;
	local dbcs_microDungeonMapName;

	inumMapAreaID = GetCurrentMapAreaID();
	--mapFileName, textureHeight, textureWidth, isMicrodungeon, microDungeonMapName = GetMapInfo();
	dbcs_mapFileName, dbcs_textureHeight, dbcs_textureWidth, isMicrodungeon, microDungeonMapName = GetMapInfo();
	DEFAULT_CHAT_FRAME:AddMessage("areaid = "..inumMapAreaID.." , fichier : "..dbcs_mapFileName.." , longueur : "..dbcs_textureWidth.." , hauteur : "..dbcs_textureHeight.." , microDungeonMapName : "..(microDungeonMapName or ""));

end


DBCS_Region_liste[1] = {};
DBCS_Region_liste[1][1] = { sval = "102", srepertoire = "Aszhara", areaid = 181, ressx = .3, ressy = .4, xoffset = 11.816964164306*140, yoffset = 7.8794647799923*140 };
DBCS_Region_liste[1][2] = { sval = "121", srepertoire = "Winterspring", areaid = 281, ressx = .2, ressy = .3, xoffset = 13.178574221365*140, yoffset = 8.7857156548908*140 };
DBCS_Region_liste[1][3] = { sval = "120", srepertoire = "UngoroCrater", areaid = 201, ressx = .3, ressy = .4, xoffset = 7.9285717718734*140, yoffset = 5.285714411899*140, dungeon = { [14] = "0CD" } };
DBCS_Region_liste[1][4] = { sval = "104", srepertoire = "Darnassus", areaid = 381, ressx = .8, ressy = 1.1, xoffset = 3.2991071989217*140, yoffset = 2.2008922739032*140 };
DBCS_Region_liste[1][5] = { sval = "105", srepertoire = "Desolace", areaid = 101, ressx = .3, ressy = .4, xoffset = 9.6339282842797*140, yoffset = 6.424107533692*140, dungeon = { [21] = "0BB", [22] = "0BB" } };
DBCS_Region_liste[1][6] = { sval = "106", srepertoire = "Durotar", areaid = 4, ressx = .3, ressy = .4, xoffset = 11.330357216461*140, yoffset = 7.5535709911011*140, dungeon = { [8] = "0BH", [9] = "0BK", [10] = "0BL", [11] = "0BL", [12] = "0BJ", [19] = "0BI" } };
DBCS_Region_liste[1][7] = { sval = "109", srepertoire = "Feralas", areaid = 121, ressx = .2, ressy = .3, xoffset = 14.892860656301*140, yoffset = 9.9285715834224*140 };
DBCS_Region_liste[1][8] = { sval = "108", srepertoire = "Felwood", areaid = 182, ressx = .2, ressy = .3, xoffset = 12.991071918806*140, yoffset = 8.6607137833076*140 };
DBCS_Region_liste[1][9] = { sval = "123", srepertoire = "AzuremystIsle", areaid = 464, ressx = .3, ressy = .5, xoffset = 8.7232153569286*140, yoffset = 5.8169637646459*140, dungeon = { [3] = "0B1", [2] = "0B5" } };
DBCS_Region_liste[1][10] = { sval = "124", srepertoire = "BloodmystIsle", areaid = 476, ressx = .4, ressy = .6, xoffset = 6.9910693234749*140, yoffset = 4.6607148280755*140 };
DBCS_Region_liste[1][11] = { sval = "125", srepertoire = "TheExodar", areaid = 471, ressx = 1.1, ressy = 1.6, xoffset = 3.5225682751722*140, yoffset = 2.3489590790948*140 };
DBCS_Region_liste[1][12] = { sval = "119", srepertoire = "ThunderBluff", areaid = 362, ressx = 1.6, ressy = 2.4, xoffset = 2.236607340624*140, yoffset = 1.4910714018777*140 };
DBCS_Region_liste[1][13] = { sval = "114", srepertoire = "StonetalonMountains", areaid = 81, ressx = .2, ressy = .3, xoffset = 12.642857710043*140, yoffset = 8.428571732781*140 };
DBCS_Region_liste[1][14] = { sval = "117", srepertoire = "Barrens", areaid = 11, ressx = .2, ressy = .3, xoffset = 12.312500827552*140, yoffset = 8.2098210781797*140, dungeon = { [20] = "0B7" } };
DBCS_Region_liste[1][15] = { sval = "107", srepertoire = "Dustwallow", areaid = 141, ressx = .3, ressy = .4, xoffset = 11.250000338283*140, yoffset = 7.500000225981*140 };
DBCS_Region_liste[1][16] = { sval = "118", srepertoire = "ThousandNeedles", areaid = 61, ressx = .3, ressy = .4, xoffset = 9.428571777382*140, yoffset = 6.2857140725233*140 };
DBCS_Region_liste[1][17] = { sval = "111", srepertoire = "Mulgore", areaid = 9, ressx = .3, ressy = .5, xoffset = 11.678572457927*140, yoffset = 7.7857140970551*140, dungeon = { [6] = "0BX", [7] = "0BY" } };
DBCS_Region_liste[1][18] = { sval = "112", srepertoire = "Orgrimmar", areaid = 321, inbnivmin = 0, inbnivmax = 1, inumniv = 0 };
DBCS_Region_liste[1][19] = { sval = "101", srepertoire = "Ashenvale", areaid = 43, ressx = .2, ressy = .3, xoffset = 12.357142381668*140, yoffset = 8.236607333274*140 };
DBCS_Region_liste[1][20] = { sval = "110", srepertoire = "Moonglade", areaid = 241, ressx = .5, ressy = .8, xoffset = 4.9464283634163*140, yoffset = 3.2991061695218*140 };
DBCS_Region_liste[1][21] = { sval = "113", srepertoire = "Silithus", areaid = 261, ressx = .3, ressy = .5, xoffset = 8.6964283800768*140, yoffset = 5.7991066787223*140, dungeon = { [13] = "0C1" } };
DBCS_Region_liste[1][22] = { sval = "103", srepertoire = "Darkshore", areaid = 42, ressx = .2, ressy = .3, xoffset = 13.852679143454*140, yoffset = 9.2366065434253*140 };
DBCS_Region_liste[1][23] = { sval = "115", srepertoire = "Tanaris", areaid = 161, ressx = .2, ressy = .3, xoffset = 15.455354979089*140, yoffset = 10.303571885635*140, dungeon = { [15] = "0C4", [16] = "0C3", [17] = "0C2", [18] = "0C2" } };
DBCS_Region_liste[1][24] = { sval = "116", srepertoire = "Teldrassil", areaid = 41, ressx = .2, ressy = .3, xoffset = 12.589286349701*140, yoffset = 8.3928580135993*140, dungeon = { [2] = "0C7", [3] = "0C6", [4] = "0C5", [5] = "0C5" } };
DBCS_Region_liste[1][25] = { sval = "128", srepertoire = "AhnQirajTheFallenKingdom", areaid = 772, ressx = .3, ressy = .5, xoffset = 8.6785760527595*140, yoffset = 5.7857134305916*140 };		--complet
--DBCS_Region_liste[1][26] = { sval = "129", srepertoire = "Hyjal_terrain1", areaid = 606, ressx = .5, ressy = .6, xoffset = 9.0982470468022*140, yoffset = 6.0669674406747*140 };				--complet
DBCS_Region_liste[1][26] = { sval = "129", srepertoire = "Hyjal", areaid = 606, ressx = .5, ressy = .6, xoffset = 9.098215859332*140, yoffset = 6.0669640313341*140 };							--complet
DBCS_Region_liste[1][27] = { sval = "130", srepertoire = "SouthernBarrens", areaid = 607, ressx = .2, ressy = .3, xoffset = 15.883932368732*140, yoffset = 10.589286870254*140 };				--complet
--	DBCS_Region_liste[1][28] = { sval = "131", srepertoire = "Uldum", areaid = 720, srepertoire = "minimap" };
DBCS_Region_liste[1][28] = { sval = "131", srepertoire = "Uldum", areaid = 720, ressx = .2, ressy = .3, xoffset = 13.272324382002*140, yoffset = 8.848214894632*140 };							--complet
--	DBCS_Region_liste[1][29] = { sval = "132" };
DBCS_Region_liste[1][29] = { sval = "133", srepertoire = "CampNaracheStart", areaid = 890, ressx = 0, ressy = 0, xoffset = 000*140, yoffset = 000*140 };
DBCS_Region_liste[1][30] = { sval = "134", srepertoire = "EchoIslesStart", areaid = 891, ressx = 0, ressy = 0, xoffset = 000*140, yoffset = 000*140, dungeon = { [9] = "0E2" } };
DBCS_Region_liste[1][31] = { sval = "135", srepertoire = "ShadowglenStart", areaid = 888, ressx = 0, ressy = 0, xoffset = 000*140, yoffset = 000*140 };
DBCS_Region_liste[1][32] = { sval = "136", srepertoire = "AmmenValeStart", areaid = 894, ressx = 0, ressy = 0, xoffset = 000*140, yoffset = 000*140 };
DBCS_Region_liste[1][33] = { sval = "137", srepertoire = "ValleyofTrialsStart", areaid = 889, ressx = 0, ressy = 0, xoffset = 000*140, yoffset = 000*140 };
DBCS_Region_liste[1][34] = { sval = "107", srepertoire = "Dustwallow_terrain1", areaid = 141, ressx = .3, ressy = .4, xoffset = 11.250000338283*140, yoffset = 7.500000225981*140 };
DBCS_Region_liste[1][35] = { sval = "129", srepertoire = "Hyjal_terrain1", areaid = 606, ressx = .5, ressy = .6, xoffset = 9.098215859332*140, yoffset = 6.0669640313341*140 };							--complet
DBCS_Region_liste[1][36] = { sval = "131", srepertoire = "Uldum_terrain1", areaid = 720, ressx = .2, ressy = .3, xoffset = 13.272324382002*140, yoffset = 8.848214894632*140 };							--complet

DBCS_Region_liste[2] = {};
DBCS_Region_liste[2][1] = { sval = "208", srepertoire = "Duskwood", areaid = 34, ressx = .5, ressy = .7, xoffset = 5.7857140228167*140, yoffset = 3.857142917464*140 };
DBCS_Region_liste[2][2] = { sval = "228", srepertoire = "EversongWoods", areaid = 462, ressx = .3, ressy = .4, xoffset = 10.55357134582*140, yoffset = 7.0357135280957*140 };
DBCS_Region_liste[2][3] = { sval = "221", srepertoire = "Tirisfal", areaid = 20, ressx = .4, ressy = .5, xoffset = 9.6830371002281*140, yoffset = 6.4553569933215*140, dungeon = { [12] = "0CA", [13] = "0CB" } };
DBCS_Region_liste[2][4] = { sval = "211", srepertoire = "HillsbradFoothills", areaid = 24, ressx = .3, ressy = .4, xoffset = 10.419641080524*140, yoffset = 6.9464289888028*140 };
DBCS_Region_liste[2][5] = { sval = "206", srepertoire = "DeadwindPass", areaid = 32, ressx = .5, ressy = .7, xoffset = 5.3571434189483*140, yoffset = 3.5714295754253*140 };
DBCS_Region_liste[2][6] = { sval = "207", srepertoire = "DunMorogh", areaid = 27, ressx = .3, ressy = .4, xoffset = 10.495536578904*140, yoffset = 6.9955360537717*140, dungeon = { [6] = "0BC", [7] = "0BG", [8] = "0BD", [10] = "0BE", [11] = "0BF" } };
DBCS_Region_liste[2][7] = { sval = "210", srepertoire = "Elwynn", areaid = 30, ressx = .5, ressy = .7, xoffset = 7.4374996165285*140, yoffset = 4.9598212527736*140, dungeon = { [1] = "0BM", [2] = "0BM", [19] = "0BN" } };
DBCS_Region_liste[2][8] = { sval = "216", srepertoire = "Silverpine", areaid = 21, ressx = .4, ressy = .6, xoffset = 9*140, yoffset = 6.0000007643011*140 };
DBCS_Region_liste[2][9] = { sval = "212", srepertoire = "Ironforge", areaid = 341, ressx = 1.5, ressy = 2.3, xoffset = 2.6354169453879*140, yoffset = 1.7586815229598*140 };
DBCS_Region_liste[2][10] = { sval = "222", srepertoire = "Undercity", areaid = 382, ressx = 1.2, ressy = 1.7, xoffset = 3.1979169338391*140, yoffset = 2.1336802171369*140 };
DBCS_Region_liste[2][11] = { sval = "215", srepertoire = "SearingGorge", areaid = 28, ressx = .5, ressy = .8, xoffset = 4.7812499414435*140, yoffset = 3.1874991460834*140, dungeon = { [14] = "0C0", [15] = "0C0", [16] = "0C0" } };
DBCS_Region_liste[2][12] = { sval = "202", srepertoire = "Arathi", areaid = 16, ressx = .4, ressy = .5, xoffset = 7.4508937994944*140, yoffset = 4.9687501593801*140 };
--DBCS_Region_liste[2][13] = { sval = "217", srepertoire = "Stormwind", areaid = 301, ressx = .6, ressy = 1, xoffset = 3.7232143464559*140, yoffset = 2.4821424634216*140 };
DBCS_Region_liste[2][13] = { sval = "217", srepertoire = "StormwindCity", areaid = 301, ressx = .6, ressy = 1, xoffset = 3.7232143464559*140, yoffset = 2.4821424634216*140 };
DBCS_Region_liste[2][14] = { sval = "231", srepertoire = "Sunwell", areaid = 499, ressx = .4, ressy = .5, xoffset = 7.1294645006307*140, yoffset = 4.7544625399383*140 };
DBCS_Region_liste[2][15] = { sval = "214", srepertoire = "Redridge", areaid = 36, ressx = .5, ressy = .7, xoffset = 5.5044654268758*140, yoffset = 3.6696429938865*140 };
DBCS_Region_liste[2][16] = { sval = "220", srepertoire = "Hinterlands", areaid = 26, ressx = .3, ressy = .5, xoffset = 8.2500013829906*140, yoffset = 5.5000001258384*140 };
DBCS_Region_liste[2][17] = { sval = "225", srepertoire = "Wetlands", areaid = 40, ressx = .3, ressy = .4, xoffset = 8.8616074054124*140, yoffset = 5.9062501883699*140 };
DBCS_Region_liste[2][18] = { sval = "229", srepertoire = "Ghostlands", areaid = 463, ressx = .5, ressy = .7, xoffset = 7.0714288963008*140, yoffset = 4.7142850658665*140, dungeon = { [1] = "0BO" } };
DBCS_Region_liste[2][19] = { sval = "213", srepertoire = "LochModan", areaid = 35, ressx = .4, ressy = .6, xoffset = 5.9107136623974*140, yoffset = 3.941963705629*140 };
DBCS_Region_liste[2][20] = { sval = "230", srepertoire = "SilvermoonCity", areaid = 480, ressx = 1, ressy = 1.5, xoffset = 4.038195010892*140, yoffset = 2.6892350888179*140 };
DBCS_Region_liste[2][21] = { sval = "209", srepertoire = "EasternPlaguelands", areaid = 23, ressx = .4, ressy = .6, xoffset = 8.6383932788755*140, yoffset = 5.7589294044219*140 };
DBCS_Region_liste[2][22] = { sval = "223", srepertoire = "WesternPlaguelands", areaid = 22, ressx = .4, ressy = .5, xoffset = 9.2142858631985*140, yoffset = 6.14285694066*140 };
DBCS_Region_liste[2][23] = { sval = "219", srepertoire = "SwampOfSorrows", areaid = 38, ressx = .5, ressy = .7, xoffset = 5.3749996278412*140, yoffset = 3.584822325826*140 };
DBCS_Region_liste[2][24] = { sval = "224", srepertoire = "Westfall", areaid = 39, ressx = .4, ressy = .6, xoffset = 7.5000024091703*140, yoffset = 4.9999995427169*140, dungeon = { [4] = "0CE", [5] = "0CF", [17] = "0CM" } };
DBCS_Region_liste[2][25] = { sval = "205", srepertoire = "BurningSteppes", areaid = 29, ressx = .4, ressy = .6, xoffset = 6.7544646470175*140, yoffset = 4.4999994139691*140, dungeon = { [14] = "0B9", [15] = "0B9", [16] = "0B9" } };
DBCS_Region_liste[2][26] = { sval = "204", srepertoire = "BlastedLands", areaid = 19, ressx = .3, ressy = .5, xoffset = 7.8482151005985*140, yoffset = 5.2321420380562*140 };
DBCS_Region_liste[2][27] = { sval = "203", srepertoire = "Badlands", areaid = 17, ressx = .4, ressy = .6, xoffset = 6.5803578929973*140, yoffset = 4.3839285657094*140, dungeon = { [18] = "0E0" } };
DBCS_Region_liste[2][28] = { sval = "218", srepertoire = "StranglethornVale", areaid = 689 };
DBCS_Region_liste[2][29] = { sval = "232", srepertoire = "TheCapeOfStranglethorn", areaid = 673, ressx = .3, ressy = .5, xoffset = 8.4553566977002*140, yoffset = 5.638393266828*140 };	--complet
DBCS_Region_liste[2][30] = { sval = "233", srepertoire = "VashjirRuins", areaid = 615, ressx = .3, ressy = .4, xoffset = 10.392861440023*140, yoffset = 6.9285716112406*140 };				--complet
DBCS_Region_liste[2][31] = { sval = "234", srepertoire = "VashjirKelpForest", areaid = 610, ressx = .4, ressy = .6, xoffset = 6.0044643787165*140, yoffset = 4.0044650596353*140 };			--complet
--	DBCS_Region_liste[2][32] = { sval = "235", srepertoire = "TwilightHighlands", srepertoire = "minimap", ressx = .2, ressy = .3, xoffset = 19.2*140, yoffset = 12.8*140 };		--à recalculer après le 7 décembre		presque vide	37/35	->37/42		45/35	->	45/42
DBCS_Region_liste[2][32] = { sval = "235", srepertoire = "TwilightHighlands", areaid = 700, ressx = .3, ressy = .4, xoffset = 11.294642347213*140, yoffset = 7.5312496801509*140 };		--presque vide	37/35	->37/42		45/35	->	45/42
--TwilightHighlands_terrain1
DBCS_Region_liste[2][33] = { sval = "236", srepertoire = "TolBaradDailyArea", areaid = 709, ressx = .6, ressy = 1, xoffset = 3.9375004098347*140, yoffset = 2.6250001573194*140 };			--complet
DBCS_Region_liste[2][34] = { sval = "237", srepertoire = "VashjirDepths", areaid = 614, ressx = .4, ressy = .5, xoffset = 8.7321431883955*140, yoffset = 5.8214286849345*140 };				--complet
DBCS_Region_liste[2][35] = { sval = "238", srepertoire = "RuinsofGilneas", areaid = 684, ressx = .4, ressy = .6, xoffset = 6.7410716373164*140, yoffset = 4.4955362088023*140, dungeon = { [1] = "0BP", [2] = "0BQ", [3] = "0BQ" } };			--complet
DBCS_Region_liste[2][36] = { sval = "239", srepertoire = "RuinsofGilneasCity", areaid = 685 };		--complet
DBCS_Region_liste[2][37] = { sval = "240", srepertoire = "StranglethornJungle", areaid = 37, ressx = .4, ressy = .5, xoffset = 8.7857156642983*140, yoffset = 5.8571418866476*140 };		--complet
DBCS_Region_liste[2][38] = { sval = "241", srepertoire = "Vashjir", areaid = 613 };					--3 zones complet
DBCS_Region_liste[2][39] = { sval = "242", srepertoire = "TolBarad", areaid = 708, ressx = .7, ressy = 1.3, xoffset = 4.3169645422547*140, yoffset = 2.8794645443357*140 };					--complet
DBCS_Region_liste[2][40] = { sval = "243", srepertoire = "Northshire", areaid = 864, ressx = 0, ressy = 0, xoffset = 000*140, yoffset = 000*140, dungeon = { [3] = "0BZ" } };
DBCS_Region_liste[2][41] = { sval = "244", srepertoire = "SunstriderIsleStart", areaid = 893, ressx = 0, ressy = 0, xoffset = 000*140, yoffset = 000*140 };
DBCS_Region_liste[2][42] = { sval = "245", srepertoire = "NewTinkertownStart", areaid = 895, ressx = 0, ressy = 0, xoffset = 000*140, yoffset = 000*140, dungeon = { [8] = "0E3" } };
DBCS_Region_liste[2][43] = { sval = "246", srepertoire = "DeathknellStart", areaid = 892, ressx = 0, ressy = 0, xoffset = 000*140, yoffset = 000*140, dungeon = { [12] = "0E1" } };
DBCS_Region_liste[2][44] = { sval = "247", srepertoire = "ColdridgeValley", areaid = 866, ressx = 0, ressy = 0, xoffset = 000*140, yoffset = 000*140, dungeon = { [9] = "0BA" } };
DBCS_Region_liste[2][45] = { sval = "204", srepertoire = "BlastedLands_terrain1", areaid = 19, ressx = .3, ressy = .5, xoffset = 7.8482151005985*140, yoffset = 5.2321420380562*140 };
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0DR", instancelock = 1190, srepertoire = "BlastedLands_terrain1", areaid = 992 };													--	Terres Foudroyées

DBCS_Region_liste[3] = {};
DBCS_Region_liste[3][1] = { sval = "301", srepertoire = "TerokkarForest", areaid = 478, ressx = 0.3, ressy = 0.4, xoffset = 11.571432231877*140, yoffset = 7.7142877761324*140 };
DBCS_Region_liste[3][2] = { sval = "302", srepertoire = "BladesEdgeMountains", areaid = 475, ressx = 0.5, ressy = 0.5, xoffset = 11.625000994474*140, yoffset = 7.7499830302062*140 };
DBCS_Region_liste[3][3] = { sval = "303", srepertoire = "Zangarmarsh", areaid = 467, ressx = 0.3, ressy = 0.4, xoffset = 10.772321954251*140, yoffset = 7.183035340306*140 };
DBCS_Region_liste[3][4] = { sval = "304", srepertoire = "Nagrand", areaid = 477, ressx = 0.3, ressy = 0.4, xoffset = 11.839286043747*140, yoffset = 7.892857099929*140 };
DBCS_Region_liste[3][5] = { sval = "305", srepertoire = "Hellfire", areaid = 465, ressx = 0.3, ressy = 0.5, xoffset = 11.066964181615*140, yoffset = 7.3794648925552*140 };
DBCS_Region_liste[3][6] = { sval = "306", srepertoire = "Netherstorm", areaid = 479, ressx = 0.3, ressy = 0.4, xoffset = 11.94643149417*140, yoffset = 7.9642908798714*140 };
DBCS_Region_liste[3][7] = { sval = "307", srepertoire = "ShattrathCity", areaid = 481, ressx = 0.9, ressy = 1.3, xoffset = 2.799107497705*140, yoffset = 1.8660716634791*140 };
DBCS_Region_liste[3][8] = { sval = "308", srepertoire = "ShadowmoonValley", areaid = 473, ressx = 0.5, ressy = 0.5, xoffset = 11.785677199508*140, yoffset = 7.8571433441524*140 };

DBCS_Region_liste[4] = {};
DBCS_Region_liste[4][1] = { sval = "401", srepertoire = "SholazarBasin", 										areaid = 493, ressx = 0.3, ressy = 0.4, xoffset = 9.3348217179068*140, yoffset = 6.2232143846404*140 };
DBCS_Region_liste[4][2] = { sval = "402", srepertoire = "Dalaran", inbnivmin = 1, inbnivmax = 2, inumniv = 1, 	areaid = 504, ressx = 1.4, ressy = 2.0, xoffset = 0, yoffset = 0 };
DBCS_Region_liste[4][3] = { sval = "403", srepertoire = "Dragonblight", 										areaid = 488, ressx = 0.3, ressy = 0.4, xoffset = 12.017857931246*140, yoffset = 8.0133927020075*140 };
DBCS_Region_liste[4][4] = { sval = "404", srepertoire = "HowlingFjord", 										areaid = 491, ressx = 0.2, ressy = 0.3, xoffset = 12.955356485597*140, yoffset = 8.638392307217*140 };
DBCS_Region_liste[4][5] = { sval = "405", srepertoire = "CrystalsongForest", 									areaid = 510, ressx = 0.6, ressy = 0.8, xoffset = 5.8348217465161*140, yoffset = 3.8883924013648*140 };
DBCS_Region_liste[4][6] = { sval = "412", srepertoire = "LakeWintergrasp", 										areaid = 501, ressx = 0.4, ressy = 0.6, xoffset = 6.3749998969254*140, yoffset = 4.2499996781012*140 };
DBCS_Region_liste[4][7] = { sval = "406", srepertoire = "IcecrownGlacier", 										areaid = 492, ressx = 0.2, ressy = 0.3, xoffset = 13.437500878722*140, yoffset = 8.9598218911521*140 };
DBCS_Region_liste[4][8] = { sval = "407", srepertoire = "GrizzlyHills", 										areaid = 490, ressx = 0.3, ressy = 0.4, xoffset = 11.249999691435*140, yoffset = 7.499999662097*140 };
DBCS_Region_liste[4][9] = { sval = "408", srepertoire = "TheStormPeaks", 										areaid = 495, ressx = 0.2, ressy = 0.3, xoffset = 15.241070088061*140, yoffset = 10.160712193375*140 };
DBCS_Region_liste[4][10] = { sval = "409", srepertoire = "BoreanTundra", 										areaid = 486, ressx = 0.2, ressy = 0.3, xoffset = 12.352677233154*140, yoffset = 8.2366077617482*140 };
DBCS_Region_liste[4][11] = { sval = "410", srepertoire = "ZulDrak", 											areaid = 496, ressx = 0.3, ressy = 0.4, xoffset = 10.700893141374*140, yoffset = 7.133928606478*140 };
DBCS_Region_liste[4][12] = { sval = "414", srepertoire = "HrothgarsLanding", 									areaid = 541, ressx = 0.4, ressy = 0.6, xoffset = 7.8794654684891*140, yoffset = 5.2544658735575*140 };

DBCS_Region_liste[5] = {};
--	DBCS_Region_liste[5][1] = { sval = "501", srepertoire = "Kezan", srepertoire = "minimap", ressx = .5, ressy = .8, xoffset = 4.83*140, yoffset = 3.66*140 };	--à recalculer après le 7 décembre
DBCS_Region_liste[5][1] = { sval = "501", srepertoire = "Kezan", areaid = 605, ressx = .9, ressy = 1.3, xoffset = 2.8973217456779*140, yoffset = 1.9285726722541*140, dungeon = { [5] = "0BR", [6] = "0BR", [7] = "0BR" } };
DBCS_Region_liste[5][2] = { sval = "502", srepertoire = "TheMaelstrom", areaid = 737 };
DBCS_Region_liste[5][3] = { sval = "503", srepertoire = "Deepholm", areaid = 640, ressx = 0.3, ressy = 0.4, xoffset = 10.928572412467*140, yoffset = 7.2857148255177*140 };		--complet
--	DBCS_Region_liste[5][4] = { sval = "504", srepertoire = "TheLostIsles", srepertoire = "minimap", ressx = 0.2, ressy = 0.3, xoffset = 14.63*140, yoffset = 9.14*140 };	--à recalculer après le 7 décembre
DBCS_Region_liste[5][4] = { sval = "504", srepertoire = "TheLostIsles", areaid = 544, ressx = 0.4, ressy = 0.5, xoffset = 9.6741051201684*140, yoffset = 6.4508919442989*140, dungeon = { [1] = "0C8", [2] = "0C9", [3] = "0CG", [4] = "0CG" } };
--TheLostIsles_terrain1
--TheLostIsles_terrain2

--/script DBCS_minimapinit_origin();
--/script DBCS_minimapinit_arrivee();
--/script DBCS_region_tester_difficulte();
DBCS_Region_liste[6] = {};
DBCS_Region_liste[6][1] = { sval = "601", srepertoire = "Krasarang", areaid = 857, ressx = 0.3, ressy = 0.4, xoffset = 10.044646941084*140, yoffset = 6.6964290174958*140, dungeon = { [1] = "0CX", [2] = "0CX", [3] = "0CX"} };
--DBCS_Region_liste[6][1] = { sval = "601", srepertoire = "Krasarang", areaid = 857, ressx = 0.3, ressy = 0.4, xoffset = 10.044646941084*140, yoffset = 6.6964290174958*140 };
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0CX", smicrodungeon = "Krasarang_Terrain1", srepertoire = "RuinsofOgudei", inbnivmin = 1, inbnivmax = 3, inumniv = 1, sregionloc = "601" };
--AnglersOutpost		/
--CradleOfChiji			/
--DojaniRiver			/
--FallsongRiver			/
--krasarangCove			/
--LostDynasty			/
--NayeliLagoon			/
--RedwingRefuge			/
--RuinsOfDojan			/
--RuinsOfKorja			/
--TempleOfTheRedCrane	/
--TheDeepwild			/
--TheForbiddenJungle	/
--TheSouthernIsles		/
--UngaIngoo				/
--ZhusBastion			/
DBCS_Region_liste[6][2] = { sval = "602", srepertoire = "TheJadeForest", areaid = 806, ressx = 0.2, ressy = 0.3, xoffset = 14.964282144684*140, yoffset = 9.9732162888034*140, dungeon = { [6] = "0B0", [7] = "0B0", [15] = "0B2", [16] = "0DZ"} };
--donjon	nivcarte	6	Carrière de Pierre-Verte		MicroDungeon	TheJadeForest	GreenstoneQuarry	6	7
--donjon	nivcarte	15	????????????????????????		MicroDungeon	TheJadeForest	TheWidowsWail		15	15
--ChunTianMonastery			/
--DawnsBlossom				/
--DreamersPavillion			/
--EmperorsOmen				/
--GlassfinVillage			/
--GrookinMound				/
--HellscreamsHope			/
--JadeMines					/
--NectarbreezeOrchard		/
--NookaNooka				/
--RuinsOfGanShi				/
--SerpentsSpine				/
--SlingtailPits				/
--TempleOfTheJadeSerpent	/
--TheArboretum				/
--Waywardlanding			/
--WindlessIsle				/
--WreckOfTheSkyShark		/
DBCS_Region_liste[6][3] = { sval = "603", srepertoire = "TheHiddenPass", areaid = 873, ressx = 0.7, ressy = 1, xoffset = 3.8437502949733*140, yoffset = 2.562499119746*140, dungeon = { [5] = "0B3" } };
--donjon	nivcarte	5	L'ancien Passage		MicroDungeon	TheHiddenPass	TheAncientPassage	5	5
--TheBlackMarket			/
--TheHiddenCliffs			/
--TheHiddenSteps			/
--DBCS_Region_liste[6][4] = { sval = "604", srepertoire = "ValeofEternalBlossoms" };				--	?
--DBCS_Region_liste[6][5] = { sval = "605", srepertoire = "ValeofEternalBlossoms" };				--	?
DBCS_Region_liste[6][4] = { sval = "606", srepertoire = "KunLaiSummit", areaid = 809, ressx = 0.3, ressy = 0.4, xoffset = 13.410714606682*140, yoffset = 8.9419658408283*140, dungeon = { [8] = "0BS", [9] = "0BU", [10] = "0BT", [11] = "0BV", [12] = "0BV", [17] = "0BW", [20] = "0CW", [21] = "0CW" } };
--DBCS_Region_liste[6][4] = { sval = "606", srepertoire = "KunLaiSummit", areaid = 809, ressx = 0.3, ressy = 0.4, xoffset = 13.410714606682*140, yoffset = 8.9419658408283*140, dungeon = { [8] = "0BS", [9] = "0BU", [10] = "0BT", [11] = "0BV", [12] = "0BV", [17] = "0BW" } };
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0CW", smicrodungeon = "KunLaiSummit", srepertoire = "RuinsofKorune", inbnivmin = 20, inbnivmax = 21, inumniv = 20, sregionloc = "606" };
--BinanVillage				/
--FireboughNook				/
--GateoftheAugust			/
--Iseoflostsouls			/
--Kotapeak					/
--Mogujia					/
--MountNeverset				/
--MuskpawRanch				/
--PeakOfSerenity			/
--ShadowPanMonastery		/
--TempleoftheWhitetiger		/
--TheBurlapTrail			/
--ValleyOfEmperors			/
--ZouchinVillage			/
DBCS_Region_liste[6][5] = { sval = "607", srepertoire = "TownlongWastes", areaid = 810, ressx = 0.2, ressy = 0.3, xoffset = 12.308033940361*140, yoffset = 8.2053561547544*140, dungeon = { [13] = "0CC" } };
--GaoRanBlockade		/
--Krivess				/
--MingChiCrossroads		/
--NiuzaoTemple			/
--OsulMesa				/
--palewindVillage		/
--ShadoPanGarrison		/
--ShanzeDao				/
--Sikvess				/
--SriVess				/
--TheSumprushes			/
DBCS_Region_liste[6][6] = { sval = "608", srepertoire = "DreadWastes", areaid = 858, ressx = 0.3, ressy = 0.4, xoffset = 11.468748514843*140, yoffset = 7.6473245560987*140 };	--terres de l'angoisse
--Brewgarden			/
--BrinyMuck				/
--ClutchesOfShekzeer	/
--DreadwaterLake		/
--heartOfFear			/
--HorridMarch			/
--KlaxxiVess			/
--KypariVor				/
--RikkitunVillage		/
--SoggysGamble			/
--TerraceOfGurthan		/
--ZanVess				/
DBCS_Region_liste[6][7] = { sval = "609", srepertoire = "ValeofEternalBlossoms", areaid = 811, ressx = 0.5, ressy = 0.9, xoffset = 5.4285734296966*140, yoffset = 3.6160737756783*140, dungeon = { [1] = "0B4", [2] = "0B4", [3] = "0B6", [4] = "0B6", [18] = "0B8", [19] = "0B8" } };
--GuoLaiRuins			/
--MistfallVillage		/
--MoguShanPalace		/
--SettingSunTraining	/
--TheGoldenStair		/
--TheStairsAscent		/
--TheTwinMonoliths		/
--TuShenBurialGround	/
--WhiteMoonShrine		/
--WhitepetalLake		/
--WinterboughGlade		/
DBCS_Region_liste[6][8] = { sval = "610", srepertoire = "ValleyoftheFourWinds", areaid = 807, ressx = 0.4, ressy = 0.5, xoffset = 8.4107171559938*140, yoffset = 5.6071437481505*140, dungeon = { [14] = "0D0" } };
--CliffsofDispair		/
--DustbackGorge			/
--GildedFan				/
--GrandGranery			/
--Halfhill				/
--HarvestHome			/
--KuzenVillage			/
--MudmugsPlace			/
--NesingwarySafari		/
--PaoquanHollow			/
--PoolsofPurity			/
--RumblingTerrace		/
--SilkenFields			/
--SingingMarshes		/
--StormsoutBrewery		/
--Theheartland			/
--ThunderfootFields		/
--Zhusdecent			/
----------------------------------------------------------------------------------
--														TheWanderingIsle			voir instance 0AZ
DBCS_Region_liste[6][9] = { sval = "601", srepertoire = "Krasarang_terrain1", areaid = 857, ressx = 0.3, ressy = 0.4, xoffset = 10.044646941084*140, yoffset = 6.6964290174958*140, dungeon = { [1] = "0CX", [2] = "0CX", [3] = "0CX"} };
DBCS_Region_liste[6][10] = { sval = "611", srepertoire = "IsleoftheThunderKing", areaid = 928, ressx = 0, ressy = 0, xoffset = 0*140, yoffset = 0*140, dungeon = { [1] = "0D4", [2] = "0D5" } };
DBCS_Region_liste[6][11] = { sval = "612", srepertoire = "IsleOfGiants", areaid = 929, ressx = 0, ressy = 0, xoffset = 0*140, yoffset = 0*140 };
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0D0", instancelock = 1064, srepertoire = "IsleoftheThunderKing", areaid = 928, dungeon = { [1] = "0D5", [2] = "0D6" } };
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0D1", instancelock = 1105, srepertoire = "IsleOfGiants", areaid = 929 };
DBCS_Region_liste[6][12] = { sval = "613", srepertoire = "TimelessIsle", areaid = 951, dungeon = { [22] = "0DE" } };													--	Ïle du Temps figé
--i=i+1;DBCS_Region_liste[0][i] = { sval = "613", srepertoire = "TimelessIsle", areaid = 951, dungeon = { [22] = "0DE" } };													--	Ïle du Temps figé

if ( DBCS_Region_wow_build_info > DBCS_Region_wow_build_info_live ) then
DBCS_Region_liste[7] = {};
DBCS_Region_liste[7][1] = { sval = "701", srepertoire = "Ashran", areaid = 978, ressx = 0.4, ressy = 0.6, xoffset = 0.80636157567268*140, yoffset = 0.70033591720232*140 };				--	A'shran
DBCS_Region_liste[7][2] = { sval = "702", srepertoire = "FrostfireRidge", areaid = 941, ressx = 0.2, ressy = 0.3, xoffset = 13.10267673282*140, yoffset = 8.736601595295*140, dungeon = { [1] = "0E4", [2] = "0E4", [3] = "0E4", [4] = "0EH", [6] = "0EK", [7] = "0EJ", [8] = "0EJ", [9] = "0EI" } };		--	Crête de Givrefeu
DBCS_Region_liste[7][3] = { sval = "703", srepertoire = "SpiresOfArak", areaid = 948, ressx = 0.2, ressy = 0.3, xoffset = 12.986612630699*140, yoffset = 8.6562435783273*140 };			--	Flèches d'Arak
DBCS_Region_liste[7][4] = { sval = "704", srepertoire = "Gorgrond", areaid = 949, ressx = 0.2, ressy = 0.3, xoffset = 17.522337049394*140, yoffset = 11.678572215214*140, dungeon = { [16] = "0EN", [17] = "0EN", [18] = "0EM", [19] = "0EM", [20] = "0EL", [21] = "0EL" } };				--	Gorgrond
DBCS_Region_liste[7][5] = { sval = "705", srepertoire = "TanaanJungle", areaid = 945, ressx = 0.3, ressy = 0.4, xoffset = 10.687500486954*140, yoffset = 7.1250003165005*140 };			--	Jungle de Tanaan
DBCS_Region_liste[7][6] = { sval = "706", srepertoire = "NagrandDraenor", areaid = 950, ressx = 0.2, ressy = 0.3, xoffset = 12.160714575194*140, yoffset = 8.1071580529183*140, dungeon = { [10] = "0EQ", [11] = "0EP", [12] = "0EO" } };		--	Nagrand
DBCS_Region_liste[7][7] = { sval = "707", srepertoire = "Talador", areaid = 946, ressx = 0.2, ressy = 0.3, xoffset = 12.776777347518*140, yoffset = 8.5178648517426*140, dungeon = { [13] = "0ET", [14] = "0EU" } };				--	Talador
DBCS_Region_liste[7][8] = { sval = "708", srepertoire = "ShadowmoonValleyDR", areaid = 947, ressx = 0.2, ressy = 0.3, xoffset = 14.35714504122*140, yoffset = 9.5714360283535*140, dungeon = { [15] = "0ER", [22] = "0ES" } };	--	Vallée d'Ombrelune

--[[

Interface\WorldMap\FrostfireRidge\BladespireFortress1.blp
Interface\WorldMap\FrostfireRidge\BladespireFortress2.blp
Interface\WorldMap\FrostfireRidge\BladespireFortress3.blp
Interface\WorldMap\FrostfireRidge\BladespireFortress4.blp
Interface\WorldMap\FrostfireRidge\BloodmaulStronghold1.blp
Interface\WorldMap\FrostfireRidge\BloodmaulStronghold2.blp
Interface\WorldMap\FrostfireRidge\BonesofAgurak1.blp
Interface\WorldMap\FrostfireRidge\BonesofAgurak2.blp
Interface\WorldMap\FrostfireRidge\BonesofAgurak3.blp
Interface\WorldMap\FrostfireRidge\BonesofAgurak4.blp
Interface\WorldMap\FrostfireRidge\DaggermawRavine1.blp
Interface\Worldmap\FrostfireRidge\FrostfireRidge1.blp
Interface\Worldmap\FrostfireRidge\FrostfireRidge10.blp
Interface\Worldmap\FrostfireRidge\FrostfireRidge11.blp
Interface\Worldmap\FrostfireRidge\FrostfireRidge12.blp
Interface\Worldmap\FrostfireRidge\FrostfireRidge2.blp
Interface\Worldmap\FrostfireRidge\FrostfireRidge3.blp
Interface\Worldmap\FrostfireRidge\FrostfireRidge4.blp
Interface\Worldmap\FrostfireRidge\FrostfireRidge5.blp
Interface\Worldmap\FrostfireRidge\FrostfireRidge6.blp
Interface\Worldmap\FrostfireRidge\FrostfireRidge7.blp
Interface\Worldmap\FrostfireRidge\FrostfireRidge8.blp
Interface\Worldmap\FrostfireRidge\FrostfireRidge9.blp
Interface\Worldmap\FrostfireRidge\FrostfireRidgeHighlight.blp
Interface\WorldMap\FrostfireRidge\FrostwindDunes1.blp
Interface\WorldMap\FrostfireRidge\FrostwindDunes2.blp
Interface\WorldMap\FrostfireRidge\GrimfrostHill1.blp
Interface\WorldMap\FrostfireRidge\Grombolash1.blp
Interface\WorldMap\FrostfireRidge\GromGar1.blp
Interface\WorldMap\FrostfireRidge\GromGar2.blp
Interface\WorldMap\FrostfireRidge\GromGar3.blp
Interface\WorldMap\FrostfireRidge\GromGar4.blp
Interface\WorldMap\FrostfireRidge\HordeGarrison1.blp
Interface\WorldMap\FrostfireRidge\HordeGarrison2.blp
Interface\WorldMap\FrostfireRidge\HordeGarrison3.blp
Interface\WorldMap\FrostfireRidge\HordeGarrison4.blp
Interface\WorldMap\FrostfireRidge\IronsiegeWorks1.blp
Interface\WorldMap\FrostfireRidge\IronsiegeWorks2.blp
Interface\WorldMap\FrostfireRidge\IronsiegeWorks3.blp
Interface\WorldMap\FrostfireRidge\IronsiegeWorks4.blp
Interface\WorldMap\FrostfireRidge\IronWaystation1.blp
Interface\WorldMap\FrostfireRidge\IronWaystation2.blp
Interface\WorldMap\FrostfireRidge\Magnarok1.blp
Interface\WorldMap\FrostfireRidge\Magnarok2.blp
Interface\WorldMap\FrostfireRidge\NoGarrison1.blp
Interface\WorldMap\FrostfireRidge\NoGarrison2.blp
Interface\WorldMap\FrostfireRidge\NoGarrison3.blp
Interface\WorldMap\FrostfireRidge\NoGarrison4.blp
Interface\WorldMap\FrostfireRidge\StonefangOutpost1.blp
Interface\WorldMap\FrostfireRidge\TheBoneslag1.blp
Interface\WorldMap\FrostfireRidge\TheCracklingPlains1.blp
Interface\WorldMap\FrostfireRidge\TheCracklingPlains2.blp
Interface\WorldMap\FrostfireRidge\TheCracklingPlains3.blp
Interface\WorldMap\FrostfireRidge\TheCracklingPlains4.blp
Interface\WorldMap\FrostfireRidge\WorGol1.blp
Interface\WorldMap\FrostfireRidge\WorGol2.blp

Interface\WorldMap\Gorgrond\BastionRise1.blp
Interface\WorldMap\Gorgrond\BastionRise2.blp
Interface\WorldMap\Gorgrond\BeastWatch1.blp
Interface\WorldMap\Gorgrond\EasternRuin1.blp
Interface\WorldMap\Gorgrond\Evermorn1.blp
Interface\WorldMap\Gorgrond\Evermorn2.blp
Interface\WorldMap\Gorgrond\Foundry1.blp
Interface\WorldMap\Gorgrond\FoundrySouth1.blp
Interface\Worldmap\Gorgrond\Gorgrond1.blp
Interface\Worldmap\Gorgrond\Gorgrond10.blp
Interface\Worldmap\Gorgrond\Gorgrond11.blp
Interface\Worldmap\Gorgrond\Gorgrond12.blp
Interface\Worldmap\Gorgrond\Gorgrond2.blp
Interface\Worldmap\Gorgrond\Gorgrond3.blp
Interface\Worldmap\Gorgrond\Gorgrond4.blp
Interface\Worldmap\Gorgrond\Gorgrond5.blp
Interface\Worldmap\Gorgrond\Gorgrond6.blp
Interface\Worldmap\Gorgrond\Gorgrond7.blp
Interface\Worldmap\Gorgrond\Gorgrond8.blp
Interface\Worldmap\Gorgrond\Gorgrond9.blp
Interface\Worldmap\Gorgrond\GorgrondHighlight.blp
Interface\WorldMap\Gorgrond\GronnCanyon1.blp
Interface\WorldMap\Gorgrond\GronnCanyon2.blp
Interface\WorldMap\Gorgrond\HighlandPass1.blp
Interface\WorldMap\Gorgrond\HighlandPass2.blp
Interface\WorldMap\Gorgrond\HighlandPass3.blp
Interface\WorldMap\Gorgrond\HighlandPass4.blp
Interface\WorldMap\Gorgrond\HighPass1.blp
Interface\WorldMap\Gorgrond\IronDocks1.blp
Interface\WorldMap\Gorgrond\IronDocks2.blp
Interface\WorldMap\Gorgrond\Mushrooms1.blp
Interface\WorldMap\Gorgrond\StonemaulArena1.blp
Interface\WorldMap\Gorgrond\StonemaulSouth1.blp
Interface\WorldMap\Gorgrond\StripMine1.blp
Interface\WorldMap\Gorgrond\TangleHeart1.blp
Interface\WorldMap\Gorgrond\TangleHeart2.blp

Interface\WorldMap\NagrandDraenor\Ancestral1.blp
Interface\WorldMap\NagrandDraenor\BrokenPrecipice1.blp
Interface\WorldMap\NagrandDraenor\BrokenPrecipice2.blp
Interface\WorldMap\NagrandDraenor\Elementals1.blp
Interface\WorldMap\NagrandDraenor\Elementals2.blp
Interface\WorldMap\NagrandDraenor\Elementals3.blp
Interface\WorldMap\NagrandDraenor\Elementals4.blp
Interface\WorldMap\NagrandDraenor\Grommashar1.blp
Interface\WorldMap\NagrandDraenor\Grommashar2.blp
Interface\WorldMap\NagrandDraenor\Hallvalor1.blp
Interface\WorldMap\NagrandDraenor\Hallvalor2.blp
Interface\WorldMap\NagrandDraenor\Highmaul1.blp
Interface\WorldMap\NagrandDraenor\Highmaul2.blp
Interface\WorldMap\NagrandDraenor\Highmaul3.blp
Interface\WorldMap\NagrandDraenor\Highmaul4.blp
Interface\WorldMap\NagrandDraenor\IronfistHarbor1.blp
Interface\WorldMap\NagrandDraenor\LokRath1.blp
Interface\WorldMap\NagrandDraenor\LokRath2.blp
Interface\WorldMap\NagrandDraenor\MarGoks1.blp
Interface\WorldMap\NagrandDraenor\MarGoks2.blp
Interface\WorldMap\NagrandDraenor\Mushrooms1.blp
Interface\WorldMap\NagrandDraenor\Mushrooms2.blp
Interface\Worldmap\NagrandDraenor\NagrandDraenor1.blp
Interface\Worldmap\NagrandDraenor\NagrandDraenor10.blp
Interface\Worldmap\NagrandDraenor\NagrandDraenor11.blp
Interface\Worldmap\NagrandDraenor\NagrandDraenor12.blp
Interface\Worldmap\NagrandDraenor\NagrandDraenor2.blp
Interface\Worldmap\NagrandDraenor\NagrandDraenor3.blp
Interface\Worldmap\NagrandDraenor\NagrandDraenor4.blp
Interface\Worldmap\NagrandDraenor\NagrandDraenor5.blp
Interface\Worldmap\NagrandDraenor\NagrandDraenor6.blp
Interface\Worldmap\NagrandDraenor\NagrandDraenor7.blp
Interface\Worldmap\NagrandDraenor\NagrandDraenor8.blp
Interface\Worldmap\NagrandDraenor\NagrandDraenor9.blp
Interface\Worldmap\NagrandDraenor\NagrandDraenorHighlight.blp
Interface\WorldMap\NagrandDraenor\Oshugun1.blp
Interface\WorldMap\NagrandDraenor\Oshugun2.blp
Interface\WorldMap\NagrandDraenor\Oshugun3.blp
Interface\WorldMap\NagrandDraenor\Oshugun4.blp
Interface\WorldMap\NagrandDraenor\RingOfBlood1.blp
Interface\WorldMap\NagrandDraenor\RingOfBlood2.blp
Interface\WorldMap\NagrandDraenor\RingOfBlood3.blp
Interface\WorldMap\NagrandDraenor\RingOfBlood4.blp
Interface\WorldMap\NagrandDraenor\RingOfTrials1.blp
Interface\WorldMap\NagrandDraenor\RingOfTrials2.blp
Interface\WorldMap\NagrandDraenor\RingOfTrials3.blp
Interface\WorldMap\NagrandDraenor\RingOfTrials4.blp
Interface\WorldMap\NagrandDraenor\SunspringWatch1.blp
Interface\WorldMap\NagrandDraenor\SunspringWatch2.blp
Interface\WorldMap\NagrandDraenor\Telaar1.blp
Interface\WorldMap\NagrandDraenor\Telaar2.blp
Interface\WorldMap\NagrandDraenor\Telaar3.blp
Interface\WorldMap\NagrandDraenor\Telaar4.blp

Interface\WorldMap\ShadowmoonValleyDR\AnguishFortress1.blp
Interface\WorldMap\ShadowmoonValleyDR\AnguishFortress2.blp
Interface\WorldMap\ShadowmoonValleyDR\AnguishFortress3.blp
Interface\WorldMap\ShadowmoonValleyDR\AnguishFortress4.blp
Interface\WorldMap\ShadowmoonValleyDR\DarktideRoost1.blp
Interface\WorldMap\ShadowmoonValleyDR\DarktideRoost2.blp
Interface\WorldMap\ShadowmoonValleyDR\Elodor1.blp
Interface\WorldMap\ShadowmoonValleyDR\Elodor2.blp
Interface\WorldMap\ShadowmoonValleyDR\Elodor3.blp
Interface\WorldMap\ShadowmoonValleyDR\Elodor4.blp
Interface\WorldMap\ShadowmoonValleyDR\Embaari1.blp
Interface\WorldMap\ShadowmoonValleyDR\Embaari2.blp
Interface\WorldMap\ShadowmoonValleyDR\Garrison1.blp
Interface\WorldMap\ShadowmoonValleyDR\Garrison2.blp
Interface\WorldMap\ShadowmoonValleyDR\Gloomshade1.blp
Interface\WorldMap\ShadowmoonValleyDR\Gulvar1.blp
Interface\WorldMap\ShadowmoonValleyDR\Gulvar2.blp
Interface\WorldMap\ShadowmoonValleyDR\Gulvar3.blp
Interface\WorldMap\ShadowmoonValleyDR\Gulvar4.blp
Interface\WorldMap\ShadowmoonValleyDR\Karabor1.blp
Interface\WorldMap\ShadowmoonValleyDR\Karabor2.blp
Interface\WorldMap\ShadowmoonValleyDR\Karabor3.blp
Interface\WorldMap\ShadowmoonValleyDR\Karabor4.blp
Interface\WorldMap\ShadowmoonValleyDR\NoGarrison1.blp
Interface\WorldMap\ShadowmoonValleyDR\NoGarrison2.blp
Interface\Worldmap\ShadowmoonValleyDR\ShadowmoonValleyDR1.blp
Interface\Worldmap\ShadowmoonValleyDR\ShadowmoonValleyDR10.blp
Interface\Worldmap\ShadowmoonValleyDR\ShadowmoonValleyDR11.blp
Interface\Worldmap\ShadowmoonValleyDR\ShadowmoonValleyDR12.blp
Interface\Worldmap\ShadowmoonValleyDR\ShadowmoonValleyDR2.blp
Interface\Worldmap\ShadowmoonValleyDR\ShadowmoonValleyDR3.blp
Interface\Worldmap\ShadowmoonValleyDR\ShadowmoonValleyDR4.blp
Interface\Worldmap\ShadowmoonValleyDR\ShadowmoonValleyDR5.blp
Interface\Worldmap\ShadowmoonValleyDR\ShadowmoonValleyDR6.blp
Interface\Worldmap\ShadowmoonValleyDR\ShadowmoonValleyDR7.blp
Interface\Worldmap\ShadowmoonValleyDR\ShadowmoonValleyDR8.blp
Interface\Worldmap\ShadowmoonValleyDR\ShadowmoonValleyDR9.blp
Interface\Worldmap\ShadowmoonValleyDR\ShadowmoonValleyDRHighlight.blp
Interface\WorldMap\ShadowmoonValleyDR\Shazgul1.blp
Interface\WorldMap\ShadowmoonValleyDR\Shazgul2.blp
Interface\WorldMap\ShadowmoonValleyDR\ShimmeringMoor1.blp
Interface\WorldMap\ShadowmoonValleyDR\ShimmeringMoor2.blp
Interface\WorldMap\ShadowmoonValleyDR\ShimmeringMoor3.blp
Interface\WorldMap\ShadowmoonValleyDR\ShimmeringMoor4.blp
Interface\WorldMap\ShadowmoonValleyDR\Socrethar1.blp
Interface\WorldMap\ShadowmoonValleyDR\SWIsland1.blp

--/script DBCS_Region_Minimap_carte1:SetTexture("Interface/WorldMap/SpiresOfArak/CenterRavenNest1.blp");
Terrasse Souffle-Bise
Interface\WorldMap\SpiresOfArak\BloodBladeRedoubt1.blp		/	Tombe-Hache
Interface\WorldMap\SpiresOfArak\BloodmaneValley1.blp		/	Vallée Crin-de-Sang
Interface\WorldMap\SpiresOfArak\CenterRavenNest1.blp		?	Brèche-aux-Corbeaux
Interface\WorldMap\SpiresOfArak\Clutchpop1.blp				/	Boulonnerie de Sifflepince
Interface\WorldMap\SpiresOfArak\EastMushrooms1.blp			/	Voile perdu d'Anzu
Interface\WorldMap\SpiresOfArak\EmptyGarrison1.blp			/	Garnison de l'amiral Taylor
Interface\WorldMap\SpiresOfArak\HowlingCrag1.blp			/	La combe Hurlante
Interface\WorldMap\SpiresOfArak\HowlingCrag2.blp
Interface\WorldMap\SpiresOfArak\HowlingCrag3.blp
Interface\WorldMap\SpiresOfArak\HowlingCrag4.blp
Interface\WorldMap\SpiresOfArak\NWCorner1.blp				/	Bastion Lamepoing
Interface\WorldMap\SpiresOfArak\NWCorner2.blp
Interface\WorldMap\SpiresOfArak\NWCorner3.blp
Interface\WorldMap\SpiresOfArak\NWCorner4.blp
Interface\WorldMap\SpiresOfArak\SethekkHollow1.blp			/	Creux des Sethekk
Interface\WorldMap\SpiresOfArak\SethekkHollow2.blp
Interface\WorldMap\SpiresOfArak\Skettis1.blp				/	Skettis
Interface\WorldMap\SpiresOfArak\Skettis2.blp
Interface\WorldMap\SpiresOfArak\SoloSpireNorth1.blp			/
Interface\WorldMap\SpiresOfArak\SoloSpireNorth2.blp			/
Interface\WorldMap\SpiresOfArak\SoloSpireSouth1.blp			/
Interface\WorldMap\SpiresOfArak\Southport1.blp				/	Port-Austral
Interface\WorldMap\SpiresOfArak\SpiresOfArak1.blp			/
Interface\WorldMap\SpiresOfArak\SpiresOfArak10.blp			/
Interface\WorldMap\SpiresOfArak\SpiresOfArak11.blp			/
Interface\WorldMap\SpiresOfArak\SpiresOfArak12.blp			/
Interface\WorldMap\SpiresOfArak\SpiresOfArak2.blp			/
Interface\WorldMap\SpiresOfArak\SpiresOfArak3.blp			/
Interface\WorldMap\SpiresOfArak\SpiresOfArak4.blp			/
Interface\WorldMap\SpiresOfArak\SpiresOfArak5.blp			/
Interface\WorldMap\SpiresOfArak\SpiresOfArak6.blp			/
Interface\WorldMap\SpiresOfArak\SpiresOfArak7.blp			/
Interface\WorldMap\SpiresOfArak\SpiresOfArak8.blp			/
Interface\WorldMap\SpiresOfArak\SpiresOfArak9.blp			/
Interface\Worldmap\SpiresOfArak\SpiresOfArakHighlight.blp	/
Interface\WorldMap\SpiresOfArak\VeilAkraz1.blp				/	Voile Akraz
Interface\WorldMap\SpiresOfArak\VeilZekk1.blp				/	Voile Zekk
Interface\WorldMap\SpiresOfArak\VentureCove1.blp			/	Poste de Sifflepince
Interface\WorldMap\SpiresOfArak\WrithingMire1.blp			/	Le bourbier Putride

Interface\WorldMap\Talador\Aruuna1.blp
Interface\WorldMap\Talador\Aruuna2.blp
Interface\WorldMap\Talador\Auchindoun1.blp
Interface\WorldMap\Talador\Auchindoun2.blp
Interface\WorldMap\Talador\Auchindoun3.blp
Interface\WorldMap\Talador\Auchindoun4.blp
Interface\WorldMap\Talador\CenterIsles1.blp
Interface\WorldMap\Talador\CenterIsles2.blp
Interface\WorldMap\Talador\CourtofSouls1.blp
Interface\WorldMap\Talador\CourtofSouls2.blp
Interface\WorldMap\Talador\FortWrynn1.blp
Interface\WorldMap\Talador\FortWrynn2.blp
Interface\WorldMap\Talador\GordalFortress1.blp
Interface\WorldMap\Talador\GordalFortress2.blp
Interface\WorldMap\Talador\GordalFortress3.blp
Interface\WorldMap\Talador\GordalFortress4.blp
Interface\WorldMap\Talador\Gulrok1.blp
Interface\WorldMap\Talador\Gulrok2.blp
Interface\WorldMap\Talador\Gulrok3.blp
Interface\WorldMap\Talador\Gulrok4.blp
Interface\WorldMap\Talador\NorthGate1.blp
Interface\WorldMap\Talador\NorthGate2.blp
Interface\WorldMap\Talador\OrunaiCoast1.blp
Interface\WorldMap\Talador\OrunaiCoast2.blp
Interface\WorldMap\Talador\OrunaiCoast3.blp
Interface\WorldMap\Talador\OrunaiCoast4.blp
Interface\WorldMap\Talador\SEEntrance1.blp
Interface\WorldMap\Talador\SEEntrance2.blp
Interface\WorldMap\Talador\SEEntrance3.blp
Interface\WorldMap\Talador\SEEntrance4.blp
Interface\WorldMap\Talador\Shattrath1.blp
Interface\WorldMap\Talador\Shattrath2.blp
Interface\WorldMap\Talador\Shattrath3.blp
Interface\WorldMap\Talador\Shattrath4.blp
Interface\Worldmap\Talador\Talador1.blp
Interface\Worldmap\Talador\Talador10.blp
Interface\Worldmap\Talador\Talador11.blp
Interface\Worldmap\Talador\Talador12.blp
Interface\Worldmap\Talador\Talador2.blp
Interface\Worldmap\Talador\Talador3.blp
Interface\Worldmap\Talador\Talador4.blp
Interface\Worldmap\Talador\Talador5.blp
Interface\Worldmap\Talador\Talador6.blp
Interface\Worldmap\Talador\Talador7.blp
Interface\Worldmap\Talador\Talador8.blp
Interface\Worldmap\Talador\Talador9.blp
Interface\Worldmap\Talador\TaladorHighlight.blp
Interface\WorldMap\Talador\Telmor1.blp
Interface\WorldMap\Talador\Telmor2.blp
Interface\WorldMap\Talador\TombOfLights1.blp
Interface\WorldMap\Talador\TombOfLights2.blp
Interface\WorldMap\Talador\Tuurem1.blp
Interface\WorldMap\Talador\Zangarra1.blp
Interface\WorldMap\Talador\Zangarra2.blp
Interface\WorldMap\Talador\Zangarra3.blp
Interface\WorldMap\Talador\Zangarra4.blp

Interface\WorldMap\TanaanJungleIntro\Tank1.blp

--]]
			--changer la suite pour les sous-régions d'un continent faisant parti du tableau de continent = 0	en 3914

--fleur
	--Givrelette				228571
	--Bourrache					228574
	--Orchidée de Talador		228576
	--Sagittaire de Nagrand		228575
	--Ignescente				228572
	--Dionée de Gorgrond		228573
	--Lotus caméléon
--minerai
	--Gisement de vérifer			228493
	--Riche gisement de vérifer
	--Gisement de rochenoire
	--Riche gisement de rochenoire
	--?Minerai de fer draenique
	
--coffre
	--Coffre spirituel			237946

--/script DBCS_Region_position100_x(3,0,1);
--/script DBCS_region_minimapinit_origin();
--/script DBCS_region_minimapinit_arrivee();

--[[
DUNGEON_FLOOR_FROSTFIRERIDGE6 - Grom'gar
DUNGEON_FLOOR_FROSTFIRERIDGE7 - The Savage Crag
DUNGEON_FLOOR_FROSTFIRERIDGE8 - Grulloc's Lair
DUNGEON_FLOOR_FROSTFIRERIDGE9 - Snowfall Alcove
DUNGEON_FLOOR_GORGROND16 - Moira's Bastion
DUNGEON_FLOOR_GORGROND17 - The Armory
DUNGEON_FLOOR_GORGROND18 - Fissure of Fury
DUNGEON_FLOOR_GORGROND19 - Heart of Fury
DUNGEON_FLOOR_GORGROND20 - Cragplume Crater
DUNGEON_FLOOR_GORGROND21 - Cragplume Depths
DUNGEON_FLOOR_NAGRANDDRAENOR10 - The Master's Cavern
DUNGEON_FLOOR_NAGRANDDRAENOR11 - Stonecrag Gorge
DUNGEON_FLOOR_NAGRANDDRAENOR12 - The Underpale
DUNGEON_FLOOR_TALADOR13 - Tomb of Lights
DUNGEON_FLOOR_TALADOR14 - Tomb of Souls
--]]
end

--pour trouver très rapidement le numregion
--DBCS_Region_liste_areaid
--DBCS_Region_liste_areaid[areaid]
--DBCS_Region_liste_areaid[areaid].sval
--DBCS_Region_liste_areaid[areaid].nivcarte[inivcarte]
local DBCS_Region_liste_iareaid;
local DBCS_Region_liste_areaid = {};
for i = 0 , table.getn(DBCS_Region_liste) do
	for j = 1 , table.getn(DBCS_Region_liste[i]) do
		DBCS_Region_liste_iareaid = DBCS_Region_liste[i][j].areaid;
		if ( DBCS_Region_liste_iareaid ) then
			DBCS_Region_liste_areaid[DBCS_Region_liste_iareaid] = {};
			DBCS_Region_liste_areaid[DBCS_Region_liste_iareaid].sval = DBCS_Region_liste[i][j].sval;
			if ( DBCS_Region_liste[i][j].dungeon ) then
				DBCS_Region_liste_areaid[DBCS_Region_liste_iareaid].nivcarte = {};
				for k, l in pairs(DBCS_Region_liste[i][j].dungeon) do
					DBCS_Region_liste_areaid[DBCS_Region_liste_iareaid].nivcarte[k] = l;
				end
			end
		end
	end
end

local DBCS_region_minimapinit_origx;
local DBCS_region_minimapinit_origy;

local DBCS_region_minimapinit_arriveea;
local DBCS_region_minimapinit_arriveeb;

local DBCS_region_minimapinit_arriveex;
local DBCS_region_minimapinit_arriveey;

--/script DBCS_region_minimapinit_origin();
function DBCS_region_minimapinit_origin()

	Minimap:PingLocation(0,0);
	DBCS_region_minimapinit_origx , DBCS_region_minimapinit_origy = GetPlayerMapPosition("player");
	TraceFrame:AddMessage("DBCS_region_minimapinit_origx = "..DBCS_region_minimapinit_origx);
	TraceFrame:AddMessage("DBCS_region_minimapinit_origy = "..DBCS_region_minimapinit_origy);

end

--/script DBCS_position100_regioncontinent();
--/script DBCS_region_minimapinit_origin();
--/script DBCS_region_minimapinit_arrivee();
function DBCS_region_minimapinit_arrivee()

local diffx;
local diffy;

	DBCS_region_minimapinit_arriveea , DBCS_region_minimapinit_arriveeb , _ = Minimap:GetPingPosition();
	TraceFrame:AddMessage("DBCS_region_minimapinit_arriveea = "..DBCS_region_minimapinit_arriveea);
	TraceFrame:AddMessage("DBCS_region_minimapinit_arriveeb = "..DBCS_region_minimapinit_arriveeb);
	DBCS_region_minimapinit_arriveea = abs(DBCS_region_minimapinit_arriveea);
	DBCS_region_minimapinit_arriveeb = abs(DBCS_region_minimapinit_arriveeb);
	DBCS_region_minimapinit_arriveex , DBCS_region_minimapinit_arriveey = GetPlayerMapPosition("player");
	TraceFrame:AddMessage("DBCS_region_minimapinit_arriveex = "..DBCS_region_minimapinit_arriveex);
	TraceFrame:AddMessage("DBCS_region_minimapinit_arriveey = "..DBCS_region_minimapinit_arriveey);

	diffx = abs(abs(DBCS_region_minimapinit_origx)-abs(DBCS_region_minimapinit_arriveex));
	diffy = abs(abs(DBCS_region_minimapinit_origy)-abs(DBCS_region_minimapinit_arriveey));
	TraceFrame:AddMessage("diffx = "..diffx);
	TraceFrame:AddMessage("diffy = "..diffy);

	TraceFrame:AddMessage("coeffx = "..(DBCS_region_minimapinit_arriveea/diffx));
	TraceFrame:AddMessage("coeffy = "..(DBCS_region_minimapinit_arriveeb/diffy));

end

DBCS_Region_liste_blizzard = {};

DBCS_Region_liste_combo = { };
DBCS_Region_liste_combo[1] = { name = "Globales" };
DBCS_Region_liste_combo[1][1] = { type = "Z", snumregion = "COS" };	--	Cosmos
DBCS_Region_liste_combo[1][2] = { type = "Z", snumregion = "WOR" };	--	Azeroth
DBCS_Region_liste_combo[2] = { name = "Continents" };
DBCS_Region_liste_combo[2][1] = { name = "Kalimdor", snumregion = "100" };
DBCS_Region_liste_combo[2][1][1] = { type = "Z", snumregion = "102" };		--	Azshara
DBCS_Region_liste_combo[2][1][2] = { type = "Z", snumregion = "121" };		--	Berceau-de-l'Hiver
DBCS_Region_liste_combo[2][1][3] = { type = "Z", snumregion = "120" };		--	Crat\195\168re d'Un'Goro
DBCS_Region_liste_combo[2][1][4] = { type = "Z", snumregion = "104" };		--	Darnassus
DBCS_Region_liste_combo[2][1][5] = { type = "Z", snumregion = "105" };		--	D\195\169solace
DBCS_Region_liste_combo[2][1][6] = { type = "Z", snumregion = "106" };		--	Durotar
DBCS_Region_liste_combo[2][1][7] = { type = "Z", snumregion = "109" };		--	F\195\169ralas
DBCS_Region_liste_combo[2][1][8] = { type = "Z", snumregion = "108" };		--	Gangrebois
DBCS_Region_liste_combo[2][1][9] = { type = "Z", snumregion = "123" };		--	\195\142le de Brume-azur
DBCS_Region_liste_combo[2][1][10] = { type = "Z", snumregion = "124" };		--	\195\142le de Brume-sang
DBCS_Region_liste_combo[2][1][11] = { type = "Z", snumregion = "125" };		--	L'Exodar
DBCS_Region_liste_combo[2][1][12] = { type = "Z", snumregion = "119" };		--	Les Pitons du Tonnerre
DBCS_Region_liste_combo[2][1][13] = { type = "Z", snumregion = "114" };		--	Les Serres-Rocheuses
DBCS_Region_liste_combo[2][1][14] = { type = "Z", snumregion = "117" };		--	Les Tarides
DBCS_Region_liste_combo[2][1][15] = { type = "Z", snumregion = "107" };		--	Mar\195\169cage d'\195\130prefange
DBCS_Region_liste_combo[2][1][16] = { type = "Z", snumregion = "118" };		--	Mille pointes
DBCS_Region_liste_combo[2][1][17] = { type = "Z", snumregion = "111" };		--	Mulgore
DBCS_Region_liste_combo[2][1][18] = { type = "Z", snumregion = "112" };		--	Orgrimmar
DBCS_Region_liste_combo[2][1][19] = { type = "Z", snumregion = "101" };		--	Orneval
DBCS_Region_liste_combo[2][1][20] = { type = "Z", snumregion = "110" };		--	Reflet-de-Lune
DBCS_Region_liste_combo[2][1][21] = { type = "Z", snumregion = "113" };		--	Silithus
DBCS_Region_liste_combo[2][1][22] = { type = "Z", snumregion = "103" };		--	Sombrivage
DBCS_Region_liste_combo[2][1][23] = { type = "Z", snumregion = "115" };		--	Tanaris
DBCS_Region_liste_combo[2][1][24] = { type = "Z", snumregion = "116" };		--	Teldrassil
DBCS_Region_liste_combo[2][1][25] = { type = "Z", snumregion = "126" };		--	Hall des L\195\169gendes
DBCS_Region_liste_combo[2][1][26] = { type = "Z", snumregion = "127" };		--	La Mer voilée
DBCS_Region_liste_combo[2][1][27] = { type = "Z", snumregion = "122" };		--	Portes d'Ahn'Qiraj
DBCS_Region_liste_combo[2][1][28] = { type = "Z", snumregion = "128" };		--	AhnQirajTheFallenKingdom
DBCS_Region_liste_combo[2][1][29] = { type = "Z", snumregion = "129" };		--	Hyjal
DBCS_Region_liste_combo[2][1][30] = { type = "Z", snumregion = "130" };		--	SouthernBarrens
DBCS_Region_liste_combo[2][1][31] = { type = "Z", snumregion = "131" };		--	Uldum
DBCS_Region_liste_combo[2][1][32] = { type = "Z", snumregion = "132" };		--	Les bassins de Vapeur
DBCS_Region_liste_combo[2][1][33] = { type = "Z", snumregion = "133" };
DBCS_Region_liste_combo[2][1][34] = { type = "Z", snumregion = "134" };
DBCS_Region_liste_combo[2][1][35] = { type = "Z", snumregion = "135" };
DBCS_Region_liste_combo[2][1][36] = { type = "Z", snumregion = "136" };
DBCS_Region_liste_combo[2][1][37] = { type = "Z", snumregion = "137" };
DBCS_Region_liste_combo[2][2] = { name = "Royaumes de l'est", snumregion = "200" };
DBCS_Region_liste_combo[2][2][1] = { type = "Z", snumregion = "208" };		--	Bois de la P\195\169nombre
DBCS_Region_liste_combo[2][2][2] = { type = "Z", snumregion = "228" };		--	Bois des Chants \195\169ternels
DBCS_Region_liste_combo[2][2][3] = { type = "Z", snumregion = "221" };		--	Clairi\195\168res de Tirisfal
DBCS_Region_liste_combo[2][2][4] = { type = "Z", snumregion = "211" };		--	Contreforts de Hautebrande
DBCS_Region_liste_combo[2][2][5] = { type = "Z", snumregion = "206" };		--	D\195\169fil\195\169 de Deuillevent
DBCS_Region_liste_combo[2][2][6] = { type = "Z", snumregion = "207" };		--	Dun Morogh
DBCS_Region_liste_combo[2][2][7] = { type = "Z", snumregion = "210" };		--	For\195\170t d'Elwynn
DBCS_Region_liste_combo[2][2][8] = { type = "Z", snumregion = "216" };		--	For\195\170t des Pins argent\195\169s
DBCS_Region_liste_combo[2][2][9] = { type = "Z", snumregion = "212" };		--	Forgefer
DBCS_Region_liste_combo[2][2][10] = { type = "Z", snumregion = "222" };		--	Fossoyeuse
DBCS_Region_liste_combo[2][2][11] = { type = "Z", snumregion = "215" };		--	Gorge des Vents br\195\187lants
DBCS_Region_liste_combo[2][2][12] = { type = "Z", snumregion = "202" };		--	Hautes-terres d'Arathi
DBCS_Region_liste_combo[2][2][13] = { type = "Z", snumregion = "217" };		--	Hurlevent
DBCS_Region_liste_combo[2][2][14] = { type = "Z", snumregion = "231" };		--	\195\142le de Quel'Danas
DBCS_Region_liste_combo[2][2][15] = { type = "Z", snumregion = "214" };		--	Les Carmines
DBCS_Region_liste_combo[2][2][16] = { type = "Z", snumregion = "220" };		--	Les Hinterlands
DBCS_Region_liste_combo[2][2][17] = { type = "Z", snumregion = "225" };		--	Les Paluns
DBCS_Region_liste_combo[2][2][18] = { type = "Z", snumregion = "229" };		--	Les Terres fant\195\180mes
DBCS_Region_liste_combo[2][2][19] = { type = "Z", snumregion = "213" };		--	Loch Modan
DBCS_Region_liste_combo[2][2][20] = { type = "Z", snumregion = "230" };		--	Lune-d'argent
DBCS_Region_liste_combo[2][2][21] = { type = "Z", snumregion = "209" };		--	Maleterres de l'est
DBCS_Region_liste_combo[2][2][22] = { type = "Z", snumregion = "223" };		--	Maleterres de l'ouest
DBCS_Region_liste_combo[2][2][23] = { type = "Z", snumregion = "219" };		--	Marais des Chagrins
DBCS_Region_liste_combo[2][2][24] = { type = "Z", snumregion = "224" };		--	Marche de l'Ouest
--DBCS_Region_liste_combo[2][2][25] = { type = "Z", snumregion = "201" };		--	Montagnes d'Alterac
DBCS_Region_liste_combo[2][2][25] = { type = "Z", snumregion = "205" };		--	Steppes ardentes
DBCS_Region_liste_combo[2][2][26] = { type = "Z", snumregion = "204" };		--	Terres foudroy\195\169es
DBCS_Region_liste_combo[2][2][27] = { type = "Z", snumregion = "203" };		--	Terres ingrates
DBCS_Region_liste_combo[2][2][28] = { type = "Z", snumregion = "218" };		--	Vallée de Strangleronce
DBCS_Region_liste_combo[2][2][29] = { type = "Z", snumregion = "227" };		--	Hall des Champions
DBCS_Region_liste_combo[2][2][30] = { type = "Z", snumregion = "226" };		--	Tram des profondeurs
DBCS_Region_liste_combo[2][2][31] = { type = "Z", snumregion = "082" };		--	Maleterres : l'enclave Ecarlate
DBCS_Region_liste_combo[2][2][32] = { type = "Z", snumregion = "232" };		--	TheCapeOfStranglethorn
DBCS_Region_liste_combo[2][2][33] = { type = "Z", snumregion = "233" };		--	VashjirRuins
DBCS_Region_liste_combo[2][2][34] = { type = "Z", snumregion = "234" };		--	VashjirKelpForest
DBCS_Region_liste_combo[2][2][35] = { type = "Z", snumregion = "235" };		--	TwilightHighlands
DBCS_Region_liste_combo[2][2][36] = { type = "Z", snumregion = "236" };		--	TolBaradDailyArea
DBCS_Region_liste_combo[2][2][37] = { type = "Z", snumregion = "237" };		--	VashjirDepths
DBCS_Region_liste_combo[2][2][38] = { type = "Z", snumregion = "238" };		--	RuinsofGilneas
DBCS_Region_liste_combo[2][2][39] = { type = "Z", snumregion = "239" };		--	RuinsofGilneasCity
DBCS_Region_liste_combo[2][2][40] = { type = "Z", snumregion = "240" };		--	StranglethornJungle
DBCS_Region_liste_combo[2][2][41] = { type = "Z", snumregion = "241" };		--	Vashjir
DBCS_Region_liste_combo[2][2][42] = { type = "Z", snumregion = "242" };		--	TolBarad
DBCS_Region_liste_combo[2][2][43] = { type = "Z", snumregion = "243" };
DBCS_Region_liste_combo[2][2][44] = { type = "Z", snumregion = "244" };
DBCS_Region_liste_combo[2][2][45] = { type = "Z", snumregion = "245" };
DBCS_Region_liste_combo[2][2][46] = { type = "Z", snumregion = "246" };
DBCS_Region_liste_combo[2][2][47] = { type = "Z", snumregion = "247" };
DBCS_Region_liste_combo[2][3] = { name = "Outreterre", snumregion = "300" };
DBCS_Region_liste_combo[2][3][1] = { type = "Z", snumregion = "301" };	--	For\195\170t de Terokkar
DBCS_Region_liste_combo[2][3][2] = { type = "Z", snumregion = "302" };	--	Les Tranchantes
DBCS_Region_liste_combo[2][3][3] = { type = "Z", snumregion = "303" };	--	Mar\195\169cage de Zangar
DBCS_Region_liste_combo[2][3][4] = { type = "Z", snumregion = "304" };	--	Nagrand
DBCS_Region_liste_combo[2][3][5] = { type = "Z", snumregion = "305" };	--	P\195\169ninsule des Flammes infernales
DBCS_Region_liste_combo[2][3][6] = { type = "Z", snumregion = "306" };	--	Raz-de-N\195\169ant
DBCS_Region_liste_combo[2][3][7] = { type = "Z", snumregion = "307" };	--	Shattrath
DBCS_Region_liste_combo[2][3][8] = { type = "Z", snumregion = "308" };	--	Vall\195\169e d'Ombrelune
DBCS_Region_liste_combo[2][3][9] = { type = "Z", snumregion = "309" };	--	Le Néant distordu
DBCS_Region_liste_combo[2][4] = { name = "Norfendre", snumregion = "400" };
DBCS_Region_liste_combo[2][4][1] = { type = "Z", snumregion = "414" };	--	Accostage de Hrothgar
DBCS_Region_liste_combo[2][4][2] = { type = "Z", snumregion = "401" };		--	Bassin de Sholazar
DBCS_Region_liste_combo[2][4][3] = { type = "Z", snumregion = "402" };		--	Dalaran
DBCS_Region_liste_combo[2][4][4] = { type = "Z", snumregion = "403" };		--	D\195\169solation des dragons
DBCS_Region_liste_combo[2][4][5] = { type = "Z", snumregion = "404" };		--	Fjord Hurlant
DBCS_Region_liste_combo[2][4][6] = { type = "Z", snumregion = "405" };		--	For\195\170t du Chant de cristal
DBCS_Region_liste_combo[2][4][7] = { type = "Z", snumregion = "412" };		--	Joug-d'hiver
DBCS_Region_liste_combo[2][4][8] = { type = "Z", snumregion = "406" };		--	La Couronne de glace
DBCS_Region_liste_combo[2][4][9] = { type = "Z", snumregion = "407" };		--	Les Grisonnes
DBCS_Region_liste_combo[2][4][10] = { type = "Z", snumregion = "408" };		--	Les pics Foudroy\195\169s
DBCS_Region_liste_combo[2][4][11] = { type = "Z", snumregion = "409" };	--	Toundra Bor\195\169enne
DBCS_Region_liste_combo[2][4][12] = { type = "Z", snumregion = "410" };	--	Zul'Drak
DBCS_Region_liste_combo[2][4][13] = { type = "Z", snumregion = "413" };	--	La mer Boréale
DBCS_Region_liste_combo[2][4][14] = { type = "Z", snumregion = "411" };	--	La mer Gelée
DBCS_Region_liste_combo[2][5] = { name = "Cataclysme", snumregion = "500" };
DBCS_Region_liste_combo[2][5][1] = { type = "Z", snumregion = "501" };	--	Kezan
DBCS_Region_liste_combo[2][5][2] = { type = "Z", snumregion = "502" };	--	TheMaelstrom
DBCS_Region_liste_combo[2][5][3] = { type = "Z", snumregion = "503" };	--	Deepholm
DBCS_Region_liste_combo[2][5][4] = { type = "Z", snumregion = "504" };	--	Les Iles Perdues
DBCS_Region_liste_combo[2][6] = { name = "Pandarie", snumregion = "600" };
DBCS_Region_liste_combo[2][6][1] = { type = "Z", snumregion = "601" };	--
DBCS_Region_liste_combo[2][6][2] = { type = "Z", snumregion = "602" };	--
DBCS_Region_liste_combo[2][6][3] = { type = "Z", snumregion = "603" };	--
--DBCS_Region_liste_combo[2][6][4] = { type = "Z", snumregion = "604" };	--
--DBCS_Region_liste_combo[2][6][5] = { type = "Z", snumregion = "605" };	--
DBCS_Region_liste_combo[2][6][4] = { type = "Z", snumregion = "606" };	--
DBCS_Region_liste_combo[2][6][5] = { type = "Z", snumregion = "607" };	--
DBCS_Region_liste_combo[2][6][6] = { type = "Z", snumregion = "608" };	--
DBCS_Region_liste_combo[2][6][7] = { type = "Z", snumregion = "609" };	--
DBCS_Region_liste_combo[2][6][8] = { type = "Z", snumregion = "610" };	--
DBCS_Region_liste_combo[2][6][9] = { type = "Z", snumregion = "611" };	--
DBCS_Region_liste_combo[2][6][10] = { type = "Z", snumregion = "612" };	--
DBCS_Region_liste_combo[2][6][11] = { type = "Z", snumregion = "613" };	--
if ( DBCS_Region_wow_build_info > DBCS_Region_wow_build_info_live ) then
DBCS_Region_liste_combo[2][7] = { name = "Draenor", snumregion = "700" };
DBCS_Region_liste_combo[2][7][1] = { type = "Z", snumregion = "701" };	-- A'shran
DBCS_Region_liste_combo[2][7][2] = { type = "Z", snumregion = "702" };	-- Crête de Givrefeu
DBCS_Region_liste_combo[2][7][3] = { type = "Z", snumregion = "703" };	-- Flèches d'Arak
DBCS_Region_liste_combo[2][7][4] = { type = "Z", snumregion = "704" };	-- Gorgrond
DBCS_Region_liste_combo[2][7][5] = { type = "Z", snumregion = "705" };	-- Jungle de Tanaan
DBCS_Region_liste_combo[2][7][6] = { type = "Z", snumregion = "706" };	-- Nagrand
DBCS_Region_liste_combo[2][7][7] = { type = "Z", snumregion = "707" };	-- Talador
DBCS_Region_liste_combo[2][7][8] = { type = "Z", snumregion = "708" };	-- Vallée d'Ombrelune
DBCS_Region_liste_combo[2][7][9] = { type = "Z", snumregion = "0DW" };	--	bouclier des tempetes
DBCS_Region_liste_combo[2][7][10] = { type = "Z", snumregion = "0DY" };	--	fer de lance
DBCS_Region_liste_combo[2][7][11] = { type = "Z", snumregion = "0E5" };
DBCS_Region_liste_combo[2][7][12] = { type = "Z", snumregion = "0E6" };
DBCS_Region_liste_combo[2][7][13] = { type = "Z", snumregion = "0E7" };
DBCS_Region_liste_combo[2][7][14] = { type = "Z", snumregion = "0EB" };
DBCS_Region_liste_combo[2][7][15] = { type = "Z", snumregion = "0EC" };
DBCS_Region_liste_combo[2][7][16] = { type = "Z", snumregion = "0ED" };
end

DBCS_Region_liste_combo[3] = { name = "Instances" };
DBCS_Region_liste_combo[3][1] = { name = "basiques" };
DBCS_Region_liste_combo[3][1][1] = { type = "Z", snumregion = "008" };		--	Gouffre de Ragefeu			15-21					15-21	10
DBCS_Region_liste_combo[3][1][2] = { type = "Z", snumregion = "014" };		--	Les Mortemines				15-25					15-21	10
DBCS_Region_liste_combo[3][1][3] = { type = "Z", snumregion = "004" };		--	Cavernes des lamentations		15-25				15-25	10
DBCS_Region_liste_combo[3][1][4] = { type = "Z", snumregion = "006" };		--	Donjon d'Ombrecroc			16-26					16-26	11
DBCS_Region_liste_combo[3][1][5] = { type = "Z", snumregion = "020" };		--	Profondeurs de Brassenoire		19-29				20-30	15
DBCS_Region_liste_combo[3][1][6] = { type = "Z", snumregion = "012" };		--	La Prison					20-30					20-30	15
DBCS_Region_liste_combo[3][1][7] = { type = "Z", snumregion = "007" };		--	Gnomeregan				23-33						24-34	19
DBCS_Region_liste_combo[3][1][8] = { type = "Z", snumregion = "016" };		--	Monast\195\168re \195\169carlate	30-40			cimetière	26-36	21	bibliothèque	29-39	21	armurerie	32-42	21	cathédrale	35-45	21
DBCS_Region_liste_combo[3][1][9] = { type = "Z", snumregion = "011" };		--	Kraal de Tranchebauge			22-32				30-40	25
DBCS_Region_liste_combo[3][1][10] = { type = "Z", snumregion = "015" };	--	Maraudon					40-49						cristaux pourpres	30-40	25	cristaux oranges	32-42	25	pristine waters	34-44	25
DBCS_Region_liste_combo[3][1][11] = { type = "Z", snumregion = "026" };	--	Uldaman					35-45							35-45	30
DBCS_Region_liste_combo[3][1][12] = { type = "Z", snumregion = "010" };	--	Hache-tripes				55-60						est	36-46	31	ouest	39-49	34	nord	42-52	37
DBCS_Region_liste_combo[3][1][13] = { type = "Z", snumregion = "023" };	--	Scholomance				56-60							38-48	33
DBCS_Region_liste_combo[3][1][14] = { type = "Z", snumregion = "024" };	--	Souilles de Tranchebauge		35-43					40-50	35
DBCS_Region_liste_combo[3][1][15] = { type = "Z", snumregion = "025" };	--	Stratholme					55-60						entrée principale	42-52	37	entrée de service	46-56	41
DBCS_Region_liste_combo[3][1][16] = { type = "Z", snumregion = "028" };	--	Zul'Farrak					40-49						44-54	39
DBCS_Region_liste_combo[3][1][17] = { type = "Z", snumregion = "019" };	--	Profondeurs de Rochenoire		55-60					prison	47-57	42	ville supérieure	51-61	46
DBCS_Region_liste_combo[3][1][18] = { type = "Z", snumregion = "013" };	--	Le temple d'Atal'Hakkar			44-50					50-60	45
DBCS_Region_liste_combo[3][1][19] = { type = "Z", snumregion = "018" };	--	Pic Rochenoire				53-60						inférieur	55-65	48	supérieur	55-65	48
DBCS_Region_liste_combo[3][1][20] = { type = "Z", snumregion = "029" };	--	Zul'Gurub					55-60
DBCS_Region_liste_combo[3][1][21] = { type = "Z", snumregion = "005" };	--	C\197\147ur du Magma			60-60
DBCS_Region_liste_combo[3][1][22] = { type = "Z", snumregion = "031" };	--	Ruines d'Ahn'Qiraj			60-60
DBCS_Region_liste_combo[3][1][23] = { type = "Z", snumregion = "021" };	--	Repaire de l'Aile noire			60-60
DBCS_Region_liste_combo[3][1][24] = { type = "Z", snumregion = "030" };	--	Ahn'Qiraj					60-60
DBCS_Region_liste_combo[3][1][25] = { type = "Z", snumregion = "032" };	--	Naxxramas 60				60-60
DBCS_Region_liste_combo[3][2] = { name = "BC" };
DBCS_Region_liste_combo[3][2][1] = { type = "Z", snumregion = "033" };		--	Remparts des Flammes infernales		60-63
DBCS_Region_liste_combo[3][2][2] = { type = "Z", snumregion = "034" };		--	La Fournaise du sang				61-63
DBCS_Region_liste_combo[3][2][3] = { type = "Z", snumregion = "042" };		--	Les enclos aux esclaves				63-64
DBCS_Region_liste_combo[3][2][4] = { type = "Z", snumregion = "043" };		--	La Basse-tourbi\195\168re			63-65
DBCS_Region_liste_combo[3][2][5] = { type = "Z", snumregion = "040" };		--	Tombes-mana					64-66
DBCS_Region_liste_combo[3][2][6] = { type = "Z", snumregion = "054" };		--	Contreforts de Hautebrande d'antan		66-68
DBCS_Region_liste_combo[3][2][7] = { type = "Z", snumregion = "055" };		--	Le Noir Mar\195\169cage			68-70
DBCS_Region_liste_combo[3][2][8] = { type = "Z", snumregion = "044" };		--	Le Caveau de la vapeur				70-70
DBCS_Region_liste_combo[3][2][9] = { type = "Z", snumregion = "037" };		--	Cryptes Auchena\195\175			70-70
DBCS_Region_liste_combo[3][2][10] = { type = "Z", snumregion = "039" };	--	Les salles des Sethekk				70-70
DBCS_Region_liste_combo[3][2][11] = { type = "Z", snumregion = "047" };	--	Le M\195\169chanar				70-70
DBCS_Region_liste_combo[3][2][12] = { type = "Z", snumregion = "048" };	--	La Botanica						70-70
DBCS_Region_liste_combo[3][2][13] = { type = "Z", snumregion = "049" };	--	L'Arcatraz						70-70
DBCS_Region_liste_combo[3][2][14] = { type = "Z", snumregion = "038" };	--	Labyrinthe des ombres				70-70
DBCS_Region_liste_combo[3][2][15] = { type = "Z", snumregion = "035" };	--	Les Salles bris\195\169es			70-70
DBCS_Region_liste_combo[3][2][16] = { type = "Z", snumregion = "060" };	--	Terrasse des Magist\195\168res		70-70
DBCS_Region_liste_combo[3][2][17] = { type = "Z", snumregion = "051" };	--	Karazhan						70-70
DBCS_Region_liste_combo[3][2][18] = { type = "Z", snumregion = "059" };	--	Zul'Aman						70-70
DBCS_Region_liste_combo[3][2][19] = { type = "Z", snumregion = "046" };	--	Repaire de Gruul					70-70
DBCS_Region_liste_combo[3][2][20] = { type = "Z", snumregion = "045" };	--	Caverne du sanctuaire du Serpent		70-70
DBCS_Region_liste_combo[3][2][21] = { type = "Z", snumregion = "036" };	--	Le repaire de Magtheridon			70-70
DBCS_Region_liste_combo[3][2][22] = { type = "Z", snumregion = "057" };	--	Donjon de la Temp\195\170te			70-70
DBCS_Region_liste_combo[3][2][23] = { type = "Z", snumregion = "056" };	--	Sommet d'Hyjal					70-70
DBCS_Region_liste_combo[3][2][24] = { type = "Z", snumregion = "041" };	--	Temple noir						70-70
DBCS_Region_liste_combo[3][2][25] = { type = "Z", snumregion = "061" };	--	Plateau du Puits de soleil				70-70
DBCS_Region_liste_combo[3][3] = { name = "WOTLK" };
DBCS_Region_liste_combo[3][3][1] = { type = "Z", snumregion = "062" };		--	Donjon d'Utgarde				70-71
DBCS_Region_liste_combo[3][3][2] = { type = "Z", snumregion = "063" };		--	Le Nexus					70-71
DBCS_Region_liste_combo[3][3][3] = { type = "Z", snumregion = "064" };		--	Azjol-N\195\169rub			72-74
DBCS_Region_liste_combo[3][3][4] = { type = "Z", snumregion = "065" };		--	Donjon de Drak'Tharon			73-75
DBCS_Region_liste_combo[3][3][5] = { type = "Z", snumregion = "073" };		--	Gundrak					73-75
DBCS_Region_liste_combo[3][3][6] = { type = "Z", snumregion = "074" };		--	Ahn'kahet : l'Ancien royaume		73-75
DBCS_Region_liste_combo[3][3][7] = { type = "Z", snumregion = "075" };		--	Le fort Pourpre				75-77
DBCS_Region_liste_combo[3][3][8] = { type = "Z", snumregion = "066" };		--	Les salles de Pierre			77-79
DBCS_Region_liste_combo[3][3][9] = { type = "Z", snumregion = "068" };		--	Les salles de Foudre			80-80
DBCS_Region_liste_combo[3][3][10] = { type = "Z", snumregion = "069" };	--	L'Oculus					80-80
DBCS_Region_liste_combo[3][3][11] = { type = "Z", snumregion = "070" };	--	L'épuration de Stratholme	80-80
DBCS_Region_liste_combo[3][3][12] = { type = "Z", snumregion = "071" };	--	Cime d'Utgarde				80-80
DBCS_Region_liste_combo[3][3][13] = { type = "Z", snumregion = "077" };	--	Naxxramas					80-80
DBCS_Region_liste_combo[3][3][14] = { type = "Z", snumregion = "072" };	--	L'OEil de l'éternité		80-80
DBCS_Region_liste_combo[3][3][15] = { type = "Z", snumregion = "076" };	--	Le sanctum obsidien			80-80
DBCS_Region_liste_combo[3][3][16] = { type = "Z", snumregion = "080" };	--	Caveau d'Archavon			80-80
DBCS_Region_liste_combo[3][3][17] = { type = "Z", snumregion = "081" };	--	Ulduar					80-80
DBCS_Region_liste_combo[3][3][18] = { type = "Z", snumregion = "083" };	--	L'épreuve du champion			80-80
DBCS_Region_liste_combo[3][3][19] = { type = "Z", snumregion = "084" };	--	L'épreuve du crois\195\169			80-80
DBCS_Region_liste_combo[3][3][20] = { type = "Z", snumregion = "022" };	--	Repaire d'Onyxia				60-60	80-80
DBCS_Region_liste_combo[3][3][21] = { type = "Z", snumregion = "085" };	--	La Forge des âmes					80-80
DBCS_Region_liste_combo[3][3][22] = { type = "Z", snumregion = "087" };	--	Fosse de Saron					80-80
DBCS_Region_liste_combo[3][3][23] = { type = "Z", snumregion = "089" };	--	Salles des Reflets					80-80
DBCS_Region_liste_combo[3][3][24] = { type = "Z", snumregion = "088" };	--	Citadelle de la Couronne de glace		80-80
DBCS_Region_liste_combo[3][3][25] = { type = "Z", snumregion = "090" };	--	Le Sanctuaire Rubis			80-80
DBCS_Region_liste_combo[3][3][26] = { type = "Z", snumregion = "0A6" };	--	Terrasse d'Ahn'Qiraj		80-80
DBCS_Region_liste_combo[3][4] = { name = "Cataclysme" };
--donjon
DBCS_Region_liste_combo[3][4][1] = { type = "Z", snumregion = "096" };		--	Cavernes de Rochenoire			85-85		normal 279		héro 346	80-83
DBCS_Region_liste_combo[3][4][2] = { type = "Z", snumregion = "093" };		--	Trône des marées				85-85		normal 279		héro 346	80-83
DBCS_Region_liste_combo[3][4][3] = { type = "Z", snumregion = "0A0" };		--	Cime du Vortex				85-85			normal 316		héro 346	81-85
DBCS_Region_liste_combo[3][4][4] = { type = "Z", snumregion = "095" };		--	Le Coeur-de-pierre			85-85			normal 316		héro 346	81-85
DBCS_Region_liste_combo[3][4][5] = { type = "Z", snumregion = "091" };		--	Salles de l'Origine			85-85			normal 333		héro 346
DBCS_Region_liste_combo[3][4][6] = { type = "Z", snumregion = "094" };		--	Grim Batol					85-85			normal 333		héro 346
DBCS_Region_liste_combo[3][4][7] = { type = "Z", snumregion = "0A1" };		--	Cit\195\169 perdue des Tol'vir	85-85		normal 333		héro 346
DBCS_Region_liste_combo[3][4][8] = { type = "Z", snumregion = "014" };		--	mortemines													héro 346
DBCS_Region_liste_combo[3][4][9] = { type = "Z", snumregion = "006" };		--	donjon d'ombrecroc											héro 346
DBCS_Region_liste_combo[3][4][10] = { type = "Z", snumregion = "097" };		--	zul'gurub						85-85						héro 353
DBCS_Region_liste_combo[3][4][11] = { type = "Z", snumregion = "059" };		--	zul'aman						85-85						héro 353
--raid
DBCS_Region_liste_combo[3][4][12] = { type = "Z", snumregion = "0A3" };		--	Bastion de Baradin				85-85
DBCS_Region_liste_combo[3][4][13] = { type = "Z", snumregion = "099" };		--	Descente de l'aile noire		85-85
DBCS_Region_liste_combo[3][4][14] = { type = "Z", snumregion = "098" };		--	Bastion du Crépuscule			85-85
DBCS_Region_liste_combo[3][4][15] = { type = "Z", snumregion = "0A2" };		--	Tr\195\180ne des quatre vents	85-85
DBCS_Region_liste_combo[3][4][16] = { type = "Z", snumregion = "0A4" };		--	Terres de Feu					85-85
DBCS_Region_liste_combo[3][4][17] = { type = "Z", snumregion = "0A7" };		--	Front du Magma					85-85
DBCS_Region_liste_combo[3][4][18] = { type = "Z", snumregion = "0A8" };		--	Le Nexus - Légendaire			85-85
DBCS_Region_liste_combo[3][4][19] = { type = "Z", snumregion = "0A9" };		--	Gilnéas							1-5
DBCS_Region_liste_combo[3][4][20] = { type = "Z", snumregion = "0AA" };		--	Gilnéas							5-
DBCS_Region_liste_combo[3][4][21] = { type = "Z", snumregion = "0DH" };		--	Gilnéas 2						5-
--4.3
--if ( DBCS_Region_wow_build_info > DBCS_Region_wow_build_info_live ) then
DBCS_Region_liste_combo[3][4][22] = { type = "Z", snumregion = "0AB" };		--	
DBCS_Region_liste_combo[3][4][23] = { type = "Z", snumregion = "0AC" };		--	
DBCS_Region_liste_combo[3][4][24] = { type = "Z", snumregion = "0AD" };		--	
DBCS_Region_liste_combo[3][4][25] = { type = "Z", snumregion = "0AE" };		--	
DBCS_Region_liste_combo[3][4][26] = { type = "Z", snumregion = "0AF" };		--	
--end
DBCS_Region_liste_combo[3][5] = { name = "Pandarie" };
DBCS_Region_liste_combo[3][5][1] = { type = "Z", snumregion = "0AJ" };		--	donj 85
DBCS_Region_liste_combo[3][5][2] = { type = "Z", snumregion = "0AS" };		--	donj 85
DBCS_Region_liste_combo[3][5][3] = { type = "Z", snumregion = "0AN" };		--	donj 87
DBCS_Region_liste_combo[3][5][4] = { type = "Z", snumregion = "0AQ" };		--	donj 87
DBCS_Region_liste_combo[3][5][5] = { type = "Z", snumregion = "0AR" };		--	donj 90
DBCS_Region_liste_combo[3][5][6] = { type = "Z", snumregion = "0AV" };		--	donj 90
DBCS_Region_liste_combo[3][5][7] = { type = "Z", snumregion = "0CH" };		--	donj 90
DBCS_Region_liste_combo[3][5][8] = { type = "Z", snumregion = "0CI" };		--	donj 90
DBCS_Region_liste_combo[3][5][9] = { type = "Z", snumregion = "0CJ" };		--	donj 90
DBCS_Region_liste_combo[3][5][10] = { type = "Z", snumregion = "0AO" };		--	raid 90
DBCS_Region_liste_combo[3][5][11] = { type = "Z", snumregion = "0AK" };		--	raid 90
DBCS_Region_liste_combo[3][5][12] = { type = "Z", snumregion = "0AU" };		--	raid 90
DBCS_Region_liste_combo[3][5][13] = { type = "Z", snumregion = "0AZ" };		--	zone start pandaren
DBCS_Region_liste_combo[3][5][14] = { type = "Z", snumregion = "0D1" };		--	raid 90 5.2
DBCS_Region_liste_combo[3][5][15] = { type = "Z", snumregion = "0DD" };		--	raid 90

if ( DBCS_Region_wow_build_info > DBCS_Region_wow_build_info_live ) then
DBCS_Region_liste_combo[3][6] = { name = "Draenor" };
DBCS_Region_liste_combo[3][6][1] = { type = "Z", snumregion = "0DI" };		--	donj
DBCS_Region_liste_combo[3][6][2] = { type = "Z", snumregion = "0DO" };		--	donj
DBCS_Region_liste_combo[3][6][3] = { type = "Z", snumregion = "0DM" };		--	donj
DBCS_Region_liste_combo[3][6][4] = { type = "Z", snumregion = "0DQ" };		--	donj
DBCS_Region_liste_combo[3][6][5] = { type = "Z", snumregion = "0DJ" };		--	donj
DBCS_Region_liste_combo[3][6][6] = { type = "Z", snumregion = "0DS" };		--	donj
DBCS_Region_liste_combo[3][6][7] = { type = "Z", snumregion = "0DV" };		--	donj
DBCS_Region_liste_combo[3][6][8] = { type = "Z", snumregion = "0DU" };		--	donj
DBCS_Region_liste_combo[3][6][9] = { type = "Z", snumregion = "0DT" };		--	raid
DBCS_Region_liste_combo[3][6][10] = { type = "Z", snumregion = "0DP" };		--	raid
end

DBCS_Region_liste_combo[4] = { name = "BG" };
DBCS_Region_liste_combo[4][1] = { type = "Z", snumregion = "009" };	--	Goulet des Chanteguerres
DBCS_Region_liste_combo[4][2] = { type = "Z", snumregion = "003" };	--	Bassin d'Arathi
DBCS_Region_liste_combo[4][3] = { type = "Z", snumregion = "027" };	--	Vall\195\169e d'Alterac
DBCS_Region_liste_combo[4][4] = { type = "Z", snumregion = "050" };	--	L'\197\146il du cyclone
DBCS_Region_liste_combo[4][5] = { type = "Z", snumregion = "067" };	--	Rivage des Anciens
DBCS_Region_liste_combo[4][6] = { type = "Z", snumregion = "086" };	--	Île des Conquérants
DBCS_Region_liste_combo[4][7] = { type = "Z", snumregion = "0A5" };		--Pics-Jumeaux
DBCS_Region_liste_combo[4][8] = { type = "Z", snumregion = "092" };		--La bataille de Gilnéas
DBCS_Region_liste_combo[4][9] = { type = "Z", snumregion = "0AT" };		--	
DBCS_Region_liste_combo[4][10] = { type = "Z", snumregion = "0AY" };		--	
DBCS_Region_liste_combo[4][11] = { type = "Z", snumregion = "0D7" };		--	
if ( DBCS_Region_wow_build_info > DBCS_Region_wow_build_info_live ) then
DBCS_Region_liste_combo[4][12] = { type = "Z", snumregion = "0DX" };		--	Moulin-de-tarren contre Austrivage
end
DBCS_Region_liste_combo[5] = { name = "Ar\195\168nes" };
DBCS_Region_liste_combo[5][1] = { type = "Z", snumregion = "052" };	--	Ar\195\168ne de Nagrand
DBCS_Region_liste_combo[5][2] = { type = "Z", snumregion = "053" };	--	Ar\195\168ne des Tranchantes
DBCS_Region_liste_combo[5][3] = { type = "Z", snumregion = "058" };	--	Ruines de Lordaeron
DBCS_Region_liste_combo[5][4] = { type = "Z", snumregion = "078" };	--	L'Ar\195\168ne des Valeureux
DBCS_Region_liste_combo[5][5] = { type = "Z", snumregion = "079" };	--	\195\137gouts de Dalaran
DBCS_Region_liste_combo[5][6] = { type = "Z", snumregion = "0CQ" };	--	Arène Tol'viron
DBCS_Region_liste_combo[5][7] = { type = "Z", snumregion = "0CR" };	--	Arène de Castagn'ar
DBCS_Region_liste_combo[5][8] = { type = "Z", snumregion = "0DC" };	--	Le croc du Tigre
DBCS_Region_liste_combo[6] = { name = "Micro donjon" };
DBCS_Region_liste_combo[6][1] = { name = "basiques" };
DBCS_Region_liste_combo[6][1][1] = { type = "Z", snumregion = "0B7" };		--	
DBCS_Region_liste_combo[6][1][2] = { type = "Z", snumregion = "0B9" };		--	
DBCS_Region_liste_combo[6][1][3] = { type = "Z", snumregion = "0BA" };		--	
DBCS_Region_liste_combo[6][1][4] = { type = "Z", snumregion = "0BB" };		--	
DBCS_Region_liste_combo[6][1][5] = { type = "Z", snumregion = "0BC" };		--	
DBCS_Region_liste_combo[6][1][6] = { type = "Z", snumregion = "0BD" };		--	
DBCS_Region_liste_combo[6][1][7] = { type = "Z", snumregion = "0BE" };		--	
DBCS_Region_liste_combo[6][1][8] = { type = "Z", snumregion = "0BF" };		--	
DBCS_Region_liste_combo[6][1][9] = { type = "Z", snumregion = "0BG" };		--	
DBCS_Region_liste_combo[6][1][10] = { type = "Z", snumregion = "0BH" };		--	
DBCS_Region_liste_combo[6][1][11] = { type = "Z", snumregion = "0BI" };		--	
DBCS_Region_liste_combo[6][1][12] = { type = "Z", snumregion = "0BJ" };		--	
DBCS_Region_liste_combo[6][1][13] = { type = "Z", snumregion = "0BK" };		--	
DBCS_Region_liste_combo[6][1][14] = { type = "Z", snumregion = "0BL" };		--	
DBCS_Region_liste_combo[6][1][15] = { type = "Z", snumregion = "0BM" };		--	
DBCS_Region_liste_combo[6][1][16] = { type = "Z", snumregion = "0BN" };		--	
DBCS_Region_liste_combo[6][1][17] = { type = "Z", snumregion = "0BO" };		--	
DBCS_Region_liste_combo[6][1][18] = { type = "Z", snumregion = "0BP" };		--	
DBCS_Region_liste_combo[6][1][19] = { type = "Z", snumregion = "0BQ" };		--	
DBCS_Region_liste_combo[6][1][20] = { type = "Z", snumregion = "0BX" };		--	
DBCS_Region_liste_combo[6][1][21] = { type = "Z", snumregion = "0BY" };		--	
DBCS_Region_liste_combo[6][1][22] = { type = "Z", snumregion = "0BZ" };		--	
DBCS_Region_liste_combo[6][1][23] = { type = "Z", snumregion = "0C0" };		--	
DBCS_Region_liste_combo[6][1][24] = { type = "Z", snumregion = "0C1" };		--	
DBCS_Region_liste_combo[6][1][25] = { type = "Z", snumregion = "0C2" };		--	
DBCS_Region_liste_combo[6][1][26] = { type = "Z", snumregion = "0C3" };		--	
DBCS_Region_liste_combo[6][1][27] = { type = "Z", snumregion = "0C4" };		--	
DBCS_Region_liste_combo[6][1][28] = { type = "Z", snumregion = "0C5" };		--	
DBCS_Region_liste_combo[6][1][29] = { type = "Z", snumregion = "0C6" };		--	
DBCS_Region_liste_combo[6][1][30] = { type = "Z", snumregion = "0C7" };		--	
DBCS_Region_liste_combo[6][1][31] = { type = "Z", snumregion = "0CA" };		--	
DBCS_Region_liste_combo[6][1][32] = { type = "Z", snumregion = "0CB" };		--	
DBCS_Region_liste_combo[6][1][33] = { type = "Z", snumregion = "0CD" };		--	
DBCS_Region_liste_combo[6][1][34] = { type = "Z", snumregion = "0CE" };		--	
DBCS_Region_liste_combo[6][1][35] = { type = "Z", snumregion = "0CF" };		--	
DBCS_Region_liste_combo[6][1][36] = { type = "Z", snumregion = "0CM" };		--	
DBCS_Region_liste_combo[6][1][37] = { type = "Z", snumregion = "0E2" };		--	
DBCS_Region_liste_combo[6][1][38] = { type = "Z", snumregion = "0E0" };		--	
DBCS_Region_liste_combo[6][1][39] = { type = "Z", snumregion = "0E3" };		--	
DBCS_Region_liste_combo[6][1][40] = { type = "Z", snumregion = "0E1" };		--	
DBCS_Region_liste_combo[6][2] = { name = "BC" };
DBCS_Region_liste_combo[6][2][1] = { type = "Z", snumregion = "0B1" };		--	
DBCS_Region_liste_combo[6][2][2] = { type = "Z", snumregion = "0B5" };		--	
DBCS_Region_liste_combo[6][3] = { name = "WOTLK" };
DBCS_Region_liste_combo[6][4] = { name = "Cataclysme" };
DBCS_Region_liste_combo[6][4][1] = { type = "Z", snumregion = "0BR" };		--	
DBCS_Region_liste_combo[6][4][2] = { type = "Z", snumregion = "0CG" };		--	
DBCS_Region_liste_combo[6][4][3] = { type = "Z", snumregion = "0C8" };		--	
DBCS_Region_liste_combo[6][4][4] = { type = "Z", snumregion = "0C9" };		--	
DBCS_Region_liste_combo[6][5] = { name = "Pandarie" };
DBCS_Region_liste_combo[6][5][1] = { type = "Z", snumregion = "0B0" };		--	
DBCS_Region_liste_combo[6][5][2] = { type = "Z", snumregion = "0B2" };		--	
DBCS_Region_liste_combo[6][5][3] = { type = "Z", snumregion = "0B3" };		--	
DBCS_Region_liste_combo[6][5][4] = { type = "Z", snumregion = "0B4" };		--	
DBCS_Region_liste_combo[6][5][5] = { type = "Z", snumregion = "0B6" };		--	
DBCS_Region_liste_combo[6][5][6] = { type = "Z", snumregion = "0B8" };		--	
DBCS_Region_liste_combo[6][5][7] = { type = "Z", snumregion = "0BS" };		--	
DBCS_Region_liste_combo[6][5][8] = { type = "Z", snumregion = "0BT" };		--	
DBCS_Region_liste_combo[6][5][9] = { type = "Z", snumregion = "0BU" };		--	
DBCS_Region_liste_combo[6][5][10] = { type = "Z", snumregion = "0BV" };		--	
DBCS_Region_liste_combo[6][5][11] = { type = "Z", snumregion = "0BW" };		--	
DBCS_Region_liste_combo[6][5][12] = { type = "Z", snumregion = "0CC" };		--	
DBCS_Region_liste_combo[6][5][13] = { type = "Z", snumregion = "0CX" };		--	RuinsofOgudei
DBCS_Region_liste_combo[6][5][14] = { type = "Z", snumregion = "0CW" };		--	RuinsofKorune
DBCS_Region_liste_combo[6][5][15] = { type = "Z", snumregion = "0D0" };		--	
DBCS_Region_liste_combo[6][5][16] = { type = "Z", snumregion = "0D4" };		--	
DBCS_Region_liste_combo[6][5][17] = { type = "Z", snumregion = "0D5" };		--	
DBCS_Region_liste_combo[6][5][18] = { type = "Z", snumregion = "0D6" };		--	
DBCS_Region_liste_combo[6][5][19] = { type = "Z", snumregion = "0DE" };		--	
DBCS_Region_liste_combo[6][5][20] = { type = "Z", snumregion = "0DZ" };		--	
if ( DBCS_Region_wow_build_info > DBCS_Region_wow_build_info_live ) then
DBCS_Region_liste_combo[6][6] = { name = "Draenor" };
DBCS_Region_liste_combo[6][6][1] = { type = "Z", snumregion = "0E4" };		--	
DBCS_Region_liste_combo[6][6][2] = { type = "Z", snumregion = "0E8" };		--	
DBCS_Region_liste_combo[6][6][3] = { type = "Z", snumregion = "0E9" };		--	
DBCS_Region_liste_combo[6][6][4] = { type = "Z", snumregion = "0EA" };		--	
DBCS_Region_liste_combo[6][6][5] = { type = "Z", snumregion = "0EE" };		--	
DBCS_Region_liste_combo[6][6][6] = { type = "Z", snumregion = "0EF" };		--	
DBCS_Region_liste_combo[6][6][7] = { type = "Z", snumregion = "0EG" };		--	
DBCS_Region_liste_combo[6][6][8] = { type = "Z", snumregion = "0EH" };		--	
DBCS_Region_liste_combo[6][6][9] = { type = "Z", snumregion = "0EI" };		--	
DBCS_Region_liste_combo[6][6][10] = { type = "Z", snumregion = "0EJ" };		--	
DBCS_Region_liste_combo[6][6][11] = { type = "Z", snumregion = "0EK" };		--	
DBCS_Region_liste_combo[6][6][12] = { type = "Z", snumregion = "0EL" };		--	
DBCS_Region_liste_combo[6][6][13] = { type = "Z", snumregion = "0EM" };		--	
DBCS_Region_liste_combo[6][6][14] = { type = "Z", snumregion = "0EN" };		--	
DBCS_Region_liste_combo[6][6][15] = { type = "Z", snumregion = "0EO" };		--	
DBCS_Region_liste_combo[6][6][16] = { type = "Z", snumregion = "0EP" };		--	
DBCS_Region_liste_combo[6][6][17] = { type = "Z", snumregion = "0EQ" };		--	
DBCS_Region_liste_combo[6][6][18] = { type = "Z", snumregion = "0ER" };		--	
DBCS_Region_liste_combo[6][6][19] = { type = "Z", snumregion = "0ES" };		--	
DBCS_Region_liste_combo[6][6][20] = { type = "Z", snumregion = "0ET" };		--	
DBCS_Region_liste_combo[6][6][21] = { type = "Z", snumregion = "0EU" };		--	
DBCS_Region_liste_combo[6][6][22] = { type = "Z", snumregion = "0EV" };		--	
end

DBCS_Region_liste_combo[7] = { name = "Sc\195\169nario" };
DBCS_Region_liste_combo[7][1] = { name = "Pandarie" };
DBCS_Region_liste_combo[7][1][1] = { type = "Z", snumregion = "0AP" };		--	1
DBCS_Region_liste_combo[7][1][2] = { type = "Z", snumregion = "0AI" };		--	2
DBCS_Region_liste_combo[7][1][3] = { type = "Z", snumregion = "0CP" };		--	3
DBCS_Region_liste_combo[7][1][4] = { type = "Z", snumregion = "0CO" };		--	4
DBCS_Region_liste_combo[7][1][5] = { type = "Z", snumregion = "0AG" };		--	5
DBCS_Region_liste_combo[7][1][6] = { type = "Z", snumregion = "0AL" };		--	6
DBCS_Region_liste_combo[7][1][7] = { type = "Z", snumregion = "0AW" };		--	7
DBCS_Region_liste_combo[7][1][8] = { type = "Z", snumregion = "0AH" };		--	8
DBCS_Region_liste_combo[7][1][9] = { type = "Z", snumregion = "0CS" };		--	9	Halte de la domination	scénario horde
DBCS_Region_liste_combo[7][1][10] = { type = "Z", snumregion = "0CT" };		--	10	Une dague dans la nuit	scénario horde
DBCS_Region_liste_combo[7][1][11] = { type = "Z", snumregion = "0CU" };		--	11	Un peu de patience	scénario alliance	--validé
DBCS_Region_liste_combo[7][1][12] = { type = "Z", snumregion = "0CV" };		--	12	Territoire du lion	scénario alliance
DBCS_Region_liste_combo[7][1][13] = { type = "Z", snumregion = "0AX" };		--	13	l'assaut de zan'vess
DBCS_Region_liste_combo[7][1][14] = { type = "Z", snumregion = "0CZ" };		--	14	jaina à dalaran
DBCS_Region_liste_combo[7][1][15] = { type = "Z", snumregion = "0D2" };		--	15
DBCS_Region_liste_combo[7][1][16] = { type = "Z", snumregion = "0D3" };		--	16
DBCS_Region_liste_combo[7][1][17] = { type = "Z", snumregion = "0D8" };		--	17	Le Sombre Coeur de la Pandarie
DBCS_Region_liste_combo[7][1][18] = { type = "Z", snumregion = "0D9" };		--	18	Les secrets de Ragefeu
DBCS_Region_liste_combo[7][1][19] = { type = "Z", snumregion = "0DA" };		--	19	Du sang dans la neige
DBCS_Region_liste_combo[7][1][20] = { type = "Z", snumregion = "0DB" };		--	20	Bataille en haute mer
DBCS_Region_liste_combo[7][1][21] = { type = "Z", snumregion = "0DF" };		--	21	Tournoi des Astres vénérables
DBCS_Region_liste_combo[7][1][22] = { type = "Z", snumregion = "0DG" };		--	22	Ordalie
if ( DBCS_Region_wow_build_info > DBCS_Region_wow_build_info_live ) then
DBCS_Region_liste_combo[7][2] = { name = "Draenor" };
DBCS_Region_liste_combo[7][2][1] = { type = "Z", snumregion = "0DK" };		--	assaut sur la porte des ténèbres
--DBCS_Region_liste_combo[7][2][2] = { type = "Z", snumregion = "0DL" };		--	Défense de Karabor				carte verte
--DBCS_Region_liste_combo[7][2][3] = { type = "Z", snumregion = "0DN" };		--	La bataille de Shattrath		carte verte
end

DBCS_Region_liste_combo[8] = { name = "Autres" };
DBCS_Region_liste_combo[8][1] = { name = "Autres" };
DBCS_Region_liste_combo[8][1][1] = { type = "Z", snumregion = "0AM" };		--	pic de la sérénité
DBCS_Region_liste_combo[8][1][2] = { type = "Z", snumregion = "0CY" };		--	temple noir démoniste
--if ( DBCS_Region_wow_build_info > DBCS_Region_wow_build_info_live ) then
--DBCS_Region_liste_combo[8][1][3] = { type = "Z", snumregion = "0DR" };		--	Terres Foudroyées
----DBCS_Region_liste_combo[8][1][12] = { type = "Z", snumregion = "0EH" };
--end

DBCS_Region_liste_bchange = true;
DBCS_Region_liste_bchange_5sec = 0;
DBCS_Region_liste_icont = nil;
DBCS_Region_liste_iregion = nil;
DBCS_Region_liste_sregion = nil;
DBCS_Region_liste_nivcarte = nil;
DBCS_Region_liste_snomregion = nil;

DBCS_Region_Ident_player = nil;
DBCS_Region_Ident_achievement_debut = nil;
DBCS_Region_Ident_achievement_fin = nil;

DBCS_Region_Minimap_numregion = nil;
DBCS_Region_Minimap_nivcarte = nil;

DBCS_Region_Minimap_combo_refresh = 0;

local DBCS_Region_Minimap_init_sregion = "";
local DBCS_Region_Minimap_init_inivcarte = -1;

local DBCS_Region_Minimap_init_loc_nummax = 0;
local DBCS_Region_Minimap_init_loc_num = 0;
local DBCS_Region_Minimap_init_loc_num_tableau = {};

local DBCS_Region_ZONE_CHANGED_NEW_AREA = false;

DBCS_Region_minimap_origine_x = nil;
DBCS_Region_minimap_origine_y = nil;
DBCS_Region_minimap_entreex = nil;
DBCS_Region_minimap_entreey = nil;

local DBCS_Region_minimap_borigine1 = false;
local DBCS_Region_minimap_borigine2 = false;

function DBCS_Region_OnEvent(self,event,...)

local x;
local y;
local ichelle;
local map_InCity;
local map_Nivzoom;
local scale;
local btrouve;
local inumentree;
local i;
local ecartentree_base;
local ecartentree;
local icont;
local iregion;
local sregion;
local inumMapAreaID;

	if ( event == "" ) then
	elseif ( event == "CHAT_MSG_CHANNEL_NOTICE") then
		DBCS_Region_liste_bchange = true;
		SetMapToCurrentZone();
		--DBCS_Region_liste_code_region_courante_new();
		--DBCS_Region_liste_bchange_5sec = GetTime();
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : CHAT_MSG_CHANNEL_NOTICE");
--end
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("inumMapAreaID = "..GetCurrentMapAreaID());
--end
	elseif ( event == "MINIMAP_PING") then	--cet event n'est pas initialisé ds le load, c est très bien ainsi !
		--_, _ = DBCS_Region_liste_code_region_courante_new();
		DBCS_Region_minimap_entreex = DBCS_Region_config_joueur_t["LOC_POSITIONX"];
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : MINIMAP_PING DBCS_Region_minimap_entreex-1 = "..DBCS_Region_minimap_entreex);
--end
		DBCS_Region_minimap_entreey = DBCS_Region_config_joueur_t["LOC_POSITIONY"];
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : MINIMAP_PING DBCS_Region_minimap_entreey-1 = "..DBCS_Region_minimap_entreey);
--end
		DBCS_Region_minimap_origine_x , DBCS_Region_minimap_origine_y = Minimap:GetPingPosition();
		DBCS_Region_minimap_origine_x = -1 * DBCS_Region_minimap_origine_x;
		if ( DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion] and DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion][0] ) then
			map_Nivzoom = Minimap:GetZoom();
			DBCS_Region_minimap_origine_x = DBCS_Region_minimap_origine_x / DBCS_Region_scales.cityZoom[map_Nivzoom];
			DBCS_Region_minimap_origine_x = DBCS_Region_minimap_origine_x * DBCS_Region_scales.cityZoom[5];
			DBCS_Region_minimap_origine_y = DBCS_Region_minimap_origine_y / DBCS_Region_scales.cityZoom[map_Nivzoom];
			DBCS_Region_minimap_origine_y = DBCS_Region_minimap_origine_y * DBCS_Region_scales.cityZoom[5];
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : MINIMAP_PING DBCS_Region_minimap_origine_x-2 = "..DBCS_Region_minimap_origine_x);
--end
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : MINIMAP_PING DBCS_Region_minimap_origine_y-2 = "..DBCS_Region_minimap_origine_y);
--end
		else
			DBCS_Region_minimap_origine_x = DBCS_Region_minimap_origine_x * 0.875;
			DBCS_Region_minimap_origine_y = DBCS_Region_minimap_origine_y * 0.875;
			map_InCity = DBCS_Region_isMinimapInCity();
			map_Nivzoom = Minimap:GetZoom();
			if ( map_InCity == true ) then
				scale = DBCS_Region_scales.cityZoom[map_Nivzoom];
			else
				scale = DBCS_Region_scales[3].scales[map_Nivzoom].scale;
			end
			DBCS_Region_minimap_origine_x = ( DBCS_Region_minimap_origine_x * 256 ) / scale;
			DBCS_Region_minimap_origine_y = ( DBCS_Region_minimap_origine_y * 256 ) / scale;
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : MINIMAP_PING DBCS_Region_minimap_origine_x-3 = "..DBCS_Region_minimap_origine_x);
--end
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : MINIMAP_PING DBCS_Region_minimap_origine_y-3 = "..DBCS_Region_minimap_origine_y);
--end
		end
	elseif ( event == "PLAYER_ENTERING_WORLD") then
		DBCS_Region_Minimap_combo_refresh = 1;
		DBCS_Region_liste_bchange = true;
		--DBCS_Region_liste_bchange_5sec = GetTime();
		DBCS_Region_minimap_borigine1 = true;
		btrouve = false;
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("SetMapToCurrentZone PLAYER_ENTERING_WORLD");
--end
		DBCS_Region_liste_SetMapToCurrentZone_b = true;
		SetMapToCurrentZone();	--20121217
		_, _ = DBCS_Region_liste_code_region_courante_new();
		if ( DBCS_Region_config_joueur_t["LOC_NUMREGION"] and DBCS_Region_config_joueur_t["LOC_NUMREGION"] == DBCS_Region_liste_sregion ) then
			if ( DBCS_Region_config_joueur_t["LOC_MINIMAPX"] ) then
				--if ( DBCS_Region_config_joueur_t["LOC_DATE"] and DBCS_Region_config_joueur_t["LOC_DATE"] == tonumber(date("%Y%m%d")) ) then	--vérifier que 30 minutes ne se sont pas écoulées, c'est mieux, sinon dès minuit, on est remis à l'entrée
				if ( DBCS_Region_config_joueur_t["LOC_TIME"] and ( DBCS_Region_config_joueur_t["LOC_TIME"] + 300 > time() ) ) then	--vérifier que 15 minutes ne se sont pas écoulées
					btrouve = true;
					DBCS_Region_minimap_origine_x , DBCS_Region_minimap_origine_y = Minimap:GetPingPosition();
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED_NEW_AREA DBCS_Region_minimap_origine_x-1 = "..DBCS_Region_minimap_origine_x);
--TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED_NEW_AREA DBCS_Region_minimap_origine_y-1 = "..DBCS_Region_minimap_origine_y);
--end
--						DBCS_Region_minimap_origine_x = DBCS_Region_config_joueur_t["LOC_MINIMAPX"];
--						DBCS_Region_minimap_origine_y = DBCS_Region_config_joueur_t["LOC_MINIMAPY"];
					DBCS_Region_minimap_entreex = DBCS_Region_config_joueur_t["LOC_POSITIONX"];
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED_NEW_AREA DBCS_Region_minimap_entreex-1 = "..DBCS_Region_minimap_entreex);
--end
					DBCS_Region_minimap_entreey = DBCS_Region_config_joueur_t["LOC_POSITIONY"];
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED_NEW_AREA DBCS_Region_minimap_entreey-1 = "..DBCS_Region_minimap_entreey);
--end
				else
					if ( DBCS_Region_config_joueur_t["LOC_NUMENTREE"] ) then
						btrouve = true;
						if ( DBCS_Region_config_joueur_t["LOC_NUMENTREE"] and DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion] and DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion][DBCS_Region_config_joueur_t["LOC_NUMENTREE"]*-1] and DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion][DBCS_Region_config_joueur_t["LOC_NUMENTREE"]*-1].entreex ) then
							DBCS_Region_minimap_entreex = DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion][DBCS_Region_config_joueur_t["LOC_NUMENTREE"]*-1].entreex;
							DBCS_Region_minimap_entreey = DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion][DBCS_Region_config_joueur_t["LOC_NUMENTREE"]*-1].entreey;
						end
					end
				end
			end
		end
		if ( btrouve == false ) then
			if ( DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion] and DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion][-1] and DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion][-1].entreex ) then
				if ( DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion][-1].nbentrees and DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion][-1].nbentrees > 1 ) then
					inumentree = 1;
					if ( DBCS_Region_config_joueur_t["REGION_PREC_numregion"] == DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion][-1].entreenumregion ) then
						ecartentree_base = sqrt((abs(DBCS_Region_config_joueur_t["REGION_PREC_x"] - DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion][-1].entreeposx)^2) + (abs(DBCS_Region_config_joueur_t["REGION_PREC_y"] - DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion][-1].entreeposy)^2));
if ( DBCS_debug and DBCS_debug > 1 ) then
TraceFrame:AddMessage("DBCS_Region_OnEvent : PLAYER_ENTERING_WORLD ecartentree_base = "..ecartentree_base);
end
						for i = 2 , DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion][-1].nbentrees do
							ecartentree = sqrt((abs(DBCS_Region_config_joueur_t["REGION_PREC_x"] - DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion][i*-1].entreeposx)^2) + (abs(DBCS_Region_config_joueur_t["REGION_PREC_y"] - DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion][i*-1].entreeposy)^2));
if ( DBCS_debug and DBCS_debug > 1 ) then
TraceFrame:AddMessage("DBCS_Region_OnEvent : PLAYER_ENTERING_WORLD ecartentree"..i.." = "..ecartentree);
end
							if ( ecartentree < ecartentree_base ) then
								inumentree = i;
								ecartentree_base = ecartentree;
							end
						end
					end
					DBCS_Region_config_joueur_t["LOC_NUMENTREE"] = inumentree;
					DBCS_Region_minimap_entreex = DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion][inumentree*-1].entreex;
					DBCS_Region_minimap_entreey = DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion][inumentree*-1].entreey;
if ( DBCS_debug and DBCS_debug > 1 ) then
TraceFrame:AddMessage("DBCS_Region_OnEvent : PLAYER_ENTERING_WORLD REGION_PREC_numregion1 = "..(DBCS_Region_config_joueur_t["REGION_PREC_numregion"] or ""));
TraceFrame:AddMessage("DBCS_Region_OnEvent : PLAYER_ENTERING_WORLD REGION_PREC_x1 = "..(DBCS_Region_config_joueur_t["REGION_PREC_x"] or ""));
TraceFrame:AddMessage("DBCS_Region_OnEvent : PLAYER_ENTERING_WORLD REGION_PREC_y1 = "..(DBCS_Region_config_joueur_t["REGION_PREC_y"] or ""));
end
				else
					DBCS_Region_minimap_entreex = DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion][-1].entreex;
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED_NEW_AREA DBCS_Region_minimap_entreex1 = "..DBCS_Region_minimap_entreex);
--end
					DBCS_Region_minimap_entreey = DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion][-1].entreey;
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED_NEW_AREA DBCS_Region_minimap_entreey1 = "..DBCS_Region_minimap_entreey);
--end
				end
			else
				DBCS_Region_minimap_entreex = 0;
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED_NEW_AREA DBCS_Region_minimap_entreex1 = "..DBCS_Region_minimap_entreex);
--end
				DBCS_Region_minimap_entreey = 0;
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED_NEW_AREA DBCS_Region_minimap_entreey1 = "..DBCS_Region_minimap_entreey);
--end
			end
		end
		DBCS_Region_minimap_origine_x , DBCS_Region_minimap_origine_y = Minimap:GetPingPosition();
		DBCS_Region_minimap_origine_x = -1 * DBCS_Region_minimap_origine_x;
		if ( DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion] and DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion][0] ) then
			map_Nivzoom = Minimap:GetZoom();
			DBCS_Region_minimap_origine_x = DBCS_Region_minimap_origine_x / DBCS_Region_scales.cityZoom[map_Nivzoom];
			DBCS_Region_minimap_origine_x = DBCS_Region_minimap_origine_x * DBCS_Region_scales.cityZoom[5];
			DBCS_Region_minimap_origine_y = DBCS_Region_minimap_origine_y / DBCS_Region_scales.cityZoom[map_Nivzoom];
			DBCS_Region_minimap_origine_y = DBCS_Region_minimap_origine_y * DBCS_Region_scales.cityZoom[5];
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED_NEW_AREA DBCS_Region_minimap_origine_x-2 = "..DBCS_Region_minimap_origine_x);
--end
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED_NEW_AREA DBCS_Region_minimap_origine_y-2 = "..DBCS_Region_minimap_origine_y);
--end
		else
			DBCS_Region_minimap_origine_x = DBCS_Region_minimap_origine_x * 0.875;
			DBCS_Region_minimap_origine_y = DBCS_Region_minimap_origine_y * 0.875;
			map_InCity = DBCS_Region_isMinimapInCity();
			map_Nivzoom = Minimap:GetZoom();
			if ( map_InCity == true ) then
				scale = DBCS_Region_scales.cityZoom[map_Nivzoom];
			else
				scale = DBCS_Region_scales[3].scales[map_Nivzoom].scale;
			end
			DBCS_Region_minimap_origine_x = ( DBCS_Region_minimap_origine_x * 256 ) / scale;
			DBCS_Region_minimap_origine_y = ( DBCS_Region_minimap_origine_y * 256 ) / scale;
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED_NEW_AREA DBCS_Region_minimap_origine_x-3 = "..DBCS_Region_minimap_origine_x);
--end
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED_NEW_AREA DBCS_Region_minimap_origine_y-3 = "..DBCS_Region_minimap_origine_y);
--end
		end
		--Minimap:PingLocation(0,0);
		--DBMM_minimapinit_origin();
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : PLAYER_ENTERING_WORLD");
--end
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("inumMapAreaID = "..GetCurrentMapAreaID());
--end
	elseif ( event == "VARIABLES_LOADED") then
		DBCS_Region_Minimap_radar = DBCS_Region_config_joueur_t["RADAR"];
		if ( DBCS_Region_Minimap_radar == nil ) then
			DBCS_Region_Minimap_radar = 0;
		end
		DBCS_Region_config_joueur_t["RADAR"] = DBCS_Region_Minimap_radar;
		DBCS_Region_Minimap_Tracking_afficher_icone();
		DBCS_Region_Minimap_mesuivre = DBCS_Region_config["MESUIVRE"];
		if ( DBCS_Region_Minimap_mesuivre == nil ) then
			DBCS_Region_Minimap_mesuivre = 1;
		elseif ( DBCS_Region_Minimap_mesuivre == 1 ) then
		else
			DBCS_Region_Minimap_mesuivre = 0;
		end
		DBCS_Region_config["MESUIVRE"] = DBCS_Region_Minimap_mesuivre;
		DBCS_Region_Minimap_combo_Mesuivre:SetChecked(DBCS_Region_Minimap_mesuivre);
		x = DBCS_Region_config["POSX"];
		y = DBCS_Region_config["POSY"];
		if ( x and y ) then
			DBCS_Region_Minimap:ClearAllPoints();
			DBCS_Region_Minimap:SetPoint("TOPLEFT",UIParent,"BOTTOMLEFT",x,y);
		end
		iechelle = DBCS_Region_config["ECHELLE"];
		if ( iechelle ) then
		else
			iechelle = 4;
		end
		if ( iechelle < 1 or iechelle > 10 ) then
			iechelle = 4;
		end
		DBCS_Region_Minimap_echelle = iechelle;
		DBCS_Region_config["ECHELLE"] = iechelle;
		UIDropDownMenu_SetSelectedValue(DBCS_Region_Minimap_combo_Echelle,iechelle);
		UIDropDownMenu_SetText(DBCS_Region_Minimap_combo_Echelle,""..iechelle);
		DBCS_Region_init_echelle();
		if ( DBCS_Region_Minimap_mesuivre == 1 ) then
			DBCS_Region_Minimap:Show();
			DBCS_Region_init_carte_region_courante();
		end
		DBCS_Region_Minimap_Tracking_SetTracking_afficher();
	elseif (event == "MINIMAP_UPDATE_ZOOM") then
		--SetMapToCurrentZone();
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : MINIMAP_UPDATE_ZOOM");
--end
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("GetCurrentMapAreaID = "..GetCurrentMapAreaID());
--end
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("GetCurrentMapDungeonLevel = "..GetCurrentMapDungeonLevel());
--end
		DBCS_Region_liste_bchange = true;
		--DBCS_Region_liste_code_region_courante_new();
	elseif ( event == "WORLD_MAP_UPDATE") then
		--DBCS_Region_liste_SetMapToCurrentZone_b = true;
--if ( InCombatLockdown() ) then
--	return nil;
--end
		--SetMapToCurrentZone();
		DBCS_Region_liste_bchange = true;
if ( DBCS_debug and DBCS_debug > 1 ) then
TraceFrame:AddMessage("DBCS_Region_OnEvent : WORLD_MAP_UPDATE");
end
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("GetCurrentMapAreaID = "..GetCurrentMapAreaID());
--end
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("GetCurrentMapDungeonLevel = "..GetCurrentMapDungeonLevel());
--end
--/script DBCS_region_tester_difficulte();
--/script SetMapToCurrentZone();
		if ( ( GetTime() - DBCS_Region_liste_bchange_5sec ) > 5 ) then
			DBCS_Region_liste_bchange = true;
			DBCS_Region_liste_bchange_5sec = GetTime();
			--DBCS_Region_liste_code_region_courante_new();
		end
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : WORLD_MAP_UPDATE");
--end
		icont = GetCurrentMapContinent();
		iregion = GetCurrentMapZone();
		if ( icont == nil ) then
			icont = 0;
		end
		if ( iregion == nil ) then
			iregion = 0;
		end
		if ( icont == 0 or iregion == 0 ) then
			DBCS_Region_Lire_Overlay();
		else
			if ( DBCS_Region_wow_build_info > DBCS_Region_wow_build_info_live ) then
				inumMapAreaID = GetCurrentMapAreaID();
				if ( DBCS_Region_liste_areaid[inumMapAreaID] ) then
					sregion = DBCS_Region_liste_areaid[inumMapAreaID].sval;
					DBCS_Region_Lire_Overlay_numregion(sregion);
				end
			else
				DBCS_Region_Lire_Overlay(icont,iregion);
			end
		end
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("inumMapAreaID = "..GetCurrentMapAreaID());
--end
	elseif ( event == "ZONE_CHANGED") then
--if ( InCombatLockdown() ) then
--	return nil;
--end
if ( DBCS_debug and DBCS_debug > 1 ) then
TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED");
end
		DBCS_Region_liste_bchange = true;
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("SetMapToCurrentZone ZONE_CHANGED");
--end
		DBCS_Region_liste_SetMapToCurrentZone_b = true;
		if ( WorldMapFrame:IsShown() ) then
		else
			SetMapToCurrentZone();
		end
		DBCS_Region_liste_code_region_courante_new();
		--DBCS_Region_liste_bchange_5sec = GetTime();
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("inumMapAreaID = "..GetCurrentMapAreaID());
--end
	elseif ( event == "ZONE_CHANGED_INDOORS") then
--if ( InCombatLockdown() ) then
--	return nil;
--end
if ( DBCS_debug and DBCS_debug > 1 ) then
TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED_INDOORS");
end
		DBCS_Region_liste_bchange = true;
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("SetMapToCurrentZone ZONE_CHANGED_INDOORS");
--end
		DBCS_Region_liste_SetMapToCurrentZone_b = true;
		if ( WorldMapFrame:IsShown() ) then
		else
			SetMapToCurrentZone();	--201212	util pour les entrées ds les micro dongons
		end
		DBCS_Region_liste_code_region_courante_new();
		--DBCS_Region_liste_bchange_5sec = GetTime();
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("inumMapAreaID = "..GetCurrentMapAreaID());
--end
	elseif ( event == "ZONE_CHANGED_NEW_AREA") then
--if ( InCombatLockdown() ) then
--	return nil;
--end
if ( DBCS_debug and DBCS_debug > 1 ) then
TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED_NEW_AREA");
end
--if ( InCombatLockdown() ) then
--	return nil;
--end
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("inumMapAreaID = "..GetCurrentMapAreaID());
--end
		DBCS_Region_ZONE_CHANGED_NEW_AREA = true;
		DBCS_Region_liste_bchange = true;
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("SetMapToCurrentZone ZONE_CHANGED_NEW_AREA");
--end
		DBCS_Region_liste_SetMapToCurrentZone_b = true;
		if ( WorldMapFrame:IsShown() ) then
		else
			SetMapToCurrentZone();
		end
		DBCS_Region_liste_code_region_courante_new();
		--DBCS_Region_liste_bchange_5sec = GetTime();
--[[
		DBCS_Region_minimap_borigine1 = true;
		_, _ = DBCS_Region_liste_code_region_courante_new();
		btrouve = false;
		if ( DBCS_Region_minimap_borigine2 == false ) then
			btrouve = false;
			if ( DBCS_Region_config_joueur_t["LOC_NUMREGION"] and DBCS_Region_config_joueur_t["LOC_NUMREGION"] == DBCS_Region_liste_sregion ) then
				if ( DBCS_Region_config_joueur_t["LOC_POSITIONX"] ) then
					--if ( DBCS_Region_config_joueur_t["LOC_DATE"] and DBCS_Region_config_joueur_t["LOC_DATE"] == tonumber(date("%Y%m%d")) ) then	--vérifier que 30 minutes ne se sont pas écoulées, c'est mieux, sinon dès minuit, on est remis à l'entrée
					if ( DBCS_Region_config_joueur_t["LOC_TIME"] and ( DBCS_Region_config_joueur_t["LOC_TIME"] + 300 > time() ) ) then	--vérifier que 15 minutes ne se sont pas écoulées
						btrouve = true;
						DBCS_Region_minimap_origine_x , DBCS_Region_minimap_origine_y = Minimap:GetPingPosition();
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED_NEW_AREA DBCS_Region_minimap_origine_x0 = "..DBCS_Region_minimap_origine_x);
--TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED_NEW_AREA DBCS_Region_minimap_origine_y0 = "..DBCS_Region_minimap_origine_y);
--end
--						DBCS_Region_minimap_origine_x = DBCS_Region_config_joueur_t["LOC_MINIMAPX"];
--						DBCS_Region_minimap_origine_y = DBCS_Region_config_joueur_t["LOC_MINIMAPY"];
						DBCS_Region_minimap_entreex = DBCS_Region_config_joueur_t["LOC_POSITIONX"];
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED_NEW_AREA DBCS_Region_minimap_entreex0 = "..(DBCS_Region_minimap_entreex or ""));
--end
						DBCS_Region_minimap_entreey = DBCS_Region_config_joueur_t["LOC_POSITIONY"];
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED_NEW_AREA DBCS_Region_minimap_entreey0 = "..(DBCS_Region_minimap_entreey or ""));
--end
					end
				end
			end
			DBCS_Region_minimap_borigine2 = true;
		end
		if ( btrouve == false ) then
			if ( DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion] and DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion][-1] and DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion][-1].entreex ) then
				if ( DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion][-1].nbentrees ) then
					DBCS_Region_minimap_entreex = DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion][-1].entreex;
					DBCS_Region_minimap_entreey = DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion][-1].entreey;
if ( DBCS_debug and DBCS_debug > 1 ) then
TraceFrame:AddMessage("DBCS_Region_OnEvent : PLAYER_ENTERING_WORLD REGION_PREC_numregion2 = "..DBCS_Region_config_joueur_t["REGION_PREC_numregion"]);
TraceFrame:AddMessage("DBCS_Region_OnEvent : PLAYER_ENTERING_WORLD REGION_PREC_x2 = "..DBCS_Region_config_joueur_t["REGION_PREC_x"]);
TraceFrame:AddMessage("DBCS_Region_OnEvent : PLAYER_ENTERING_WORLD REGION_PREC_y2 = "..DBCS_Region_config_joueur_t["REGION_PREC_y"]);
end
				else
					DBCS_Region_minimap_entreex = DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion][-1].entreex;
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED_NEW_AREA DBCS_Region_minimap_entreex1 = "..DBCS_Region_minimap_entreex);
--end
					DBCS_Region_minimap_entreey = DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion][-1].entreey;
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED_NEW_AREA DBCS_Region_minimap_entreey1 = "..DBCS_Region_minimap_entreey);
--end
				end
--				DBCS_Region_minimap_entreex = DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion][-1].entreex;
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED_NEW_AREA DBCS_Region_minimap_entreex1 = "..DBCS_Region_minimap_entreex);
--end
--				DBCS_Region_minimap_entreey = DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion][-1].entreey;
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED_NEW_AREA DBCS_Region_minimap_entreey1 = "..DBCS_Region_minimap_entreey);
--end
			else
				DBCS_Region_minimap_entreex = 0;
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED_NEW_AREA DBCS_Region_minimap_entreex1 = "..DBCS_Region_minimap_entreex);
--end
				DBCS_Region_minimap_entreey = 0;
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED_NEW_AREA DBCS_Region_minimap_entreey1 = "..DBCS_Region_minimap_entreey);
--end
			end
		end
		DBCS_Region_minimap_origine_x , DBCS_Region_minimap_origine_y = Minimap:GetPingPosition();
		DBCS_Region_minimap_origine_x = -1 * DBCS_Region_minimap_origine_x;
		if ( DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion] and DBCS_Region_Map_Minimap[DBCS_Region_liste_sregion][0] ) then
			map_Nivzoom = Minimap:GetZoom();
			DBCS_Region_minimap_origine_x = DBCS_Region_minimap_origine_x / DBCS_Region_scales.cityZoom[map_Nivzoom];
			DBCS_Region_minimap_origine_x = DBCS_Region_minimap_origine_x * DBCS_Region_scales.cityZoom[5];
			DBCS_Region_minimap_origine_y = DBCS_Region_minimap_origine_y / DBCS_Region_scales.cityZoom[map_Nivzoom];
			DBCS_Region_minimap_origine_y = DBCS_Region_minimap_origine_y * DBCS_Region_scales.cityZoom[5];
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED_NEW_AREA DBCS_Region_minimap_origine_x2 = "..DBCS_Region_minimap_origine_x);
--end
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED_NEW_AREA DBCS_Region_minimap_origine_y2 = "..DBCS_Region_minimap_origine_y);
--end
		else
			DBCS_Region_minimap_origine_x = DBCS_Region_minimap_origine_x * 0.875;
			DBCS_Region_minimap_origine_y = DBCS_Region_minimap_origine_y * 0.875;
			map_InCity = DBCS_Region_isMinimapInCity();
			map_Nivzoom = Minimap:GetZoom();
			if ( map_InCity == true ) then
				scale = DBCS_Region_scales.cityZoom[map_Nivzoom];
			else
				scale = DBCS_Region_scales[3].scales[map_Nivzoom].scale;
			end
			DBCS_Region_minimap_origine_x = ( DBCS_Region_minimap_origine_x * 256 ) / scale;
			DBCS_Region_minimap_origine_y = ( DBCS_Region_minimap_origine_y * 256 ) / scale;
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED_NEW_AREA DBCS_Region_minimap_origine_x3 = "..DBCS_Region_minimap_origine_x);
--end
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED_NEW_AREA DBCS_Region_minimap_origine_y3 = "..DBCS_Region_minimap_origine_y);
--end
		end
--]]
	else
	end

end

function DBCS_Region_Minimap_combo_Mesuivre_OnClick()

--if ( InCombatLockdown() ) then
--	return nil;
--end

	DBCS_Region_Minimap_mesuivre = DBCS_Region_Minimap_combo_Mesuivre:GetChecked();
if ( DBCS_Region_wow_build_info > DBCS_Region_wow_build_info_live ) then
	if ( DBCS_Region_Minimap_mesuivre == true ) then
		DBCS_Region_Minimap_mesuivre = 1;
	else
		DBCS_Region_Minimap_mesuivre = 0;
	end
else
	if ( DBCS_Region_Minimap_mesuivre == 1 ) then
	else
		DBCS_Region_Minimap_mesuivre = 0;
	end
end
	DBCS_Region_config["MESUIVRE"] = DBCS_Region_Minimap_mesuivre;
	if ( DBCS_Region_Minimap_mesuivre == 1 ) then
		DBCS_Region_init_carte_region_courante();
	end

end

function DBCS_Region_OnLoad(self)

	self:RegisterEvent("CHAT_MSG_CHANNEL_NOTICE");
	--self:RegisterEvent("MINIMAP_PING");
	self:RegisterEvent("MINIMAP_UPDATE_ZOOM");
	self:RegisterEvent("PLAYER_ENTERING_WORLD");
	self:RegisterEvent("VARIABLES_LOADED");
	self:RegisterEvent("WORLD_MAP_UPDATE");
	self:RegisterEvent("ZONE_CHANGED");
	self:RegisterEvent("ZONE_CHANGED_INDOORS");
	self:RegisterEvent("ZONE_CHANGED_NEW_AREA");

	DBCS_Region_config = {};
	DBCS_Region_instancelock = {};
	DBCS_Region_config_joueur = 0;
	DBCS_Region_config_joueur_t = {};

	SLASH_DBCS_REGION1 = "/dbcs_region";
	SlashCmdList["DBCS_REGION"] = function(msg)
		DBCS_Region_init_carte_region_courante();
	end

	DBCS_Region_Minimap_down_click();

	DBCS_Region_Minimap:EnableMouseWheel(true);
	DBCS_Region_Minimap:SetScript("OnMouseWheel", DBCS_Region_OnMouseWheel);

end

function DBCS_Region_OnMouseWheel(self,delta)

--if ( InCombatLockdown() ) then
--	return nil;
--end

--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnMouseWheel");
--end
	if ( delta > 0 ) then
		if ( DBCS_Region_Minimap_echelle > 1 ) then
			DBCS_Region_Minimap_echelle = DBCS_Region_Minimap_echelle - 1;
		end
	else
		if ( DBCS_Region_Minimap_echelle < 10 ) then
			DBCS_Region_Minimap_echelle = DBCS_Region_Minimap_echelle + 1;
		end
	end
	DBCS_Region_config["ECHELLE"] = DBCS_Region_Minimap_echelle;
	UIDropDownMenu_SetSelectedValue(DBCS_Region_Minimap_combo_Echelle,DBCS_Region_Minimap_echelle);
	UIDropDownMenu_SetText(DBCS_Region_Minimap_combo_Echelle,""..DBCS_Region_Minimap_echelle);
	DBCS_Region_init_echelle();

local tableau;

	tableau = DBCS_Region_Minimap_init_loc_num_tableau;
	DBCS_Region_Minimap_init_loc_hide();
	--DBCS_Region_Minimap_init_overlay(DBCS_Region_Minimap_numregion);
	DBCS_Region_Minimap_init_loc_num_tableau = tableau;
	if ( DBCS_Region_Minimap_init_loc_num_tableau ) then
		DBCS_Region_Minimap_init_loc_num = table.getn(DBCS_Region_Minimap_init_loc_num_tableau);
	else
		DBCS_Region_Minimap_init_loc_num = 0;
	end
	DBCS_Region_Minimap_init_loc_refresh();
	DBCS_Region_OnUpdate();

end

function DBCS_Region_init_echelle()

--if ( InCombatLockdown() ) then
--	return nil;
--end

--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_init_echelle");
--end

local i;
local otexture;
local oframe;
local itaillemaxx;
local itaillemaxy;
local itailleunx;
local itailleuny;
local idiviseur;

	if ( DBCS_Region_Map_Minimap_tablo == nil ) then
		--DBCS_Region_Minimap_echelle
		DBCS_Region_Minimap:SetWidth(DBCS_Region_Minimap_echelle*25*4*.98);
		DBCS_Region_Minimap:SetHeight(DBCS_Region_Minimap_echelle*25*3*.87);
		for i = 1 , 12 do
			_G["DBCS_Region_Minimap_carte"..i]:SetWidth(DBCS_Region_Minimap_echelle*25);
			_G["DBCS_Region_Minimap_carte"..i]:SetHeight(DBCS_Region_Minimap_echelle*25);
		end
		DBCS_Region_Minimap_Titre:ClearAllPoints();
		DBCS_Region_Minimap_Titre:SetPoint("TOPLEFT", DBCS_Region_Minimap, "TOPLEFT", 0, -(DBCS_Region_Minimap_echelle*25*3*.87));
		DBCS_Region_Minimap_init_overlay(DBCS_Region_Minimap_numregion);
	else
		if ( DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion] and DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion][-1] and DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion][-1].taillemaxx ) then
			itailleunx = 1024 / DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion][-1].taillemaxx;
			itailleunx = 256 * itailleunx;
			--itailleunx = itailleunx / ( 11 - DBCS_Region_Minimap_echelle );
			--itailleunx = itailleunx * ( 1 / ( 11 - DBCS_Region_Minimap_echelle ) );
			itailleunx = itailleunx * ( DBCS_Region_Minimap_echelle / 10 );
			itailleuny = 756 / DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion][-1].taillemaxy;
			itailleuny = 256 * itailleuny;
			--itailleuny = itailleuny / ( 11 - DBCS_Region_Minimap_echelle );
			--itailleuny = itailleuny * ( 1 / ( 11 - DBCS_Region_Minimap_echelle ) );
			itailleuny = itailleuny * ( DBCS_Region_Minimap_echelle / 10 );
		else
			itaillemaxx = DBCS_Region_Minimap_echelle*25*4*.98;
			itaillemaxy = DBCS_Region_Minimap_echelle*25*3*.87;
			itailleunx = itaillemaxx/DBCS_Region_Map_Minimap_xecart;
			itailleuny = itaillemaxy/DBCS_Region_Map_Minimap_yecart;
		end
		if ( itailleunx > itailleuny ) then
			DBCS_Region_Map_Minimap_itailleun = itailleuny;
		else
			DBCS_Region_Map_Minimap_itailleun = itailleunx;
		end
		if ( DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion] and DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion][-1] and DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion][-1].taillemaxx ) then
			--DBCS_Region_Minimap:SetWidth(DBCS_Region_Map_Minimap_itailleun*4);
			--DBCS_Region_Minimap:SetHeight(DBCS_Region_Map_Minimap_itailleun*3);
--TraceFrame:AddMessage("DBCS_Region_init_echelle : DBCS_Region_Map_Minimap["..DBCS_Region_Minimap_numregion.."][-1].taillemaxx = "..DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion][-1].taillemaxx);
--TraceFrame:AddMessage("DBCS_Region_init_echelle : DBCS_Region_Map_Minimap["..DBCS_Region_Minimap_numregion.."][-1].taillemaxy = "..DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion][-1].taillemaxy);
			DBCS_Region_Minimap:SetWidth(DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion][-1].taillemaxx*(DBCS_Region_Map_Minimap_itailleun/256));
			DBCS_Region_Minimap:SetHeight(DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion][-1].taillemaxy*(DBCS_Region_Map_Minimap_itailleun/256));
		else
			DBCS_Region_Minimap:SetWidth(DBCS_Region_Map_Minimap_itailleun*DBCS_Region_Map_Minimap_xecart);
			DBCS_Region_Minimap:SetHeight(DBCS_Region_Map_Minimap_itailleun*DBCS_Region_Map_Minimap_yecart);
		end
		idiviseur = 256/DBCS_Region_Map_Minimap_itailleun;
--DBCS_Region_Map_Minimap["033"][-1] = { taillemaxx = 196, taillemaxy = 192 };
--i=i+1;DBCS_Region_Map_Minimap["033"][i] = { name = "HellfireRampart/map28_34.blp", blp = "34f43f50938b4781ddc90b8e76fd2326.blp", posx = 0, posy = 0, largx = 256, largy = 256, left = 162, right = 256, top = 0, bottom = 191 };
--i=i+1;DBCS_Region_Map_Minimap["033"][i] = { name = "HellfireRampart/map29_34.blp", blp = "9169ae4df4f43737723242a3981874fe.blp", posx = 95, posy = 0, largx = 256, largy = 256, left = 0, right = 99, top = 0, bottom = 191 };
		for i = 1 , table.getn(DBCS_Region_Map_Minimap_tablo) do
			oframe = _G["DBCS_Region_Map_Minimap_ftexture"..i];
			if ( DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion] and DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion][i].left ) then
				oframe:SetWidth(((DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion][i].right-DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion][i].left)/256)*DBCS_Region_Map_Minimap_itailleun);
				oframe:SetHeight(((DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion][i].bottom-DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion][i].top)/256)*DBCS_Region_Map_Minimap_itailleun);
			else
				oframe:SetWidth(DBCS_Region_Map_Minimap_tablo[i].largx/(256/DBCS_Region_Map_Minimap_itailleun));
				oframe:SetHeight(DBCS_Region_Map_Minimap_tablo[i].largy/(256/DBCS_Region_Map_Minimap_itailleun));
			end
			oframe:ClearAllPoints();
			if ( DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion] and DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion][i].posx and DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion][i].left ) then
				oframe:SetPoint("TOPLEFT", "DBCS_Region_Minimap", "TOPLEFT", (DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion][i].posx/256)*DBCS_Region_Map_Minimap_itailleun, -1 * ( (DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion][i].posy/256)*DBCS_Region_Map_Minimap_itailleun ) );
			else
				oframe:SetPoint("TOPLEFT", "DBCS_Region_Minimap", "TOPLEFT", DBCS_Region_Map_Minimap_tablo[i].posx/idiviseur, -1 * ( DBCS_Region_Map_Minimap_tablo[i].posy/idiviseur ) );
			end
			otexture = _G["DBCS_Region_Map_Minimap_texture"..i];
			if ( DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion] and DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion][i].left ) then
				otexture:SetWidth(((DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion][i].right-DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion][i].left)/256)*DBCS_Region_Map_Minimap_itailleun);
				otexture:SetHeight(((DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion][i].bottom-DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion][i].top)/256)*DBCS_Region_Map_Minimap_itailleun);
			else
				otexture:SetWidth(DBCS_Region_Map_Minimap_tablo[i].largx/(256/DBCS_Region_Map_Minimap_itailleun));
				otexture:SetHeight(DBCS_Region_Map_Minimap_tablo[i].largy/(256/DBCS_Region_Map_Minimap_itailleun));
			end
			--otexture:ClearAllPoints();
			--otexture:SetPoint("TOPLEFT", "DBCS_Region_Minimap", "TOPLEFT", DBCS_Region_Map_Minimap_itailleun * ( DBCS_Region_Map_Minimap_tablo[i].x - DBCS_Region_Map_Minimap_xdeb ), -1 * ( DBCS_Region_Map_Minimap_itailleun * ( DBCS_Region_Map_Minimap_tablo[i].y - DBCS_Region_Map_Minimap_ydeb ) ) );
			--otexture:SetPoint("TOPLEFT", "DBCS_Region_Minimap", "TOPLEFT", DBCS_Region_Map_Minimap_tablo[i].posx/idiviseur, -1 * ( DBCS_Region_Map_Minimap_tablo[i].posy/idiviseur ) );
		end
		DBCS_Region_Minimap_Titre:ClearAllPoints();
		if ( DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion] and DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion][-1] and DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion][-1].taillemaxx ) then
			DBCS_Region_Minimap_Titre:SetPoint("TOPLEFT", DBCS_Region_Minimap, "TOPLEFT", 0, -((DBCS_Region_Map_Minimap[DBCS_Region_Minimap_numregion][-1].taillemaxy/256)*DBCS_Region_Map_Minimap_itailleun));
		else
			DBCS_Region_Minimap_Titre:SetPoint("TOPLEFT", DBCS_Region_Minimap, "TOPLEFT", 0, -(DBCS_Region_Map_Minimap_itailleun*DBCS_Region_Map_Minimap_yecart));
		end
	end

end

--/script DBCS_Region_Minimap_AnimGroup_Rot1:SetDuration(000)
--/script DBCS_Region_Minimap_AnimGroup_Rot1:SetStartDelay(000)
--/script DBCS_Region_Minimap_AnimGroup_Rot1:SetEndDelay(36000000)
--/script DBCS_Region_Minimap_AnimGroup_Rot1:SetEndDelay(000)

--/script DBCS_Region_Minimap_AnimGroup_Rot1:Stop()
--/script DBCS_Region_Minimap_AnimGroup_Rot1:Pause()
--/script DBCS_Region_Minimap_AnimGroup_Rot1:SetDegrees(90)
--/script DBCS_Region_Minimap_AnimGroup_Rot1:SetDegrees(0)
--/script DBCS_Region_Minimap_AnimGroup_Rot1:SetDegrees(-1)
--/script DBCS_Region_Minimap_AnimGroup_Rot1:SetDegrees(-2)
--/script DBCS_Region_Minimap_AnimGroup_Rot1:SetDegrees(-10)
--/script DBCS_Region_Minimap_AnimGroup_Rot1:SetDegrees(-20)
--/script DBCS_Region_Minimap_AnimGroup_Rot1:SetDegrees(-21)
--/script DBCS_Region_Minimap_AnimGroup_Rot1:SetDegrees(-22)
--/script DBCS_Region_Minimap_AnimGroup_Rot1:SetDegrees(-23)
--/script DBCS_Region_Minimap_AnimGroup_Rot1:SetDegrees(-25)
--/script DBCS_Region_Minimap_AnimGroup_Rot1:SetDegrees(-30)
--/script DBCS_Region_Minimap_AnimGroup_Rot1:SetDegrees(-40)
--/script DBCS_Region_Minimap_AnimGroup_Rot1:SetDegrees(-45)
--/script DBCS_Region_Minimap_AnimGroup_Rot1:SetDegrees(-50)
--/script DBCS_Region_Minimap_AnimGroup_Rot1:SetDegrees(-60)
--/script DBCS_Region_Minimap_AnimGroup_Rot1:SetDegrees(-70)
--/script DBCS_Region_Minimap_AnimGroup_Rot1:SetDegrees(-80)
--/script DBCS_Region_Minimap_AnimGroup_Rot1:SetDegrees(-90)
--/script DBCS_Region_Minimap_AnimGroup_Rot1:SetDegrees(-360)
--/script DBCS_Region_Minimap_AnimGroup_Rot1:SetDegrees(-450)
--/script DBCS_Region_Minimap_AnimGroup:Pause();
--/script DBCS_Region_Minimap_AnimGroup:Play();
--/script DBCS_Region_Minimap_AnimGroup:Stop();
--/script DBCS_Region_Minimap_AnimGroup:Stop();DBCS_Region_Minimap_AnimGroup:Play();

--/script DBCS_Region_Minimap_AnimGroup:SetScript("OnFinished",DBCS_Region_OnFinished);

--				<Translation name="$parentTranslate1" offsetX="150" offsetY="0" startDelay="0" duration="1"	smoothing="IN_OUT" order="1" maxFramerate="30">
--					<Scripts>
--						<OnPlay/>
--						<OnPause/>
--						<OnStop/>
--						<OnUpdate/>
--						<OnFinished/>
--					</Scripts>
--				</Translation>
--				<Scale name="$parentScale1" scaleX="1.5" scaleY="1.5" duration="1" smoothing="IN" order="4">
--					<Origin point="CENTER"/>
--				</Scale>
--			<AnimationGroup name="$parentPulse" looping="BOUNCE">
--				<Animation duration="0.5">
--					<Scripts>
--						<OnLoad>
--							self.regionParent = self:GetRegionParent();
--							self.min = 0.0;
--							self.max = 1.0;
--						</OnLoad>
--						<OnUpdate>
--							local alpha = self.min + (self.max - self.min)*self:GetProgress();
--							self.regionParent:SetAlpha(alpha);
--						</OnUpdate>
--					</Scripts>
--				</Animation>
--				<Animation duration="0.5">
--					<Scripts>
--						<OnLoad>
--							self.regionParent = self:GetRegionParent();
--							self.min = 64.0;
--							self.max = 94.0;
--						</OnLoad>
--						<OnUpdate>
--							local size = self.min + (self.max - self.min)*self:GetProgress();
--							self.regionParent:SetWidth(size);
--							self.regionParent:SetHeight(size);
--						</OnUpdate>
--					</Scripts>
--				</Animation>
--			</AnimationGroup>

--function DBCS_Region_OnFinished()
--
--	DBCS_Region_Minimap_AnimGroup_Rot1:Pause();
--	DBCS_Region_Minimap_AnimGroup:SetScript("OnFinished",nil);		
--
--end

--					<OnFinished>
--						if ( DBCS_Region_Minimap_AnimGroup_Rot1:IsPaused() ) then
--							--DEFAULT_CHAT_FRAME:AddMessage("OnFinished");
--						else
--							DBCS_Region_Minimap_AnimGroup_Rot1:Pause();
--						end
--					</OnFinished>

--/script DBCS_Region_Minimap:SetScript("OnUpdate", nil);

function DBCS_Region_OnHide()
	DBCS_Region_Minimap:SetScript("OnUpdate", nil);
end

function DBCS_Region_OnShow()
	DBCS_Region_Minimap:SetScript("OnUpdate", DBCS_Region_OnUpdate);
end

local DBCS_Region_Minimap_update_OnUpdateX = -1;
local DBCS_Region_Minimap_update_OnUpdateY = -1;

--/script DBCS_Region_Minimap_update_OnUpdate()
function DBCS_Region_Minimap_update_OnUpdate()

--if ( InCombatLockdown() ) then
	--if ( UnitInRaid("player") ) then
--		return nil;
	--end
--end

local snumregion;
local x;
local y;
--local snumregion1;
local bsup;
local iMAPID;
local stype;

	x, y = GetPlayerMapPosition("player");
	if ( ( x == 0 ) and ( y == 0 ) ) then
		bsup = false;
		if ( ( DBCS_Region_Minimap_update_OnUpdateX == 0 ) and ( DBCS_Region_Minimap_update_OnUpdateY == 0 ) ) then
			_, stype, _ = GetInstanceInfo();
			if ( stype == "none" ) then
				snumregion, _ = DBCS_Region_liste_code_region_courante_new2();
				snumregion1 = strsub(snumregion,1,1);
				--changer la suite pour les sous-régions d'un continent faisant parti du tableau de continent = 0	en 3914
				if ( tonumber(snumregion1) > 0 ) then
					--snumregion = snumregion1.."00";
					--_, _, _, _, _, _, _, iMAPID, _, _, _, _, _ = DBCS_Region_nom_carte(snumregion);
					--iMAPID = DBCS_Region_liste_areaid[snumregion].sval;
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_Minimap_update_OnUpdate iMAPID = "..iMAPID);
--end
					if ( WorldMapFrame:IsShown() ) then
					else
						--SetMapByID(iMAPID);
						SetMapZoom(tonumber(snumregion1));
					end
					DBCS_Region_liste_code_region_courante_new();
					--bsup = true;
				else
					if ( WorldMapFrame:IsShown() ) then
					else
						_, _, _, _, snumregion1, _, _, _, _, _, _, _, _ = DBCS_Region_nom_carte(snumregion);
						if ( snumregion1 ) then
							_, _, _, _, _, _, _, iMAPID, _, _, _, _, _ = DBCS_Region_nom_carte(snumregion1);
							if ( iMAPID ) then
								SetMapByID(iMAPID);
								DBCS_Region_liste_code_region_courante_new();
							end
						end
					end
--	mapFileName, inbnivmin, inbnivmax, inumniv, sregionloc, slocloc, sinstancelock, _, _, _, _, _, smicrodungeon = DBCS_Region_nom_carte(sregion);
--	_, _, _, _, sregionloc, _, _, iMAPID, _, _, _, _, _ = DBCS_Region_nom_carte(snumregion);
--	return snom, inbnivmin, inbnivmax, inumniv, sregionloc, slocloc, sinstancelock, areaid, ressx, ressy, xoffset, yoffset, smicrodungeon;
--sregionloc
				end
		--else
				bsup = true;
			end
		end
		if ( bsup == false ) then
		--if ( DBCS_Region_Minimap_mesuivre == 1 ) then
			DBCS_Region_liste_bchange = true;
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("SetMapToCurrentZone x = 0 et y = 0");
--end
			DBCS_Region_liste_SetMapToCurrentZone_b = true;
			if ( WorldMapFrame:IsShown() ) then
			else
				SetMapToCurrentZone();	--20121217
			end
			DBCS_Region_liste_code_region_courante_new();
		--end
		end
		if ( DBCS_Region_config_joueur_t["REGION_PREC_x"] and  DBCS_Region_config_joueur_t["REGION_PREC_x"] > 0 and DBCS_Region_config_joueur_t["REGION_PREC_y"] and DBCS_Region_config_joueur_t["REGION_PREC_y"] > 0 ) then
			--SetMapToCurrentZone();	--20121031
			DBCS_Region_liste_bchange = true;
		end
	end
	snumregion, _ = DBCS_Region_liste_code_region_courante_new2();
	--snumregion = DBCS_Region_Minimap_numregion;
	if ( snumregion == "000" or DBCS_Region_minimap_borigine1 == false ) then
		DBCS_Region_Minimap_update_OnUpdateX = x;
		DBCS_Region_Minimap_update_OnUpdateY = y;
		return nil;
	else
		DBCS_Region_config_joueur_t["REGION_PREC_numregion"] = snumregion;
		x, y = GetPlayerMapPosition("player");
		DBCS_Region_config_joueur_t["REGION_PREC_x"] = x*100;
		DBCS_Region_config_joueur_t["REGION_PREC_y"] = y*100;
		DBCS_Region_Minimap_update_OnUpdateX = x;
		DBCS_Region_Minimap_update_OnUpdateY = y;
	end

end

--/script DBMM_minimapinit_origin();
--/script DBMM_minimapinit_arrivee();
--/script DBCS_Region_OnUpdate_poser_perso_en_xy(100,100)
--/script DBCS_Region_OnUpdate_poser_perso_en_xy(386,-1001)
--ecartx = 2.6285806274414
--ecarty = -0.0031117724720389
--ecartx = 0.43809677124023
--ecarty = -0.00051862874533981
--/script DBCS_Region_OnUpdate_poser_perso_en_xy(386+112.152,-1001-0.132)
--/script DBCS_Region_OnUpdate_poser_perso_en_xy(630,-905)
--DBMM_scales = { };
--DBMM_scales.cityZoom    = { };
--DBMM_scales.cityZoom[0] = 1.555380769203;
--DBMM_scales.cityZoom[1] = 1.9442259194923;
--DBMM_scales.cityZoom[2] = 2.592301282005;
--DBMM_scales.cityZoom[3] = 3.8884518389845;
--DBMM_scales.cityZoom[4] = 5.8326777584768;
--DBMM_scales.cityZoom[5] = 9.3322842791263;
--DBMM_scales[3]           = { scales={} };
--DBMM_scales[3].scales[0] = { scale = 1 };
--DBMM_scales[3].scales[1] = { scale = 1.1666665831643 };
--DBMM_scales[3].scales[2] = { scale = 1.4000000167005 };
--DBMM_scales[3].scales[3] = { scale = 1.75 };
--DBMM_scales[3].scales[4] = { scale = 2.3333331663286 };
--DBMM_scales[3].scales[5] = { scale = 3.5 };
--ecartx0 = 0.41055836995443
--ecarty0 = -0.15919974446297
--ecartx1 = 0.51319796244303
--ecarty1 = -0.19899967312813
--ecartx2 = 0.68426394992405
--ecarty2 = -0.26533290743828
--ecartx3 = 1.0263959248861
--ecarty3 = -0.39799934625626
--ecartx4 = 1.5395938873291
--ecarty4 = -0.59699904918671
--ecartx5 = 2.4633502197266
--ecarty5 = -0.9551984667778
--/script DEFAULT_CHAT_FRAME:AddMessage(000/000);
--/script DEFAULT_CHAT_FRAME:AddMessage(0.41055836995443/1.555380769203);
--/script DEFAULT_CHAT_FRAME:AddMessage(-43.27810546875/-7.213017578125);	--	= 6
--/script DEFAULT_CHAT_FRAME:AddMessage(4.7553105354309/0.79255175590515);	--	= 6
--/script DEFAULT_CHAT_FRAME:AddMessage(9.3322842791263/1.555380769203);	--	= 6
--0.26396003993595
--/script DBCS_Region_OnUpdate_poser_perso_en_xy(1342/(256/DBCS_Region_Map_Minimap_itailleun),-1 * ( 300/(256/DBCS_Region_Map_Minimap_itailleun) ))
--/script DBCS_Region_Map_Minimap_ftexture91:SetPoint("TOPLEFT", "DBCS_Region_Minimap", "TOPLEFT", 1387/(256/DBCS_Region_Map_Minimap_itailleun), -1 * ( 144/(256/DBCS_Region_Map_Minimap_itailleun) ) );
function DBCS_Region_OnUpdate_poser_perso_en_xy(x,y)

--if ( InCombatLockdown() ) then
--	return nil;
--end

local frame;

	frame = _G["DBCS_Region_Minimap_player"];
	if ( frame == nil ) then
		frame = CreateFrame("Button", "DBCS_Region_Minimap_player", DBCS_Region_Minimap, "DBCS_Region_WorldMapUnitTemplate");
		frame:CreateTexture("DBCS_Region_Minimap_player_tex", "OVERLAY");
		DBCS_Region_Minimap_player_tex:SetTexture("Interface/WorldMap/WorldMapPlayerIcon");
		DBCS_Region_Minimap_player_tex:SetPoint("CENTER", DBCS_Region_Minimap_player, "CENTER", 0, 0);
		DBCS_Region_Minimap_player_tex:Show();
		frame:SetScript("OnEnter", DBCS_Region_Minimap_loc_OnEnter);
		frame:SetScript("OnLeave", DBCS_Region_Minimap_loc_OnLeave);
		frame.unit = "Moi";
	else
	end
	frame:ClearAllPoints();
	frame:SetPoint("CENTER", DBCS_Region_Minimap, "TOPLEFT", x, y);
	frame:Show();

end

local DBCS_Region_OnUpdate_MapAreaID = 0;
local DBCS_Region_OnUpdate_nivcarte = 0;
--local DBCS_Region_OnUpdate_isMinimapInCity = nil;
local DBCS_Region_OnUpdate_X = -1;
local DBCS_Region_OnUpdate_Y = -1;

--/script DBCS_Region_OnUpdate(1)
function DBCS_Region_OnUpdate(bafficher)

--if ( DBCS_debug and DBCS_debug > 1 ) then
--if ( InCombatLockdown() ) then
	--if ( UnitInRaid("player") ) then
--		return nil;
	--end
--end
--end

local snumregion;
local inivcarte;
local frame;
--local frametex;
local playerX;
local playerY;
local iwidth;
local iheight;
local minimapx;
local minimapy;
local map_InCity;
local map_Nivzoom;
local scale;
local bpasbouger;
local iMapAreaID;
local isMinimapInCity;

	--isMinimapInCity = DBCS_Region_isMinimapInCity();
	--if ( isMinimapInCity == DBCS_Region_OnUpdate_isMinimapInCity ) then
	--else
	--	if ( DBCS_Region_Minimap_mesuivre == 1 ) then
	--		SetMapToCurrentZone();
	--		DBCS_Region_liste_bchange = true;
	--		DBCS_Region_liste_code_region_courante_new();
	--	end
	--	DBCS_Region_OnUpdate_isMinimapInCity = isMinimapInCity;
	--end
	iMapAreaID = GetCurrentMapAreaID();
	inivcarte = DBCS_Region_liste_numcarte();
	if ( ( DBCS_Region_OnUpdate_MapAreaID == iMapAreaID ) and ( DBCS_Region_OnUpdate_nivcarte == inivcarte ) ) then
	else
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnUpdate : iMapAreaID = "..iMapAreaID..", inivcarte = "..inivcarte);
--end
		DBCS_Region_OnUpdate_MapAreaID = iMapAreaID;
		DBCS_Region_OnUpdate_nivcarte = inivcarte;
		DBCS_Region_liste_bchange = true;
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("SetMapToCurrentZone DBCS_Region_OnUpdate");
--end
		DBCS_Region_liste_SetMapToCurrentZone_b = true;
		if ( WorldMapFrame:IsShown() ) then
		else
			--SetMapToCurrentZone();	--20121217
		end
		DBCS_Region_liste_code_region_courante_new();
	end
	
	if ( DBCS_Region_Minimap:IsShown() ) then
	else
		return nil;
	end

--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnUpdate");
--end

	DBCS_Region_config["POSX"] = DBCS_Region_Minimap:GetLeft();
	DBCS_Region_config["POSY"] = DBCS_Region_Minimap:GetTop();
	--DBCS_Region_Minimap:ClearAllPoints();
	--DBCS_Region_Minimap:SetPoint("TOPLEFT",UIParent,"BOTTOMLEFT",ileft,itop);

	snumregion, inivcarte = DBCS_Region_liste_code_region_courante_new2();
	--snumregion = DBCS_Region_Minimap_numregion;
	--inivcarte = DBCS_Region_Minimap_nivcarte;
--TraceFrame:AddMessage("DBCS_Region_OnUpdate : snumregion="..(snumregion or "").."/"..(inivcarte or ""));
--TraceFrame:AddMessage("DBCS_Region_OnUpdate : DBCS_Region_Minimap_numregion="..(DBCS_Region_Minimap_numregion or "").."/"..(DBCS_Region_Minimap_nivcarte or ""));
	frame = _G["DBCS_Region_Minimap_player"];
	if ( frame == nil ) then
		frame = CreateFrame("Button", "DBCS_Region_Minimap_player", DBCS_Region_Minimap, "DBCS_Region_WorldMapUnitTemplate");
		--frame:SetWidth(3);
		--frame:SetHeight(3);
		--frame:CreateTexture("DBCS_Region_Minimap_player_tex", "ARTWORK");
		frame:CreateTexture("DBCS_Region_Minimap_player_tex", "OVERLAY");
		DBCS_Region_Minimap_player_tex:SetTexture("Interface/WorldMap/WorldMapPlayerIcon");
		DBCS_Region_Minimap_player_tex:SetPoint("CENTER", DBCS_Region_Minimap_player, "CENTER", 0, 0);
		DBCS_Region_Minimap_player_tex:Show();
		--/script DBCS_Region_Minimap_player_tex:SetDegrees(10);
		--Interface\WorldMap\WorldMapPartyIcon
		--Interface\WorldMap\WorldMapPlayerIcon
		frame:SetScript("OnEnter", DBCS_Region_Minimap_loc_OnEnter);
		frame:SetScript("OnLeave", DBCS_Region_Minimap_loc_OnLeave);
		frame.unit = "Moi";
		--frame.icon:SetVertexColor(1.0, 1.0, 1.0);
	else
		--frametex = _G["DBCS_Region_Minimap_player_tex"];
	end
	if ( snumregion == "000" or DBCS_Region_minimap_borigine1 == false ) then
		frame:Hide();
	else
		--hours,minutes = GetGameTime();
		--date("%m/%d/%y %H:%M:%S")
		--/script DEFAULT_CHAT_FRAME:AddMessage("Current Time: "..time()/86400)
		--/script DEFAULT_CHAT_FRAME:AddMessage("1 jour: "..24*3600)	--	86400
		--/script DEFAULT_CHAT_FRAME:AddMessage("an: "..14669/365)	--	86400
		DBCS_Region_config_joueur_t["LOC_NUMREGION"] = snumregion;
		DBCS_Region_config_joueur_t["LOC_MINIMAPX"] = 0;
		DBCS_Region_config_joueur_t["LOC_MINIMAPY"] = 0;
		DBCS_Region_config_joueur_t["LOC_POSITIONX"] = 0;
		DBCS_Region_config_joueur_t["LOC_POSITIONY"] = 0;
		--DBCS_Region_config_joueur_t["LOC_DATE"] = tonumber(date("%Y%m%d"));
		--DBCS_Region_config_joueur_t["LOC_TIME"] = tonumber(date("%H%M%S"));
		DBCS_Region_config_joueur_t["LOC_TIME"] = time();
		if ( DBCS_Region_Minimap_numregion == snumregion and DBCS_Region_Minimap_nivcarte == inivcarte ) then
--i=0;DBCS_Region_Map_Minimap["034"] = { [0] = { type = "donjon", taillemaxx = 860, taillemaxy = 1184, entreex = 385, entreey = 1109 } };
			if ( DBCS_Region_Map_Minimap and DBCS_Region_Map_Minimap[snumregion] and DBCS_Region_Map_Minimap[snumregion][-1] and DBCS_Region_Map_Minimap[snumregion][-1].entreex ) then
				playerX = DBCS_Region_minimap_entreex;	--DBCS_Region_Map_Minimap[snumregion][-1].entreex;
				playerY = DBCS_Region_minimap_entreey;	--DBCS_Region_Map_Minimap[snumregion][-1].entreey;

				minimapx , minimapy = Minimap:GetPingPosition();
				minimapx = -1 * minimapx;
				if ( DBCS_Region_Map_Minimap[snumregion][0] ) then
					map_Nivzoom = Minimap:GetZoom();
					minimapx = minimapx / DBCS_Region_scales.cityZoom[map_Nivzoom];
					minimapx = minimapx * DBCS_Region_scales.cityZoom[5];
					DBCS_Region_config_joueur_t["LOC_MINIMAPX"] = minimapx;
					if ( DBCS_Region_minimap_origine_x ) then
						minimapx = minimapx - DBCS_Region_minimap_origine_x;
					end
					minimapx = minimapx * 100;
					playerX = playerX + minimapx;
					DBCS_Region_config_joueur_t["LOC_POSITIONX"] = playerX;
					minimapy = minimapy / DBCS_Region_scales.cityZoom[map_Nivzoom];
					minimapy = minimapy * DBCS_Region_scales.cityZoom[5];
					DBCS_Region_config_joueur_t["LOC_MINIMAPY"] = minimapy;
					if ( DBCS_Region_minimap_origine_y ) then
						minimapy = minimapy - DBCS_Region_minimap_origine_y;
					end
					minimapy = minimapy * 100;
					playerY = playerY + minimapy;
					DBCS_Region_config_joueur_t["LOC_POSITIONY"] = playerY;
				else
					minimapx = minimapx * 0.875;
					minimapy = minimapy * 0.875;
					map_InCity = DBCS_Region_isMinimapInCity();
					map_Nivzoom = Minimap:GetZoom();
					if ( map_InCity == true ) then
						scale = DBCS_Region_scales.cityZoom[map_Nivzoom];
					else
						scale = DBCS_Region_scales[3].scales[map_Nivzoom].scale;
					end
					minimapx = ( minimapx * 256 ) / scale;
					minimapy = ( minimapy * 256 ) / scale;
					DBCS_Region_config_joueur_t["LOC_MINIMAPX"] = minimapx;
					DBCS_Region_config_joueur_t["LOC_MINIMAPY"] = minimapy;
					if ( DBCS_Region_minimap_origine_x ) then
						minimapx = minimapx - DBCS_Region_minimap_origine_x;
					end
					playerX = playerX + minimapx;
					DBCS_Region_config_joueur_t["LOC_POSITIONX"] = playerX;
					if ( DBCS_Region_minimap_origine_y ) then
						minimapy = minimapy - DBCS_Region_minimap_origine_y;
					end
					playerY = playerY + minimapy;
					DBCS_Region_config_joueur_t["LOC_POSITIONY"] = playerY;
				end

				if ( bafficher and type(bafficher) == "number" and bafficher == 1 ) then
TraceFrame:AddMessage("DBCS_Region_OnUpdate : playerX="..(playerX or "").."/"..(playerY or ""));
				end
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED_NEW_AREA playerX = "..playerX);
--TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED_NEW_AREA playerY = "..playerY);
--end
				playerX = ( playerX / 256 ) * DBCS_Region_Map_Minimap_itailleun;
				playerY = ( playerY / 256 ) * DBCS_Region_Map_Minimap_itailleun;
				frame:ClearAllPoints();
				frame:SetPoint("CENTER", DBCS_Region_Minimap, "TOPLEFT", playerX, -1 * playerY);
				frame:Show();
			else
				--en mode combat, ne maj que avec des x et y arrondi à l'entier et si différents
				if ( InCombatLockdown() ) then
					playerX, playerY = GetPlayerMapPosition("player");
					if ( playerX == 0 and playerY == 0 ) then
						if ( ( DBCS_Region_OnUpdate_X == 0 ) and ( DBCS_Region_OnUpdate_Y == 0 ) ) then
						else
							frame:Hide();
						end
					else
						iwidth = ((25*DBCS_Region_Minimap_echelle*4)*.98)/100;
						iheight = ((25*DBCS_Region_Minimap_echelle*3)*.87)/100;
						playerX = ( playerX * iwidth ) * 100;
						playerY = ( -playerY * iheight ) * 100;
--TraceFrame:AddMessage("DBCS_Region_OnUpdate : playerX="..(playerX or "").."/"..(playerY or ""));
						playerX = floor(playerX + .5);
						playerY = floor(playerY + .5);
						if ( ( DBCS_Region_OnUpdate_X == playerX ) and ( DBCS_Region_OnUpdate_Y == playerY ) ) then
						else
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_OnUpdate X = "..playerX..", Y = "..playerY);
--end
							frame:ClearAllPoints();
							frame:SetPoint("CENTER", DBCS_Region_Minimap, "TOPLEFT", playerX, playerY);
							frame:Show();
						end
					end
				else
					playerX, playerY = GetPlayerMapPosition("player");
					if ( playerX == 0 and playerY == 0 ) then
						if ( ( DBCS_Region_OnUpdate_X == 0 ) and ( DBCS_Region_OnUpdate_Y == 0 ) ) then
						else
							frame:Hide();
						end
					else
						iwidth = ((25*DBCS_Region_Minimap_echelle*4)*.98)/100;
						iheight = ((25*DBCS_Region_Minimap_echelle*3)*.87)/100;
						playerX = ( playerX * iwidth ) * 100;
						playerY = ( -playerY * iheight ) * 100;
--TraceFrame:AddMessage("DBCS_Region_OnUpdate : playerX="..(playerX or "").."/"..(playerY or ""));
						frame:ClearAllPoints();
						frame:SetPoint("CENTER", DBCS_Region_Minimap, "TOPLEFT", playerX, playerY);
						frame:Show();
					end
				end
				DBCS_Region_OnUpdate_X = playerX;
				DBCS_Region_OnUpdate_Y = playerY;
			end
		else
			frame:Hide();
		end
	end
--[[
	frame = _G["DBCS_Region_Minimap_target"];
	if ( frame == nil ) then
		frame = CreateFrame("Button", "DBCS_Region_Minimap_target", DBCS_Region_Minimap, "DBCS_Region_WorldMapUnitTemplate");
		--frame:SetWidth(3);
		--frame:SetHeight(3);
		--frame:CreateTexture("DBCS_Region_Minimap_target_tex", "ARTWORK");
		frame:CreateTexture("DBCS_Region_Minimap_target_tex", "OVERLAY");
		DBCS_Region_Minimap_target_tex:SetTexture("Interface/WorldMap/WorldMapPlayerIcon");
		DBCS_Region_Minimap_target_tex:SetPoint("CENTER", DBCS_Region_Minimap_target, "CENTER", 0, 0);
		DBCS_Region_Minimap_target_tex:Show();
		--/script DBCS_Region_Minimap_target_tex:SetDegrees(10);
		--Interface\WorldMap\WorldMapPartyIcon
		--Interface\WorldMap\WorldMapPlayerIcon
		frame:SetScript("OnEnter", DBCS_Region_Minimap_loc_OnEnter);
		frame:SetScript("OnLeave", DBCS_Region_Minimap_loc_OnLeave);
		frame.unit = "Cible";
		--frame.icon:SetVertexColor(1.0, 1.0, 1.0);
	else
		--frametex = _G["DBCS_Region_Minimap_target_tex"];
	end
	if ( snumregion == "000" or DBCS_Region_minimap_borigine1 == false ) then
		frame:Hide();
	else
		if ( DBCS_Region_Minimap_numregion == snumregion and DBCS_Region_Minimap_nivcarte == inivcarte ) then
			if ( DBCS_Region_Map_Minimap and DBCS_Region_Map_Minimap[snumregion] and DBCS_Region_Map_Minimap[snumregion][-1] and DBCS_Region_Map_Minimap[snumregion][-1].entreex ) then
			else
				playerX, playerY = GetPlayerMapPosition("target");
				if ( playerX == 0 and playerY == 0 ) then
					frame:Hide();
				else
					iwidth = ((25*DBCS_Region_Minimap_echelle*4)*.98)/100;
					iheight = ((25*DBCS_Region_Minimap_echelle*3)*.87)/100;
					playerX = ( playerX * iwidth ) * 100;
					playerY = ( -playerY * iheight ) * 100;
--TraceFrame:AddMessage("DBCS_Region_OnUpdate : playerX="..(playerX or "").."/"..(playerY or ""));
					frame:ClearAllPoints();
					frame:SetPoint("CENTER", DBCS_Region_Minimap, "TOPLEFT", playerX, playerY);
					frame:Show();
				end
			end
		else
			frame:Hide();
		end
	end
--]]

end

DBCS_Region_scales = { };
DBCS_Region_scales.cityZoom    = { };
DBCS_Region_scales.cityZoom[0] = 1.555380769203;
DBCS_Region_scales.cityZoom[1] = 1.9442259194923;
DBCS_Region_scales.cityZoom[2] = 2.592301282005;
DBCS_Region_scales.cityZoom[3] = 3.8884518389845;
DBCS_Region_scales.cityZoom[4] = 5.8326777584768;
DBCS_Region_scales.cityZoom[5] = 9.3322842791263;
DBCS_Region_scales[3] = { scales = {} };
DBCS_Region_scales[3].scales[0] = { scale = 1 };
DBCS_Region_scales[3].scales[1] = { scale = 1.1666665831643 };
DBCS_Region_scales[3].scales[2] = { scale = 1.4000000167005 };
DBCS_Region_scales[3].scales[3] = { scale = 1.75 };
DBCS_Region_scales[3].scales[4] = { scale = 2.3333331663286 };
DBCS_Region_scales[3].scales[5] = { scale = 3.5 };

function DBCS_Region_isMinimapInCity()

--if ( InCombatLockdown() ) then
--	return nil;
--end

-- prise de gatherer

	local tempzoom = 0;
	local inCity = false;

	if (GetCVar("minimapZoom") == GetCVar("minimapInsideZoom")) then
		if (GetCVar("minimapInsideZoom")+0 >= 3) then 
			Minimap:SetZoom(Minimap:GetZoom() - 1);
			tempzoom = 1;
		else
			Minimap:SetZoom(Minimap:GetZoom() + 1);
			tempzoom = -1;
		end
	end
	if (GetCVar("minimapInsideZoom")+0 == Minimap:GetZoom()) then
		inCity = true;
	end
	Minimap:SetZoom(Minimap:GetZoom() + tempzoom);
	
	return inCity;
	
end

--/script DBCS_Region_Minimap.Rotation:SetDegrees(10)
--/script DBCS_Region_Minimap:SetDegrees(10)

--/script DBCS_Region_liste_init();
function DBCS_Region_liste_init()

--if ( InCombatLockdown() ) then
--	return nil;
--end

	if ( DBCS_Region_ZONE_CHANGED_NEW_AREA == false ) then
		return nil;
	end
	if ( DBCS_Region_config["MAPZOOM"] == nil ) then
		DBCS_Region_config["MAPZOOM"] = {};
	end
	--DBCS_Region_wow_build = 0;
	if ( ( DBCS_Region_config["MAPZOOM"][DBCS_Region_wow_build] == nil ) or ( DBCS_Region_config["TOUTBON"] == false ) ) then
		DBCS_Region_config["MAPZOOM"] = {};
		DBCS_Region_config["MAPZOOM"][DBCS_Region_wow_build] = {};
		DBCS_Region_config["OVERLAY"] = {};		-- ajout du 20140924
		DBCS_Region_config["REGION_NAME"] = {};
		DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build] = {};
		DBCS_Region_config["TOUTBON"] = false;
	else
		return nil;
	end

local continentNames;
local i;
local tablo;
local j;
local srepertoire;
local k;
local l;
local sregion;
local sval;
local numOverlays;
local textureName;
local textureWidth;
local textureHeight;
local offsetX;
local offsetY;
local mapPointX;
local mapPointY;
local oobjet;
local snom;
local snominstance;
local btoutbon = true;
local inbcont;
local icont;
local inumMapAreaID;
local tablo_areaid;
local tablo_name;
local idx;
local zone;

--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_liste_init : j'initialise chaque region");
--end

	for sregion , sval in pairs(DBCS_Region_liste_maj) do
		DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion] = {};
		DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][1] = sval;
	end
	if ( DBCS_Region_config["OVERLAY"] == nil ) then
		DBCS_Region_config["OVERLAY"] = {};
	end
	continentNames = { GetMapContinents() } ;
	--for i = 1 , table.getn(continentNames) do
	--inbcont = 5;
if ( DBCS_Region_wow_build_info > DBCS_Region_wow_build_info_live ) then
	inbcont = 7;
else
	inbcont = 6;
end
	for icont = 1 , inbcont do
		if ( DBCS_Region_config["MAPZOOM"][DBCS_Region_wow_build][icont] == nil ) then
			DBCS_Region_config["MAPZOOM"][DBCS_Region_wow_build][icont] = {};
		end
--[[
			inumMapAreaID = GetCurrentMapAreaID();
			tablo_areaid = {};
			tablo_name = {};
			i = 0;
			j = 0;
			tablo = { GetMapZones(icont) };
			for idx, zone in ipairs(tablo) do
				if ( i == 0 ) then
					j = j + 1;
					tablo_areaid[j] = zone;
					i = 1;
				else
					tablo_name[j] = zone;
					i = 0;
					SetMapByID(tablo_areaid[j]);
					--mapFileName, textureHeight, textureWidth, isMicrodungeon, microDungeonMapName = GetMapInfo();
					dbcs_mapFileName, dbcs_textureHeight, dbcs_textureWidth, _, _ = GetMapInfo();
					DEFAULT_CHAT_FRAME:AddMessage("areaid = "..tablo_areaid[j].." , nom = "..tablo_name[j].." , fichier : "..dbcs_mapFileName.." , longueur : "..dbcs_textureWidth.." , hauteur : "..dbcs_textureHeight);
				end
				--DEFAULT_CHAT_FRAME:AddMessage("Zone #"..idx .. ": " .. zone);
			end
			SetMapByID(inumMapAreaID);
--]]
if ( DBCS_Region_wow_build_info > DBCS_Region_wow_build_info_live ) then
		inumMapAreaID = GetCurrentMapAreaID();
		tablo_areaid = {};
		tablo_name = {};
		i = 0;
		j = 0;
		tablo = { GetMapZones(icont) };
		for idx, zone in ipairs(tablo) do
			if ( i == 0 ) then
				j = j + 1;
				tablo_areaid[j] = zone;
				i = 1;
			else
				tablo_name[j] = zone;
				i = 0;
				SetMapByID(tablo_areaid[j]);
				--DBCS_Region_liste_areaid[tablo_areaid[j]].sval
				sregion = nil;
				if ( DBCS_Region_liste_areaid[tablo_areaid[j]] ) then
					sregion = DBCS_Region_liste_areaid[tablo_areaid[j]].sval;
				end
				if ( sregion ) then
					DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion] = {};
					DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][1] = zone;
					DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][2] = icont;
					DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][3] = j;
					DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][6] = GetMapNameByID(tablo_areaid[j]);
					DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][7] = tablo_areaid[j];
					DBCS_Region_config["MAPZOOM"][DBCS_Region_wow_build][icont][j] = sregion;
				end
			end
		end
		SetMapByID(inumMapAreaID);
----[[
		for i = 1 , table.getn(DBCS_Region_liste[icont]) do
			sregion = DBCS_Region_liste[icont][i].sval;
			if ( sregion ) then
--TraceFrame:AddMessage("DBCS_Region_liste_init : sregion = "..sregion);
				if ( DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion] == nil ) then
					DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion] = {};
					DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][2] = icont;
					idx = DBCS_Region_liste[icont][i].areaid;
					if ( idx ) then
--TraceFrame:AddMessage("DBCS_Region_liste_init : idx = "..idx);
						DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][6] = GetMapNameByID(idx);
--TraceFrame:AddMessage("DBCS_Region_liste_init : 6 = "..(DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][6] or ""));
						DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][7] = idx;
					end
				end
			end
		end
----]]
else
		tablo = { GetMapZones(icont) };
		for j = 1 , table.getn(tablo) do
			SetMapZoom(icont,j);
			srepertoire , _ , _ = GetMapInfo();
			k = 0;
			for l = 1 , table.getn(DBCS_Region_liste[icont]) do
				if ( DBCS_Region_liste[icont][l].srepertoire == srepertoire ) then
					k = l;
					sregion = DBCS_Region_liste[icont][k].sval;
				end
			end
			if ( k > 0 ) then
				DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion] = {};
				DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][1] = tablo[j];
				DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][2] = icont;
				DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][3] = j;
				--if ( DBCS_Region_liste[icont][k].name2 ) then
				--	DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][4] = DBCS_Region_liste[icont][k].name2;
				--end
				DBCS_Region_config["MAPZOOM"][DBCS_Region_wow_build][icont][j] = sregion;
				--DBCS_Region_Lire_Overlay(icont,j);	--	20120824	je penses inutil car déjà appelée ds le SetMapZoom qui précède au début de la boucle for
			else
				--btoutbon = false;
			end
		end
end
	end
	--SetMapToCurrentZone();	--20121031
	DBCS_Region_config_joueur = DBCS_Region_wow_build;
	if ( DBCS_Region_Ident_player == nil ) then
		DBCS_Region_Ident_player = UnitGUID("player");
		--[[ --achievment devenus inutils
		DBCS_Region_Ident_achievement_debut = "achievement:";
		DBCS_Region_Ident_achievement_fin = ":"..strsub(DBCS_Region_Ident_player,3)..":1:10:18:8:0:0:0:0";
		--]]
	end
	for i = 1 , table.getn(DBCS_Region_liste[0]) do
		sregion = DBCS_Region_liste[0][i].sval;
		--DBCS_Region_instancelock
		if ( DBCS_Region_liste[0][i].instancelock and DBCS_Region_liste[0][i].sval ) then
			DBCS_Region_instancelock[DBCS_Region_liste[0][i].sval] = DBCS_Region_liste[0][i].instancelock;
		end
		--[[ --achievment devenus inutils
		if ( DBCS_Region_liste[0][i].achiev ) then
			DBCS_Region_TooltipTextLeft1:SetText(nil);
			sachievement = DBCS_Region_Ident_achievement_debut..DBCS_Region_liste[0][i].achiev..DBCS_Region_Ident_achievement_fin;
if ( DBCS_debug and DBCS_debug > 1 ) then
TraceFrame:AddMessage("DBCS_Region_liste_init : DBCS_Region_liste_code_region_courante : sachievement =|cffffff00|H"..sachievement.."|h["..DBCS_Region_liste[0][i].achiev.."]|h|r.");
end
			DBCS_Region_Tooltip:SetOwner(WorldFrame,"ANCHOR_NONE");
			DBCS_Region_Tooltip:SetHyperlink(sachievement);
			snom = nil;
			if ( DBCS_Region_liste[0][i].achiev_ligne ) then
				if ( DBCS_Region_liste[0][i].achiev_left == 1 ) then
					oobjet = _G["DBCS_Region_TooltipTextLeft"..DBCS_Region_liste[0][i].achiev_ligne];
					if ( oobjet ) then
						snom = oobjet:GetText();
					else
if ( DBCS_debug and DBCS_debug > 1 ) then
TraceFrame:AddMessage("DBCS_Region_liste_init : DBCS_Region_liste_code_region_courante : erreur : achiev = "..DBCS_Region_liste[0][i].achiev..", ligne = "..DBCS_Region_liste[0][i].achiev_ligne..", left = "..DBCS_Region_liste[0][i].achiev_left..".");
end
--						return "000";
					end
				else
					snom = _G["DBCS_Region_TooltipTextRight"..DBCS_Region_liste[0][i].achiev_ligne]:GetText();
				end
			else
				snom = DBCS_Region_TooltipTextLeft1:GetText();
			end
			if ( snom ) then
				if ( DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion] == nil ) then
					DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion] = {};
				end
				DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][1] = snom;
				--if ( DBCS_Region_liste[0][i].binstance ) then
				--	DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][5] = DBCS_Region_liste[0][i].binstance;
				--end
			else
				--btoutbon = false;
			end
		else
		end
		--]]
		if ( DBCS_Region_liste[0][i].name2 ) then
			if ( DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion] == nil ) then
				DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion] = {};
			end
			DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][4] = DBCS_Region_liste[0][i].name2;
		end
		if ( DBCS_Region_liste[0][i].instancelock ) then
			--début 11 carac
			--fin 28 carac
			DBCS_Region_TooltipTextLeft1:SetText(nil);
			DBCS_Region_Tooltip:SetOwner(WorldFrame,"ANCHOR_NONE");
			DBCS_Region_Tooltip:SetHyperlink("instancelock:0:"..DBCS_Region_liste[0][i].instancelock..":0:0");	--instancelock:0180000000328C9D:631:0:63
			snominstance = nil;
			snominstance = _G["DBCS_Region_TooltipTextLeft1"]:GetText();
			if ( snominstance ) then
				snominstance = strsub(snominstance,12,strlen(snominstance)-28);
				if ( DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion] == nil ) then
					DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion] = {};
				end
				DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][5] = snominstance;
			end
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_liste_init : instancelock : "..DBCS_Region_liste[0][i].instancelock.." = "..(snominstance or ""));
--end
		end
		if ( DBCS_Region_liste[0][i].smicrodungeon ) then
			if ( DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion] == nil ) then
				DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion] = {};
			end
			DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][5] = DBCS_Region_liste[0][i].smicrodungeon.."/"..DBCS_Region_liste[0][i].srepertoire;
			--DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][5] = _G["DUNGEON_FLOOR_"..strupper(DBCS_Region_liste[0][i].smicrodungeon)..DBCS_Region_liste[0][i].inumniv];
			--if ( DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][5] == nil ) then
			--	DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][5] = DBCS_Region_liste[0][i].srepertoire..DBCS_Region_liste[0][i].inumniv;
			--end
		end
		if ( DBCS_Region_liste[0][i].name3 ) then
			if ( DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion] == nil ) then
				DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion] = {};
			end
			DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][5] = _G[DBCS_Region_liste[0][i].name3];
		end
		if ( DBCS_Region_liste[0][i].areaid ) then
			if ( DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion] == nil ) then
				DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion] = {};
			end
			DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][6] = GetMapNameByID(DBCS_Region_liste[0][i].areaid);
			DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][7] = DBCS_Region_liste[0][i].areaid;
		end
	end
	DBCS_Region_Tooltip:Hide();
	--if ( btoutbon == false ) then
	--	DBCS_Region_config["MAPZOOM"] = nil;
	--end
	DBCS_Region_config["TOUTBON"] = true;

end

--/script DBCS_Region_Minimap_init("402");
--/script DBCS_Region_Minimap_init("402",1);
--/script DBCS_Region_Minimap_init("402",2);
--/script DBCS_Region_init_carte_region_courante();
function DBCS_Region_init_carte_region_courante()

--if ( InCombatLockdown() ) then
--	return nil;
--end

local bshown = false;
local snumregion;
local inivcarte;
local breturn;

	if ( DBCS_Region_Minimap:IsShown() ) then
		bshown = true;
	end
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("SetMapToCurrentZone DBCS_Region_init_carte_region_courante");
--end
	DBCS_Region_liste_SetMapToCurrentZone_b = true;
	SetMapToCurrentZone();	--20121031
	snumregion, inivcarte = DBCS_Region_liste_code_region_courante_new();
	--DBCS_Region_Minimap_init_loc_hide();
	DBCS_Region_Minimap_init_sregion = "";
	DBCS_Region_Minimap_init_inivcarte = -1;
	breturn = DBCS_Region_Minimap_init(snumregion,inivcarte);
	if ( bshown == true and breturn == false ) then
		DBCS_Region_Minimap:Show();
	end
	--DBCS_Region_init_echelle();

end

function DBCS_Region_liste_code_region_courante_new2()

local snumregion;
local inivcarte;

	if ( WorldMapFrame:IsShown() ) then
		snumregion = "000";
		inivcarte = nil;
	else
		snumregion = DBCS_Region_liste_sregion;
		inivcarte = DBCS_Region_liste_nivcarte;
	end
	return snumregion, inivcarte;

end

function DBCS_Region_liste_code_region_courante_new()

--if ( InCombatLockdown() ) then
--	return nil;
--end

	if ( WorldMapFrame:IsShown() ) then
		DBCS_Region_liste_sregion = "000";
		DBCS_Region_liste_nivcarte = nil;
		DBCS_Region_liste_bchange = true;
		--DBCS_Region_liste_bchange_5sec = GetTime();
		return DBCS_Region_liste_sregion, DBCS_Region_liste_nivcarte;
	end
	if ( DBCS_Region_liste_bchange == true ) then

--local inInstance;
local snameregion;
local snameregion_low;
local i;
local j;
local snumregion;
local btrouve;
local stype;
local icont;
local iregion;
local inbcont;
local srepertoire;
local inumMapAreaID;
local btoutbon = nil;
local btoutvu = nil;
local mapFileName1;
local mapFileName2;
local smicrodungeon1;
local smicrodungeon2;
local isMicrodungeon;

--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_liste_code_region_courante_new");
--end
		DBCS_Region_liste_init();
		DBCS_Region_Lire_Overlays_joueur();	-- ATTENTION, ceci change le SetMapZoom
		DBCS_Region_liste_sregion = "000";
--if ( InCombatLockdown() ) then
--else
--		SetMapToCurrentZone();	--20121031
--end
		inumMapAreaID = GetCurrentMapAreaID();
		DBCS_Region_liste_nivcarte = DBCS_Region_liste_numcarte();
		DBCS_Region_liste_sregion = DBCS_Region_numregion_depuis_coderegion(inumMapAreaID,DBCS_Region_liste_nivcarte);
		if ( ( 1 == 1 ) and ( DBCS_Region_liste_sregion == "000" ) ) then
			srepertoire , _ , _ = GetMapInfo();
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_liste_code_region_courante_new : srepertoire = "..(srepertoire or ""));
--end
			DBCS_Region_liste_icont = GetCurrentMapContinent();
			DBCS_Region_liste_iregion = GetCurrentMapZone();
			if ( DBCS_Region_liste_iregion == nil or DBCS_Region_liste_iregion == 0 ) then
				DBCS_Region_liste_icont = 0;
			end
			snameregion, stype, _, _ = GetInstanceInfo();	--	GetRealZoneText();
			if ( stype == "none" ) then
				inInstance = nil;
				snameregion = GetRealZoneText();
			else
				inInstance = 1;
			end
			--inInstance, _ = IsInInstance();
			--if ( DBCS_Region_liste_icont == 0 or ( inInstance and inInstance == 1 ) ) then
			--	DBCS_Region_liste_icont = 0;
				if ( snameregion and DBCS_Region_config["REGION_NAME"] and DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build] ) then
					--if ( inInstance ) then
					--	DBCS_Region_liste_icont = 0;
					--else
					--	snameregion = GetRealZoneText();
					--end
					btrouve = false;
					--inbcont = 5;
if ( DBCS_Region_wow_build_info > DBCS_Region_wow_build_info_live ) then
					inbcont = 7;
else
					inbcont = 6;
end
					snameregion_low = strlower(snameregion);
					btoutbon = true;
					btoutvu = true;
					for j = 0 , inbcont do
						if ( btrouve == false ) then
							DBCS_Region_liste_icont = j;
							for i = 1 , table.getn(DBCS_Region_liste[DBCS_Region_liste_icont]) do
								if ( btrouve == false ) then
									snumregion = DBCS_Region_liste[DBCS_Region_liste_icont][i].sval;
									if ( DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][snumregion] ) then
--TraceFrame:AddMessage("DBCS_Region_wow_build : "..DBCS_Region_wow_build);
--TraceFrame:AddMessage("snumregion : "..snumregion);
--TraceFrame:AddMessage("snameregion : "..snameregion);
--TraceFrame:AddMessage("DBCS_Region_config[REGION_NAME][DBCS_Region_wow_build][snumregion][1] : "..DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][snumregion][1]);
--TraceFrame:AddMessage("DBCS_Region_config[REGION_NAME][DBCS_Region_wow_build][snumregion][4] : "..DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][snumregion][4]);
										--if ( ( ( srepertoire and DBCS_Region_liste[DBCS_Region_liste_icont][i].srepertoire ) and ( ( DBCS_Region_liste[DBCS_Region_liste_icont][i].bvalid == nil ) and ( srepertoire == DBCS_Region_liste[DBCS_Region_liste_icont][i].srepertoire ) ) ) or ( strlower(DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][snumregion][1]) == snameregion_low ) or ( DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][snumregion][4] and ( strlower(DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][snumregion][4]) == snameregion_low ) ) ) then
										if ( ( ( srepertoire and DBCS_Region_liste[DBCS_Region_liste_icont][i].srepertoire ) and ( ( DBCS_Region_liste[DBCS_Region_liste_icont][i].bvalid == nil ) and ( srepertoire == DBCS_Region_liste[DBCS_Region_liste_icont][i].srepertoire ) ) ) or ( DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][snumregion][1] and ( strlower(DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][snumregion][1]) == snameregion_low ) ) or ( DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][snumregion][4] and ( strlower(DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][snumregion][4]) == snameregion_low ) ) or ( DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][snumregion][5] and ( strlower(DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][snumregion][5]) == snameregion_low ) ) ) then
											if ( ( DBCS_Region_liste[DBCS_Region_liste_icont][i].areaid == nil ) or ( DBCS_Region_liste[DBCS_Region_liste_icont][i].areaid and ( DBCS_Region_liste[DBCS_Region_liste_icont][i].areaid == inumMapAreaID ) ) ) then
												DBCS_Region_liste_sregion = snumregion;
												if ( DBCS_Region_liste[DBCS_Region_liste_icont][i].sregionloc ) then
													if ( DBCS_Region_liste_icont == 0 ) then
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_liste_code_region_courante_new : je suis dans l'instance : "..DBCS_Region_liste_sregion..":"..DBCS_Region_nom_region(DBCS_Region_liste_sregion));
--end
													end
													if ( inInstance ) then
													else
														icont = nil;
														--if ( DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][snumregion][5] and DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][snumregion][5] == true ) then
														if ( DBCS_Region_liste[DBCS_Region_liste_icont][i].binstance ) then
														--	icont, iregion = DBCS_Region_Region_Code(DBCS_Region_liste[DBCS_Region_liste_icont][i].sregionloc);
														else
															DBCS_Region_liste_sregion = DBCS_Region_liste[DBCS_Region_liste_icont][i].sregionloc;
															icont, iregion = DBCS_Region_Region_Code(DBCS_Region_liste_sregion);
															--snumregion = DBCS_Region_liste[DBCS_Region_liste_icont][i].sregionloc;
															--icont, iregion = DBCS_Region_Region_Code(snumregion);
														end
														if ( icont ) then
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_liste_code_region_courante_new icont ="..icont);
--end
															--SetMapZoom(icont,iregion);	--20121031
														end
													end
												end
												--DBCS_Region_liste_nivcarte = DBCS_Region_liste_numcarte();
												if ( DBCS_Region_liste[DBCS_Region_liste_icont][i].dungeon and DBCS_Region_liste_nivcarte > 0 ) then
													if ( DBCS_Region_liste[DBCS_Region_liste_icont][i].dungeon[DBCS_Region_liste_nivcarte] ) then
														DBCS_Region_liste_sregion = DBCS_Region_liste[DBCS_Region_liste_icont][i].dungeon[DBCS_Region_liste_nivcarte];
													end
												end
												btrouve = true;
											end
										end
									else
										btoutbon = false;
if ( DBCS_debug and DBCS_debug > 1 ) then
TraceFrame:AddMessage("DBCS_Region_liste_code_region_courante_new nom region manquante :"..snumregion);
end
									end
								end
							end
						else
							btoutvu = false;
						end
					end
					if ( ( btoutbon == true ) and ( btoutvu == true ) ) then
						if ( DBCS_Region_config["TOUTBON"] == true ) then
						else
if ( DBCS_debug and DBCS_debug > 1 ) then
TraceFrame:AddMessage("DBCS_Region_liste_code_region_courante_new nom toutes regions bonnes.");
end
						end
						DBCS_Region_config["TOUTBON"] = true;
					end
				end
			--else
			--	DBCS_Region_liste_sregion = DBCS_Region_Code_Region(DBCS_Region_liste_icont,DBCS_Region_liste_iregion);
			--end
			--if ( DBCS_Region_liste_sregion == "000" ) then
			--	DBCS_Region_liste_sregion = DBCS_Region_numregion_depuis_coderegion(inumMapAreaID);
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_liste_code_region_courante_new DBCS_Region_liste_sregion = "..DBCS_Region_liste_sregion);
--end
			--end
			--DBCS_Region_liste_nivcarte = DBCS_Region_liste_numcarte();
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_liste_code_region_courante_new DBCS_Region_liste_nivcarte = "..DBCS_Region_liste_nivcarte);
--end
		end
		if ( ( DBCS_Region_liste_nivcarte == 0 ) and ( DBCS_Region_liste_sregion ) ) then
			mapFileName1, _, _, _, _, _, _, _, _, _, _, _, smicrodungeon1 = DBCS_Region_nom_carte(DBCS_Region_liste_sregion);
			mapFileName2, _, _, isMicrodungeon, smicrodungeon2 = GetMapInfo();
--TraceFrame:AddMessage("DBCS_Region_liste_code_region_courante_new DBCS_Region_liste_sregion : "..DBCS_Region_liste_sregion);
--TraceFrame:AddMessage("DBCS_Region_liste_code_region_courante_new mapFileName1 : "..mapFileName1);
--TraceFrame:AddMessage("DBCS_Region_liste_code_region_courante_new mapFileName2 : "..mapFileName2);
			if ( ( mapFileName1 == mapFileName2 ) ) then	--or ( mapFileName1 == smicrodungeon2 ) 
			else
				if ( mapFileName2 ) then
					_, stype, _ = GetInstanceInfo();
					if ( stype == "none" ) then
						snumregion = DBCS_Region_numregion_depuis_nomrep(mapFileName2);
						if ( snumregion == "000" ) then
						else
--TraceFrame:AddMessage("DBCS_Region_liste_code_region_courante_new snumregion incorrecte : "..snumregion);
						--GetInstanceDifficulty();
							DBCS_Region_liste_sregion = snumregion;
						end
					end
				end
			end
		end
		DBCS_Region_liste_bchange = false;
		if ( ( DBCS_Region_Minimap:IsShown() ) and ( DBCS_Region_Minimap_mesuivre == 1 ) ) then
		--if ( DBCS_Region_Minimap_mesuivre == 1 ) then
			--if ( DBCS_Region_Minimap_numregion == DBCS_Region_liste_sregion and DBCS_Region_Minimap_nivcarte == DBCS_Region_liste_nivcarte ) then
			--else
				--DBCS_Region_Minimap_init_loc_hide();
				DBCS_Region_Minimap_init(DBCS_Region_liste_sregion, DBCS_Region_liste_nivcarte);
				DBCS_Region_Minimap:Show();
				--DBCS_Region_init_carte_region_courante();
			--end
		end
	end
	
	return DBCS_Region_liste_sregion, DBCS_Region_liste_nivcarte;

end

function DBCS_Region_numregion_depuis_nomregion(snomregion)

local snumregion = "000";
local snum;
local tablo;
local btrouve = false;

--DBCS_Region_config
--REGION_NAME
--13329frFR62
--numregion
--case 1 ou 4
--DBCS_Region_wow_build
	if ( snomregion ) then
		snomregion = strlower(snomregion);
		if ( DBCS_Region_config and DBCS_Region_config["REGION_NAME"] and DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build] ) then
			for snum, tablo in pairs(DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build]) do
				if ( btrouve == false ) then
					if ( ( tablo[5] ) and ( snomregion == strlower(tablo[5]) ) ) then
						btrouve = true;
						snumregion = snum;
					else
						if ( ( tablo[1] ) and ( snomregion == strlower(tablo[1]) ) ) then
							btrouve = true;
							snumregion = snum;
						else
							if ( ( tablo[4] ) and ( snomregion == strlower(tablo[4]) ) ) then
								btrouve = true;
								snumregion = snum;
							else
								if ( ( tablo[6] ) and ( snomregion == strlower(tablo[6]) ) ) then
									btrouve = true;
									snumregion = snum;
								end
							end
						end
					end
				end
			end
		end
	else
	end
	return snumregion;

end

function DBCS_Region_numregion_depuis_nomrep(snomrep)

local snumregion = "000";
local btrouve = false;
local i;
local j;

	snomrep = strlower(snomrep);
	for i = 0, table.getn(DBCS_Region_liste) do
		if ( btrouve == false ) then
			for j = 1, table.getn(DBCS_Region_liste[i]) do
				if ( btrouve == false ) then
					if ( DBCS_Region_liste[i][j].srepertoire and ( snomrep == strlower(DBCS_Region_liste[i][j].srepertoire) ) ) then
						if ( DBCS_Region_liste[i][j].bvalid and ( DBCS_Region_liste[i][j].bvalid == false ) ) then
						else
							snumregion = DBCS_Region_liste[i][j].sval;
							btrouve = true;
						end
					end
				end
			end
		end
	end
	return snumregion;

end

function DBCS_Region_numregion_depuis_coderegion(icoderegion,inivcarte)

local snumregion = "000";
local btrouve = false;
local i;
local j;

--pour trouver très rapidement le numregion
--DBCS_Region_liste_areaid
--DBCS_Region_liste_areaid[areaid]
--DBCS_Region_liste_areaid[areaid].sval
--DBCS_Region_liste_areaid[areaid].nivcarte[inivcarte]
	if ( DBCS_Region_liste_areaid[icoderegion] ) then
		snumregion = DBCS_Region_liste_areaid[icoderegion].sval;
		if ( inivcarte and DBCS_Region_liste_areaid[icoderegion].nivcarte and DBCS_Region_liste_areaid[icoderegion].nivcarte[inivcarte] ) then
			snumregion = DBCS_Region_liste_areaid[icoderegion].nivcarte[inivcarte];
		end
	end
	--if ( btrouve == false ) then
	--	for i = 0, table.getn(DBCS_Region_liste) do
	--		if ( btrouve == false ) then
	--			for j = 1, table.getn(DBCS_Region_liste[i]) do
	--				if ( btrouve == false ) then
	--					if ( DBCS_Region_liste[i][j].areaid and ( icoderegion == DBCS_Region_liste[i][j].areaid ) ) then
	--						snumregion = DBCS_Region_liste[i][j].sval;
	--						btrouve = true;
	--					end
	--				end
	--			end
	--		end
	--	end
	--end
	return snumregion,inivcarte;

end

--hooksecurefunc("UseContainerItem", DBCS_UseContainerItem);
--hooksecurefunc("CastSpellByName", print); -- Hooks the global CastSpellByName
--hooksecurefunc(GameTooltip, "SetUnitBuff", print); -- Hooks GameTooltip.SetUnitBuff

--local Saved_DBCS_Region_liste_SetMapZoom = SetMapZoom;
function DBCS_Region_liste_SetMapZoom(a,b)
if ( DBCS_debug and DBCS_debug > 1 ) then
TraceFrame:AddMessage("DBCS_Region_liste_SetMapZoom : "..a.." , "..(b or ""));
end

	--Saved_DBCS_Region_liste_SetMapZoom(a,b);
	--DBCS_Region_liste_bchange = true;
	--DBCS_Region_liste_bchange_5sec = GetTime();
	if ( DBCS_Region_wow_build_info > DBCS_Region_wow_build_info_live ) then
	else
		DBCS_Region_Lire_Overlay(a,b);
	end

end
--SetMapZoom = DBCS_Region_liste_SetMapZoom;
hooksecurefunc("SetMapZoom", DBCS_Region_liste_SetMapZoom);

--[[
--ProcessMapClick(x, y)
local Saved_DBCS_Region_liste_ProcessMapClick = ProcessMapClick;
function DBCS_Region_liste_ProcessMapClick(x,y)

	Saved_DBCS_Region_liste_ProcessMapClick(x,y);
-- if ( DBCS_debug and DBCS_debug > 1 ) then
-- TraceFrame:AddMessage("DBCS_Region_liste_ProcessMapClick : "..x.." , "..y);
-- end
	--DBCS_Region_liste_bchange = true;
	--DBCS_Region_liste_bchange_5sec = GetTime();

end
ProcessMapClick = DBCS_Region_liste_ProcessMapClick;
--]]

--local DBCS_Region_liste_SetMapToCurrentZone_i = 0;

----[[
--hooksecurefunc("SetMapToCurrentZone", DBCS_Region_liste_SetMapToCurrentZone);

local DBCS_Region_liste_SetMapToCurrentZone_b = true;
--SetMapToCurrentZone
--local Saved_DBCS_Region_liste_SetMapToCurrentZone = SetMapToCurrentZone;
function DBCS_Region_liste_SetMapToCurrentZone()


--if ( InCombatLockdown() ) then
--	return nil;
--end

	--DBCS_Region_liste_SetMapToCurrentZone_i = DBCS_Region_liste_SetMapToCurrentZone_i + 1;

	--if ( WorldMapFrame:IsShown() ) then
--	if ( WorldMapFrame:IsShown() and WorldMapFrame:IsVisible() ) then
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_liste_SetMapToCurrentZone WorldMapFrame");
--end
--		Saved_DBCS_Region_liste_SetMapToCurrentZone();
--		DBCS_Region_liste_SetMapToCurrentZone_b = true;
	--if ( DBCS_Region_liste_SetMapToCurrentZone_b == true ) then
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_liste_SetMapToCurrentZone");
--end
		--Saved_DBCS_Region_liste_SetMapToCurrentZone();
		DBCS_Region_liste_SetMapToCurrentZone_b = false;
	--else
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_liste_SetMapToCurrentZone pas executer");
--end
	--end
	--if ( DBCS_Region_liste_SetMapToCurrentZone_i > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_liste_SetMapToCurrentZone"..nil);
	--end
	--DBCS_Region_liste_bchange = true;
	--DBCS_Region_liste_bchange_5sec = GetTime();
	DBCS_Region_liste_bchange = true;
	DBCS_Region_liste_code_region_courante_new();

end
--SetMapToCurrentZone = DBCS_Region_liste_SetMapToCurrentZone;
hooksecurefunc("SetMapToCurrentZone", DBCS_Region_liste_SetMapToCurrentZone);
--]]

----[[
--local Saved_DBCS_Region_liste_SetDungeonMapLevel = SetDungeonMapLevel;
function DBCS_Region_liste_SetDungeonMapLevel(index)
if ( DBCS_debug and DBCS_debug > 1 ) then
TraceFrame:AddMessage("DBCS_Region_liste_SetDungeonMapLevel index = "..(index or ""));
end

	--Saved_DBCS_Region_liste_SetDungeonMapLevel(index);
	--DBCS_Region_liste_bchange = true;
	--DBCS_Region_liste_bchange_5sec = GetTime();

end
--SetDungeonMapLevel = DBCS_Region_liste_SetDungeonMapLevel;
hooksecurefunc("SetDungeonMapLevel", DBCS_Region_liste_SetDungeonMapLevel);
--]]

--SetMapByID
----[[
--local Saved_DBCS_Region_liste_SetMapByID = SetMapByID;
function DBCS_Region_liste_SetMapByID(index)
if ( DBCS_debug and DBCS_debug > 1 ) then
TraceFrame:AddMessage("DBCS_Region_liste_SetMapByID index = "..(index or ""));
end

local sregion;

	--Saved_DBCS_Region_liste_SetMapByID(index);
	if ( DBCS_Region_liste_areaid[index] ) then
		sregion = DBCS_Region_liste_areaid[index].sval;
if ( DBCS_debug and DBCS_debug > 1 ) then
TraceFrame:AddMessage("DBCS_Region_liste_SetMapByID sregion = "..(sregion or ""));
end
		DBCS_Region_Lire_Overlay_numregion(sregion);
	end

end
--SetMapByID = DBCS_Region_liste_SetMapByID;
hooksecurefunc("SetMapByID", DBCS_Region_liste_SetMapByID);
--]]

--/script DBCS_Region_liste_position100(0,1);
function DBCS_Region_liste_position100(bforce,bafficher)

local a,b;
local x,y;

	if ( bafficher == nil ) then
		bafficher = 0;
	end

	a,b = GetPlayerMapPosition("player");
	x = floor((a*100)+.5);
	y = floor((b*100)+.5);
	if ( bafficher == 1 ) then
TraceFrame:AddMessage("DBCS_Region_liste_position100 x = "..(x or ""));
TraceFrame:AddMessage("DBCS_Region_liste_position100 y = "..(y or ""));
	end

	return x,y;

end

--/script DBCS_Region_position100_x(3,0,1);
function DBCS_Region_position100_x(nbdecimales,bforce,bafficher)

local a,b;
local x,y;
local imultiple = 10^nbdecimales;

	if ( bafficher == nil ) then
		bafficher = 0;
	end

	a,b = GetPlayerMapPosition("player");
	x = floor((a*100*imultiple)+.5);
	y = floor((b*100*imultiple)+.5);
	x = x/imultiple;
	y = y/imultiple;

	if ( bafficher == 1 ) then
TraceFrame:AddMessage("DBCS_Region_liste_position100 x = "..(x or ""));
TraceFrame:AddMessage("DBCS_Region_liste_position100 y = "..(y or ""));
	end

	return x,y;

end

function DBCS_Region_liste_numcarte()
--level = GetCurrentMapDungeonLevel();	--	0	1	2	etc
--levels = GetNumDungeonMapLevels();	--	0	1	2	etc

local ireturn = 0;
--local inbniv;

--	SetDungeonMapLevel(GetCurrentMapDungeonLevel() - 1);

	--inbniv = GetNumDungeonMapLevels();
	--if ( inbniv == 0 ) then
	--else
		ireturn = GetCurrentMapDungeonLevel();
		if ( DungeonUsesTerrainMap() ) then
			ireturn = ireturn - 1;
		end
	--end
--TraceFrame:AddMessage("DBCS_Region_liste_numcarte : "..ireturn.." sur "..inbniv..".");

	return ireturn;

end

function DBCS_Region_nom_region(sregion)

local snom = sregion;

	--DBCS_Region_liste_code_region_courante_new();
	--DBCS_Region_Lire_Overlays_joueur();
	if ( sregion ) then
		if ( strlen(sregion) == 3 ) then
			if ( DBCS_Region_config["REGION_NAME"] and DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build] and DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion] ) then
				if ( DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][5] ) then
					snom = DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][5];
				elseif ( DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][1] ) then
					snom = DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][1];
				elseif ( DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][4] ) then
					snom = DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][4];
				elseif ( DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][6] ) then
					snom = DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][6];
				end
			end
		else
			if ( sregion == "1" ) then
				snom = "Artisanat";
			else
				snom = "";
			end
		end
	else
		snom = "";
	end

	return snom;

end

function DBCS_Region_NumRegion_By_InstanceLock(inuminstance)

local btrouve = false;
local i;
local j;
local sNumRegion = nil;

	for i = 0 , table.getn(DBCS_Region_liste) do
		if ( btrouve == false ) then
			for j = 1 , table.getn(DBCS_Region_liste[i]) do
				if ( ( btrouve == false ) and ( DBCS_Region_liste[i][j].instancelock ) and ( DBCS_Region_liste[i][j].instancelock == inuminstance ) ) then
					sNumRegion = DBCS_Region_liste[i][j].sval;
				end
			end
		end
	end
	
	return sNumRegion;

end

function DBCS_Region_nom_carte(sregion)

local snom = sregion;
local i;
local j;
local btrouve = false;
local inbnivmin = nil;
local inbnivmax = nil;
local inumniv = nil;
local sregionloc = nil;
local slocloc = nil;
local sinstancelock = nil;
local areaid = nil;
local ressx = 0;
local ressy = 0;
local xoffset = 0;
local yoffset = 0;
local smicrodungeon = nil;

	for i = 0 , table.getn(DBCS_Region_liste) do
		if ( btrouve == false ) then
			for j = 1 , table.getn(DBCS_Region_liste[i]) do
				if ( ( btrouve == false ) and ( DBCS_Region_liste[i][j].sval == sregion ) ) then
					if ( DBCS_Region_liste[i][j].srepertoire ) then
						snom = DBCS_Region_liste[i][j].srepertoire;
						if ( snom == nil ) then
							snom = sregion;
						end
						btrouve = true;
						if ( DBCS_Region_liste[i][j].inbnivmin ) then
							inbnivmin = DBCS_Region_liste[i][j].inbnivmin;
							inbnivmax = DBCS_Region_liste[i][j].inbnivmax;
							inumniv = DBCS_Region_liste[i][j].inumniv;
						end
					end
					sregionloc = DBCS_Region_liste[i][j].sregionloc;
					slocloc = DBCS_Region_liste[i][j].slocloc;
					sinstancelock = DBCS_Region_liste[i][j].instancelock;
					areaid = DBCS_Region_liste[i][j].areaid;
					ressx = DBCS_Region_liste[i][j].ressx or 0;
					--if ( ressx == nil ) then
					--	ressx = 0;
					--end
					ressy = DBCS_Region_liste[i][j].ressy or 0;
					--if ( ressy == nil ) then
					--	ressy = 0;
					--end
					xoffset = DBCS_Region_liste[i][j].xoffset or 0;
					--if ( xoffset == nil ) then
					--	xoffset = 0;
					--end
					yoffset = DBCS_Region_liste[i][j].yoffset or 0;
					--if ( yoffset == nil ) then
					--	yoffset = 0;
					--end
					smicrodungeon = DBCS_Region_liste[i][j].smicrodungeon;
				end
			end
		end
	end

	return snom, inbnivmin, inbnivmax, inumniv, sregionloc, slocloc, sinstancelock, areaid, ressx, ressy, xoffset, yoffset, smicrodungeon;

end

--/script DBCS_region_tester_difficulte();
function DBCS_region_tester_difficulte(bset)

local inumMapAreaID;
local snom;
local stypeinstance;
local idifficulte;
local snomdiff;
local imaxPlayers;
local idynamicDifficulty;
local bisDynamic;
local imapID;
local inivcarte;
local inivcartemax;
local snumregion;
local inumcarte;
local iGetNumDungeonMapLevels;
local iGetCurrentMapDungeonLevel;
local mapFileName;
local textureHeight;
local textureWidth;
local isMicrodungeon;
local microDungeonMapName;
local mapName;

	if ( bset == nil ) then
		bset = 1;
	end
	DBCS_Region_liste_SetMapToCurrentZone_b = true;
	if ( bset == 1 ) then
		SetMapToCurrentZone();
	end
	inumMapAreaID = GetCurrentMapAreaID();
	--snom, stypeinstance, idifficulte, snomdiff = GetInstanceInfo();
	--name, instanceType, difficultyIndex, difficultyName, maxPlayers, dynamicDifficulty, isDynamic, mapID = GetInstanceInfo()
	snom, stypeinstance, idifficulte, snomdiff, imaxPlayers, idynamicDifficulty, bisDynamic, imapID = GetInstanceInfo();
	inivcarte = GetCurrentMapDungeonLevel();
	inivcartemax = GetNumDungeonMapLevels();
	snumregion, inumcarte = DBCS_Region_liste_code_region_courante_new();
	iGetCurrentMapDungeonLevel = GetCurrentMapDungeonLevel();
	iGetNumDungeonMapLevels = GetNumDungeonMapLevels();
	mapFileName, textureHeight, textureWidth, isMicrodungeon, microDungeonMapName = GetMapInfo();
	mapName = GetMapNameByID(inumMapAreaID);
--if ( DBCS_debug and DBCS_debug > 1 ) then
TraceFrame:AddMessage("inumMapAreaID = "..inumMapAreaID);
TraceFrame:AddMessage("snom = "..snom);
DBCS_region_ecrirecodedutexte(snom);
TraceFrame:AddMessage("stypeinstance = "..(stypeinstance or ""));
TraceFrame:AddMessage("idifficulte = "..idifficulte);
TraceFrame:AddMessage("snomdiff = "..snomdiff);
TraceFrame:AddMessage("imaxPlayers = "..imaxPlayers);
TraceFrame:AddMessage("idynamicDifficulty = "..idynamicDifficulty);
--TraceFrame:AddMessage("bisDynamic = "..bisDynamic);
TraceFrame:AddMessage("imapID = "..imapID);
TraceFrame:AddMessage("GetRealZoneText = "..GetRealZoneText());
TraceFrame:AddMessage("inivcarte = "..inivcarte);
TraceFrame:AddMessage("inivcartemax = "..inivcartemax);
TraceFrame:AddMessage("snumregion = "..snumregion);
TraceFrame:AddMessage("inumcarte = "..(inumcarte or ""));
TraceFrame:AddMessage("iGetCurrentMapDungeonLevel = "..iGetCurrentMapDungeonLevel);
TraceFrame:AddMessage("iGetNumDungeonMapLevels = "..iGetNumDungeonMapLevels);
TraceFrame:AddMessage("mapFileName = "..(mapFileName or ""));
TraceFrame:AddMessage("textureHeight = "..(textureHeight or ""));
TraceFrame:AddMessage("textureWidth = "..(textureWidth or ""));
TraceFrame:AddMessage("microDungeonMapName = "..(microDungeonMapName or ""));
TraceFrame:AddMessage("mapName = "..(mapName or ""));
--end

end

--/script DBCS_region_ecrirecodedutexte("&")
--/script DBCS_region_ecrirecodedutexte("'")
--/script DBCS_region_ecrirecodedutexte(DBMM_translate)
--/script DBCS_region_ecrirecodedutexte(DBMM_translate,1,100)
--/script DBCS_region_ecrirecodedutexte(DBOS[21940][1])
--/script DBCS_region_ecrirecodedutexte(GameTooltipTextLeft4:GetText())
--/script DBCS_region_ecrirecodedutexte(GameTooltipTextLeft9:GetText())
function DBCS_region_ecrirecodedutexte(stexte,ideb,ifin)

local ilen;
local i;
local icarac;
local scarac;

DEFAULT_CHAT_FRAME:AddMessage("texte = "..stexte);
	ilen = strlen(stexte);
	if ( ideb ) then
	else
		ideb = 1;
	end
	if ( ifin ) then
	else
		ifin = ilen;
	end
DEFAULT_CHAT_FRAME:AddMessage("ilen = "..ilen);
	for i = 1 , ilen do
		if ( i >= ideb and i <= ifin ) then
			icarac = strbyte(stexte,i,i);
			if ( icarac ) then
				if ( icarac > 31 and icarac < 127 ) then
DEFAULT_CHAT_FRAME:AddMessage(i.." : "..icarac.." = -"..strsub(stexte,i,i).."-.");
				else
DEFAULT_CHAT_FRAME:AddMessage(i.." : "..icarac.." = -"..icarac.."-.");
				end
			else
DEFAULT_CHAT_FRAME:AddMessage(i.." = -erreur-.");
			end
		end
	end

end

--/script DBCS_Region_Minimap_init("000");
--/script DBCS_Region_Minimap_init("COS");
--/script DBCS_Region_Minimap_init("WOR");
--/script DBCS_Region_Minimap_init("100");
--/script DBCS_Region_Minimap_init("200");
--/script DBCS_Region_Minimap_init("300");
--/script DBCS_Region_Minimap_init("400");
--/script DBCS_Region_Minimap_init("009");
--/script DBCS_Region_Minimap_init("062");
--/script DBCS_Region_Minimap_init("062",1);
--/script DBCS_Region_Minimap_init("062",2);
--/script DBCS_Region_Minimap_init("062",3);
--/script DBCS_Region_Minimap_init("062",4);
--/script DBCS_Region_Minimap_init("401");
--/script DBCS_Region_Minimap_init("402");
--/script DBCS_Region_Minimap_init("402",1);
--/script DBCS_Region_Minimap_init("402",2);
function DBCS_Region_Minimap_init(sregion,inivcarte,bregionloc)

--if ( InCombatLockdown() ) then
--	return nil;
--end

	if ( bregionloc ) then
	else
		if ( ( DBCS_Region_Minimap_init_sregion == sregion ) and ( DBCS_Region_Minimap_init_inivcarte == inivcarte ) ) then
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region : DBCS_Region_Minimap_init : la carte "..sregion..", nivcarte = "..( inivcarte or "").." est deja affichee.");
--end
			DBCS_Region_Minimap_init_sregion = sregion;
			DBCS_Region_Minimap_init_inivcarte = inivcarte;
			return nil;
		end
	end
	DBCS_Region_Minimap_init_sregion = sregion;
	DBCS_Region_Minimap_init_inivcarte = inivcarte;
	DBCS_Region_Minimap_init_loc_hide();

local breturn = false;
local mapFileName;
local completeMapFileName;
local texName;
local i;
local inbnivmin = nil;
local inbnivmax = nil;
local inumniv = nil;
local sregionloc = nil;
local slocloc = nil;
local sinstancelock = nil;
local itop;
local ileft;
local iwidth;
local iheight;
local ipwidth;
local ipheight;
local smicrodungeon = nil;

if ( DBCS_debug and DBCS_debug > 1 ) then
TraceFrame:AddMessage("DBCS_Region : DBCS_Region_Minimap_init : la carte "..sregion..", nivcarte = "..( inivcarte or ""));
end

	mapFileName, inbnivmin, inbnivmax, inumniv, sregionloc, slocloc, sinstancelock, _, _, _, _, _, smicrodungeon = DBCS_Region_nom_carte(sregion);
	if ( sregionloc ) then
		DBCS_Region_Minimap_combo_regionloc:Show();
		--DBCS_Region_Minimap_combo_Nivcarte:Show();
	else
		DBCS_Region_Minimap_combo_regionloc:Hide();
		--DBCS_Region_Minimap_combo_Nivcarte:Hide();
	end
	if ( sinstancelock ) then
		DBCS_Region_Minimap_combo_eventinstance:Show();
	else
		DBCS_Region_Minimap_combo_eventinstance:Hide();
	end
	if ( mapFileName == sregion ) then
		--DBCS_Region_Minimap_Tab:Hide();
		if ( sregionloc == nil ) then
			--DBCS_Region_Minimap:Hide();
			DBCS_Region_Minimap_numregion = "COS";
		else
			DBCS_Region_Minimap_numregion = sregionloc;
			inivcarte = nil;
			mapFileName, inbnivmin, inbnivmax, inumniv, sregionloc, _, _, _, _, _, _, _, smicrodungeon = DBCS_Region_nom_carte(sregionloc);
			DBCS_Region_Minimap_combo_regionloc:Hide();
		end
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region : DBCS_Region_Minimap_init : la carte "..sregion..":"..DBCS_Region_nom_region(sregion).." n'existe pas.");
--end
	else
		if ( bregionloc and sregionloc ) then
			DBCS_Region_Minimap_numregion = sregionloc;
			inivcarte = nil;
			mapFileName, inbnivmin, inbnivmax, inumniv, sregionloc, _, _, _, _, _, _, _, smicrodungeon = DBCS_Region_nom_carte(sregionloc);
			DBCS_Region_Minimap_combo_regionloc:Hide();
		else
			DBCS_Region_Minimap_numregion = sregion;
			breturn = true;
		end
	end
	if ( mapFileName == sregion ) then
	else
		if ( inivcarte == nil ) then
			inivcarte = inumniv;
		end
		if ( inivcarte ) then
			if ( inivcarte == 0 ) then
				if ( inbnivmin ) then
					if ( inbnivmin > 0 ) then
						inivcarte = inumniv;
						completeMapFileName = mapFileName..inivcarte.."_";
					else
						completeMapFileName = mapFileName;
					end
				else
					completeMapFileName = mapFileName;
				end
			else
				--if ( smicrodungeon ) then
				--else
					completeMapFileName = mapFileName..inivcarte.."_";
				--end
			end
		else
			completeMapFileName = mapFileName;
		end
		if ( inivcarte == nil ) then
			inivcarte = 0;
		end
		DBCS_Region_Minimap_nivcarte = inivcarte;
		--DBCS_Region_Minimap_Tab:Show();
		ileft = DBCS_Region_Minimap:GetLeft();
		iwidth = DBCS_Region_Minimap:GetWidth();
		--iwidth = DBCS_Region_Minimap_echelle*4*25*.98;
		ipwidth = UIParent:GetWidth();
		if ( ileft == nil or ileft < 0 ) then
			ileft = 0;
		elseif ( ( ileft + iwidth ) > ipwidth ) then
			ileft = ipwidth - iwidth;
		end
		itop = DBCS_Region_Minimap:GetTop();
		iheight = DBCS_Region_Minimap:GetHeight();
		--iheight = DBCS_Region_Minimap_echelle*3*25*.87;
		ipheight = UIParent:GetHeight();
		if ( itop == nil or itop < iheight ) then
			itop = iheight;
		elseif ( itop > ipheight ) then
			itop = ipheight;
		end
--TraceFrame:AddMessage("DBCS_Region : DBCS_Region_Minimap_init : position = "..ileft.."/"..itop);
		DBCS_Region_Minimap:ClearAllPoints();
		DBCS_Region_Minimap:SetPoint("TOPLEFT",UIParent,"BOTTOMLEFT",ileft,itop);
		--DBCS_Region_Minimap:SetPoint("TOPLEFT",UIParent,"TOPLEFT",400,-400);
		--DBCS_Region_Minimap:SetPoint("TOPLEFT",UIParent,"TOPLEFT",(UIParent:GetWidth()-DBCS_Region_Minimap:GetWidth())/2,((UIParent:GetHeight()-DBCS_Region_Minimap:GetHeight())/2)*-1);
		DBCS_Region_Minimap_init_overlay(DBCS_Region_Minimap_numregion);
		if ( DBCS_Region_Minimap_combo_refresh == 1 ) then
			DBCS_Region_Minimap_refresh_combo(sregion,inivcarte);
			--rafraichir les combo
		end
		if ( mapFileName == "minimap" ) then
			DBCS_Region_Map_Minimap_afficher(DBCS_Region_Minimap_numregion);
			DBCS_Region_Minimap_combo_Nivdonjon:Show();
			DBCS_Region_Minimap_combo_Nivdonjon_OnLoad();
			UIDropDownMenu_SetSelectedValue(DBCS_Region_Minimap_combo_Nivdonjon, 0);
		else
			DBCS_Region_Minimap_combo_Nivdonjon:Hide();
			DBCS_Region_Minimap_AnimGroup:Stop();
			DBCS_Region_Minimap_AnimGroup_Rot1:SetDegrees(0);
			DBCS_Region_Minimap_AnimGroup_Rot1:SetOrigin("CENTER",0,0);
			DBCS_Region_Map_Minimap_tablo = nil;
--TraceFrame:AddMessage("DBCS_Region : DBCS_Region_Minimap_init : completeMapFileName = "..completeMapFileName);
--if ( DBCS_Region_wow_build_info > DBCS_Region_wow_build_info_live ) then
			local numOfDetailTiles = GetNumberOfDetailTiles();
			for i = 1 , numOfDetailTiles do
				if ( smicrodungeon ) then
					texName = "Interface/WorldMap/MicroDungeon/"..smicrodungeon.."/"..mapFileName.."/"..completeMapFileName..i;
				else
					texName = "Interface/WorldMap/"..mapFileName.."/"..completeMapFileName..i;
				end
--TraceFrame:AddMessage("DBCS_Region : DBCS_Region_Minimap_init : texName = "..texName);
				_G["DBCS_Region_Minimap_carte"..i]:SetTexture(texName);
				_G["DBCS_Region_Minimap_carte"..i]:Show();
			end
--else
--			for i = 1 , NUM_WORLDMAP_DETAIL_TILES do
--				texName = "Interface/WorldMap/"..mapFileName.."/"..completeMapFileName..i;
--				_G["DBCS_Region_Minimap_carte"..i]:SetTexture(texName);
--				_G["DBCS_Region_Minimap_carte"..i]:Show();
--			end
--end
			for i = 1 , DBCS_Region_Map_Minimap_nbtexture do
				_G["DBCS_Region_Map_Minimap_ftexture"..i]:Hide();
				--_G["DBCS_Region_Map_Minimap_texture"..i]:Hide();
			end
			DBCS_Region_Minimap_Tracking_SetTracking_afficher();
		end
		DBCS_Region_Minimap:Show();
		if ( sregionloc == nil and slocloc ) then
			DBCS_Region_Minimap_init_loc_hide();
			DBCS_Region_Minimap_init_loc_pos(DBCS_Region_nom_region(sregion),slocloc,"@","x",nil);
		end
--local floorname =_G["DUNGEON_FLOOR_" .. mapname .. floorNum];
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DUNGEON_FLOOR_"..mapFileName..DBCS_Region_Minimap_nivcarte);
--end
local floorname = nil;
if ( smicrodungeon ) then
	floorname = _G["DUNGEON_FLOOR_"..strupper(smicrodungeon)..DBCS_Region_Minimap_nivcarte];
else
	floorname = _G["DUNGEON_FLOOR_"..strupper(mapFileName)..DBCS_Region_Minimap_nivcarte];
end
		if ( floorname ) then
			DBCS_Region_Minimap_Titre_Libelle:SetText(floorname);
		else
			DBCS_Region_Minimap_Titre_Libelle:SetText(DBCS_Region_nom_region(DBCS_Region_Minimap_numregion));
		end
	end
	DBCS_Region_init_echelle();

	return breturn;

end

DBCS_Region_Minimap_NUM_WORLDMAP_OVERLAYS = 0;

function DBCS_Region_Minimap_init_overlay(sregion)

--if ( InCombatLockdown() ) then
--	return nil;
--end

local i;

--TraceFrame:AddMessage("DBCS_Region_Minimap_init_overlay = "..sregion);
	--if ( DBCS_Region_config["OVERLAY"] and DBCS_Region_config["OVERLAY"][sregion] ) then
	if (
			( DBCS_Region_Overlay["OVERLAY"] and DBCS_Region_Overlay["OVERLAY"][sregion] )
			or
			( DBCS_Region_config and DBCS_Region_config["OVERLAY"] and DBCS_Region_config["OVERLAY"][sregion] )
		) then
	else
--TraceFrame:AddMessage("DBCS_Region_Minimap_init_overlay = "..(sregion or "").." vide.");
		for i = 1 , DBCS_Region_Minimap_NUM_WORLDMAP_OVERLAYS do
			_G["DBCS_Region_Minimap_Overlay"..i]:Hide();
		end
		return nil;
	end

local textureCount;
local battlefieldMinimapScale;
local textureName;
local textureWidth;
local textureHeight;
local offsetX;
local offsetY;
local mapPointX;
local mapPointY;
local numTexturesWide;
local numTexturesTall;
local neededTextures;
local j;
local texturePixelWidth;
local textureFileWidth;
local texturePixelHeight;
local textureFileHeight;
local k;
local texture;
	
if ( DBCS_debug and DBCS_debug > 1 ) then
TraceFrame:AddMessage("DBCS_Region_Minimap_init_overlay = "..sregion);
end

	textureCount = 0;
	if ( ( sregion == "611" ) or ( sregion == "0D2" ) or ( sregion == "0D6" ) ) then
		for i = textureCount + 1 , DBCS_Region_Minimap_NUM_WORLDMAP_OVERLAYS do
			_G["DBCS_Region_Minimap_Overlay"..i]:Hide();
		end
		return nil;
	end
	-- Use this value to scale the texture sizes and offsets
	DBCS_Region_Minimap_Scale = (25*DBCS_Region_Minimap_echelle)/256;
	--DBCS_Region_Minimap_Scale = DBCS_Region_Minimap:GetWidth()/256;
	if ( DBCS_Region_Overlay["OVERLAY"][sregion] ) then
		for textureName, _ in pairs(DBCS_Region_Overlay["OVERLAY"][sregion]) do
			textureWidth = DBCS_Region_Overlay["OVERLAY"][sregion][textureName][1];
			textureHeight = DBCS_Region_Overlay["OVERLAY"][sregion][textureName][2];
			offsetX = DBCS_Region_Overlay["OVERLAY"][sregion][textureName][3];
			offsetY = DBCS_Region_Overlay["OVERLAY"][sregion][textureName][4];
			mapPointX = DBCS_Region_Overlay["OVERLAY"][sregion][textureName][5];
			mapPointY = DBCS_Region_Overlay["OVERLAY"][sregion][textureName][6];
			if (textureName ~= "" or textureWidth == 0 or textureHeight == 0) then
				numTexturesWide = ceil(textureWidth/256);
				numTexturesTall = ceil(textureHeight/256);
				neededTextures = textureCount + (numTexturesWide * numTexturesTall);
				if ( neededTextures > DBCS_Region_Minimap_NUM_WORLDMAP_OVERLAYS ) then
					for j = DBCS_Region_Minimap_NUM_WORLDMAP_OVERLAYS + 1, neededTextures do
						DBCS_Region_Minimap:CreateTexture("DBCS_Region_Minimap_Overlay"..j, "ARTWORK");
					end
					DBCS_Region_Minimap_NUM_WORLDMAP_OVERLAYS = neededTextures;
				end
				for j = 1 , numTexturesTall do
					if ( j < numTexturesTall ) then
						texturePixelHeight = 256;
						textureFileHeight = 256;
					else
						texturePixelHeight = mod(textureHeight, 256);
						if ( texturePixelHeight == 0 ) then
							texturePixelHeight = 256;
						end
						textureFileHeight = 16;
						while ( textureFileHeight < texturePixelHeight ) do
							textureFileHeight = textureFileHeight * 2;
						end
					end
					for k = 1 , numTexturesWide do
						textureCount = textureCount + 1;
						texture = _G["DBCS_Region_Minimap_Overlay"..textureCount];
						if ( k < numTexturesWide ) then
							texturePixelWidth = 256;
							textureFileWidth = 256;
						else
							texturePixelWidth = mod(textureWidth, 256);
							if ( texturePixelWidth == 0 ) then
								texturePixelWidth = 256;
							end
							textureFileWidth = 16;
							while ( textureFileWidth < texturePixelWidth ) do
								textureFileWidth = textureFileWidth * 2;
							end
						end
						texture:SetWidth(texturePixelWidth*DBCS_Region_Minimap_Scale);
						texture:SetHeight(texturePixelHeight*DBCS_Region_Minimap_Scale);
						texture:SetTexCoord(0, texturePixelWidth/textureFileWidth, 0, texturePixelHeight/textureFileHeight);
						texture:ClearAllPoints();
						texture:SetPoint("TOPLEFT", "DBCS_Region_Minimap", "TOPLEFT", (offsetX + (256 * (k-1)))*DBCS_Region_Minimap_Scale, -((offsetY + (256 * (j - 1)))*DBCS_Region_Minimap_Scale));
						texture:SetTexture(textureName..(((j - 1) * numTexturesWide) + k));
						texture:SetAlpha(1);
						texture:Show();
					end
				end
			end
		end
	end
	if ( DBCS_Region_config["OVERLAY"] and DBCS_Region_config["OVERLAY"][sregion] ) then
--TraceFrame:AddMessage("DBCS_Region : DBCS_Region_Minimap_init_overlay : DBCS_Region_config : sregion = "..sregion.." trouvee.");
		for textureName, _ in pairs(DBCS_Region_config["OVERLAY"][sregion]) do
--TraceFrame:AddMessage("DBCS_Region : DBCS_Region_Minimap_init_overlay : DBCS_Region_config : textureName = "..textureName);
			textureWidth = DBCS_Region_config["OVERLAY"][sregion][textureName][1];
			textureHeight = DBCS_Region_config["OVERLAY"][sregion][textureName][2];
			offsetX = DBCS_Region_config["OVERLAY"][sregion][textureName][3];
			offsetY = DBCS_Region_config["OVERLAY"][sregion][textureName][4];
			mapPointX = DBCS_Region_config["OVERLAY"][sregion][textureName][5];
			mapPointY = DBCS_Region_config["OVERLAY"][sregion][textureName][6];
			if (textureName ~= "" or textureWidth == 0 or textureHeight == 0) then
				numTexturesWide = ceil(textureWidth/256);
				numTexturesTall = ceil(textureHeight/256);
				neededTextures = textureCount + (numTexturesWide * numTexturesTall);
				if ( neededTextures > DBCS_Region_Minimap_NUM_WORLDMAP_OVERLAYS ) then
					for j = DBCS_Region_Minimap_NUM_WORLDMAP_OVERLAYS + 1, neededTextures do
						DBCS_Region_Minimap:CreateTexture("DBCS_Region_Minimap_Overlay"..j, "ARTWORK");
					end
					DBCS_Region_Minimap_NUM_WORLDMAP_OVERLAYS = neededTextures;
				end
				for j = 1 , numTexturesTall do
					if ( j < numTexturesTall ) then
						texturePixelHeight = 256;
						textureFileHeight = 256;
					else
						texturePixelHeight = mod(textureHeight, 256);
						if ( texturePixelHeight == 0 ) then
							texturePixelHeight = 256;
						end
						textureFileHeight = 16;
						while ( textureFileHeight < texturePixelHeight ) do
							textureFileHeight = textureFileHeight * 2;
						end
					end
					for k = 1 , numTexturesWide do
						textureCount = textureCount + 1;
						texture = _G["DBCS_Region_Minimap_Overlay"..textureCount];
						if ( k < numTexturesWide ) then
							texturePixelWidth = 256;
							textureFileWidth = 256;
						else
							texturePixelWidth = mod(textureWidth, 256);
							if ( texturePixelWidth == 0 ) then
								texturePixelWidth = 256;
							end
							textureFileWidth = 16;
							while ( textureFileWidth < texturePixelWidth ) do
								textureFileWidth = textureFileWidth * 2;
							end
						end
						texture:SetWidth(texturePixelWidth*DBCS_Region_Minimap_Scale);
						texture:SetHeight(texturePixelHeight*DBCS_Region_Minimap_Scale);
						texture:SetTexCoord(0, texturePixelWidth/textureFileWidth, 0, texturePixelHeight/textureFileHeight);
						texture:ClearAllPoints();
						texture:SetPoint("TOPLEFT", "DBCS_Region_Minimap", "TOPLEFT", (offsetX + (256 * (k-1)))*DBCS_Region_Minimap_Scale, -((offsetY + (256 * (j - 1)))*DBCS_Region_Minimap_Scale));
						texture:SetTexture(textureName..(((j - 1) * numTexturesWide) + k));
						texture:SetAlpha(1);
						texture:Show();
					end
				end
			end
		end
	end
	for i = textureCount + 1 , DBCS_Region_Minimap_NUM_WORLDMAP_OVERLAYS do
		_G["DBCS_Region_Minimap_Overlay"..i]:Hide();
	end

end

function DBCS_Region_Minimap_init_loc_hide()

local i;

--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_Minimap_init_loc_hide");
--end

	for i = 1 , DBCS_Region_Minimap_init_loc_nummax do
		_G["DBCS_Region_Minimap_loc_"..i]:Hide();
	end
	DBCS_Region_Minimap_init_loc_num = 0;
	DBCS_Region_Minimap_init_loc_num_tableau = {};

end

function DBCS_Region_Minimap_init_loc(slegende,sregion,inivcarte,slisteloc,sdelim1,sdelim2,sdelim3)

--if ( InCombatLockdown() ) then
--	return nil;
--end

--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_Minimap_init_loc");
--end
	DBCS_Region_Minimap_init(sregion,inivcarte);
	DBCS_Region_Minimap_init_loc_hide();
	DBCS_Region_Minimap_init_loc_pos(slegende,slisteloc,sdelim1,sdelim2,sdelim3);

end

--/script DBCS_Region_Minimap_init_loc_pos("joueur1","@50#100@","@","#")
--/script DBCS_Region_Minimap_init_loc_pos("joueur1","@100#100@","@","#")
function DBCS_Region_Minimap_init_loc_pos(slegende,slisteloc,sdelim1,sdelim2,sdelim3)

--if ( InCombatLockdown() ) then
--	return nil;
--end

local iwidth;
local iheight;
local iposdeb;
local iposfin;
local xyloc;
local ipos2;
local ipos3;

local newFrame;

	--iwidth = DBCS_Region_Minimap:GetWidth()/100;
	--iheight = DBCS_Region_Minimap:GetHeight()/100;
	iwidth = ((25*DBCS_Region_Minimap_echelle*4)*.98)/100;
	iheight = ((25*DBCS_Region_Minimap_echelle*3)*.87)/100;

	if ( type(slegende) == "number" ) then
		if ( DBmobs_Local and DBmobs_Local[slegende] and DBmobs_Local[slegende][1] ) then
			slegende = DBmobs_Local[slegende][1][1];
		end
	end
	
	iposdeb = 1;
	iposfin = strfind(slisteloc,sdelim1,iposdeb+1);
	while ( iposfin ) do
		xyloc = strsub(slisteloc,iposdeb+1,iposfin-1);
		ipos2 = strfind(xyloc,sdelim2);
		x = tonumber(strsub(xyloc,1,ipos2-1));
		if ( sdelim3 ) then
			ipos3 = strfind(xyloc,sdelim3,ipos2+1);
			y = tonumber(strsub(xyloc,ipos2+1,ipos3-1));
		else
			y = tonumber(strsub(xyloc,ipos2+1));
		end
		DBCS_Region_Minimap_init_loc_num = DBCS_Region_Minimap_init_loc_num + 1;
		DBCS_Region_Minimap_init_loc_num_tableau[DBCS_Region_Minimap_init_loc_num] = {};
		DBCS_Region_Minimap_init_loc_num_tableau[DBCS_Region_Minimap_init_loc_num][1] = x;
		DBCS_Region_Minimap_init_loc_num_tableau[DBCS_Region_Minimap_init_loc_num][2] = y;
		if ( DBCS_Region_Minimap_init_loc_num > DBCS_Region_Minimap_init_loc_nummax ) then
			DBCS_Region_Minimap_init_loc_nummax = DBCS_Region_Minimap_init_loc_num;
			--newFrame = CreateFrame("Button", "DBCS_Region_Minimap_loc_"..DBCS_Region_Minimap_init_loc_num, DBCS_Region_Minimap, "WorldMapUnitTemplate");
			newFrame = CreateFrame("Button", "DBCS_Region_Minimap_loc_"..DBCS_Region_Minimap_init_loc_num, DBCS_Region_Minimap, "DBCS_Region_WorldMapUnitTemplate");
			--newFrame:CreateTexture("DBCS_Region_Minimap_tex_"..DBCS_Region_Minimap_init_loc_num, "OVERLAY");
			newFrame:CreateTexture("DBCS_Region_Minimap_tex_"..DBCS_Region_Minimap_init_loc_num, "ARTWORK");
			_G["DBCS_Region_Minimap_tex_"..DBCS_Region_Minimap_init_loc_num]:SetTexture("Interface/WorldMap/WorldMapPartyIcon");
			_G["DBCS_Region_Minimap_tex_"..DBCS_Region_Minimap_init_loc_num]:SetPoint("CENTER", _G["DBCS_Region_Minimap_loc_"..DBCS_Region_Minimap_init_loc_num], "CENTER", 0, 0);
			_G["DBCS_Region_Minimap_tex_"..DBCS_Region_Minimap_init_loc_num]:Show();
			newFrame:SetScript("OnEnter", DBCS_Region_Minimap_loc_OnEnter);
			newFrame:SetScript("OnLeave", DBCS_Region_Minimap_loc_OnLeave);
		else
			newFrame = _G["DBCS_Region_Minimap_loc_"..DBCS_Region_Minimap_init_loc_num];
		end
		if ( x and y ) then
			DBCS_Region_Minimap_init_loc_num_tableau[DBCS_Region_Minimap_init_loc_num][3] = slegende.." en "..x.."/"..y..".";
			newFrame:ClearAllPoints();
			newFrame:SetPoint("CENTER",DBCS_Region_Minimap,"TOPLEFT",x*iwidth,(y*iheight)*-1);
			newFrame.unit = DBCS_Region_Minimap_init_loc_num_tableau[DBCS_Region_Minimap_init_loc_num][3];
			newFrame:Show();
			--/script DBCS_Region_Minimap_loc_1:SetPoint("CENTER",DBCS_Region_Minimap,"TOPLEFT",100*4,(100*2.61)*-1);
		end
		iposdeb = iposfin;
		iposfin = strfind(slisteloc,sdelim1,iposdeb+1);
	end

end

--		<Layers>
--			<Layer level="ARTWORK">
--				<Texture name="$parentIcon" file="Interface/WorldMap/WorldMapPartyIcon" setAllPoints="true" parentKey="icon"/>
--			</Layer>
--		</Layers>


function DBCS_Region_Minimap_init_loc_refresh()

--if ( InCombatLockdown() ) then
--	return nil;
--end

local iwidth;
local iheight;
local i;
local x;
local y;

local newFrame;

	iwidth = ((25*DBCS_Region_Minimap_echelle*4)*.98)/100;
	iheight = ((25*DBCS_Region_Minimap_echelle*3)*.87)/100;
	
	for i = 1 , DBCS_Region_Minimap_init_loc_num do
		x = DBCS_Region_Minimap_init_loc_num_tableau[i][1];
		y = DBCS_Region_Minimap_init_loc_num_tableau[i][2];
		if ( x and y ) then
			newFrame = _G["DBCS_Region_Minimap_loc_"..i];
			newFrame:ClearAllPoints();
			newFrame:SetPoint("CENTER",DBCS_Region_Minimap,"TOPLEFT",x*iwidth,(y*iheight)*-1);
			newFrame.unit = DBCS_Region_Minimap_init_loc_num_tableau[i][3];
			newFrame:Show();
		end
	end

end

function DBCS_Region_Minimap_loc_OnEnter(self)

--if ( InCombatLockdown() ) then
--	return nil;
--end

	-- Adjust the tooltip based on which side the unit button is on
	local x, y = self:GetCenter();
	local parentX, parentY = self:GetParent():GetCenter();
	if ( x > parentX ) then
		GameTooltip:SetOwner(self, "ANCHOR_LEFT");
	else
		GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
	end

	local tooltipText = self.unit;
	GameTooltip:SetText(tooltipText);
	GameTooltip:Show();

end

function DBCS_Region_Minimap_loc_OnLeave()

	GameTooltip:Hide();

end

function DBCS_Region_Minimap_Tab_OnClick(self, button)

--if ( InCombatLockdown() ) then
--	return nil;
--end

	PlaySound("UChatScrollButton");

	---- If Rightclick bring up the options menu
	--if ( button == "RightButton" ) then
	--	ToggleDropDownMenu(1, nil, BattlefieldMinimapTabDropDown, self:GetName(), 0, 0);
	--	return;
	--end

	---- Close all dropdowns
	--CloseDropDownMenus();

	-- If frame is not locked then allow the frame to be dragged or dropped
	if ( self:GetButtonState() == "PUSHED" ) then
		DBCS_Region_Minimap_Tab:StopMovingOrSizing();
	else
		---- If locked don't allow any movement
		--if ( BattlefieldMinimapOptions.locked ) then
		--	return;
		--else
			DBCS_Region_Minimap_Tab:StartMoving();
		--end
	end
	ValidateFramePosition(DBCS_Region_Minimap_Tab);

end

--		<Anchor point="TOPLEFT" relativeTo="DBCS_Region_Minimap_Tab" relativePoint="BOTTOMLEFT">
--			<Offset>
--				<AbsDimension x="0" y="-5"/>
--			</Offset>
--		</Anchor>
			--<Frame name="$parent_DropDown" inherits="UIDropDownMenuTemplate" id="1" hidden="true">
			--	<Anchors>
			--		<Anchor point="TOP">
			--			<Offset>
			--				<AbsDimension x="-80" y="-35"/>
			--			</Offset>
			--		</Anchor>
			--	</Anchors>
			--</Frame>
--		<Frames>
--			<Frame name="$parentFlash" hidden="true">
--				<Size>
--					<AbsDimension x="5" y="32"/>
--				</Size>
--				<Anchors>
--					<Anchor point="LEFT" relativeTo="$parentLeft">
--						<Offset>
--							<AbsDimension x="0" y="-7"/>
--						</Offset>
--					</Anchor>
--					<Anchor point="RIGHT" relativeTo="$parentRight">
--						<Offset>
--							<AbsDimension x="0" y="-7"/>
--						</Offset>
--					</Anchor>
--				</Anchors>
--				<Layers>
--					<Layer level="BACKGROUND">
--						<Texture file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD" setAllPoints="true"/>
--					</Layer>
--				</Layers>
--			</Frame>
--		</Frames>


--parent="UIParent" frameStrata="BACKGROUND" hidden="true" movable="true" 

--		<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
--			<BackgroundInsets>
--				<AbsInset left="0" right="0" top="0" bottom="0"/>
--			</BackgroundInsets>
--			<TileSize>
--				<AbsValue val="32"/>
--			</TileSize>
--			<EdgeSize>
--				<AbsValue val="32"/>
--			</EdgeSize>
--		</Backdrop>

function DBCS_Region_Code_Region(icont,iregion)

local snumregion = "000";

	if ( DBCS_Region_config["MAPZOOM"] and DBCS_Region_config["MAPZOOM"][DBCS_Region_wow_build] and DBCS_Region_config["MAPZOOM"][DBCS_Region_wow_build][icont] and DBCS_Region_config["MAPZOOM"][DBCS_Region_wow_build][icont][iregion] ) then
		snumregion = DBCS_Region_config["MAPZOOM"][DBCS_Region_wow_build][icont][iregion];
	end

	return snumregion;

end		

function DBCS_Region_Region_Code(snumregion)

local icont;
local iregion;

	icont = nil;

	if ( DBCS_Region_config["REGION_NAME"] and DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build] and DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][snumregion] ) then
		icont = DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][snumregion][2];
		iregion = DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][snumregion][3];
	end

	return icont,iregion;

end		

local DBCS_Region_Lire_Overlay_snumregion = "000";

function DBCS_Region_Lire_Overlay(icont,iregion)

--if ( InCombatLockdown() ) then
--	return nil;
--end

local snumregion;
local numOverlays;
local i;
local textureName;
local textureWidth;
local textureHeight;
local offsetX;
local offsetY;
local mapPointX;
local mapPointY;

	if ( icont == nil and iregion == nil ) then
		snumregion = DBCS_Region_liste_sregion or "000";
	else
		snumregion = DBCS_Region_Code_Region(icont,iregion);
	end
	if ( DBCS_Region_Lire_Overlay_snumregion == snumregion ) then
		--return nil;
	else
--TraceFrame:AddMessage("DBCS_Region : DBCS_Region_Lire_Overlay : snumregion = "..snumregion);
		DBCS_Region_Lire_Overlay_snumregion = snumregion;
	end
	if ( DBCS_Region_ZONE_CHANGED_NEW_AREA == false or snumregion == "000" ) then
--TraceFrame:AddMessage("DBCS_Region : DBCS_Region_Lire_Overlay : icont = "..icont..", iregion = "..iregion);
	else
		if ( DBCS_Region_config["OVERLAY"][snumregion] == nil ) then
			DBCS_Region_config["OVERLAY"][snumregion] = {};
		end
		numOverlays = GetNumMapOverlays();
		for i = 1 , numOverlays do
			textureName, textureWidth, textureHeight, offsetX, offsetY, mapPointX, mapPointY = GetMapOverlayInfo(i);
			if ( mapPointX == nil ) then
				mapPointX = 0;
			end
			if ( mapPointY == nil ) then
				mapPointY = 0;
			end
			if ( textureName ) then
				textureName = string.gsub(textureName,"\\","/");
				if ( textureName == "" ) then
					DBCS_Region_config["OVERLAY"][snumregion][textureName] = nil;
				else
					if ( DBCS_Region_Overlay["OVERLAY"][snumregion] and DBCS_Region_Overlay["OVERLAY"][snumregion][textureName] and DBCS_Region_Overlay["OVERLAY"][snumregion][textureName][1] == textureWidth and DBCS_Region_Overlay["OVERLAY"][snumregion][textureName][2] == textureHeight and DBCS_Region_Overlay["OVERLAY"][snumregion][textureName][3] == offsetX and DBCS_Region_Overlay["OVERLAY"][snumregion][textureName][4] == offsetY and DBCS_Region_Overlay["OVERLAY"][snumregion][textureName][5] == mapPointX and DBCS_Region_Overlay["OVERLAY"][snumregion][textureName][6] == mapPointY ) then
						DBCS_Region_config["OVERLAY"][snumregion][textureName] = nil;
					else
						DBCS_Region_config["OVERLAY"][snumregion][textureName] = {};
						DBCS_Region_config["OVERLAY"][snumregion][textureName][1] = textureWidth;
						DBCS_Region_config["OVERLAY"][snumregion][textureName][2] = textureHeight;
						DBCS_Region_config["OVERLAY"][snumregion][textureName][3] = offsetX;
						DBCS_Region_config["OVERLAY"][snumregion][textureName][4] = offsetY;
						DBCS_Region_config["OVERLAY"][snumregion][textureName][5] = mapPointX;
						DBCS_Region_config["OVERLAY"][snumregion][textureName][6] = mapPointY;
						DBCS_Region_config["OVERLAY"][snumregion][textureName][7] = tonumber(date("%Y%m%d"));
						DBCS_Region_config["OVERLAY"][snumregion][textureName][8] = DBCS_Region_wow_build;
					end
				end
			end
		end
	end

end

function DBCS_Region_Lire_Overlay_numregion(snumregion)

--if ( InCombatLockdown() ) then
--	return nil;
--end

local numOverlays;
local i;
local textureName;
local textureWidth;
local textureHeight;
local offsetX;
local offsetY;
local mapPointX;
local mapPointY;

	if ( DBCS_Region_Lire_Overlay_snumregion == snumregion ) then
		--return nil;
	else
--TraceFrame:AddMessage("DBCS_Region : DBCS_Region_Lire_Overlay_numregion : snumregion = "..snumregion);
		DBCS_Region_Lire_Overlay_snumregion = snumregion;
	end
	if ( ( DBCS_Region_ZONE_CHANGED_NEW_AREA == false ) or ( snumregion == "000" ) ) then
--TraceFrame:AddMessage("DBCS_Region : DBCS_Region_Lire_Overlay_numregion : icont = "..icont..", iregion = "..iregion);
	else
		if ( DBCS_Region_config["OVERLAY"][snumregion] == nil ) then
			DBCS_Region_config["OVERLAY"][snumregion] = {};
		end
		numOverlays = GetNumMapOverlays();
		for i = 1 , numOverlays do
			textureName, textureWidth, textureHeight, offsetX, offsetY, mapPointX, mapPointY = GetMapOverlayInfo(i);
			if ( mapPointX == nil ) then
				mapPointX = 0;
			end
			if ( mapPointY == nil ) then
				mapPointY = 0;
			end
			if ( textureName ) then
				textureName = string.gsub(textureName,"\\","/");
				if ( textureName == "" ) then
					DBCS_Region_config["OVERLAY"][snumregion][textureName] = nil;
				else
					if ( DBCS_Region_Overlay["OVERLAY"][snumregion] and DBCS_Region_Overlay["OVERLAY"][snumregion][textureName] and DBCS_Region_Overlay["OVERLAY"][snumregion][textureName][1] == textureWidth and DBCS_Region_Overlay["OVERLAY"][snumregion][textureName][2] == textureHeight and DBCS_Region_Overlay["OVERLAY"][snumregion][textureName][3] == offsetX and DBCS_Region_Overlay["OVERLAY"][snumregion][textureName][4] == offsetY and DBCS_Region_Overlay["OVERLAY"][snumregion][textureName][5] == mapPointX and DBCS_Region_Overlay["OVERLAY"][snumregion][textureName][6] == mapPointY ) then
						DBCS_Region_config["OVERLAY"][snumregion][textureName] = nil;
					else
						DBCS_Region_config["OVERLAY"][snumregion][textureName] = {};
						DBCS_Region_config["OVERLAY"][snumregion][textureName][1] = textureWidth;
						DBCS_Region_config["OVERLAY"][snumregion][textureName][2] = textureHeight;
						DBCS_Region_config["OVERLAY"][snumregion][textureName][3] = offsetX;
						DBCS_Region_config["OVERLAY"][snumregion][textureName][4] = offsetY;
						DBCS_Region_config["OVERLAY"][snumregion][textureName][5] = mapPointX;
						DBCS_Region_config["OVERLAY"][snumregion][textureName][6] = mapPointY;
						DBCS_Region_config["OVERLAY"][snumregion][textureName][7] = tonumber(date("%Y%m%d"));
						DBCS_Region_config["OVERLAY"][snumregion][textureName][8] = DBCS_Region_wow_build;
					end
				end
			end
		end
	end

end

function DBCS_Region_Lire_Overlays_joueur()

--if ( InCombatLockdown() ) then
--	return nil;
--end

local i;
local j;
local inumMapAreaID;
local iareaid;

	if ( DBCS_Region_config_joueur == DBCS_Region_wow_build ) then
	else
		if ( DBCS_Region_config["MAPZOOM"] and DBCS_Region_config["MAPZOOM"][DBCS_Region_wow_build] ) then
			inumMapAreaID = GetCurrentMapAreaID();
			for i = 1 , table.getn(DBCS_Region_config["MAPZOOM"][DBCS_Region_wow_build]) do
				for j = 1 , table.getn(DBCS_Region_config["MAPZOOM"][DBCS_Region_wow_build][i]) do
					--SetMapByID(tablo_areaid[j]);
					----DBCS_Region_liste_areaid[tablo_areaid[j]].sval
					--sregion = nil;
					--if ( DBCS_Region_liste_areaid[tablo_areaid[j]] ) then
					--	sregion = DBCS_Region_liste_areaid[tablo_areaid[j]].sval;
					
					if ( DBCS_Region_wow_build_info > DBCS_Region_wow_build_info_live ) then
						sregion = DBCS_Region_config["MAPZOOM"][DBCS_Region_wow_build][i][j];
						if ( DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion] ) then
							iareaid = DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][7];
							if ( iareaid ) then
								SetMapByID(iareaid);
							end
						end
					else
						SetMapZoom(i,j);
					end
				end
			end
			SetMapByID(inumMapAreaID);
			--SetMapToCurrentZone();	--20121031
			DBCS_Region_config_joueur = DBCS_Region_wow_build;
		end
	end

end

--		<Anchor point="TOPLEFT">
--			<Offset>
--				<AbsDimension x="300" y="-300"/>
--			</Offset>
--		</Anchor>

function DBCS_Region_Minimap_combo_TypeRegion1_OnLoad()

--if ( InCombatLockdown() ) then
--	return nil;
--end

	UIDropDownMenu_Initialize(DBCS_Region_Minimap_combo_TypeRegion1, DBCS_Region_Minimap_combo_TypeRegion1_Initialize);

end

function DBCS_Region_Minimap_combo_TypeRegion1_Initialize()

--if ( InCombatLockdown() ) then
--	return nil;
--end

local info;
local i;

	info = {};
	info.text = "Toutes";
	info.value = -1;
	info.func = DBCS_Region_Minimap_combo_TypeRegion1_OnClick;
	UIDropDownMenu_AddButton(info);
	if ( DBCS_Region_liste_combo ) then
		for i = 1 , table.getn(DBCS_Region_liste_combo)  do
			info = {};
			info.text = DBCS_Region_liste_combo[i].name;
			info.value = i;
			info.func = DBCS_Region_Minimap_combo_TypeRegion1_OnClick;
			UIDropDownMenu_AddButton(info);
		end
	end
	DBCS_Region_Minimap_combo_TypeRegion1Middle:SetWidth(200);

end

function DBCS_Region_Minimap_combo_TypeRegion1_OnClick(self)

--if ( InCombatLockdown() ) then
--	return nil;
--end

	UIDropDownMenu_SetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion1, self.value);
	DBCS_Region_Minimap_combo_TypeRegion2_OnLoad();
	UIDropDownMenu_SetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion2,-1);
	DBCS_Region_Minimap_combo_TypeRegion3_OnLoad();
	UIDropDownMenu_SetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion3,-1);
	DBCS_Region_Minimap_combo_Nivcarte_OnLoad();

end

function DBCS_Region_Minimap_combo_TypeRegion2_OnLoad()

--if ( InCombatLockdown() ) then
--	return nil;
--end

	UIDropDownMenu_Initialize(DBCS_Region_Minimap_combo_TypeRegion2, DBCS_Region_Minimap_combo_TypeRegion2_Initialize);

end

function DBCS_Region_Minimap_combo_TypeRegion2_Initialize()

--if ( InCombatLockdown() ) then
--	return nil;
--end

local info;
local i;

local ityperegion1 = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion1);
local b3;

	b3 = true;
	info = {};
	info.text = "Toutes";
	info.value = -1;
	info.func = DBCS_Region_Minimap_combo_TypeRegion2_OnClick;
	UIDropDownMenu_AddButton(info);
	if ( DBCS_Region_liste_combo and DBCS_Region_liste_combo[ityperegion1] ) then
		for i = 1 , table.getn(DBCS_Region_liste_combo[ityperegion1])  do
			info = {};
			if ( DBCS_Region_liste_combo[ityperegion1][i].name ) then
				info.text = DBCS_Region_liste_combo[ityperegion1][i].name;
			else
				if ( DBCS_Region_liste_combo[ityperegion1][i].type == "Z" ) then
					info.text = DBCS_Region_nom_region(DBCS_Region_liste_combo[ityperegion1][i].snumregion);
					b3 = false;
				else
				end
			end
			info.value = i;
			info.func = DBCS_Region_Minimap_combo_TypeRegion2_OnClick;
			UIDropDownMenu_AddButton(info);
		end
	end
	DBCS_Region_Minimap_combo_TypeRegion2Middle:SetWidth(200);
	if ( DBCS_Region_Minimap_combo_TypeRegion3 ) then
		if ( b3 == true ) then
			DBCS_Region_Minimap_combo_TypeRegion3:Show();
		else
			DBCS_Region_Minimap_combo_TypeRegion3:Hide();
		end
	end

end

function DBCS_Region_Minimap_combo_TypeRegion2_OnClick(self)

--if ( InCombatLockdown() ) then
--	return nil;
--end

--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_Minimap_combo_TypeRegion2_OnClick");
--end
	UIDropDownMenu_SetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion2, self.value);
	DBCS_Region_Minimap_combo_TypeRegion3_OnLoad();
	UIDropDownMenu_SetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion3,-1);
	DBCS_Region_Minimap_combo_Nivcarte_OnLoad();
	--DBCORPS_PNJ_TypeRegion_select = nil;
local ityperegion1 = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion1);
local ityperegion2 = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion2);
local ityperegion3 = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion3);
local inumniv;
	if ( ityperegion1 > -1 ) then
		if ( ityperegion2 > -1 ) then
			if ( ityperegion3 > -1 ) then
				DBCS_Region_Minimap_combo_refresh = 0;
				DBCS_Region_Minimap_init_loc_hide();
				DBCS_Region_Minimap_init(DBCS_Region_liste_combo[ityperegion1][ityperegion2][ityperegion3].snumregion);
				--DBCORPS_PNJ_TypeRegion_select = DBCS_Region_liste_combo[ityperegion1][ityperegion2][ityperegion3].snumregion;
				DBCS_Region_Minimap_combo_refresh = 1;
			else
				if ( DBCS_Region_liste_combo[ityperegion1][ityperegion2].snumregion ) then
					DBCS_Region_Minimap_combo_refresh = 0;
					DBCS_Region_Minimap_init_loc_hide();
					DBCS_Region_Minimap_init(DBCS_Region_liste_combo[ityperegion1][ityperegion2].snumregion);
					--DBCORPS_PNJ_TypeRegion_select = DBCS_Region_liste_combo[ityperegion1][ityperegion2].snumregion;
					DBCS_Region_Minimap_combo_refresh = 1;
					if ( DBCS_Region_liste_combo[ityperegion1][ityperegion2].type ) then
						snumregion = DBCS_Region_liste_combo[ityperegion1][ityperegion2].snumregion;
						_, _, _, inumniv, _ = DBCS_Region_nom_carte(snumregion);
						if ( inumniv ) then
							UIDropDownMenu_SetSelectedValue(DBCS_Region_Minimap_combo_Nivcarte, inumniv);
							UIDropDownMenu_SetText(DBCS_Region_Minimap_combo_Nivcarte,""..inumniv);
						end
					end
				end
			end
		else
		end
	end

end

function DBCS_Region_Minimap_combo_TypeRegion3_OnLoad()

--if ( InCombatLockdown() ) then
--	return nil;
--end

	UIDropDownMenu_Initialize(DBCS_Region_Minimap_combo_TypeRegion3, DBCS_Region_Minimap_combo_TypeRegion3_Initialize);

end

function DBCS_Region_Minimap_combo_TypeRegion3_Initialize()

--if ( InCombatLockdown() ) then
--	return nil;
--end

local info;
local i;

local ityperegion1 = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion1);
local ityperegion2 = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion2);

	info = {};
	info.text = "Toutes";
	info.value = -1;
	info.func = DBCS_Region_Minimap_combo_TypeRegion3_OnClick;
	UIDropDownMenu_AddButton(info);
	if ( DBCS_Region_liste_combo and DBCS_Region_liste_combo[ityperegion1] and DBCS_Region_liste_combo[ityperegion1][ityperegion2] ) then
		--DBCS_Region_Minimap_combo_TypeRegion3:Hide();
		for i = 1 , table.getn(DBCS_Region_liste_combo[ityperegion1][ityperegion2])  do
			info = {};
			--if ( DBCS_Region_liste_combo[ityperegion1][ityperegion2][i].name ) then
			--	info.text = DBCS_Region_liste_combo[ityperegion1][ityperegion2][i].name;
			--else
				if ( DBCS_Region_liste_combo[ityperegion1][ityperegion2][i].type == "Z" ) then
					info.text = DBCS_Region_nom_region(DBCS_Region_liste_combo[ityperegion1][ityperegion2][i].snumregion);
					--DBCS_Region_Minimap_combo_TypeRegion3:Show();
				else
					--DBCS_Region_Minimap_combo_TypeRegion3:Show();
				end
			--end
			info.value = i;
			info.func = DBCS_Region_Minimap_combo_TypeRegion3_OnClick;
			UIDropDownMenu_AddButton(info);
		end
	else
		--DBCS_Region_Minimap_combo_TypeRegion3:Hide();
	end
	DBCS_Region_Minimap_combo_TypeRegion3Middle:SetWidth(200);

end

function DBCS_Region_Minimap_combo_TypeRegion3_OnClick(self)

--if ( InCombatLockdown() ) then
--	return nil;
--end

--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_Minimap_combo_TypeRegion3_OnClick");
--end
	UIDropDownMenu_SetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion3, self.value);
	DBCS_Region_Minimap_combo_Nivcarte_OnLoad();
	--DBCORPS_PNJ_TypeRegion_select = nil;
local ityperegion1 = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion1);
local ityperegion2 = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion2);
local ityperegion3 = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion3);
local snumregion = nil;
local inumniv;

	if ( ityperegion1 > -1 ) then
		if ( ityperegion2 > -1 ) then
			if ( ityperegion3 > -1 ) then
				DBCS_Region_Minimap_combo_refresh = 0;
				DBCS_Region_Minimap_init_loc_hide();
				snumregion = DBCS_Region_liste_combo[ityperegion1][ityperegion2][ityperegion3].snumregion;
				_, _, _, inumniv, _ = DBCS_Region_nom_carte(snumregion);
				if ( inumniv ) then
					UIDropDownMenu_SetSelectedValue(DBCS_Region_Minimap_combo_Nivcarte, inumniv);
					UIDropDownMenu_SetText(DBCS_Region_Minimap_combo_Nivcarte,""..inumniv);
				end
				DBCS_Region_Minimap_init(snumregion);
				--DBCORPS_PNJ_TypeRegion_select = DBCS_Region_liste_combo[ityperegion1][ityperegion2][ityperegion3].snumregion;
				DBCS_Region_Minimap_combo_refresh = 1;
			else
				if ( DBCS_Region_liste_combo[ityperegion1][ityperegion2].snumregion ) then
					DBCS_Region_Minimap_combo_refresh = 0;
					DBCS_Region_Minimap_init_loc_hide();
					snumregion = DBCS_Region_liste_combo[ityperegion1][ityperegion2].snumregion;
					_, _, _, inumniv, _ = DBCS_Region_nom_carte(snumregion);
					if ( inumniv ) then
						UIDropDownMenu_SetSelectedValue(DBCS_Region_Minimap_combo_Nivcarte, inumniv);
						UIDropDownMenu_SetText(DBCS_Region_Minimap_combo_Nivcarte,""..inumniv);
					end
					DBCS_Region_Minimap_init(snumregion);
					--DBCORPS_PNJ_TypeRegion_select = DBCS_Region_liste_combo[ityperegion1][ityperegion2].snumregion;
					DBCS_Region_Minimap_combo_refresh = 1;
				end
			end
		else
		end
	end

end

function DBCS_Region_Minimap_combo_Nivdonjon_OnLoad()

--if ( InCombatLockdown() ) then
--	return nil;
--end

	UIDropDownMenu_Initialize(DBCS_Region_Minimap_combo_Nivdonjon, DBCS_Region_Minimap_combo_Nivdonjon_Initialize);

end

function DBCS_Region_Minimap_combo_Nivdonjon_Initialize()

--if ( InCombatLockdown() ) then
--	return nil;
--end

local info;
local ityperegion1 = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion1);
local ityperegion2 = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion2);
local ityperegion3 = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion3);
local snumregion = nil;
local inbniv = nil;
local i;

	if ( ityperegion1 > -1 ) then
		if ( ityperegion2 > -1 ) then
			if ( ityperegion3 > -1 ) then
				snumregion = DBCS_Region_liste_combo[ityperegion1][ityperegion2][ityperegion3].snumregion;
			else
				snumregion = DBCS_Region_liste_combo[ityperegion1][ityperegion2].snumregion;
			end
		end
	end
	if ( snumregion ) then
		if ( DBCS_Region_Map_Minimap[snumregion] and DBCS_Region_Map_Minimap[snumregion][-1] and DBCS_Region_Map_Minimap[snumregion][-1].niveaux ) then
			inbniv = DBCS_Region_Map_Minimap[snumregion][-1].niveaux;
		end
		if ( inbniv ) then
			for i = 0 , inbniv do
				info = {};
				info.text = ""..i;
				info.value = i;
				info.func = DBCS_Region_Minimap_combo_Nivdonjon_OnClick;
				UIDropDownMenu_AddButton(info);
			end
			DBCS_Region_Minimap_combo_Nivdonjon:Show();
		else
			DBCS_Region_Minimap_combo_Nivdonjon:Hide();
		end
	else
		DBCS_Region_Minimap_combo_Nivdonjon:Hide();
	end
	DBCS_Region_Minimap_combo_NivdonjonMiddle:SetWidth(30);

end

function DBCS_Region_Minimap_combo_Nivdonjon_OnClick(self)

--if ( InCombatLockdown() ) then
--	return nil;
--end

	UIDropDownMenu_SetSelectedValue(DBCS_Region_Minimap_combo_Nivdonjon, self.value);

local ityperegion1 = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion1);
local ityperegion2 = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion2);
local ityperegion3 = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion3);
local inivdonjon = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_Nivdonjon);
local snumregion = nil;

	if ( ityperegion1 > -1 ) then
		if ( ityperegion2 > -1 ) then
			if ( ityperegion3 > -1 ) then
				snumregion = DBCS_Region_liste_combo[ityperegion1][ityperegion2][ityperegion3].snumregion;
			else
				snumregion = DBCS_Region_liste_combo[ityperegion1][ityperegion2].snumregion;
			end
		end
	end
	if ( snumregion ) then
		DBCS_Region_Map_Minimap_afficher(snumregion,nil,nil,inivdonjon);
	end

end

function DBCS_Region_Minimap_combo_Nivcarte_OnLoad()

--if ( InCombatLockdown() ) then
--	return nil;
--end

	UIDropDownMenu_Initialize(DBCS_Region_Minimap_combo_Nivcarte, DBCS_Region_Minimap_combo_Nivcarte_Initialize);

end

function DBCS_Region_Minimap_combo_Nivcarte_Initialize()

--if ( InCombatLockdown() ) then
--	return nil;
--end

local info;
local ityperegion1 = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion1);
local ityperegion2 = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion2);
local ityperegion3 = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion3);
local snumregion = nil;
local inbnivmin;
local inbnivmax;
local i;

	if ( ityperegion1 > -1 ) then
		if ( ityperegion2 > -1 ) then
			if ( ityperegion3 > -1 ) then
				snumregion = DBCS_Region_liste_combo[ityperegion1][ityperegion2][ityperegion3].snumregion;
			else
				snumregion = DBCS_Region_liste_combo[ityperegion1][ityperegion2].snumregion;
			end
		end
	end
	if ( snumregion ) then
		_, inbnivmin, inbnivmax, _, _ = DBCS_Region_nom_carte(snumregion);
		if ( inbnivmin and inbnivmax ) then
			for i = inbnivmin , inbnivmax do
				info = {};
				--local floorname =_G["DUNGEON_FLOOR_" .. mapname .. floorNum];
				info.text = ""..i;
				info.value = i;
				info.func = DBCS_Region_Minimap_combo_Nivcarte_OnClick;
				UIDropDownMenu_AddButton(info);
			end
			DBCS_Region_Minimap_combo_Nivcarte:Show();
		else
			DBCS_Region_Minimap_combo_Nivcarte:Hide();
		end
	else
		DBCS_Region_Minimap_combo_Nivcarte:Hide();
	end
	DBCS_Region_Minimap_combo_NivcarteMiddle:SetWidth(30);

end

function DBCS_Region_Minimap_combo_Nivcarte_OnClick(self)

--if ( InCombatLockdown() ) then
--	return nil;
--end

--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_Minimap_combo_Nivcarte_OnClick");
--end
	UIDropDownMenu_SetSelectedValue(DBCS_Region_Minimap_combo_Nivcarte, self.value);

local ityperegion1 = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion1);
local ityperegion2 = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion2);
local ityperegion3 = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion3);
local inivcarte = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_Nivcarte);
local snumregion = nil;

	if ( ityperegion1 > -1 ) then
		if ( ityperegion2 > -1 ) then
			if ( ityperegion3 > -1 ) then
				snumregion = DBCS_Region_liste_combo[ityperegion1][ityperegion2][ityperegion3].snumregion;
			else
				snumregion = DBCS_Region_liste_combo[ityperegion1][ityperegion2].snumregion;
			end
		end
	end
	if ( snumregion ) then
		DBCS_Region_Minimap_combo_refresh = 0;
		DBCS_Region_Minimap_init_loc_hide();
		DBCS_Region_Minimap_init(snumregion,inivcarte);
		DBCS_Region_Minimap_combo_refresh = 1;
	end

end

function DBCS_Region_Minimap_regionloc_click()

--if ( InCombatLockdown() ) then
--	return nil;
--end

--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_Minimap_regionloc_click");
--end
local ityperegion1 = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion1);
local ityperegion2 = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion2);
local ityperegion3 = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion3);
--local inivcarte = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_Nivcarte);
local snumregion = nil;

	--DBCS_Region_Minimap_combo_Nivcarte:Hide();
	UIDropDownMenu_SetSelectedValue(DBCS_Region_Minimap_combo_Nivcarte,-1);
	UIDropDownMenu_SetText(DBCS_Region_Minimap_combo_Nivcarte,nil);
	if ( ityperegion1 > -1 ) then
		if ( ityperegion2 > -1 ) then
			if ( ityperegion3 > -1 ) then
				snumregion = DBCS_Region_liste_combo[ityperegion1][ityperegion2][ityperegion3].snumregion;
			else
				snumregion = DBCS_Region_liste_combo[ityperegion1][ityperegion2].snumregion;
			end
		end
	end
	if ( snumregion ) then
		DBCS_Region_Minimap_combo_refresh = 0;
		DBCS_Region_Minimap_init_loc_hide();
		DBCS_Region_Minimap_init(snumregion,0,1);
		DBCS_Region_Minimap_combo_refresh = 1;
	end

end

function DBCS_Region_Minimap_eventinstance_OnEnter(self)

--if ( InCombatLockdown() ) then
--	return nil;
--end

local ityperegion1 = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion1);
local ityperegion2 = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion2);
local ityperegion3 = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion3);
--local inivcarte = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_Nivcarte);
local snumregion = nil;
local sGUID;

	--DBCS_Region_Minimap_combo_Nivcarte:Hide();
	--UIDropDownMenu_SetSelectedValue(DBCS_Region_Minimap_combo_Nivcarte,-1);
	--UIDropDownMenu_SetText(DBCS_Region_Minimap_combo_Nivcarte,nil);
	if ( ityperegion1 > -1 ) then
		if ( ityperegion2 > -1 ) then
			if ( ityperegion3 > -1 ) then
				snumregion = DBCS_Region_liste_combo[ityperegion1][ityperegion2][ityperegion3].snumregion;
			else
				snumregion = DBCS_Region_liste_combo[ityperegion1][ityperegion2].snumregion;
			end
		end
	end
	if ( snumregion ) then
		if ( DBCS_Region_instancelock[snumregion] ) then
			GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
			--GameTooltip:SetHyperlink("instancelock:0:"..DBCS_Region_instancelock[snumregion]..":0:0");
			--à utiliser quand je saurais remplacer les 2 derniers 0 par les vrais infos
			sGUID = strsub(UnitGUID("player"),3);
			GameTooltip:SetHyperlink("instancelock:"..sGUID..":"..DBCS_Region_instancelock[snumregion]..":0:0");
			GameTooltip:Show();
		end
		--instancelock:0180000000328C9D:631:0:63
		--GameTooltip:AddLine("Liste des rencontres");
	end


end

function DBCS_Region_Minimap_combo_Echelle_OnLoad()

--if ( InCombatLockdown() ) then
--	return nil;
--end

	UIDropDownMenu_Initialize(DBCS_Region_Minimap_combo_Echelle, DBCS_Region_Minimap_combo_Echelle_Initialize);

end

function DBCS_Region_Minimap_combo_Echelle_Initialize()

--if ( InCombatLockdown() ) then
--	return nil;
--end

local info;
local i;

	for i = 1 , 10 do
		info = {};
		info.text = ""..i;
		info.value = i;
		info.func = DBCS_Region_Minimap_combo_Echelle_OnClick;
		UIDropDownMenu_AddButton(info);
	end
	DBCS_Region_Minimap_combo_EchelleMiddle:SetWidth(30);

end

function DBCS_Region_Minimap_combo_Echelle_OnClick(self)

--if ( InCombatLockdown() ) then
--	return nil;
--end

--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_Minimap_combo_Echelle_OnClick");
--end
	UIDropDownMenu_SetSelectedValue(DBCS_Region_Minimap_combo_Echelle, self.value);
	--UIDropDownMenu_SetSelectedValue(WorldMapZoneMinimapDropDown, self.value);
	--UIDropDownMenu_SetSelectedID(WorldMapContinentDropDown, self:GetID());
	
local iechelle = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_Echelle);

	DBCS_Region_Minimap_echelle = iechelle;
	DBCS_Region_config["ECHELLE"] = iechelle;
	DBCS_Region_init_echelle();

--local ityperegion1 = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion1);
--local ityperegion2 = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion2);
--local ityperegion3 = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion3);
--local inivcarte = UIDropDownMenu_GetSelectedValue(DBCS_Region_Minimap_combo_Nivcarte);
--local snumregion = nil;

--	if ( ityperegion1 > -1 ) then
--		if ( ityperegion2 > -1 ) then
--			if ( ityperegion3 > -1 ) then
--				snumregion = DBCS_Region_liste_combo[ityperegion1][ityperegion2][ityperegion3].snumregion;
--			else
--				snumregion = DBCS_Region_liste_combo[ityperegion1][ityperegion2].snumregion;
--			end
--		end
--	end
--	if ( snumregion ) then
--		DBCS_Region_Minimap_combo_refresh = 0;

local tableau;

		tableau = DBCS_Region_Minimap_init_loc_num_tableau;
		DBCS_Region_Minimap_init_loc_hide();
--		DBCS_Region_Minimap_init(snumregion,inivcarte);
		DBCS_Region_Minimap_init_overlay(DBCS_Region_Minimap_numregion);
		DBCS_Region_Minimap_init_loc_num_tableau = tableau;
		DBCS_Region_Minimap_init_loc_num = table.getn(DBCS_Region_Minimap_init_loc_num_tableau);
		DBCS_Region_Minimap_init_loc_refresh();
--		DBCS_Region_Minimap_combo_refresh = 1;
--	end

end

function DBCS_Region_Minimap_refresh_combo(snumregion,inivcarte)

--if ( InCombatLockdown() ) then
--	return nil;
--end

local i;
local j;
local k;
local btrouve;

	btrouve = false;
	for i = 1 , table.getn(DBCS_Region_liste_combo) do
		if ( btrouve == false ) then
			if ( DBCS_Region_liste_combo[i].snumregion and DBCS_Region_liste_combo[i].snumregion == snumregion ) then
				UIDropDownMenu_SetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion1,i);
				UIDropDownMenu_SetText(DBCS_Region_Minimap_combo_TypeRegion1,DBCS_Region_liste_combo[i].name);
				DBCS_Region_Minimap_combo_TypeRegion2_OnLoad();
				UIDropDownMenu_SetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion2,-1);
				DBCS_Region_Minimap_combo_TypeRegion3_OnLoad();
				UIDropDownMenu_SetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion3,-1);
				DBCS_Region_Minimap_combo_Nivcarte_OnLoad();
				if ( inivcarte ) then
					UIDropDownMenu_SetSelectedValue(DBCS_Region_Minimap_combo_Nivcarte, inivcarte);
					UIDropDownMenu_SetText(DBCS_Region_Minimap_combo_Nivcarte,""..inivcarte);
				end
				btrouve = true;
			end
			for j = 1 , table.getn(DBCS_Region_liste_combo[i]) do
				if ( btrouve == false ) then
					if ( DBCS_Region_liste_combo[i][j].snumregion and DBCS_Region_liste_combo[i][j].snumregion == snumregion ) then
						UIDropDownMenu_SetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion1,i);
						UIDropDownMenu_SetText(DBCS_Region_Minimap_combo_TypeRegion1,DBCS_Region_liste_combo[i].name);
						DBCS_Region_Minimap_combo_TypeRegion2_OnLoad();
						UIDropDownMenu_SetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion2,j);
						DBCS_Region_Minimap_combo_TypeRegion3_OnLoad();
						UIDropDownMenu_SetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion3,-1);
						DBCS_Region_Minimap_combo_Nivcarte_OnLoad();
						if ( inivcarte ) then
							UIDropDownMenu_SetSelectedValue(DBCS_Region_Minimap_combo_Nivcarte, inivcarte);
							UIDropDownMenu_SetText(DBCS_Region_Minimap_combo_Nivcarte,""..inivcarte);
						end
						btrouve = true;
					end
					for k = 1 , table.getn(DBCS_Region_liste_combo[i][j]) do
						if ( btrouve == false ) then
							if ( DBCS_Region_liste_combo[i][j][k].snumregion and DBCS_Region_liste_combo[i][j][k].snumregion == snumregion ) then
								UIDropDownMenu_SetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion1,i);
								UIDropDownMenu_SetText(DBCS_Region_Minimap_combo_TypeRegion1,DBCS_Region_liste_combo[i].name);
								DBCS_Region_Minimap_combo_TypeRegion2_OnLoad();
								UIDropDownMenu_SetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion2,j);
								DBCS_Region_Minimap_combo_TypeRegion3_OnLoad();
								UIDropDownMenu_SetSelectedValue(DBCS_Region_Minimap_combo_TypeRegion3,k);
								DBCS_Region_Minimap_combo_Nivcarte_OnLoad();
								if ( inivcarte ) then
									UIDropDownMenu_SetSelectedValue(DBCS_Region_Minimap_combo_Nivcarte, inivcarte);
									UIDropDownMenu_SetText(DBCS_Region_Minimap_combo_Nivcarte,""..inivcarte);
								end
								btrouve = true;
							end
						end
					end
				end
			end
		end
	end

end

--interface/chatframe/ui-chaticon-scrolldown-up.blp
--interface/chatframe/ui-chaticon-scrollup-up.blp

function DBCS_Region_Minimap_up_click()

--if ( InCombatLockdown() ) then
--	return nil;
--end

	DBCS_Region_Minimap_up:Hide();
	DBCS_Region_Minimap_down:Show();
	DBCS_Region_Minimap_combo:Show();

end

function DBCS_Region_Minimap_down_click()

--if ( InCombatLockdown() ) then
--	return nil;
--end

	DBCS_Region_Minimap_up:Show();
	DBCS_Region_Minimap_down:Hide();
	DBCS_Region_Minimap_combo:Hide();

end

--Interface/Minimap/TRACKING/
--MINIMAP_TRACKING_AUCTIONEER = "Commissaire-priseur";							auctioneer
--MINIMAP_TRACKING_BANKER = "Banquier";											banker
--MINIMAP_TRACKING_BATTLEMASTER = "Maître de guerre";							battlemaster
--MINIMAP_TRACKING_FLIGHTMASTER = "Maître de vol";								flightmaster
--MINIMAP_TRACKING_INNKEEPER = "Aubergiste";									innkeeper
--MINIMAP_TRACKING_MAILBOX = "Boîte aux lettres";								mailbox
--MINIMAP_TRACKING_REPAIR = "Réparations";										repair
--MINIMAP_TRACKING_STABLEMASTER = "Maître des écuries";							stablemaster
--MINIMAP_TRACKING_TOOLTIP_NONE = "Cliquer pour choisir le type de suivi";
--MINIMAP_TRACKING_TRAINER_CLASS = "Maître de classe";							class
--MINIMAP_TRACKING_TRAINER_PROFESSION = "Maîtres des professions";				profession
--MINIMAP_TRACKING_TRIVIAL_QUESTS = "Quêtes de bas niveau";						trivialquests
--MINIMAP_TRACKING_VENDOR_AMMO = "Munitions";									ammunition
--MINIMAP_TRACKING_VENDOR_FOOD = "Nourriture & boissons";						food
--MINIMAP_TRACKING_VENDOR_POISON = "Poisons";									poisons
--MINIMAP_TRACKING_VENDOR_REAGENT = "Composants";								reagents
--objecticons
--poiarrows

--   à : \195\160    è : \195\168    ì : \195\172    ò : \195\178    ù : \195\185
--   á : \195\161    é : \195\169    í : \195\173    ó : \195\179    ú : \195\186
--   â : \195\162    ê : \195\170    î : \195\174    ô : \195\180    û : \195\187
--   ã : \195\163    ë : \195\171    ï : \195\175    õ : \195\181    ü : \195\188
local DBCS_Region_Minimap_Tracking_tableau = {};
DBCS_Region_Minimap_Tracking_tableau[1] = { id = 1, name = "R\195\169parations", icon = "Interface/Minimap/TRACKING/Repair" };
DBCS_Region_Minimap_Tracking_tableau[2] = { id = 2, name = "Ma\195\174tre de vol", icon = "Interface/Minimap/TRACKING/FlightMaster" };
DBCS_Region_Minimap_Tracking_tableau[3] = { id = 3, name = "Qu\195\170tes manquantes", icon = "Interface/Minimap/TRACKING/TrivialQuests" };
DBCS_Region_Minimap_Tracking_tableau[4] = { id = 4, name = "Ma\195\174tre d'\195\169curie", icon = "Interface/Minimap/TRACKING/StableMaster" };
--DBCS_Region_Minimap_Tracking_tableau[5] = { id = 5, name = "Ma\195\174tre de profession", icon = "Interface/Minimap/TRACKING/Profession" };
DBCS_Region_Minimap_Tracking_tableau[5] = { id = 9, name = "Ma\195\174tre de classe", icon = "Interface/Minimap/TRACKING/class" };
--DBCS_Region_Minimap_Tracking_tableau[7] = { id = 6, name = "Bo\195\174te aux lettres", icon = "Interface/Minimap/TRACKING/Mailbox" };
DBCS_Region_Minimap_Tracking_tableau[6] = { id = 7, name = "Aubergiste", icon = "Interface/Minimap/TRACKING/Innkeeper" };
--DBCS_Region_Minimap_Tracking_tableau[9] = { id = 8, name = "Munitions", icon = "Interface/Minimap/TRACKING/Ammunition" };
DBCS_Region_Minimap_Tracking_tableau[7] = { id = 0, name = NONE, icon = "Interface/Minimap/TRACKING/None" };

function DBCS_Region_Minimap_Tracking_DropDown_OnLoad(self)

--if ( InCombatLockdown() ) then
--	return nil;
--end

	UIDropDownMenu_Initialize(self, DBCS_Region_Minimap_Tracking_DropDown_Initialize, "MENU");

end

function DBCS_Region_Minimap_Tracking_afficher_icone()

--if ( InCombatLockdown() ) then
--	return nil;
--end

local i;

	for i = 1 , table.getn(DBCS_Region_Minimap_Tracking_tableau) do
		if ( DBCS_Region_Minimap_Tracking_tableau[i].id == DBCS_Region_Minimap_radar ) then
			DBCS_Region_Minimap_Tracking_Icon:SetTexture(DBCS_Region_Minimap_Tracking_tableau[i].icon);
		end
	end

end

function DBCS_Region_Minimap_Tracking_SetTracking_afficher()

--if ( InCombatLockdown() ) then
--	return nil;
--end

--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_Minimap_Tracking_SetTracking_afficher");
--end
--local inum;
local inumpnj;
local tablopnj = {};
local bbon;
local x;
local y;
local ipos;
local ideb;
local ifin;
local smot;
local ideb2;
local inumquete;
--local snomregion;
local tabloqueteencours;
local nbquete;
local i;
local isHeader;
local snumitemcourt;
local ifaction;
local bbon2;
local snumregion;
local inivcarte;
local sclasse;

	DBCS_Region_Minimap_init_loc_hide();
--TraceFrame:AddMessage("DBCS_Region_Minimap_Tracking_SetTracking : "..DBCS_Region_Minimap_radar);
	if ( DBCS_Region_Minimap_radar == 3 ) then
--		snomregion = strlower(DBCS_Region_nom_region(DBCS_Region_Minimap_numregion));
--TraceFrame:AddMessage("DBCS_Region_Minimap_Tracking_SetTracking : "..snomregion);
		tabloqueteencours = {};
		nbquete, _ = GetNumQuestLogEntries();	--	nbquetes
--TraceFrame:AddMessage("DBCS_Region_Minimap_Tracking_SetTracking : "..nbquete);
		for i = 1 , nbquete do
			_, _, _, _, isHeader, _, _, _ = GetQuestLogTitle(i);
			if ( isHeader ) then
			else
				if ( DBquetes2 ) then
					_, snumitemcourt, _, _, _ = DBQS2_GetMotItem(GetQuestLink(i));
					ipos = strfind(snumitemcourt,":");
					if ( ipos ) then
						inumquete = tonumber(strsub(snumitemcourt,1,ipos-1));
--TraceFrame:AddMessage("DBCS_Region_Minimap_Tracking_SetTracking : "..inumquete);
						tabloqueteencours[inumquete] = 0;
					end
				end
			end
		end
		if ( UnitFactionGroup("player") == "Alliance" ) then
			ifaction = 18;
		else
			ifaction = 19;
		end
--TraceFrame:AddMessage("DBCS_Region_Minimap_Tracking_SetTracking : "..ifaction);
		if ( DBquetes2 ) then
			for inumquete, _ in pairs(DBquetes2) do
				if ( DBquetes2[inumquete][24] == nil and DBquetes2[inumquete][46] and DBquetes2[inumquete][46][1] and DBquetes2[inumquete][ifaction] ) then
					inumpnj = DBquetes2[inumquete][46][1];
					if ( DBHC_perso and DBHC_perso[inumquete] == nil and tabloqueteencours[inumquete] == nil ) then
						if ( DBCS_mobs_locs and DBCS_mobs_locs[inumpnj] and DBCS_mobs_locs[inumpnj][DBCS_Region_Minimap_numregion] and DBCS_mobs_locs[inumpnj][DBCS_Region_Minimap_numregion][DBCS_Region_Minimap_nivcarte] and DBCS_mobs_locs[inumpnj][DBCS_Region_Minimap_numregion][DBCS_Region_Minimap_nivcarte][0] ) then
							tablopnj[inumpnj] = {};
						end
					end
				--if ( ( DBquetes2[inumquete][20] and strlower(DBquetes2[inumquete][20]) == snomregion ) or ( DBquetes2[inumquete][26] and strlower(DBquetes2[inumquete][26]) == snomregion ) ) then
				--end
				end
			end
		end
	else
		if ( DBCS_mobs_detail ) then
			for inumpnj, _ in pairs(DBCS_mobs_detail) do
				if ( DBCS_Region_Minimap_radar == 1 ) then
					if ( DBCS_mobs_detail[inumpnj][16] ) then
						tablopnj[inumpnj] = {};
					end
				elseif ( DBCS_Region_Minimap_radar == 2 ) then
					if ( DBCS_mobs_detail[inumpnj][19] or DBCS_mobs_detail[inumpnj][32] or DBCS_mobs_detail[inumpnj][33] ) then
						tablopnj[inumpnj] = {};
					end
				elseif ( DBCS_Region_Minimap_radar == 4 ) then
					if ( DBCS_mobs_detail[inumpnj][27] ) then
						tablopnj[inumpnj] = {};
					end
				elseif ( DBCS_Region_Minimap_radar == 7 ) then
					if ( DBCS_mobs_detail[inumpnj][25] ) then
						tablopnj[inumpnj] = {};
					end
				elseif ( DBCS_Region_Minimap_radar == 9 ) then
					if ( DBCS_mobs_detail[inumpnj][26] ) then
						_, sclasse = UnitClass("player");
						if ( sclasse == "SHAMAN" ) then
							if ( DBCS_mobs_detail[inumpnj][26][1] ) then
								tablopnj[inumpnj] = {};
							end
						elseif ( sclasse == "DEATHKNIGHT" ) then
							if ( DBCS_mobs_detail[inumpnj][26][10] ) then
								tablopnj[inumpnj] = {};
							end
						elseif ( sclasse == "DRUID" ) then
							if ( DBCS_mobs_detail[inumpnj][26][4] ) then
								tablopnj[inumpnj] = {};
							end
						elseif ( sclasse == "HUNTER" ) then
							if ( DBCS_mobs_detail[inumpnj][26][2] ) then
								tablopnj[inumpnj] = {};
							end
						elseif ( sclasse == "MAGE" ) then
							if ( DBCS_mobs_detail[inumpnj][26][6] ) then
								tablopnj[inumpnj] = {};
							end
						elseif ( sclasse == "PALADIN" ) then
							if ( DBCS_mobs_detail[inumpnj][26][7] ) then
								tablopnj[inumpnj] = {};
							end
						elseif ( sclasse == "PRIEST" ) then
							if ( DBCS_mobs_detail[inumpnj][26][8] ) then
								tablopnj[inumpnj] = {};
							end
						elseif ( sclasse == "ROGUE" ) then
							if ( DBCS_mobs_detail[inumpnj][26][9] ) then
								tablopnj[inumpnj] = {};
							end
						elseif ( sclasse == "WARLOCK" ) then
							if ( DBCS_mobs_detail[inumpnj][26][3] ) then
								tablopnj[inumpnj] = {};
							end
						elseif ( sclasse == "WARRIOR" ) then
							if ( DBCS_mobs_detail[inumpnj][26][5] ) then
								tablopnj[inumpnj] = {};
							end
						elseif ( sclasse == "MONK" ) then
							if ( DBCS_mobs_detail[inumpnj][26][11] ) then
								tablopnj[inumpnj] = {};
							end
						end
					end
				end
			end
		end
	end
	for inumpnj, _ in pairs(tablopnj) do
		if ( DBmobs_Local and DBmobs_Local[inumpnj] and DBmobs_Local[inumpnj][1] and DBmobs_Local[inumpnj][1][1] ) then
			tablopnj[inumpnj].name = DBmobs_Local[inumpnj][1][1];
		end
		bbon = false;
		x = nil;
		y = nil;
		if ( DBCS_mobs_locs[inumpnj] ) then
			--DBCS_Region_Minimap_numregion
			if ( DBCS_mobs_locs[inumpnj][DBCS_Region_Minimap_numregion] ) then
				--DBCS_Region_Minimap_nivcarte
				if ( DBCS_mobs_locs[inumpnj][DBCS_Region_Minimap_numregion][DBCS_Region_Minimap_nivcarte] ) then
					if ( DBCS_mobs_locs[inumpnj][DBCS_Region_Minimap_numregion][DBCS_Region_Minimap_nivcarte][0] ) then
						if ( DBCS_mobs_locs[inumpnj][DBCS_Region_Minimap_numregion][DBCS_Region_Minimap_nivcarte][0] == "@" ) then
						else
							ideb = 2;
							ipos = strfind(DBCS_mobs_locs[inumpnj][DBCS_Region_Minimap_numregion][DBCS_Region_Minimap_nivcarte][0],"@",ideb);
							if ( ipos ) then
								ifin = ipos;
								smot = strsub(DBCS_mobs_locs[inumpnj][DBCS_Region_Minimap_numregion][DBCS_Region_Minimap_nivcarte][0],ideb,ipos-1);
								ipos = strfind(smot,"#",1);
								if ( ipos ) then
									x = tonumber(strsub(smot,1,ipos-1));
									ideb2 = ipos + 1;
									ipos = strfind(smot,"#",ideb2);
									if ( ipos ) then
										y = tonumber(strsub(smot,ideb2,ipos-1));
										if ( x == 0 and y == 0 ) then
										else
											bbon = true;
											tablopnj[inumpnj].x = x;
											tablopnj[inumpnj].y = y;
										end
									end
								end
							end
						end
					end
					if ( bbon == false ) then
						bbon2 = true;
						for snumregion, _ in pairs(DBCS_mobs_locs[inumpnj]) do
							for inivcarte, _ in pairs(DBCS_mobs_locs[inumpnj][snumregion]) do
								if ( DBCS_mobs_locs[inumpnj][snumregion][inivcarte][0] ) then
									bbon2 = false;
								end
							end
						end
						if ( bbon2 == true ) then
							if ( DBCS_mobs_locs[inumpnj][DBCS_Region_Minimap_numregion][DBCS_Region_Minimap_nivcarte][1] ) then
								if ( DBCS_mobs_locs[inumpnj][DBCS_Region_Minimap_numregion][DBCS_Region_Minimap_nivcarte][1] == "@" ) then
								else
									ideb = 2;
									ipos = strfind(DBCS_mobs_locs[inumpnj][DBCS_Region_Minimap_numregion][DBCS_Region_Minimap_nivcarte][1],"@",ideb);
									if ( ipos ) then
										ifin = ipos;
										smot = strsub(DBCS_mobs_locs[inumpnj][DBCS_Region_Minimap_numregion][DBCS_Region_Minimap_nivcarte][1],ideb,ipos-1);
										ipos = strfind(smot,"#",1);
										if ( ipos ) then
											x = tonumber(strsub(smot,1,ipos-1));
											ideb2 = ipos + 1;
											ipos = strfind(smot,"#",ideb2);
											if ( ipos ) then
												y = tonumber(strsub(smot,ideb2,ipos-1));
												if ( x == 0 and y == 0 ) then
												else
													bbon = true;
													tablopnj[inumpnj].x = x;
													tablopnj[inumpnj].y = y;
												end
											end
										end
									end
								end
							end
						end
					end
				end
			end
		end
		if ( bbon == false ) then
			tablopnj[inumpnj] = nil;
		end
	end
	for inumpnj, _ in pairs(tablopnj) do
		DBCS_Region_Minimap_init_loc_pos(tablopnj[inumpnj].name or inumpnj,"@"..tablopnj[inumpnj].x.."#"..tablopnj[inumpnj].y.."@","@","#");
	end

end

function DBCS_Region_Minimap_Tracking_SetTracking(self, id)

--if ( InCombatLockdown() ) then
--	return nil;
--end

--TraceFrame:AddMessage("DBCS_Region_Minimap_Tracking_SetTracking : "..id);
	--DBCS_Region_Minimap_Tracking_Icon:SetTexture(DBCS_Region_Minimap_Tracking_tableau[id].icon);
	--SetTracking(id);

	DBCS_Region_Minimap_radar = DBCS_Region_Minimap_Tracking_tableau[id].id;
	DBCS_Region_config_joueur_t["RADAR"] = DBCS_Region_Minimap_radar;
	DBCS_Region_Minimap_Tracking_afficher_icone();
	DBCS_Region_Minimap_Tracking_SetTracking_afficher();

end

function DBCS_Region_Minimap_Tracking_DropDown_Initialize()

--if ( InCombatLockdown() ) then
--	return nil;
--end

local id;
	--local name, texture, active, category;
	--local anyActive, checked;
	--local count = GetNumTrackingTypes();
local info;


	for id = 1 , table.getn(DBCS_Region_Minimap_Tracking_tableau) do

--		name, texture, active, category  = GetTrackingInfo(id);

		info = UIDropDownMenu_CreateInfo();
		info.text = DBCS_Region_Minimap_Tracking_tableau[id].name;
		if ( DBCS_Region_Minimap_Tracking_tableau[id].id == DBCS_Region_Minimap_radar ) then
			info.checked = 1;
		else
			info.checked = nil;
		end
		info.func = DBCS_Region_Minimap_Tracking_SetTracking;
		info.icon = DBCS_Region_Minimap_Tracking_tableau[id].icon;
		info.arg1 = id;
		--if ( category == "spell" ) then
			info.tCoordLeft = 0.0625;
			info.tCoordRight = 0.9;
			info.tCoordTop = 0.0625;
			info.tCoordBottom = 0.9;
		--else
		--	info.tCoordLeft = 0;
		--	info.tCoordRight = 1;
		--	info.tCoordTop = 0;
		--	info.tCoordBottom = 1;
		--end
		UIDropDownMenu_AddButton(info);
		--if ( active ) then
		--	anyActive = active;
		--end
	end
	
	--if ( anyActive ) then
	--	checked = nil;
	--else
	--	checked = 1;
	--end

	--info = UIDropDownMenu_CreateInfo();
	--info.text = NONE;
	--info.checked = checked;
	--info.func = DBCS_Region_Minimap_Tracking_SetTracking;
	--info.arg1 = nil;
	--UIDropDownMenu_AddButton(info);

end

--function DBCS_Region_Minimap_Tracking_Update()
--	--local texture = GetTrackingTexture();
--	--if ( DBCS_Region_Minimap_Tracking_Icon:GetTexture() ~= texture ) then
--	--	DBCS_Region_Minimap_Tracking_Icon:SetTexture(texture);
--	--	DBCS_Region_Minimap_Tracking_Shine_FadeIn();
--	--end
--end

function DBCS_Region_Minimap_Tracking_Shine_FadeIn()

--if ( InCombatLockdown() ) then
--	return nil;
--end

	-- Fade in the shine and then fade it out with the ComboPointShineFadeOut function
	local fadeInfo = {};

	fadeInfo.mode = "IN";
	fadeInfo.timeToFade = 0.5;
	fadeInfo.finishedFunc = DBCS_Region_Minimap_Tracking_Shine_FadeOut;
	UIFrameFade(DBCS_Region_Minimap_Tracking_Button_Shine, fadeInfo);

end

function DBCS_Region_Minimap_Tracking_Shine_FadeOut()

--if ( InCombatLockdown() ) then
--	return nil;
--end

	UIFrameFadeOut(DBCS_Region_Minimap_Tracking_Button_Shine, 0.5);

end

function DBCS_Region_Minimap_Tracking_Button_OnEnter(self)

--if ( InCombatLockdown() ) then
--	return nil;
--end

local i;

	GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
	for i = 1 , table.getn(DBCS_Region_Minimap_Tracking_tableau) do
		if ( DBCS_Region_Minimap_Tracking_tableau[i].id == DBCS_Region_Minimap_radar ) then
			--DBCS_Region_Minimap_Tracking_Icon:SetTexture(DBCS_Region_Minimap_Tracking_tableau[id].icon);
			GameTooltip:AddLine(DBCS_Region_Minimap_Tracking_tableau[i].name);
			GameTooltip:Show();
		end
	end
	--GameTooltip:SetTracking();

end

function DBCS_Region_WorldMapUnit_OnLoad(self)

--if ( InCombatLockdown() ) then
--	return nil;
--end

	self:SetFrameLevel(self:GetFrameLevel() + 1);

end

--[[
function DBCS_Region_WorldMapUnit_OnEnter(self, motion)

	-- Adjust the tooltip based on which side the unit button is on
	local x, y = self:GetCenter();
	local parentX, parentY = self:GetParent():GetCenter();
	if ( x > parentX ) then
		WorldMapTooltip:SetOwner(self, "ANCHOR_LEFT");
	else
		WorldMapTooltip:SetOwner(self, "ANCHOR_RIGHT");
	end

	WorldMapTooltip:SetText(self.unit);
	WorldMapTooltip:Show();

end

function DBCS_Region_WorldMapUnit_OnLeave(self, motion)

	WorldMapPOIFrame.allowBlobTooltip = true;
	WorldMapTooltip:Hide();

end
--]]

							--<Layer level="OVERLAY">
							--	<Texture name="$parent_Shine" file="Interface\ComboFrame\ComboPoint" alphaMode="ADD" hidden="true">
							--		<Size x="27" y="27"/>
							--		<Anchors>
							--			<Anchor point="TOPLEFT">
							--				<Offset x="2" y="-2"/>
							--			</Anchor>
							--		</Anchors>
							--		<TexCoords left="0.5625" right="1" top="0" bottom="1"/>
							--	</Texture>
							--</Layer>

							--<OnLoad>
							--	self:RegisterEvent("MINIMAP_UPDATE_TRACKING");
							--	DBCS_Region_Minimap_Tracking_Update();
							--</OnLoad>
							--<OnEvent function="DBCS_Region_Minimap_Tracking_Update"/>

							--<OnMouseDown>
							--	DBCS_Region_Minimap_Tracking_Icon:SetPoint("TOPLEFT", DBCS_Region_Minimap_Tracking, "TOPLEFT", 8, -8);
							--	DBCS_Region_Minimap_Tracking_Icon_Overlay:Show();
							--</OnMouseDown>
							--<OnMouseUp>
							--	DBCS_Region_Minimap_Tracking_Icon:SetPoint("TOPLEFT", DBCS_Region_Minimap_Tracking, "TOPLEFT", 6, -6);
							--	DBCS_Region_Minimap_Tracking_Icon_Overlay:Hide();
							--</OnMouseUp>

					--<Layer level="OVERLAY">
					--	<Texture name="$parent_Icon_Overlay" hidden="true">
					--		<Anchors>
					--			<Anchor point="TOPLEFT" relativeTo="$parent_Icon"/>
					--			<Anchor point="BOTTOMRIGHT" relativeTo="$parent_Icon"/>
					--		</Anchors>
					--		<Color r="0.0" g="0.0" b="0.0" a="0.5"/>
					--	</Texture>
					--</Layer>

--GatherZoneTokens.lua
DBCS_Region_Gatherer_MapIdToTokenMap = {
	-- Kalimdor
	{
		[772] = "AHNQIRAJ_THE_FALLEN_KINGDOM",
		[894] = "AMMEN_VALE",
		[43]  = "ASHENVALE",
		[181] = "AZSHARA",
		[464] = "AZUREMYST_ISLE",
		[476] = "BLOODMYST_ISLE",
		[890] = "CAMP_NARACHE",
		[42]  = "DARKSHORE",
		[381] = "DARNASSUS",
		[101] = "DESOLACE",
		[4]   = "DUROTAR",
		[141] = "DUSTWALLOW_MARSH",
		[891] = "ECHO_ISLES",
		[471] = "EXODAR",
		[182] = "FELWOOD",
		[121] = "FERALAS",
		[241] = "MOONGLADE",
		[606] = "MOUNT_HYJAL",
		[9]   = "MULGORE",
		[11]  = "NORTHERN_BARRENS",
		[321] = "ORGRIMMAR",
		[888] = "SHADOWGLEN",
		[261] = "SILITHUS",
		[607] = "SOUTHERN_BARRENS",
		[81]  = "STONETALON_MOUNTAINS",
		[161] = "TANARIS",
		[41]  = "TELDRASSIL",
		[61]  = "THOUSAND_NEEDLES",
		[362] = "THUNDER_BLUFF",
		[720] = "ULDUM",
		[201] = "UNGORO_CRATER",
		[889] = "VALLEY_OF_TRIALS",
		[281] = "WINTERSPRING",
	},
	-- Eastern Kingdoms
	{
		[614] = "ABYSSAL_DEPTHS",
		[16]  = "ARATHI_HIGHLANDS",
		[17]  = "BADLANDS",
		[19]  = "BLASTED_LANDS",
		[29]  = "BURNING_STEPPES",
		[673] = "CAPE_OF_STRANGLETHORN",
		[866] = "COLDRIDGE_VALLEY",
		[32]  = "DEADWIND_PASS",
		[892] = "DEATHKNELL",
		[27]  = "DUN_MOROGH",
		[34]  = "DUSKWOOD",
		[23]  = "EASTERN_PLAGUELANDS",
		[30]  = "ELWYNN_FOREST",
		[462] = "EVERSONG_WOODS",
		[463] = "GHOSTLANDS",
		[24]  = "HILLSBRAD_FOOTHILLS",
		[26]  = "HINTERLANDS",
		[341] = "IRONFORGE",
		[610] = "KELPTHAR_FOREST",
		[35]  = "LOCH_MODAN",
		[895] = "NEW_TINKERTOWN",
		[37]  = "NORTHERN_STRANGLETHORN",
		[864] = "NORTHSHIRE",
		[499] = "QUEL_DANAS",
		[36]  = "REDRIDGE_MOUNTAINS",
		[684] = "RUINS_OF_GILNEAS",
		[685] = "RUINS_OF_GILNEAS_CITY",
		[28]  = "SEARING_GORGE",
		[615] = "SHIMMERING_EXPANSE",
		[480] = "SILVERMOON",
		[21]  = "SILVERPINE_FOREST",
		[301] = "STORMWIND",
		[689] = "STRANGLETHORN_VALE",
		[893] = "SUNSTRIDER_ISLE",
		[38]  = "SWAMP_OF_SORROWS",
		[20]  = "TIRISFAL_GLADES",
		[708] = "TOL_BARAD",
		[709] = "TOL_BARAD_PENINSULA",
		[700] = "TWILIGHT_HIGHLANDS",
		[382] = "UNDERCITY",
		[613] = "VASHJIR",
		[22]  = "WESTERN_PLAGUELANDS",
		[39]  = "WESTFALL",
		[40]  = "WETLANDS",
	},
	-- Outland
	{
		[475] = "BLADES_EDGE_MOUNTAINS",
		[465] = "HELLFIRE_PENINSULA",
		[477] = "NAGRAND",
		[479] = "NETHERSTORM",
		[473] = "SHADOWMOON_VALLEY",
		[481] = "SHATTRATH",
		[478] = "TEROKKAR_FOREST",
		[467] = "ZANGARMARSH",
	},
	-- Northrend
	{
		[486] = "BOREAN_TUNDRA",
		[510] = "CRYSTALSONG_FOREST",
		[504] = "DALARAN",
		[488] = "DRAGONBLIGHT",
		[490] = "GRIZZLY_HILLS",
		[491] = "HOWLING_FJORD",
		[541] = "HROTHGARS_LANDING",
		[492] = "ICECROWN_GLACIER",
		[501] = "LAKE_WINTERGRASP",
		[493] = "SHOLAZAR_BASIN",
		[495] = "STORM_PEAKS",
		[496] = "ZULDRAK",
	},
	-- The Maelstrom
	{
		[640] = "DEEPHOLM",
		[605] = "KEZAN",
		[544] = "LOST_ISLES",
		[737] = "MAELSTROM",
	},
	-- Pandaria
	{
		[858] = "DREAD_WASTES",
		[806] = "JADE_FOREST",
		[857] = "KRASARANG_WILDS",
		[809] = "KUNLAI_SUMMIT",
		[905] = "SHRINE_OF_SEVEN_STARS",
		[903] = "SHRINE_OF_TWO_MOONS",
		[810] = "TOWNLONG_STEPPES",
		[811] = "VALE_OF_ETERNAL_BLOSSOMS",
		[807] = "VALLEY_OF_THE_FOUR_WINDS",
		[873] = "VEILED_STAIR",
	},
}

DBCS_Region_Gatherer_MapIdToTokenMap_inverse = {};
for i = 1 , table.getn(DBCS_Region_Gatherer_MapIdToTokenMap) do
	for a , b in pairs(DBCS_Region_Gatherer_MapIdToTokenMap[i]) do
		DBCS_Region_Gatherer_MapIdToTokenMap_inverse[b] = a;
	end
end

--/script SetCVar("cameraDistanceMax", 25)
--/script SetCVar("cameraDistanceMax", 50)
--/script SetCVar("cameraDistanceMaxFactor", 2)
--/script SetCVar("cameraDistanceMaxFactor", 3)
--SET DistCull "500.000000"
--SET farclip "777"
--SET cameraDistanceMaxFactor "2"
--/console cameradistancemaxfactor 4
