local TraceFrame = DEFAULT_CHAT_FRAME;

local DBCS_Region_wow_build_info;
local DBCS_Region_wow_build_info_live = 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 = 119;

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

--/script DBCS_region_tester_difficulte();

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

--/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 DEFAULT_CHAT_FRAME:AddMessage(GetQuestWorldMapAreaID());
--/script DEFAULT_CHAT_FRAME:AddMessage(GetCurrentMapAreaID());
--GetQuestWorldMapAreaID();
--4 = Durotar
--9 = Mulgore
--11 = Barrens
--13 = Kalimdor
--14 = Azeroth
--15 = Alterac
--16 = Arathi
--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
--540 = IsleofConquest
--541 = HrothgarsLanding
--542 = TheArgentColiseum
--609 = RubySanctum

--[[
626 = TwinPeaks
680 = RagefireChasm
686 = ZulFarrak
687 = TheTempleOfAtalHakkar
688 = BlackfathomDeeps
690 = TheStockade
691 = Gnomeregan
692 = Uldaman
696 = MoltenCore
699 = DireMaul (multiple layers for each wing)
704 = BlackrockDepths
717 = RuinsofAhnQiraj
718 = OnyxiasLair
721 = BlackrockSpire
736 = BattleForGilneas
747 = LostCityOfTheTolvir
749 = WailingCaverns
750 = Maraudon
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
773 = ThroneOfTheFourWinds
--]]


--	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)
--	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	Theramore's Fall
--	1000	Theramore's Fall
--	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	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 Hurlenfer
--	1048	Bonne biture des brasseurs
--	1049	(INUTILISE) Scénario : temple du Buffle noir
--	1050	àA 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	Orgrimmar Gunship Pandaria Start
--	1075	Theramore's Fall Phase
--	1076	Jade Forest Horde Starting Area

-->	1200
--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 };
DBCS_Region_liste[0] = {};
local i = 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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, 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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" };															--Maleterres : l'enclave écarlate		vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "083", instancelock = 650, srepertoire = "TheArgentColiseum", areaid = 542, bvalid = false, 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", bvalid = false, 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", sregionloc = "400", slocloc = "@20x30@" };															--Ile des Conquérants				vérifié
i=i+1;DBCS_Region_liste[0][i] = { sval = "090", instancelock = 724, srepertoire = "TheRubySanctum", 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é
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", 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" };																								--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
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" };																										--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 = 793, 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", 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
--	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" };																														--Foire de Sombrelune
end

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 };			--	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 = "609" };	--	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

i=i+1;DBCS_Region_liste[0][i] = { sval = "0AG", instancelock = 1030, srepertoire = "AncientMoguCrypt", inbnivmin = 1, inbnivmax = 2, inumniv = 1 };			--	crypte des rois oubliés
i=i+1;DBCS_Region_liste[0][i] = { sval = "0AH", instancelock = 1005, srepertoire = "BrewmasterScenario01", inbnivmin = 0, inbnivmax = 0, inumniv = 0 };		--	une bière foudroyante
i=i+1;DBCS_Region_liste[0][i] = { sval = "0AI", instancelock = 1048, srepertoire = "BrewmasterScenario03", inbnivmin = 0, inbnivmax = 0, inumniv = 0, sregionloc = "601", slocloc = "@48x87@" };		--	unga ingou					( Bonne biture des brasseurs ? )
i=i+1;DBCS_Region_liste[0][i] = { sval = "0AL", instancelock = 1051, srepertoire = "KunLaiPassScenario", inbnivmin = 0, inbnivmax = 0, inumniv = 0, sregionloc = "606" };		--	festival de brasse-lune
i=i+1;DBCS_Region_liste[0][i] = { sval = "0AM", instancelock = 1014, srepertoire = "KunLaiSummitScenario", 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", inbnivmin = 0, inbnivmax = 0, inumniv = 0, sregionloc = "602", slocloc = "@48x36@" };	--	pierre-verte				( Razzia sur la mousse ? )
i=i+1;DBCS_Region_liste[0][i] = { sval = "0AX", instancelock = 1050, srepertoire = "Tyrivess", 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", inbnivmin = 1, inbnivmax = 1, inumniv = 1 };			--	arene de l'annihilation

i=i+1;DBCS_Region_liste[0][i] = { sval = "0AT", instancelock = 727, srepertoire = "STVDiamondMineBG", inbnivmin = 1, inbnivmax = 1, inumniv = 1 };			--	mines d'éclargent				BG
i=i+1;DBCS_Region_liste[0][i] = { sval = "0AY", instancelock = 998, srepertoire = "ValleyOfPowerScenario", 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" };
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", 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 = "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" };
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" };			--, 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" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0BU", smicrodungeon = "KunLaiSummit", srepertoire = "PrankstersHollow", inbnivmin = 9, inbnivmax = 9, inumniv = 9, sregionloc = "606" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0BV", smicrodungeon = "KunLaiSummit", srepertoire = "TheDeeper", inbnivmin = 11, inbnivmax = 12, inumniv = 11, sregionloc = "606" };
i=i+1;DBCS_Region_liste[0][i] = { sval = "0BW", smicrodungeon = "KunLaiSummit", srepertoire = "TombofConquerors", inbnivmin = 17, inbnivmax = 17, inumniv = 17, sregionloc = "606" };
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" };				--, 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" };		--, 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 = "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 };
--i=i+1;DBCS_Region_liste[0][i] = { sval = "0CN", srepertoire = "OonaKagu", inbnivmin = 16, inbnivmax = 16, inumniv = 16 };




--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)
--	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";

--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_LoadZones2(0);	-- rien
--/script DBCS_LoadZones2(1);	-- kalimdor
--/script DBCS_LoadZones2(2);	-- royaumes de l'est
--/script DBCS_LoadZones2(3);	-- outreterre
--/script DBCS_LoadZones2(4);	-- norfendre
--/script DBCS_LoadZones2(5);	-- Maelstrom
--/script DBCS_LoadZones2(6);	-- Pandarie

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 };
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[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 = "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" } };
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 };
DBCS_Region_liste[2][28] = { sval = "218", srepertoire = "StranglethornVale" };
	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
	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 };
DBCS_Region_liste[2][43] = { sval = "246", srepertoire = "DeathknellStart", areaid = 892, ressx = 0, ressy = 0, xoffset = 000*140, yoffset = 000*140 };
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[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" } };

--/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 };
--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"} };
--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" } };
--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 };
--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_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
if ( 1 == 1 ) then
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" };	--
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-
--4.3
if ( DBCS_Region_wow_build_info > DBCS_Region_wow_build_info_live ) then
DBCS_Region_liste_combo[3][4][21] = { type = "Z", snumregion = "0AB" };		--	
DBCS_Region_liste_combo[3][4][22] = { type = "Z", snumregion = "0AC" };		--	
DBCS_Region_liste_combo[3][4][23] = { type = "Z", snumregion = "0AD" };		--	
DBCS_Region_liste_combo[3][4][24] = { type = "Z", snumregion = "0AE" };		--	
DBCS_Region_liste_combo[3][4][25] = { 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 = "0AK" };		--	raid 90
DBCS_Region_liste_combo[3][5][11] = { type = "Z", snumregion = "0AO" };		--	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[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[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 = "0AP" };		--	
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][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[7] = { name = "Sc\195\169nario" };
DBCS_Region_liste_combo[7][1] = { name = "basiques" };
DBCS_Region_liste_combo[7][2] = { name = "BC" };
DBCS_Region_liste_combo[7][3] = { name = "WOTLK" };
DBCS_Region_liste_combo[7][4] = { name = "Cataclysme" };
DBCS_Region_liste_combo[7][5] = { name = "Pandarie" };
DBCS_Region_liste_combo[7][5][1] = { type = "Z", snumregion = "0AG" };		--	
DBCS_Region_liste_combo[7][5][2] = { type = "Z", snumregion = "0AH" };		--	
DBCS_Region_liste_combo[7][5][3] = { type = "Z", snumregion = "0AI" };		--	
DBCS_Region_liste_combo[7][5][4] = { type = "Z", snumregion = "0AL" };		--	
DBCS_Region_liste_combo[7][5][5] = { type = "Z", snumregion = "0AM" };		--	
DBCS_Region_liste_combo[7][5][6] = { type = "Z", snumregion = "0AW" };		--	
DBCS_Region_liste_combo[7][5][7] = { type = "Z", snumregion = "0AX" };		--	
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 = "0CM" };		--	
--DBCS_Region_liste_combo[8][1][2] = { type = "Z", snumregion = "0CK" };		--	
--DBCS_Region_liste_combo[8][1][3] = { type = "Z", snumregion = "0CL" };		--	
--DBCS_Region_liste_combo[8][1][4] = { type = "Z", snumregion = "0CN" };		--	

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_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;

	if ( event == "" ) then
	elseif ( event == "CHAT_MSG_CHANNEL_NOTICE") then
		DBCS_Region_liste_bchange = true;
		--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
		_, _ = 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;
		_, _ = 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
		--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
			DBCS_Region_Lire_Overlay(icont,iregion);
		end
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("inumMapAreaID = "..GetCurrentMapAreaID());
--end
	elseif ( event == "ZONE_CHANGED") then
		DBCS_Region_liste_bchange = true;
		--DBCS_Region_liste_bchange_5sec = GetTime();
if ( DBCS_debug and DBCS_debug > 1 ) then
TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED");
end
if ( DBCS_debug and DBCS_debug > 1 ) then
TraceFrame:AddMessage("inumMapAreaID = "..GetCurrentMapAreaID());
end
	elseif ( event == "ZONE_CHANGED_INDOORS") then
		DBCS_Region_liste_bchange = true;
		--DBCS_Region_liste_bchange_5sec = GetTime();
if ( DBCS_debug and DBCS_debug > 1 ) then
TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED_INDOORS");
end
if ( DBCS_debug and DBCS_debug > 1 ) then
TraceFrame:AddMessage("inumMapAreaID = "..GetCurrentMapAreaID());
end
	elseif ( event == "ZONE_CHANGED_NEW_AREA") then
if ( DBCS_debug and DBCS_debug > 1 ) then
TraceFrame:AddMessage("DBCS_Region_OnEvent : ZONE_CHANGED_NEW_AREA");
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;
		--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()

	DBCS_Region_Minimap_mesuivre = DBCS_Region_Minimap_combo_Mesuivre:GetChecked();
	if ( DBCS_Region_Minimap_mesuivre == 1 ) then
	else
		DBCS_Region_Minimap_mesuivre = 0;
	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 ( 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()

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

--/script DBCS_Region_Minimap_update_OnUpdate()
function DBCS_Region_Minimap_update_OnUpdate()

local snumregion;
local x;
local y;

	x, y = GetPlayerMapPosition("player");
	if ( x == 0 and y == 0 ) then
		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();
			DBCS_Region_liste_bchange = true;
		end
	end
	snumregion, _ = DBCS_Region_liste_code_region_courante_new();
	if ( snumregion == "000" or DBCS_Region_minimap_borigine1 == false ) then
		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;
	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)

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

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

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;

	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_new();
--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
				playerX, playerY = GetPlayerMapPosition("player");
				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()
-- 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 ( 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 ) then
		DBCS_Region_config["MAPZOOM"] = {};
		DBCS_Region_config["MAPZOOM"][DBCS_Region_wow_build] = {};
		DBCS_Region_config["REGION_NAME"] = {};
		DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build] = {};
	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;

	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;
	inbcont = 6;
	for i = 1 , inbcont do
		if ( DBCS_Region_config["MAPZOOM"][DBCS_Region_wow_build][i] == nil ) then
			DBCS_Region_config["MAPZOOM"][DBCS_Region_wow_build][i] = {};
		end
		tablo = { GetMapZones(i) };
		for j = 1 , table.getn(tablo) do
			SetMapZoom(i,j);
			srepertoire , _ , _ = GetMapInfo();
			k = 0;
			for l = 1 , table.getn(DBCS_Region_liste[i]) do
				if ( DBCS_Region_liste[i][l].srepertoire == srepertoire ) then
					k = l;
					sregion = DBCS_Region_liste[i][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] = i;
				DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][3] = j;
				--if ( DBCS_Region_liste[i][k].name2 ) then
				--	DBCS_Region_config["REGION_NAME"][DBCS_Region_wow_build][sregion][4] = DBCS_Region_liste[i][k].name2;
				--end
				DBCS_Region_config["MAPZOOM"][DBCS_Region_wow_build][i][j] = sregion;
				--DBCS_Region_Lire_Overlay(i,j);	--	20120824	je penses inutil car déjà appelée ds le SetMapZoom qui prècède au début de la boucle for
			end
		end
	end
	SetMapToCurrentZone();
	DBCS_Region_config_joueur = DBCS_Region_wow_build;
	if ( DBCS_Region_Ident_player == nil ) then
		DBCS_Region_Ident_player = UnitGUID("player");
		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
		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 : 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 : 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
	end
	DBCS_Region_Tooltip:Hide();
	if ( btoutbon == false ) then
		DBCS_Region_config["MAPZOOM"] = nil;
	end

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()

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

	if ( DBCS_Region_Minimap:IsShown() ) then
		bshown = true;
	end
	--SetMapToCurrentZone();
	snumregion, inivcarte = DBCS_Region_liste_code_region_courante_new();
	DBCS_Region_Minimap_init_loc_hide();
	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_new()

	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;


--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();
		DBCS_Region_liste_sregion = "000";
		SetMapToCurrentZone();
		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
		inumMapAreaID = GetCurrentMapAreaID();
		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;
				inbcont = 6;
				snameregion_low = strlower(snameregion);
				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);
													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
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
					end
				end
			end
		--else
		--	DBCS_Region_liste_sregion = DBCS_Region_Code_Region(DBCS_Region_liste_icont,DBCS_Region_liste_iregion);
		--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
		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_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;
							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)

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

	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
	return snumregion;

end

local Saved_DBCS_Region_liste_SetMapZoom = SetMapZoom;
function DBCS_Region_liste_SetMapZoom(a,b)

	Saved_DBCS_Region_liste_SetMapZoom(a,b);
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_liste_SetMapZoom : "..a.." , "..(b or ""));
--end
	--DBCS_Region_liste_bchange = true;
	--DBCS_Region_liste_bchange_5sec = GetTime();
	DBCS_Region_Lire_Overlay(a,b);

end
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;

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

	--DBCS_Region_liste_SetMapToCurrentZone_i = DBCS_Region_liste_SetMapToCurrentZone_i + 1;

	Saved_DBCS_Region_liste_SetMapToCurrentZone();
--if ( DBCS_debug and DBCS_debug > 1 ) then
--TraceFrame:AddMessage("DBCS_Region_liste_SetMapToCurrentZone");
--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();

end
SetMapToCurrentZone = DBCS_Region_liste_SetMapToCurrentZone;

local Saved_DBCS_Region_liste_SetDungeonMapLevel = SetDungeonMapLevel;
function DBCS_Region_liste_SetDungeonMapLevel(index)

	Saved_DBCS_Region_liste_SetDungeonMapLevel(index);
-- if ( DBCS_debug and DBCS_debug > 1 ) then
-- TraceFrame:AddMessage("DBCS_Region_liste_SetDungeonMapLevel");
-- end
	--DBCS_Region_liste_bchange = true;
	--DBCS_Region_liste_bchange_5sec = GetTime();

end
SetDungeonMapLevel = DBCS_Region_liste_SetDungeonMapLevel;

function DBCS_Region_liste_position100(bforce)

local a,b;
local x,y;

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

	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];
				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()

local inumMapAreaID;
local snom;
local stypeinstance;
local idifficulte;
local snomdiff;
local inivcarte;
local inivcartemax;
local snumregion;
local inumcarte;
local iGetNumDungeonMapLevels;
local iGetCurrentMapDungeonLevel;

	SetMapToCurrentZone();
	inumMapAreaID = GetCurrentMapAreaID();
	snom, stypeinstance, idifficulte, snomdiff = GetInstanceInfo();
	inivcarte = GetCurrentMapDungeonLevel();
	inivcartemax = GetNumDungeonMapLevels();
	snumregion, inumcarte = DBCS_Region_liste_code_region_courante_new();
	iGetNumDungeonMapLevels = GetNumDungeonMapLevels();
	iGetCurrentMapDungeonLevel = GetCurrentMapDungeonLevel();
--if ( DBCS_debug and DBCS_debug > 1 ) then
TraceFrame:AddMessage("inumMapAreaID = "..inumMapAreaID);
TraceFrame:AddMessage("snom = "..snom);
DBCS_ecrirecodedutexte(snom);
TraceFrame:AddMessage("stypeinstance = "..stypeinstance);
TraceFrame:AddMessage("idifficulte = "..idifficulte);
TraceFrame:AddMessage("snomdiff = "..snomdiff);
TraceFrame:AddMessage("GetRealZoneText = "..GetRealZoneText());
TraceFrame:AddMessage("inivcarte = "..inivcarte);
TraceFrame:AddMessage("inivcartemax = "..inivcartemax);
TraceFrame:AddMessage("snumregion = "..snumregion);
TraceFrame:AddMessage("inumcarte = "..inumcarte);
TraceFrame:AddMessage("iGetNumDungeonMapLevels = "..iGetNumDungeonMapLevels);
TraceFrame:AddMessage("iGetCurrentMapDungeonLevel = "..iGetCurrentMapDungeonLevel);
--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)

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;

	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)

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;
	
	textureCount = 0;
	-- 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;

	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)

	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)

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()

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)

	-- 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)

	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)

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_Overlays_joueur()

local i;
local j;

	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
			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
					SetMapZoom(i,j);
				end
			end
			SetMapToCurrentZone();
			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()

	UIDropDownMenu_Initialize(DBCS_Region_Minimap_combo_TypeRegion1, DBCS_Region_Minimap_combo_TypeRegion1_Initialize);

end

function DBCS_Region_Minimap_combo_TypeRegion1_Initialize()

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)

	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()

	UIDropDownMenu_Initialize(DBCS_Region_Minimap_combo_TypeRegion2, DBCS_Region_Minimap_combo_TypeRegion2_Initialize);

end

function DBCS_Region_Minimap_combo_TypeRegion2_Initialize()

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)

	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);
	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;
				end
			end
		else
		end
	end

end

function DBCS_Region_Minimap_combo_TypeRegion3_OnLoad()

	UIDropDownMenu_Initialize(DBCS_Region_Minimap_combo_TypeRegion3, DBCS_Region_Minimap_combo_TypeRegion3_Initialize);

end

function DBCS_Region_Minimap_combo_TypeRegion3_Initialize()

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)

	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()

	UIDropDownMenu_Initialize(DBCS_Region_Minimap_combo_Nivdonjon, DBCS_Region_Minimap_combo_Nivdonjon_Initialize);

end

function DBCS_Region_Minimap_combo_Nivdonjon_Initialize()

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)

	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()

	UIDropDownMenu_Initialize(DBCS_Region_Minimap_combo_Nivcarte, DBCS_Region_Minimap_combo_Nivcarte_Initialize);

end

function DBCS_Region_Minimap_combo_Nivcarte_Initialize()

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)

	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()

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)

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()

	UIDropDownMenu_Initialize(DBCS_Region_Minimap_combo_Echelle, DBCS_Region_Minimap_combo_Echelle_Initialize);

end

function DBCS_Region_Minimap_combo_Echelle_Initialize()

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)

	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)

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()

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

end

function DBCS_Region_Minimap_down_click()

	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)
	UIDropDownMenu_Initialize(self, DBCS_Region_Minimap_Tracking_DropDown_Initialize, "MENU");
end

function DBCS_Region_Minimap_Tracking_afficher_icone()

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()

--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
						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)

--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()

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()
	-- 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()
	UIFrameFadeOut(DBCS_Region_Minimap_Tracking_Button_Shine, 0.5);
end

function DBCS_Region_Minimap_Tracking_Button_OnEnter(self)

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

							--<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
