local TraceFrame = DEFAULT_CHAT_FRAME;

--/script DBCS_MVW_boutons_creature_blp_afficher();

--/console synchronizeSettings 0
--SET terrainLodDist "650"
--/console terrainLodDist "650"
--/console terrainLodDist "100"
--SET farclip "600"
--/console farclip 600
--décor au sol
--/console groundEffectDensity 256

--/console groundEffectDist 200
--/console detailDoodadAlpha 100
--/console horizonfarclip 2112
--/console farclip 999
--/console characterAmbient

--local DBCS_Model_Viewer_numorig = 395;
--local DBCS_Model_Viewer_numorig = 412;
--local DBCS_Model_Viewer_numorig = 431;
--local DBCS_Model_Viewer_numorig = 439;
--local DBCS_Model_Viewer_numorig = 446;
--local DBCS_Model_Viewer_numorig = 536;
--local DBCS_Model_Viewer_numorig = 546;
--local DBCS_Model_Viewer_numorig = 547;
--local DBCS_Model_Viewer_numorig = 559;
local DBCS_Model_Viewer_numorig = 571;

DBCS_Model_Viewer_numcreature = 0;
DBCS_Model_Viewer_numcreaturemax = 75000;	--70000;	--65000;	--60000;	--55000;	--50000;	--45000

local DBCS_Model_Viewer_wow_build;
local DBCS_Model_Viewer_wow_build_live = 13623;
--
_, DBCS_Model_Viewer_wow_build, _, _ = GetBuildInfo();
DBCS_Model_Viewer_wow_build = tonumber(DBCS_Model_Viewer_wow_build);

--local DBCS_Model_Viewer_model_date_display = 20110426;
local DBCS_Model_Viewer_model_date_display = 20110704;

--patch 4.2
--	model:SetCamDistanceScale(1.0);
--				GameTooltip:SetItemByID(itemID);


--http://wow.freehackers.org/addons/DBCS_Model_Viewer/DBCS_Model_Viewer_000019.zip
--http://wowui.incgamers.com/?p=mod&m=6158

--/script i=i+1;DEFAULT_CHAT_FRAME:AddMessage(i);QuestNPCModel:SetDisplayInfo(i);
--/script QuestNPCModel:SetUnit("player");
--/script QuestNPCModel:SetPortraitZoom(0.0);
--/script i=0;
--/script i=700;
--/script i=1500;
--/script i=2500;
--/script i=4000;
--/script i=5800;
--/script i=6000;
--/script i=6200;
--/script i=6700;
--/script i=6770;
--/script i=7000;
--/script i=8000;

--/script i=30000;
--/script i=31000;
--/script i=32000;
--/script i=32500;
--/script i=33000;
--/script i=33300;
--/script i=33500;
--/script i=33800;
--/script i=34000;
--/script i=34700;
--/script i=35000;
--/script i=35356;

--/script i=36179;

--/script i=36500;
--/script i=37120;
--/script i=37500;
--/script i=37560;

--/script i=37900;

--/script i=38500;

--/script i=1980;
--/script i=3270;
--/script i=10990;
--/script i=17561;
--/script i=19733;
--/script i=17890;	--riding phoenix
--/script i=i+1;DEFAULT_CHAT_FRAME:AddMessage(i);DBCS_Model_Viewer_DressUpFrame_Target_Model:SetDisplayInfo(i);DBCS_Model_Viewer_DressUpFrame_Target_Nommob:SetText(DBCS_Model_Viewer_DressUpFrame_Target_Model:GetModel());
--/script i=i+1;DEFAULT_CHAT_FRAME:AddMessage(i);DBCS_Model_Viewer_DressUpFrameModel:SetDisplayInfo(i);
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:SetCreature(000);
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:SetModel("creature/invisibleman/invisibleman.m2");
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:SetModel("creature/diablo/diablo.m2");
--/script DEFAULT_CHAT_FRAME:AddMessage(DBCS_Model_Viewer_DressUpFrame_Target_Model:GetModel());
--spells/errorcube.m2
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:SetUnit("player");
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:SetPortraitZoom(0.0);
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:Undress();
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:Dress();
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:TryOn("item:68600");	--arme dague une main
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:SetCamera(0);
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:SetCamera(1);
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:SetCamera(2);
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:SetCamera(3);
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:SetCamera(4);

--/script DBCS_Model_Viewer_DressUpFrameModel:

--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:TryOn("item:67132");	--mains
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:TryOn("item:67134");	--cape
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:TryOn("item:68611");	--chemise
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:TryOn("item:68597");	--taille
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:TryOn("item:68596");	--pieds
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:TryOn("item:68595");	--veste
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:TryOn("item:68593");	--tete
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:TryOn("item:68592");	--jambes
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:TryOn("item:68591");	--epaule
--DBCS_Model_Viewer_DressUpFrame_Target_Model
--DBCS_Model_Viewer_DressUpFrameModel

--/script DBCS_Model_Viewer_numcreature = 7540;
--/script DBCS_Model_Viewer_numcreature = 23160;
--/script DBCS_Model_Viewer_numcreature = 25500;
--/script DBCS_Model_Viewer_numcreature = 26090;
--/script DBCS_Model_Viewer_numcreature = 26640;
--/script DBCS_Model_Viewer_numcreature = 27160;
--/script DBCS_Model_Viewer_numcreature = 27400;
--/script DBCS_Model_Viewer_numcreature = 28180;
--/script DBCS_Model_Viewer_numcreature = 28460;
--/script DBCS_Model_Viewer_numcreature = 29600;
--/script DBCS_Model_Viewer_numcreature = 31630;

--del *.skin /s
--del *.anim /s
--dir /b /s /l > ../test1
--cd ..
--sort test1 >test2
--
--vim
--remplace \\ par /
--remplacer "c:/jeux/wow/data/version_laigle/skins/creature/" par ""
--			c:/jeux/wow_skin/creature/
--remplacer "\n" par "@"

--Model:SetGlow(...) 

--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:SetUnit("mouseover");

--	version 00.00.22 du 20111201
	--maj du toc pour 4.3
	--ajout de ces modèles et de ces coloris :
	--alexstrasza/ladyalexstrasa2.m2
	--alexstrasza/ladyalexstrasamortalskin1.blp
	--azshara/azshara.blp
	--azshara/azshara.m2
	--azshara/leg.blp
	--bearmountalt/bearmountalt_darkmoonfaire.m2
	--bearmountalt/bearmountdarkmoonfairearmor.blp
	--bearmountalt/bearmountdarkmoonfaireskinfur.blp
	--bearmountalt/darkmoonfairelogo128.blp
	--bearmountalt/darkmoonfairelogo128blurred.blp
	--chromaticdragonpet/chromaticdragonpet.blp
	--chromaticdragonpet/chromaticdragonpet.m2
	--chromaticdragonpet/chromaticdragonpetglow.blp
	--chromaticdragonpet/dragonchromatic_smoke.blp
	--corrupted_deathwing_missile/corrupted_deathwing_missile_creature.m2
	--corruptedtentacle/corruptedtentacle.m2
	--corruptedtentacle/deathwingbacktentacle.blp
	--corruptedtentacle/deathwingtentaclelavafx.blp
	--corruptedtentacle/lavaalphaup.blp
	--deathwing/deathwing_backplate_test01_creature.m2
	--deathwing/deathwing_backplate_test02_creature.m2
	--deathwing/deathwing_backplate_test03_creature.m2
	--deathwing/deathwingraid1.blp
	--deathwing/deathwingraid2.blp
	--deathwing/deathwingraid3.blp
	--deathwing/deathwingraidarm.blp
	--deathwing/deathwingraidwing.blp
	--deathwingcorrupted/deathwingcorrupted.m2
	--deathwingcorrupted/deathwingcorrupted01.blp
	--deathwingcorrupted/deathwingcorrupted01glow.blp
	--deathwingcorrupted/deathwingcorrupted02.blp
	--deathwingcorrupted/deathwingcorrupted02glow.blp
	--deathwingcorrupted/deathwingcorruptedarml.m2
	--deathwingcorrupted/deathwingcorruptedarmr.m2
	--deathwingcorrupted/deathwingcorruptedclaw02.blp
	--deathwingcorrupted/deathwingcorruptedclaw02glow.blp
	--deathwingcorrupted/deathwingcorruptedwing02.blp
	--deathwingcorrupted/deathwingcorruptedwing02glow.blp
	--deathwingcorrupted/deathwingcorruptedwingarml.m2
	--deathwingcorrupted/deathwingcorruptedwingarmr.m2
	--deathwingcorrupted/dw_fire01.blp
	--deathwingcorrupted/dw_lavablood_drips01.blp
	--deathwingcorrupted/dw_lavablood_splash01.blp
	--deathwingcorrupted/smalldeathwingcorrupted.m2
	--deathwingcorruptedclaw/deathwingcorruptedclaw.blp
	--deathwingcorruptedclaw/deathwingcorruptedclaw.m2
	--deathwingcorruptedclaw/deathwingcorruptedclawglow.blp
	--deathwingcorruptedclaw/deathwingcorruptedclawr.m2
	--deathwingcorruptedjaw/deathwingcorruptedjaw.m2
	--deathwingcorruptedtail/deathwingcorruptedtail.blp
	--deathwingcorruptedtail/deathwingcorruptedtail.m2
	--deathwingcorruptedtail/deathwingcorruptedtailglow.blp
	--deathwingcorruptedwing/deathwingcorruptedwing.blp
	--deathwingcorruptedwing/deathwingcorruptedwing.m2
	--deathwingcorruptedwing/deathwingcorruptedwingglow.blp
	--deathwingdungeon/deathwingdungeon.m2
	--deathwingdungeon/deathwingraid1_glow.blp
	--deathwingdungeon/deathwingraid2_glow.blp
	--deathwingdungeon/deathwingraid3_glow.blp
	--deathwingdungeon/deathwingraidarm_glow.blp
	--deathwingdungeon/deathwingraidneckplate.blp
	--deathwingdungeon/deathwingraidtailplate.blp
	--deathwingdungeon/deathwingraidwing_glow.blp
	--deathwingelemental/deathwingelemental.blp
	--deathwingelemental/deathwingelemental.m2
	--deathwingelemental/elementalfire.blp
	--deathwingelemental/lavablood_drips.blp
	--deathwingelemental/lavablood_glow.blp
	--deathwingelemental/lavablood_goops.blp
	--deathwingelemental/lavablood_spark.blp
	--deathwingelemental/lavablood_splats.blp
	--diablofetish/diablofetish.blp
	--diablofetish/diablofetish.m2
	--diablofetish/t_vfx_beam_down.blp
	--doomguardoutland/doomguardoutland_low.m2
	--dragonchromatic/dragonchromatic.m2
	--dragonchromatic/dragonchromatic_ribbons.blp
	--dragonchromatic/dragonchromatic_rim.blp
	--dragonchromaticmount/dragonchromatic_alpha.blp
	--dragonchromaticmount/dragonchromaticmount.m2
	--dragonchromaticmount/dragonchromaticmount_armor.blp
	--dragonprince/dragonprince.blp
	--dragonprince/dragonprince.m2
	--facelessgeneral/facelessgeneral1_black.blp
	--facelessgeneral/facelessgeneral2_black.blp
	--felguard/felguard_low.m2
	--felhippogryph/felhippogryph.m2
	--felhippogryph/felhippogryphmount.m2
	--felhippogryph/hippogryphfelskin01.blp
	--felhippogryph/hippogryphfelskin02.blp
	--golemharveststage2/harveststage2joint1.blp
	--greaterslime/greaterslimedeathwing.blp
	--greaterslime/greaterslimedeathwing.m2
	--greaterslime/greaterslimedeathwing_sorted.m2
	--greaterslime/greaterslimetraildeathwing.blp
	--greaterslime/t_vfx_borderslime.blp
	--illidan_past/illidan_past.blp
	--illidan_past/illidan_past.m2
	--lanternpet/lunarnewyearlantern_alliance_hanging_pet.m2
	--lanternpet/lunarnewyearlantern_horde_hanging_pet.m2
	--monkey/monkey_fez.m2
	--murozond/murozond.m2
	--murozond/murozond1.blp
	--murozond/murozond2.blp
	--murozond/murozond3.blp
	--nozdormu/nozdormu2.m2
	--nozdormu/nozdormumortal.blp
	--nozdormudragon/nozdormu1.blp
	--nozdormudragon/nozdormu2.blp
	--nozdormudragon/nozdormu3.blp
	--nozdormudragon/nozdormudragon.m2
	--perotharn/perotharn.m2
	--perotharn/satyrskin_perotharn.blp
	--reddrakemount/reddrakemount.m2
	--reddrakemount/reddrakemountorange1.blp
	--reddrakemount/reddrakemountorange2.blp
	--reddrakemount/reddrakemountorange3.blp
	--reddrakemount/reddrakemountpurple1.blp
	--reddrakemount/reddrakemountpurple2.blp
	--reddrakemount/reddrakemountpurple3.blp
	--reddrakemount/reddrakemountred1.blp
	--reddrakemount/reddrakemountred2.blp
	--reddrakemount/reddrakemountred3.blp
	--sandboxtiger/sandbox_tiger_01.blp
	--sandboxtiger/sandbox_tiger_01.m2
	--sandboxtiger/sandbox_tiger_02.blp
	--sandboxtiger/sandbox_tiger_03.blp
	--sandboxtiger/sandbox_tiger_04.blp
	--silithidscarab/scarab_pet.m2
	--spectralgryphon/gryphon_skin01lightblue.blp
	--spectralgryphon/gryphon_skin02lightblue.blp
	--spectralgryphon/spectralgryphon.m2
	--spectralwyvern/spectralwyvern.m2
	--spectralwyvern/spectralwyvern01.blp
	--spectralwyvern/spectralwyvern02.blp
	--twilightascendantice/smoke_ice.blp
	--twilightascendantice/twilightascendantice.m2
	--twilightascendantice/twilightascendantwaterice.blp
	--twilightascendantice/twilightascendantwaterice2.blp
	--tyraelmount/tyraelmount.m2
	--tyraelmount/tyraelmount_hair.blp
	--tyraelmount/tyraelmount1.blp
	--tyraelmount/tyraelmount2.blp
	--tyrande/runestrip_turquoise.blp
	--tyrande/runestriptyrande_alpha2.blp
	--tyrande/tyrande.m2
	--tyrande/tyrande1.blp
	--tyrande/tyrande2.blp
	--ultraxion/ultraxion.m2
	--ultraxion/ultraxionskin1.blp
	--ultraxion/ultraxionskin2.blp
	--ultraxion/ultraxionskin3.blp
	--ultraxion/ultraxionskinalpha1.blp
	--ultraxion/ultraxionskinalpha2.blp
	--ultraxion/ultraxionskinalpha3.blp
	--whackagnoll/eb_whack_baby.blp
	--whackagnoll/eb_whack_barrel.blp
	--whackagnoll/eb_whack_basic.blp
	--whackagnoll/eb_whack_elite.blp
	--whackagnoll/whack_a_gnoll.m2
	--whackagnoll/whack_a_gnoll_baby.m2
	--whackagnoll/whack_a_gnoll_elite.m2
	--yeti_greench/yeti_greench.m2
	--yeti_greench/yeti_greenchskin1.blp
	--yeti_greench/yeti_greenchskin2.blp
	--yoggsaron/yoggsarontentaclemace_lootable.m2
	--ysera/ysera2.m2
	--ysera/yseramortal1.blp
	--yseradragon/dragonysera1.blp
	--yseradragon/dragonysera2.blp
	--yseradragon/dragonysera3.blp
	--yseradragon/yseradragon.m2

--	version 00.00.21 du 20110708
	--maj du toc pour 4.2
	--ajout du modèle alliancepvpmount/alliancepvpmount.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle alliancepvpmount/alliancepvpmountblue1.blp dans l'addon DBCS_model_viewer
	--ajout du modèle alliancepvpmount/alliancepvpmountblue2.blp dans l'addon DBCS_model_viewer
	--ajout du modèle alliancepvpmount/alliancepvpmountblue3.blp dans l'addon DBCS_model_viewer
	--ajout du modèle alliancepvpmount/alliancepvpmountcopper1.blp dans l'addon DBCS_model_viewer
	--ajout du modèle alliancepvpmount/alliancepvpmountcopper2.blp dans l'addon DBCS_model_viewer
	--ajout du modèle alliancepvpmount/alliancepvpmountcopper3.blp dans l'addon DBCS_model_viewer
	--ajout du modèle alliancepvpmount/alliancepvpmountred1.blp dans l'addon DBCS_model_viewer
	--ajout du modèle alliancepvpmount/alliancepvpmountred2.blp dans l'addon DBCS_model_viewer
	--ajout du modèle alliancepvpmount/alliancepvpmountred3.blp dans l'addon DBCS_model_viewer
	--ajout du modèle alliancepvpmount/alliancepvpmountsilver1.blp dans l'addon DBCS_model_viewer
	--ajout du modèle alliancepvpmount/alliancepvpmountsilver2.blp dans l'addon DBCS_model_viewer
	--ajout du modèle alliancepvpmount/alliancepvpmountsilver3.blp dans l'addon DBCS_model_viewer
	--ajout du modèle cat/cat_hallowsend.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle cat/cat_hallowsend_hat.blp dans l'addon DBCS_model_viewer
	--ajout du modèle dragonkalecgos/dragonkalecgos_flighttier.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle dragonsinestra/dragontarecgosa.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle dragonsinestra/dragontarecgosa1.blp dans l'addon DBCS_model_viewer
	--ajout du modèle dragonsinestra/dragontarecgosa2.blp dans l'addon DBCS_model_viewer
	--ajout du modèle dragonsinestra/dragontarecgosa3.blp dans l'addon DBCS_model_viewer
	--ajout du modèle dragonwhelp/dragonwhelptarecgosa.blp dans l'addon DBCS_model_viewer
	--ajout du modèle dragonwhelp/dragonwhelptarecgosa.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle drakemount/armoredtwilightdrake.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle drakemount/drakeskinscaled_01.blp dans l'addon DBCS_model_viewer
	--ajout du modèle drakemount/drakeskinscaled_02.blp dans l'addon DBCS_model_viewer
	--ajout du modèle drakemount/drakeskinscaled_03.blp dans l'addon DBCS_model_viewer
	--ajout du modèle drakemount/twilightdrakemount-armor1.blp dans l'addon DBCS_model_viewer
	--ajout du modèle fandralfirecat/fandralfirecatnoarmor.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle fandralfirescorpion/fandralfirescorpion.blp dans l'addon DBCS_model_viewer
	--ajout du modèle fandralfirescorpion/fandralfirescorpion.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle fandralstaghelm/famdralstaghelm3.blp dans l'addon DBCS_model_viewer
	--ajout du modèle fandralstaghelm/fandralstaghelm.blp dans l'addon DBCS_model_viewer
	--ajout du modèle fandralstaghelm/fandralstaghelm.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle fandralstaghelm/fandralstaghelm2.blp dans l'addon DBCS_model_viewer
	--ajout du modèle fandralstaghelm/fandralstaghelmglow.blp dans l'addon DBCS_model_viewer
	--ajout du modèle fireblock_shannox/creature_fireblock_shannox.blp dans l'addon DBCS_model_viewer
	--ajout du modèle fireblock_shannox/creature_fireblock_shannox.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle fireblock_shannox/creature_fireblock_shannox_nolava.blp dans l'addon DBCS_model_viewer
	--ajout du modèle fireblock_solid@fireblock_solid/creature_fireblock_solid.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle fireelemental_kar/fireelemental_kar.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle fireelemental_kar/fireelemental_kar_armor.blp dans l'addon DBCS_model_viewer
	--ajout du modèle fireelemental_kar/fireelemental_kar_skin.blp dans l'addon DBCS_model_viewer
	--ajout du modèle firehawk/firehawk_mount.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle fireravengodmount/fireravengodmount.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle fireravengodmount/fireravengodmountfiregreen2.blp dans l'addon DBCS_model_viewer
	--ajout du modèle fireravengodmount/fireravengodmountfirepurple2.blp dans l'addon DBCS_model_viewer
	--ajout du modèle fireravengodmount/fireravengodmountfirered2.blp dans l'addon DBCS_model_viewer
	--ajout du modèle fireravengodmount/fireravengodmountgreen1.blp dans l'addon DBCS_model_viewer
	--ajout du modèle fireravengodmount/fireravengodmountpurple1.blp dans l'addon DBCS_model_viewer
	--ajout du modèle fireravengodmount/fireravengodmountred1.blp dans l'addon DBCS_model_viewer
	--ajout du modèle firespider@firespider/firespider.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle firespider/firespider_green.blp dans l'addon DBCS_model_viewer
	--ajout du modèle firespider/firespider_orange.blp dans l'addon DBCS_model_viewer
	--ajout du modèle firespider/firespider_purple.blp dans l'addon DBCS_model_viewer
	--ajout du modèle firespider/firespider_red.blp dans l'addon DBCS_model_viewer
	--ajout du modèle firespider/firespider_yellow.blp dans l'addon DBCS_model_viewer
	--ajout du modèle firespiderboss/firespiderboss_armor_blue.blp dans l'addon DBCS_model_viewer
	--ajout du modèle firespiderboss/firespiderboss_armor_gold.blp dans l'addon DBCS_model_viewer
	--ajout du modèle firespiderboss/firespiderboss_armor_gray.blp dans l'addon DBCS_model_viewer
	--ajout du modèle firespiderboss/firespiderboss_armor_green.blp dans l'addon DBCS_model_viewer
	--ajout du modèle firespiderboss/firespiderboss_armor_red.blp dans l'addon DBCS_model_viewer
	--ajout du modèle firespiderboss/firespiderboss_green.blp dans l'addon DBCS_model_viewer
	--ajout du modèle firespiderboss/firespiderboss_orange.blp dans l'addon DBCS_model_viewer
	--ajout du modèle firespiderboss/firespiderboss_purple.blp dans l'addon DBCS_model_viewer
	--ajout du modèle firespiderboss/firespiderboss_red.blp dans l'addon DBCS_model_viewer
	--ajout du modèle firespiderboss/firespiderboss_yellow.blp dans l'addon DBCS_model_viewer
	--ajout du modèle hordepvpmount/hordepvpmount.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle hordepvpmount/hordepvpmountarmorgreen.blp dans l'addon DBCS_model_viewer
	--ajout du modèle hordepvpmount/hordepvpmountarmororange.blp dans l'addon DBCS_model_viewer
	--ajout du modèle hordepvpmount/hordepvpmountarmorpurple.blp dans l'addon DBCS_model_viewer
	--ajout du modèle hordepvpmount/hordepvpmountarmorred.blp dans l'addon DBCS_model_viewer
	--ajout du modèle hordepvpmount/hordepvpmountbannergreen.blp dans l'addon DBCS_model_viewer
	--ajout du modèle hordepvpmount/hordepvpmountbannerorange.blp dans l'addon DBCS_model_viewer
	--ajout du modèle hordepvpmount/hordepvpmountbannerpurple.blp dans l'addon DBCS_model_viewer
	--ajout du modèle hordepvpmount/hordepvpmountbannerred.blp dans l'addon DBCS_model_viewer
	--ajout du modèle hordepvpmount/hordepvpmountbodygreen.blp dans l'addon DBCS_model_viewer
	--ajout du modèle hordepvpmount/hordepvpmountbodyorange.blp dans l'addon DBCS_model_viewer
	--ajout du modèle hordepvpmount/hordepvpmountbodypurple.blp dans l'addon DBCS_model_viewer
	--ajout du modèle hordepvpmount/hordepvpmountbodyred.blp dans l'addon DBCS_model_viewer
	--ajout du modèle humanmaleburied/china_planthead.blp dans l'addon DBCS_model_viewer
	--ajout du modèle humanmaleburied/china_plantstalk.blp dans l'addon DBCS_model_viewer
	--ajout du modèle humanmaleburied/humanmaleburied.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle liquidmagmagiant/lavaalpha.blp dans l'addon DBCS_model_viewer
	--ajout du modèle liquidmagmagiant/liquidmagmagiant.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle liquidmagmagiant/liquidmagmagiant1.blp dans l'addon DBCS_model_viewer
	--ajout du modèle liquidmagmagiant/liquidmagmagiant2.blp dans l'addon DBCS_model_viewer
	--ajout du modèle magmagiant/lordanthricyst_magma.blp dans l'addon DBCS_model_viewer
	--ajout du modèle magmagiant/magmagiant_legleft.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle magmagiant/magmagiant_legright.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle malorne/malorne.blp dans l'addon DBCS_model_viewer
	--ajout du modèle malorne/malorne.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle molten_meteor/molten_meteor.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle moltengiant/moltengiant.blp dans l'addon DBCS_model_viewer
	--ajout du modèle moltengiant/moltengiant.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle moltengiant/moltengiant_glow.blp dans l'addon DBCS_model_viewer
	--ajout du modèle moltengiant/moltengiantgreen.blp dans l'addon DBCS_model_viewer
	--ajout du modèle moltengiant/moltengiantgreen_glow.blp dans l'addon DBCS_model_viewer
	--ajout du modèle moltengiant/moltengiantred.blp dans l'addon DBCS_model_viewer
	--ajout du modèle moltengiant/moltengiantred_glow.blp dans l'addon DBCS_model_viewer
	--ajout du modèle moltengiant/moltengiantyellow.blp dans l'addon DBCS_model_viewer
	--ajout du modèle moltengiant/moltengiantyellow_glow.blp dans l'addon DBCS_model_viewer
	--ajout du modèle murloc/diablobabymurloc.blp dans l'addon DBCS_model_viewer
	--ajout du modèle murloc/diablobabymurloc.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle murloc/diablobabymurloc_glow.blp dans l'addon DBCS_model_viewer
	--ajout du modèle nozdormu/nozdormu.blp dans l'addon DBCS_model_viewer
	--ajout du modèle nozdormu/nozdormu.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle nozdormu/nozshoulder.blp dans l'addon DBCS_model_viewer
	--ajout du modèle overfiend/overfiend_scroll_blue.blp dans l'addon DBCS_model_viewer
	--ajout du modèle overfiend/overfiend_scroll_green.blp dans l'addon DBCS_model_viewer
	--ajout du modèle overfiend/overfiend_scroll_orange.blp dans l'addon DBCS_model_viewer
	--ajout du modèle overfiend/overfiend_scroll_purple.blp dans l'addon DBCS_model_viewer
	--ajout du modèle overfiend/overfiend_wings_blue.blp dans l'addon DBCS_model_viewer
	--ajout du modèle overfiend/overfiend_wings_glow.blp dans l'addon DBCS_model_viewer
	--ajout du modèle overfiend/overfiend_wings_green.blp dans l'addon DBCS_model_viewer
	--ajout du modèle overfiend/overfiend_wings_orange.blp dans l'addon DBCS_model_viewer
	--ajout du modèle overfiend/overfiend_wings_purple.blp dans l'addon DBCS_model_viewer
	--ajout du modèle overfiend/wingalpha.blp dans l'addon DBCS_model_viewer
	--ajout du modèle overfiend_blue.blp dans l'addon DBCS_model_viewer
	--ajout du modèle overfiend_green.blp dans l'addon DBCS_model_viewer
	--ajout du modèle overfiend_orange.blp dans l'addon DBCS_model_viewer
	--ajout du modèle overfiend_purple.blp dans l'addon DBCS_model_viewer
	--ajout du modèle owlghost_green/owlghost_green.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle owlghost_green/owlspirit_green.blp dans l'addon DBCS_model_viewer
	--ajout du modèle owlghost_green/owlspirit_smoke.blp dans l'addon DBCS_model_viewer
	--ajout du modèle owlghost_green/plasmapartibaseglow3.blp dans l'addon DBCS_model_viewer
	--ajout du modèle ragnaros2/ragnaros2_skin01_b.blp dans l'addon DBCS_model_viewer
	--ajout du modèle ragnaros2/ragnaros2_skin01_c.blp dans l'addon DBCS_model_viewer
	--ajout du modèle scaleddrakemount/drakeskinscaled_04.blp dans l'addon DBCS_model_viewer
	--ajout du modèle scaleddrakemount/scaleddrakemount.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle shaman_thrall/shaman_thrall3.blp dans l'addon DBCS_model_viewer
	--ajout du modèle wingedlionpet/wingedlionpet.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle wingedlionpet/wingedlionpet01.blp dans l'addon DBCS_model_viewer
	--ajout du modèle wingedlionpet/wingedlionpet01_glow.blp dans l'addon DBCS_model_viewer
	--ajout du modèle wingedlionpet/wingedlionpet02.blp dans l'addon DBCS_model_viewer
	--ajout du modèle wingedlionpet/wingedlionpet02_glow.blp dans l'addon DBCS_model_viewer

--	version 00.00.20 du 20110503
	--maj du toc pour 4.1
	--ajout boundearthelemental/unboundearthelementallord.blp
	--ajout boundearthelemental/unboundearthelementallord.m2
	--ajout boundearthelemental/unboundearthelementallordmetal.blp
	--ajout boundfireelemental/unboundfireelementallord.m2
	--ajout boundfireelemental/unboundfireelementallordskinyellow.blp
	--ajout catapultball/catapultball01_creature.m2
	--ajout druidtreeform/butterfly_anim_temp.blp
	--ajout druidtreeform/butterfly_anim_temp2.blp
	--ajout druidtreeform/circle_b.blp
	--ajout druidtreeform/star5b.blp
	--ajout fandralfirecat/fandralfirecat.m2
	--ajout fandralfirecat/fandralfirecatarmorred_2.blp
	--ajout fandralfirecat/fandralfirecatflamered_3.blp
	--ajout fandralfirecat/fandralfirecatred_1.blp
	--ajout firehawk/firehawk.m2
	--ajout firehawk/firehawk_bodyflamegreen.blp
	--ajout firehawk/firehawk_bodyflamepurple.blp
	--ajout firehawk/firehawk_bodyflamered.blp
	--ajout firehawk/firehawk_noarmor.m2
	--ajout firehawk/firehawk_noarmor_bodyflamepurple.blp
	--ajout firehawk/firehawk_noarmorgreen.blp
	--ajout firehawk/firehawk_noarmorpurple.blp
	--ajout firehawk/firehawk_noarmorred.blp
	--ajout firehawk/firehawk_wingflamegreen.blp
	--ajout firehawk/firehawk_wingflamepurple.blp
	--ajout firehawk/firehawk_wingflamered.blp
	--ajout firehawk/firehawkgreen.blp
	--ajout firehawk/firehawkpurple.blp
	--ajout firehawk/firehawkred.blp
	--ajout firehawk/t_vfx_borderfeathers.blp
	--ajout firespiderboss/firespiderboss.m2
	--ajout frostsabre/sabrecub.m2
	--ajout goblinfemalekid/goblinfemalekid.m2
	--ajout goblinfemalekid/goblinkidsfemaleskin01.blp
	--ajout goblinmalekid/goblinmalekid.m2
	--ajout goblinmalekid/goblinmaleskinkid_01.blp
	--ajout hellhound/hellhound.m2
	--ajout hellhound/hellhoundblue.blp
	--ajout hellhound/hellhoundfireblue.blp
	--ajout hellhound/hellhoundfiregreen.blp
	--ajout hellhound/hellhoundfirered.blp
	--ajout hellhound/hellhoundgreen.blp
	--ajout hellhound/hellhoundorange.blp
	--ajout hellhound/hellhoundred.blp
	--ajout kodobeast/kodobeastpack.m2
	--ajout kodobeast/kodobeasttame.m2
	--ajout lavaworm/lavaworm_03.m2
	--ajout magmagiant/lordanthricyst_01.blp
	--ajout magmagiant/lordanthricyst_02.blp
	--ajout magmagiant/magmagiant.m2
	--ajout netherdrakonidboss/karshsteelbender.blp
	--ajout ogremage02/ogremage02skinruneglowtga.blp
	--ajout overfiend/overfiend.m2
	--ajout overfiend/overfiend_glow.blp
	--ajout overfiend/overfiend_blue.blp
	--ajout overfiend/overfiend_green.blp
	--ajout overfiend/overfiend_orange.blp
	--ajout overfiend/overfiend_purple.blp
	--ajout pyrogryph/pyrogrypharmor.blp
	--ajout pyrogryph/pyrogryphskin.blp
	--ajout pyrogryph/pyrogryphwing.blp
	--ajout ragnaros2/ragnaros2.m2
	--ajout ragnaros2/ragnaros2_skin01.blp
	--ajout ragnaros2/ragnaros2_skin01_glow.blp
	--ajout ragnaros2/ragnaros2_skin02.blp
	--ajout ragnaros2/ragnaros2_skin02_glow.blp
	--ajout raptor/scaledraptorpet.blp
	--ajout raptor/scaledraptorpetunscarred.blp
	--ajout ridingraptor/ridingraptorskintrexskinred.blp
	--ajout salamanderhunter/salamanderhunter.m2
	--ajout salamanderhunter/salamanderhunterarmorfire.blp
	--ajout salamanderhunter/salamanderhunterarmorglow.blp
	--ajout salamanderhunter/salamanderhunterarmorgreen.blp
	--ajout salamanderhunter/salamanderhunterarmorgrey.blp
	--ajout salamanderhunter/salamanderhunterarmorpale.blp
	--ajout salamanderhunter/salamanderhunterbodyfire.blp
	--ajout salamanderhunter/salamanderhunterbodygreen.blp
	--ajout salamanderhunter/salamanderhunterbodygrey.blp
	--ajout salamanderhunter/salamanderhunterbodypale.blp
	--ajout salamanderhunter/salamanderhunterflagfire.blp
	--ajout salamanderhunter/salamanderhunterflagglow.blp
	--ajout salamanderhunter/salamanderhunterflaggreen.blp
	--ajout salamanderhunter/salamanderhunterflaggrey.blp
	--ajout salamanderhunter/salamanderhunterflagpale.blp
	--ajout wendigo_02/orbreflectbright_blue.blp
	--ajout wendigo_02/wendigo_02.m2
	--ajout wendigo_02/wendigo_02arctic.blp
	--ajout wendigo_02/wendigo_02darkblue.blp
	--ajout wendigo_02/wendigo_02darkbrown.blp
	--ajout wendigo_02/wendigo_02tan.blp
	--ajout wingedlionmount/wingedlionmount.m2
	--ajout wingedlionmount/wingedlionmountskin01 copy.blp
	--ajout wingedlionmount/wingedlionmountskin01.blp
	--ajout wingedlionmount/wingedlionmountskin01_glow.blp
	--ajout wingedlionmount/wingedlionmountskin02 copy.blp
	--ajout wingedlionmount/wingedlionmountskin02.blp
	--ajout worgenfemalekid/worgenfemalekid.m2
	--ajout worgenfemalekid/worgenfemalekidskin.blp
	--ajout worgenmalekid/humanmalekidskin.blp
	--ajout worgenmalekid/worgenmalekid.m2

----------------
	--ajout du modèle darkphoenixpet@darkphoenixpet/darkphoenixpet_spectral.m2 dans l'addon DBCS_model_viewer

	--ajout du modèle hordescorpionmount/hordescorpion.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle dragonwhelpelementium/dragonwhelpelementium.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle mage_flameorb/mage_flameorb_01.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle mage_flameorb/mage_flameorb_02.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle pygmy/sandpygmy.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle ridinghorse/ridinghorsespectral.m2 dans l'addon DBCS_model_viewer
	--ajout du modèle slime/slime_flame.m2 dans l'addon DBCS_model_viewer
----------------

--	version 00.00.19 du 20110419
	--ajout de l'appel à l'API SetDisplayInfo qui permet de montrer tous les skins dans tous les coloris possibles
	--ajout des bouton Model et Player, qui permettent de voir toutes les animations d'un skin ou tous ses coloris

--	version 00.00.18 du 20101029
	--ajout alliancelionmount
	--ajout ammunae
	--ajout ancientseaturtle
	--ajout ancientseaturtlefire
	--ajout armadillo
	--ajout avengingangel
	--ajout boneguardrock
	--ajout bouldergiant
	--ajout boundairelemental
	--ajout boundearthelemental
	--ajout boundfireelemental
	--ajout boundwaterelemental
	--ajout bubble_creature
	--ajout bushchicken
	--ajout camel
	--ajout cataclysmcrocodile
	--ajout cenarius
	--ajout chimerabeast
	--ajout chogall
	--ajout crawlinghandpet
	--ajout darkphoenix
	--ajout deathwing
	--ajout deathwinghuman
	--ajout deepholmgolem
	--ajout deepseacrab
	--ajout deepseaturtle
	--ajout djinn
	--ajout dragonatramedes
	--ajout dragondeepholm
	--ajout dragonman
	--ajout dragonmanhulk
	--ajout dragonnefarianzombified
	--ajout dragonsinestra
	--ajout dragonskywall
	--ajout	dragonspawn/dragonspawntwilight
	--ajout dragonspawn/dragonspawntwilightarmored
	--ajout dragonspawn/dragonspawntwilightcaster
	--ajout dragonspawn/dragonspawntwilightoverlord
	--ajout druidbeartroll
	--ajout druidbearworgen
	--ajout druidcattroll
	--ajout druidcatworgen
	--ajout earthen_onager_vehicle
	--ajout earthendwarf/earthendwarf_low
	--ajout ettin
	--ajout facelessgeneral/facelessgeneral1_red.blp
	--ajout facelessgeneral/facelessgeneral2_red.blp
	--ajout facelessmount
	--ajout facelessoneaquatic
	--ajout facelessonecaster
	--ajout felhorse/mountedknighthorseblack.blp
	--ajout felorcdire/felorcdireskingreen.blp
	--ajout felorcdire/felorcdireskingreen02.blp
	--ajout felorcdire/felorcdireskingreen03.blp
	--ajout felreaver/minifelreaver.m2
	--ajout flyingbomber/flyingbomber_02closedcanopy.m2
	--ajout flyingcarpetmount/flyingcarpetcataclysm.blp
	--ajout geode
	--ajout giantremora
	--ajout gilgoblin
	--ajout gilneasstagecoach
	--ajout goblin/goblinshredder_low.m2
	--ajout goblin_riverboat_creature
	--ajout goblinhotairballoonvehicle
	--ajout goblinhotrod
	--ajout goblinrocket
	--ajout goblinshreddermount/goblinshreddermount_low.m2
	--ajout goblintrike
	--ajout golemdwarven
	--ajout greaterslime
	--ajout grouper
	--ajout gryphon/gryphon_armored_vehicle.m2
	--ajout gryphonpet/gryphonpetgeneric.m2
	--ajout hobgoblin
	--ajout hordecaravan
	--ajout invisiblestalker/invisiblestalker_followterrain.m2
	--ajout isiset
	--ajout karshsteelbendermolten
	--ajout kodobeast/ridingkotobeastsunwalker
	--ajout kodobeast/ridingkotobeastsunwalkerelite
	--ajout krakken/krakkennofx.m2
	--ajout ladynazjar
	--ajout lanternpet
	--ajout lavaworm
	--ajout leviathan
	--ajout lostisles_carnivorousplant
	--ajout malfurionstormrage
	--ajout mastiff
	--ajout mechanicalrabbit
	--ajout mercilessone
	--ajout mistfox
	--ajout monkey
	--ajout monstrouseel
	--ajout murloc/murlocdeepsea.m2
	--ajout naga
	--ajout neptulon
	--ajout onyxiaundead
	--ajout pufferfish
	--ajout pygmy
	--ajout questobjects/blackrockv2_shieldgong_01.m2
	--ajout questobjects/blackrockv2_shieldgong_02.m2
	--ajout questobjects/blackrockv2_shieldgong_03.m2
	--ajout questobjects/blackrockv2_shieldgong_04.m2
	--ajout questobjects/blackrockv2_shieldgong_05.m2
	--ajout questobjects/blackrockv2_shieldgong_06.m2
	--ajout questobjects/blackrockv2_shieldgong_07.m2
	--ajout questobjects/blackrockv2_shieldgong_08.m2
	--ajout rajah
	--ajout raven
	--ajout ridingelekk/draeneipaladinelekk.m2
	--ajout ridingelekk/paladinelekkelite.m2
	--ajout ringworm
	--ajout romogg
	--ajout seagull
	--ajout seahorse
	--ajout seasnake
	--ajout setesh
	--ajout shalespider
	--ajout shaman_thrall
	--ajout silithidscarab/uldumscarabskinblue.blp
	--ajout silithidscarab/uldumscarabskingreen.blp
	--ajout silithidscarab/uldumscarabskinpurple.blp
	--ajout silithidscarab/uldumscarabskinred.blp
	--ajout silithidscarab/uldumscarabskinteal.blp
	--ajout silithidscarab/uldumscarabskinyellow.blp
	--ajout skeletalraptor
	--ajout snail
	--ajout spells/eyeofkilrog_blue.m2
	--ajout spells/goblin_shamantotem_01.blp
	--ajout spells/goblin_shamantotem_01_blue.blp
	--ajout spells/goblin_shamantotem_01_earth.blp
	--ajout spells/goblin_shamantotem_01_fire.blp
	--ajout spells/goblinshamantotem_air.m2
	--ajout spells/goblinshamantotem_earth.m2
	--ajout spells/goblinshamantotem_fire.m2
	--ajout spells/goblinshamantotem_water.m2
	--ajout stingray
	--ajout tentacle
	--ajout threshershark
	--ajout tolbaradflameleviathan
	--ajout tolvir
	--ajout toothedshark
	--ajout toothlessshark
	--ajout tree/ashenvalefernsalpha copy.blp
	--ajout tree/ashenvaletreefalling01_invisible.m2
	--ajout troglodyte/deepearthtrogggreen.blp
	--ajout troglodyte/deepearthtrogggrey.blp
	--ajout troglodyte/deepearthtroggpurple.blp
	--ajout troglodyte/deepearthtroggred.blp
	--ajout troglodyte/deepearthtroggyellow.blp
	--ajout troll/cavecrystaltroll03.blp
	--ajout troll/shit.blp
	--ajout twilightascendantair
	--ajout twilightascendantearth
	--ajout twilightascendantwater
	--ajout twilightshammer_dragonegg
	--ajout twillightascendantfire
	--ajout uldumwatcher
	--ajout unboundwaterelementalmercury
	--ajout watcher
	--ajout waterelemental/waterelemental_nosplash.m2
	--ajout waterelementalmercury
	--ajout whaleshark
	--ajout wyvernpet/wyvernpetgeneric.m2
	--ajout wyvernpet/wyvernpetgeneric_blue.blp
	--ajout wyvernpet/wyvernpetgeneric_red.blp
	--ajout wyvernpet/wyvernpetgeneric_yellow.blp
	--ajout yoggsaron/cataclysm_tentacle.m2
	--ajout yoggsaron/yoggsaronbodyskintentaclevine.blp
	--ajout ysera

-- version 00.00.17 du 2010
	--ajout du modèle T_robot

-- version 00.00.16 du 20100329
	--amélioration de la visualisation du skin de certains mobs ds dbcs_model_viewer, maj de la créature servant à initialiser les tailles
	--ajout des skins suivants ds DBCS_model_viewer
	--	creature/celestialdragonwyrm/celestialdragonwyrm.m2
	--	creature/celestialhorse/celestialhorse.m2
	--	creature/clockworkgiant/clockworkgiantpet.m2
	--	creature/hippogryph/burnthippogryph.m2
	--	creature/rocketmount2/rocketmount2.m2
	--	creature/woolyrhino/woolyrhinomount.m2

-- version 00.00.15 du 20100313
	--redimensionnement de certains modèles

-- version 00.00.14 du 20100204
	--ajout de modèles dont invincible, la monture d'arthas, wingedhorse et wingedhorse_nonflying ( wingedhorse y était déjà )
	--redimensionnement de certains modèles

-- version 00.00.13 du 20091210
	--maj du .toc pour wow 3.3
	--redimensionnement de certains modèles

-- version 00.00.12 du 20091204
	--ajout de modèles pour wow 3.3

-- version 00.00.11 du 20091031
	-- modif pour me permettre d'affecter un blp ( couleur ) à un PNJ/créature
	-- petites modif ds la liste des modèles et blp

-- version 00.00.10 du 20090831
	-- maj du .toc pour wow 3.2
	-- ajout des modèles de wow 3.2

-- version 00.00.09 du 20090501
	-- maj du .toc pour wow 3.1
	-- ajout des modèles de wow 3.1

-- version 00.00.08 du 20090305

-- version 00.00.07 du 20081222
	-- petite modif pour permetre à dbcs de revalider la fonction ctrl + alt + click sur les liens d'objets etc

-- version 00.00.06 du 20081221
	-- grosse amélioration de l'addon DBCS_model_viewer pour voir les skin des mobs et pnjs colorés
	-- possibilité ds l'addon DBCS_model_viewer de voir tous les mobs et pnjs déjà rencontrés depuis le dernier crash wow/pc ou gros patch wow

-- version 00.00.05 du 20081020
	-- maj pour wow 3.0 et wotlk
	-- ajout de pas mal de creatures

-- version 00.00.04 du 20080416
	-- 698 modèles
	--	113	=			dieu faucon de zul'aman	( jan'alai )

-- version 00.00.03 du 20080329
	-- amélioration de l'affichage du modèle, parfois, on avait la vue par au dessus au lieu de la vue de face, réglé
	-- ajout des modèles de wow 2.4 ( 697 modèles, now )
	--	52	=			brutallus
	--	115	=			dragon kalecgos
	--	178	-	181	=	elfe gangrené
	--	199	=			fire dancer
	--	218	=			ahune	( lord du froid )
	--	256	=			pet gorille ( pas pet de chasseur )
	--	340	=			illidan
	--	351	=			kael'thas broken
	--	352	=			kalecgos ( humain )
	--	357	=			kil'jaeden
	--	446	=			nian ( ? )
	--	461	=			orca
	--	500	=			raccoon
	--	528	=			rocketmount

-- version 00.00.02 du 20080207
	-- ajout de la cible en cours à droite, et possibilité de voir son modèle et blp par le bouton cible

--/script CharacterModelFrame:SetModel("creature/frostwyrmpet/frostwyrmpet.m2");
--/script CharacterModelFrame:SetModel("creature/dragon/onyxiamount.m2");
--/script CharacterModelFrame:SetModel("creature/dragonwhelp/dragonwhelponyxia.m2");
--/script CharacterModelFrame:SetModel("creature/babylich/babylich.m2");
--/script CharacterModelFrame:SetModel("creature/wingedhorse/wingedhorse.m2");
--/script CharacterModelFrame:SetModel("creature/seahorse/seahorse_baby.m2");
--/script i=0;
--/script i=i+1;CharacterModelFrame:SetCreature(i);
--/script CharacterModelFrame:SetCreature(40279);
--/script i=i+1;CharacterModelFrame:SetDisplayInfo(i);
--/script i=i+1;DBCS_Model_Viewer_DressUpFrameModel2:SetDisplayInfo(i);
--/script i=i+1;DBCS_Model_Viewer_DressUpFrameModel:SetDisplayInfo(i);
--/script DBCS_Model_Viewer_DressUpFrameModel:Show();
--/script DBCS_Model_Viewer_DressUpFrameModel:Hide();
--/script DBCS_Model_Viewer_DressUpFrameModel2:Show();
--/script DBCS_Model_Viewer_DressUpFrameModel2:Hide();
--ouvrez votre fenetre personnage et tapez la commande : 
--/script CharacterModelFrame:SetDisplayInfo(40279); -- petit dieu jaune
--/script CharacterModelFrame:SetDisplayInfo(38359); -- bébé lion volant
--/script CharacterModelFrame:SetDisplayInfo(38803); -- murloc diablo
--/script CharacterModelFrame:SetDisplayInfo(38614); -- mascotte tarecgosa
--/script CharacterModelFrame:SetDisplayInfo(38242); -- fire hawk mount
--/script CharacterModelFrame:SetDisplayInfo(38260); -- lion ailé
--/script CharacterModelFrame:SetDisplayInfo(37875); -- ragnaros avec des jambes
--/script CharacterModelFrame:SetDisplayInfo(37541); -- bébé ragnaros
--/script CharacterModelFrame:SetDisplayInfo(17890); -- monture phoenix
--vous désirez voir le pet starcraft 2 ? (ouvrez votre fenetre cabine d'essayage et tapez la commande : /script DressUpModel:SetModel("creature/t_robot/t_robot.m2");
--vous désirez voir le cheval ailé invincible, la monture d'arthas ? ( qui sera bientot lootable ), ouvrez votre fenetre personnage équipement et tapez la commande : /script CharacterModelFrame:SetModel("creature/wingedhorse/wingedhorse.m2");
--vous désirez voir le cheval ailé invincible, la monture d'arthas ? ( qui sera bientot lootable ), ouvrez votre fenetre familiers/montures et tapez la commande : /script CompanionModelFrame:SetModel("creature/wingedhorse/wingedhorse.m2");
--vous désirez voir le cheval ailé invincible, la monture d'arthas ? (ouvrez votre fenetre cabine d'essayage et tapez la commande : /script DressUpModel:SetModel("creature/wingedhorse/wingedhorse.m2");
--vous désirez voir le nouveau pet dragon céleste ? , ouvrez votre fenetre cabine d'essayage et tapez la commande : /script DressUpModel:SetModel("creature/celestialdragonwyrm/celestialdragonwyrm.m2");
--vous désirez voir la nouvelle monture cheval céleste ? , ouvrez votre fenetre cabine d'essayage et tapez la commande : /script DressUpModel:SetModel("creature/celestialhorse/celestialhorse.m2");
--vous désirez voir le nouveau pet déconstructeur ? , ouvrez votre fenetre cabine d'essayage et tapez la commande : /script DressUpModel:SetModel("creature/clockworkgiant/clockworkgiantpet.m2");
--vous désirez voir la nouvelle monture hyppogriffe enflammé ? , ouvrez votre fenetre cabine d'essayage et tapez la commande : /script DressUpModel:SetModel("creature/hippogryph/burnthippogryph.m2");
--vous désirez voir la nouvelle monture fusée à 2 places ? , ouvrez votre fenetre cabine d'essayage et tapez la commande : /script DressUpModel:SetModel("creature/rocketmount2/rocketmount2.m2");
--vous désirez voir la nouvelle monture rhyno ? , ouvrez votre fenetre cabine d'essayage et tapez la commande : /script DressUpModel:SetModel("creature/woolyrhino/woolyrhinomount.m2");
--vous désirez voir le cheval ailé 
--/script DEFAULT_CHAT_FRAME:AddMessage(CMS_GetItemLink("@@Invincible@-3@72286@@"));
--, la monture d'arthas ? ouvrez votre cabine d'essayage et tapez la commande : /script DressUpModel:SetModel("creature/wingedhorse/wingedhorse.m2")
--/script DEFAULT_CHAT_FRAME:AddMessage(CMS_GetItemLink("@@Invincible@-3@72286@@"));
--/script DEFAULT_CHAT_FRAME:AddMessage(CMS_GetItemLink("@@Reines d'Invincible@-5@4625:0180000000328C9D:1:12:32:10:4294967295:4294967295:4294967295:4294967295@@"));
--/script DEFAULT_CHAT_FRAME:AddMessage(CMS_GetItemLink("@@Reines d'Invincible@-5@4625:01800000006C73ED:1:99:99:99:4294967295:4294967295:4294967295:4294967295@@"));
--/script CharacterModelFrame:SetCreature(113)
--/script CharacterModelFrame:SetCreature(190)
--/script CharacterModelFrame:SetCreature(23740)
--/script CharacterModelFrame:SetCreature(24228)
--/script CharacterModelFrame:SetCreature(23953)
--/script CharacterModelFrame:SetCreature(24765)
--/script CharacterModelFrame:SetCreature(25762)
--/script CharacterModelFrame:SetCreature(25791)
--/script CharacterModelFrame:SetCreature(26403)
--/script CharacterModelFrame:SetCreature(28182)
--/script CharacterModelFrame:SetCreature(29875)
--/script CharacterModelFrame:SetCreature(30243)
--/script CharacterModelFrame:SetCreature(30272)
--/script CharacterModelFrame:SetCreature(31754)
--/script CharacterModelFrame:SetCreature(32422)
--/script CharacterModelFrame:SetSequence(4);
--/script DEFAULT_CHAT_FRAME:AddMessage(CharacterModelFrame:GetModel());
--/script DBCS_a_ID = DBCS_a_ID + 1;DEFAULT_CHAT_FRAME:AddMessage(DBCS_a_ID);CompanionModelFrame:SetCreature(DBCS_a_ID);DEFAULT_CHAT_FRAME:AddMessage(CompanionModelFrame:GetModel());
--/script DBCS_a_ID = DBCS_a_ID + 1;DEFAULT_CHAT_FRAME:AddMessage(DBCS_a_ID);CharacterModelFrame:SetCreature(DBCS_a_ID);DEFAULT_CHAT_FRAME:AddMessage(CharacterModelFrame:GetModel());
--/script DBCS_a_ID = DBCS_a_ID - 1;CharacterModelFrame:SetCreature(10782);DEFAULT_CHAT_FRAME:AddMessage(DBCS_a_ID);CharacterModelFrame:SetCreature(DBCS_a_ID);DEFAULT_CHAT_FRAME:AddMessage(CharacterModelFrame:GetModel());
--/script DEFAULT_CHAT_FRAME:AddMessage(DBCS_Model_Viewer_a_ID);

--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:SetRotation(0.5);
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:SetSequenceTime(5,5);
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:SetSequenceTime(5,50);
--/script DBCS_Model_Viewer_DressUpFrameModel:SetSequenceTime(9,1);

--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:Dress();
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:Undress();
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:TryOn("item:44006:0:0:0:0:0:0:0:0");

--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:SetCamera(1);
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:SetCamera(2);
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:SetCamera(3);

DBCS_MVW_position_tableau = {};
--[[
DBCS_MVW_position_tableau["creature/ancientoflore/ancientoflore.m2"] = { x = 3, y = 3, z = -15 };
DBCS_MVW_position_tableau["creature/ancientprotector/ancientprotector.m2"] = { x = 1.5, y = 0, z = -10 };
DBCS_MVW_position_tableau["creature/arcanegolem/arcanegolem.m2"] = { x = .4, y = -1.4, z = -3 };
DBCS_MVW_position_tableau["creature/banshee/banshee.m2"] = { x = .8, y = 3.4, z = 0 };
DBCS_MVW_position_tableau["creature/basilisk/basilisk.m2"] = { x = -1.7, y = 1, z = -10 };
DBCS_MVW_position_tableau["creature/bogbeast/bogbeast.m2"] = { x = .5, y = -1, z = -5 };
DBCS_MVW_position_tableau["creature/bonegolem/bonegolem.m2"] = { x = .5, y = .6, z = 0 };
DBCS_MVW_position_tableau["creature/basiliskoutland/basilisk_outland.m2"] = { x = -2, y = 1, z = -10 };
DBCS_MVW_position_tableau["creature/clawofkathune/clawofkathune.m2"] = { x = 0, y = 1.2, z = -1 };
DBCS_MVW_position_tableau["creature/cryptfiend/cryptfiend.m2"] = { x = -.2, y = -3.5, z = -7 };
DBCS_MVW_position_tableau["creature/demolishervehicle/demolishervehicle.m2"] = { x = -5, y = 30, z = -30 };
DBCS_MVW_position_tableau["creature/demonhunter/demonhunter.m2"] = { x = -.3, y = -2.8, z = 0 };
DBCS_MVW_position_tableau["creature/dragon/dragonazurgoz.m2"] = { x = 0, y = 60, z = -25 };
DBCS_MVW_position_tableau["creature/dragon/dragonnefarian.m2"] = { x = 0, y = 35, z = -30 };
DBCS_MVW_position_tableau["creature/dragon/northrenddragon.m2"] = { x = 0, y = 40, z = -35 };
DBCS_MVW_position_tableau["creature/dragonspawn/dragonspawn.m2"] = { x = 1, y = 0.15, z = -2.5 };
DBCS_MVW_position_tableau["creature/dragonspawn/dragonspawnarmored.m2"] = { x = 1, y = 0.15, z = -2.5 };
DBCS_MVW_position_tableau["creature/dragonspawn/dragonspawngreater.m2"] = { x = 0, y = 0, z = -5 };
DBCS_MVW_position_tableau["creature/dragonspawn/dragonspawnoverlord.m2"] = { x = 1, y = 0.5, z = -6 };
DBCS_MVW_position_tableau["creature/dragonspawncaster/dragonspawncaster.m2"] = { x = 1, y = 0, z = -3 };
DBCS_MVW_position_tableau["creature/drake/drake.m2"] = { x = 0, y = 0, z = -10 };
DBCS_MVW_position_tableau["creature/egg/eggcreature.m2"] = { x = 0, y = -4, z = 0 };
--DBCS_MVW_position_tableau["creature/elementalearth/elementalearth.m2"] = { x = -2, y = -30, z = 0 };
DBCS_MVW_position_tableau["creature/fish/fish.m2"] = { x = 2, y = .5, z = -10 };
DBCS_MVW_position_tableau["creature/flameleviathan/flameleviathan.m2"] = { x = -18, y = .5, z = -30 };
DBCS_MVW_position_tableau["creature/flameleviathan/flameleviathan_weapon_cannon.m2"] = { x = 3, y = 15, z = -15 };
DBCS_MVW_position_tableau["creature/fleshgolem/fleshgolem.m2"] = { x = 0, y = -1, z = -5 };
DBCS_MVW_position_tableau["creature/flyingbomber/flyingbomber_02.m2"] = { x = 0, y = -30, z = 10 };
DBCS_MVW_position_tableau["creature/flyingmachinecreature_vehicle/flyingmachinecreature_vehicle.m2"] = { x = 1, y = -20, z = 10 };
DBCS_MVW_position_tableau["creature/frostnymph/frostnymph.m2"] = { x = .4, y = .7, z = 0 };
DBCS_MVW_position_tableau["creature/frostwurm/frostwurm.m2"] = { x = 0, y = 30, z = -20 };
DBCS_MVW_position_tableau["creature/frostwurmnorthrend/frostwurmnorthrend.m2"] = { x = 0, y = 35, z = -30 };
DBCS_MVW_position_tableau["creature/ghost/ghost.m2"] = { x = 0, y = 3, z = 0 };
DBCS_MVW_position_tableau["creature/glaivethrowervehicle/glaivethrowervehicle.m2"] = { x = -6, y = -19, z = -5 };
DBCS_MVW_position_tableau["creature/gnomespidertank/gnomepounder.m2"] = { x = 0, y = 12, z = -5 };
DBCS_MVW_position_tableau["creature/goblin_cannon/goblin_cannon.m2"] = { x = -.8, y = -8, z = -8 };
DBCS_MVW_position_tableau["creature/goblinrocketcar/goblinrocketcar.m2"] = { x = -1, y = -5, z = -15 };
DBCS_MVW_position_tableau["creature/golemharvest/golemharvest.m2"] = { x = 0, y = 1.7, z = -2 };
DBCS_MVW_position_tableau["creature/golemharveststage2/golemharveststage2.m2"] = { x = .3, y = .8, z = -2 };
DBCS_MVW_position_tableau["creature/golemstone/golemstone.m2"] = { x = -.2, y = .2, z = -5 };
DBCS_MVW_position_tableau["creature/grell/grell.m2"] = { x = -.3, y = 1.5, z = 0 };
DBCS_MVW_position_tableau["creature/hakkar/hakkar.m2"] = { x = -4.5, y = 1, z = 25 };
DBCS_MVW_position_tableau["creature/horse/horse.m2"] = { x = -.5, y = .9, z = -1 };
DBCS_MVW_position_tableau["creature/infernal/infernal.m2"] = { x = .5, y = 8, z = 0 };
DBCS_MVW_position_tableau["creature/keeperofthegrove/keeperofthegrove.m2"] = { x = -2, y = .5, z = -3 };
DBCS_MVW_position_tableau["creature/kelthuzad/kelthuzad.m2"] = { x = 0, y = 4, z = -3 };
DBCS_MVW_position_tableau["creature/krakken/krakken.m2"] = { x = 0, y = 0, z = 60 };
DBCS_MVW_position_tableau["creature/larva/larva.m2"] = { x = -2, y = 4, z = -5 };
DBCS_MVW_position_tableau["creature/lessermanafiend/lessermanafiend.m2"] = { x = 0, y = 5.5, z = 0 };
DBCS_MVW_position_tableau["creature/lich/lich.m2"] = { x = 0, y = -1.5, z = -3 };
DBCS_MVW_position_tableau["creature/magnataur/magnataur.m2"] = { x = -.9, y = -3.4, z = -4 };
DBCS_MVW_position_tableau["creature/mammoth/mammoth.m2"] = { x = 2, y = 3, z = -10 };
DBCS_MVW_position_tableau["creature/ministerofdeath/ministerofdeath.m2"] = { x = 0, y = -2, z = -3 };
DBCS_MVW_position_tableau["creature/mountaingiant/mountaingiant.m2"] = { x = -1, y = 5, z = -15 };
DBCS_MVW_position_tableau["creature/monstrouseel/monstrouseel.m2"] = { x = 2, y = 10, z = 0 };
DBCS_MVW_position_tableau["creature/nerubianwarrior/nerubianwarrior.m2"] = { x = 0, y = -4, z = -8 };
DBCS_MVW_position_tableau["creature/object/archerytarget.m2"] = { x = 0, y = .5, z = -5 };
DBCS_MVW_position_tableau["creature/nerubianspiderling/nerubianspiderling.m2"] = { x = -.5, y = 1, z = -5 };
DBCS_MVW_position_tableau["creature/protodragon/protodragon_razorscale.m2"] = { x = 0, y = 0, z = 3 };
DBCS_MVW_position_tableau["creature/questobjets/creature_powercrystal.m2"] = { x = 0, y = 2, z = 0 };
DBCS_MVW_position_tableau["creature/rowboat_vehicle/rowboat01_vehicle.m2"] = { x = 0, y = -10, z = -20 };
DBCS_MVW_position_tableau["creature/rowboat_vehicle/darkshoreboat_vehicle.m2"] = { x = 1, y = 0, z = -30 };
DBCS_MVW_position_tableau["creature/salamander/salamandermale.m2"] = { x = 0, y = 0, z = -1 };
DBCS_MVW_position_tableau["creature/shade/shade.m2"] = { x = .5, y = 7, z = 0 };
DBCS_MVW_position_tableau["creature/siegevehicle/siegevehicle.m2"] = { x = -10, y = 25, z = -20 };
DBCS_MVW_position_tableau["creature/siegevehicle/siegevehicle_weapon_cannon.m2"] = { x = 0, y = 15, z = -8 };
DBCS_MVW_position_tableau["creature/silithid/silithid.m2"] = { x = 0, y = 0, z = -6 };
DBCS_MVW_position_tableau["creature/silithidwaspboss/silithidwaspboss.m2"] = { x = 0, y = -2, z = 15 };
DBCS_MVW_position_tableau["creature/slime/slime_flame.m2"] = { x = 0, y = 7, z = 0 };
DBCS_MVW_position_tableau["creature/skeleton/skeleton.m2"] = { x = 0, y = .5, z = 0 };
DBCS_MVW_position_tableau["creature/skeletonmage/skeletonmage.m2"] = { x = 0, y = .5, z = 0 };
DBCS_MVW_position_tableau["creature/spells/airelementaltotem.m2"] = { x = 0, y = .6, z = 0 };
DBCS_MVW_position_tableau["creature/spells/earthelementaltotem.m2"] = { x = 0, y = 1, z = 0 };
DBCS_MVW_position_tableau["creature/spells/fireelementaltotem.m2"] = { x = 0, y = .8, z = 0 };
DBCS_MVW_position_tableau["creature/spells/waterelementaltotem.m2"] = { x = 0, y = .7, z = 0 };
DBCS_MVW_position_tableau["creature/spirithealer/spirithealer.m2"] = { x = 0, y = 1, z = -8 };
DBCS_MVW_position_tableau["creature/stag/stag.m2"] = { x = -1.3, y = .5, z = -3 };
DBCS_MVW_position_tableau["creature/stonekeeper/stonekeeper.m2"] = { x = 0, y = 5, z = -10 };
DBCS_MVW_position_tableau["creature/threshadon/threshadon.m2"] = { x = 1.5, y = -2.5, z = -15 };
DBCS_MVW_position_tableau["creature/thunderlizard/thunderlizard.m2"] = { x = -3.5, y = -5, z = -30 };
DBCS_MVW_position_tableau["creature/tolvir/tolvir.m2"] = { x = 0, y = -.9, z = 5 };
DBCS_MVW_position_tableau["creature/twighlightdragon/twighlightdragon.m2"] = { x = 0, y = 25, z = -10 };
DBCS_MVW_position_tableau["creature/vrykulboat/transport_vrykul_mediumlight.m2"] = { x = 0, y = 200, z = -30 };
DBCS_MVW_position_tableau["creature/waterelemental/waterelemental.m2"] = { x = -.3, y = -1.5, z = -2 };
DBCS_MVW_position_tableau["creature/zigguratcrystal/zigguratcrystal.m2"] = { x = 10, y = -80, z = -80 };
DBCS_MVW_position_tableau["creature/zippelin/zippelin.m2"] = { x = 0, y = 1.5, z = 0 };
--]]

local Saved_DBCS_Model_Viewer_ChatFrame_OnHyperlinkShow = ChatFrame_OnHyperlinkShow;
function DBCS_Model_Viewer_ChatFrame_OnHyperlinkShow(self,link, text, button)

	Saved_DBCS_Model_Viewer_ChatFrame_OnHyperlinkShow(self,link,text,button);

if ( InCombatLockdown() ) then
	return nil;
end

local sGUID;
local sGUID_1_2;
local sGUID_3;
local sGUID_7_10;
local iGUID_7_10;
local smodel;
local snom;
local b2test;

	if ( IsControlKeyDown() and IsAltKeyDown() and strsub(link, 1, 4) == "unit" ) then
		if ( DBCS_Model_Viewer_numcreature and IsControlKeyDown() ) then
			if ( IsAltKeyDown() ) then
				for sGUID, snom in string.gmatch(link,"unit:(.+):(.+)") do
--if ( DBCS_debug > 1 ) then
--TraceFrame:AddMessage("sGUID = "..sGUID);
--end
					if ( strsub(sGUID,1,2) == "0x" ) then
						sGUID_1_2 = strsub(sGUID,3,4);
						if ( sGUID_1_2 == "00" or sGUID_1_2 == "01" ) then
							--TargetUnit(snom);
							--snom = UnitName("target");
							--if ( snom ) then
							--	ShowUIPanel(DBCS_Model_Viewer_DressUpFrame);
							--	DBCS_Model_Viewer_DressUpFrame_Target_Model:SetUnit("target");
							--	smodel = DBCS_Model_Viewer_DressUpFrame_Target_Model:GetModel();
							--	if ( type(smodel) == "string" ) then
							--		DBCS_Model_Viewer_DressUpFrame_Target_Nommob:SetText(snom.."\n"..smodel);
							--	else
							--		DBCS_Model_Viewer_DressUpFrame_Target_Nommob:SetText(snom);
							--	end
							--end
						else
							sGUID_3 = strsub(sGUID,5,5);
							if ( sGUID_3 == "3" or sGUID_3 == "5" ) then
								--if ( DBCS_Model_Viewer_wow_build > DBCS_Model_Viewer_wow_build_live ) then
									sGUID_7_10 = strsub(sGUID,6,10);
								--else
								--	sGUID_7_10 = strsub(sGUID,9,12);
								--end
								iGUID_7_10 = tonumber(sGUID_7_10,16);
								if ( DBCS_mobs_detail ) then
									DBcorps_init();
									PanelTemplates_SetTab(DBcorpsFrame, 11);
									DBcorps_ShowSubFrame(11);
									DBcorps_ListPNJ_Reset();
									_G["DBcorpsFrame_PNJFrame_Criteres_NumPNJ"]:SetText(""..iGUID_7_10);
									DBcorps_ListPNJ_Update();
								else
									b2test = false;
									if ( b2test == false ) then
										DBCS_Model_Viewer_DressUpFrameModel_cache:SetModel("spells/errorcube.m2");
										DBCS_Model_Viewer_DressUpFrameModel_cache:SetCreature(iGUID_7_10);
										smodel = DBCS_Model_Viewer_DressUpFrameModel_cache:GetModel();
										if ( smodel == "spells\\errorcube.m2" or smodel == "spells/errorcube.m2" ) then
										else
											b2test = true;
										end
									end
									--if ( b2test == false ) then
									--	DBCS_Model_Viewer_DressUpFrameModel_cache:SetModel("creature/invisiblestalker/invisiblestalker.m2");
									--	DBCS_Model_Viewer_DressUpFrameModel_cache:SetCreature(iGUID_7_10);
									--	smodel = DBCS_Model_Viewer_DressUpFrameModel_cache:GetModel();
									--	if ( smodel == "creature\\invisiblestalker\\invisiblestalker.m2" or smodel == "creature/invisiblestalker/invisiblestalker.m2" ) then
									--	else
									--		b2test = true;
									--	end
									--end
									--if ( b2test == false ) then
									--	DBCS_Model_Viewer_DressUpFrameModel_cache:SetModel("creature/kiljaeden/kiljaeden.m2");
									--	DBCS_Model_Viewer_DressUpFrameModel_cache:SetCreature(iGUID_7_10);
									--	smodel = DBCS_Model_Viewer_DressUpFrameModel_cache:GetModel();
									--	if ( smodel == "creature\\kiljaeden\\kiljaeden.m2" or smodel == "creature/kiljaeden/kiljaeden.m2" ) then
									--	else
									--		b2test = true;
									--	end
									--end
									if ( b2test == true ) then
										DBCS_Model_Viewer_numcreature = iGUID_7_10;
										ShowUIPanel(DBCS_Model_Viewer_DressUpFrame);
										DBCS_Model_Viewer_creature_afficher();
									end
								end
							end
						end
					end
				end
			end
		end
	else
		--Saved_DBCS_Model_Viewer_ChatFrame_OnHyperlinkShow(self,link,text,button);
	end

end
ChatFrame_OnHyperlinkShow = DBCS_Model_Viewer_ChatFrame_OnHyperlinkShow;

DBCS_Model_Viewer_a_ID = 0;

--/script DBCS_Model_Viewer_a_ID = 0;
--/script DBCS_Model_Viewer_a_ID = 1814;
--/script DBCS_Model_Viewer_a_ID = 9000;

--/script DBCS_Model_Viewer_a_ID = 17447;
--/script DBCS_Model_Viewer_a_ID = 18290;

--/script DBCS_Model_Viewer_a_ID = 23700;
--/script DBCS_Model_Viewer_a_ID = 24000;
--/script DBCS_Model_Viewer_a_ID = 24870;
--/script DBCS_Model_Viewer_a_ID = 26200;
--/script DBCS_Model_Viewer_a_ID = 27760;

--/script DBCS_Model_Viewer_setcreature_test(1000);
function DBCS_Model_Viewer_setcreature_test(inb)

local bsuite = true;
local smodele;

	for i = 1 , inb do
		if ( bsuite == true ) then
			DBCS_Model_Viewer_a_ID = DBCS_Model_Viewer_a_ID + 1;
			CharacterModelFrame:SetModel("character/human/humanmale/humanmale.m2");
			CharacterModelFrame:SetCreature(DBCS_Model_Viewer_a_ID);
			smodele = CharacterModelFrame:GetModel();
			if ( strlower(strsub(smodele,1,8)) == "creature" ) then
				bsuite = false;
				DBCS_Model_Viewer_DressUpFrame_Target_Model:SetCreature(DBCS_Model_Viewer_a_ID);
				TraceFrame:AddMessage("id = "..DBCS_Model_Viewer_a_ID.." et model = "..smodele);
				if ( DBmobs_Local ) then
					if ( DBmobs_Local[DBCS_Model_Viewer_a_ID] and DBmobs_Local[DBCS_Model_Viewer_a_ID][1] and DBmobs_Local[DBCS_Model_Viewer_a_ID][1][1] ) then
						TraceFrame:AddMessage("nom = "..DBmobs_Local[DBCS_Model_Viewer_a_ID][1][1]);
					end
				end
			end
		end
	end
	if ( bsuite == true ) then
		TraceFrame:AddMessage("id = "..DBCS_Model_Viewer_a_ID);
	end

end

local DBCS_Model_Viewer_model_rotation = 0.61;
--local DBCS_Model_Viewer_model_nommodele = "creature/illidan/illidan.m2";		--	340
--local DBCS_Model_Viewer_model_nommodele = "creature/kiljaeden/kiljaeden.m2";	--	357
local DBCS_Model_Viewer_model_nommodele = "creature/kaelthas_broken/kaelthasbroken.m2";	--	350
local DBCS_Model_Viewer_model_scale = 1000;
local DBCS_Model_Viewer_model_show = 0;
local DBCS_b_Model_Viewer_model_onupdate = false;
local DBCS_i_Model_Viewer_model_onupdate_time = 0;
local DBCS_i_Model_Viewer_model_onupdate_inummodel = 0;
local DBCS_i_Model_Viewer_model_onupdate_srep = nil;
local DBCS_i_Model_Viewer_model_onupdate_sm2 = nil;
local DBCS_i_Model_Viewer_model_onupdate_smodele = nil;

function DBCS_Model_Viewer_Model_OnShow()

	if ( DBCS_Model_Viewer_model_show == 0 ) then
		if ( DBCS_prog_serveur and DBCS_prog_serveur == 1 ) then
			DBCS_Model_Viewer_DressUpFrameModelBlp_enreg:Show();
			DBCS_Model_Viewer_DressUpFrame_Target_creature_blp_moins:Show();
			DBCS_Model_Viewer_DressUpFrame_Target_creature_blp_plus:Show();
		else
			DBCS_Model_Viewer_DressUpFrameModelBlp_enreg:Hide();
			DBCS_Model_Viewer_DressUpFrame_Target_creature_blp_moins:Hide();
			DBCS_Model_Viewer_DressUpFrame_Target_creature_blp_plus:Hide();
		end
		--DBCS_Model_Viewer_DressUpFrameModel:SetModel(DBCS_Model_Viewer_model_nommodele);
		--DBCS_MVW_affichermodele(351,true,nil);
		DBCS_MVW_affichermodele(DBCS_Model_Viewer_numorig,true,nil);
		DBCS_Model_Viewer_DressUpFrame_Target_Model:SetCamera(1);     -- Selects front view full body camera
		DBCS_Model_Viewer_DressUpFrame_Target_Model:SetLight(1, 0, 0, -0.707, -0.707, 0.7, 1.0, 1.0, 1.0, 0.8, 1.0, 1.0, 0.8);
		DBCS_Model_Viewer_DressUpFrame_Target_Model:SetModel("creature/kiljaeden/kiljaeden.m2");
		DBCS_Model_Viewer_DressUpFrame_Target_Model:SetFogNear(0);
		DBCS_Model_Viewer_DressUpFrame_Target_Model:SetFogFar(0);
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:SetFogFar(0);
		DBCS_Model_Viewer_model_show = 1;
	end

end

--/script DBCS_Model_Viewer_DressUpFrameModel:ClearModel();
--/script DBCS_Model_Viewer_DressUpFrameModel:SetCamera(1)
--/script DBCS_Model_Viewer_DressUpFrameModel:SetPosition(5,1,0)
function DBCS_Model_Viewer_Model_OnLoad()

	--DBCS_Model_Viewer_model_rotation = 0.61;
	--self:SetFacing(DBCS_Model_Viewer_model_rotation);
	DBCS_Model_Viewer_Model_Creature();
	--DBCS_Model_Viewer_DressUpFrameModel:ClearModel();
	DBCS_Model_Viewer_DressUpFrameModel:SetCamera(1);     -- Selects front view full body camera
	DBCS_Model_Viewer_DressUpFrameModel:SetLight(1, 0, 0, -0.707, -0.707, 0.7, 1.0, 1.0, 1.0, 0.8, 1.0, 1.0, 0.8);
	--DBCS_Model_Viewer_DressUpFrameModel:SetModel(DBCS_Model_Viewer_model_nommodele);
	DBCS_Model_Viewer_DressUpFrameModelAnimMoins:Hide();
	DBCS_Model_Viewer_DressUpFrameModelAnim:SetText("0");
	DBCS_Model_Viewer_DressUpFrameModelZoom:SetText(""..DBCS_Model_Viewer_model_scale);
	--DBCS_MVW_affichermodele(152,false,nil);
	--DBCS_Model_Viewer_DressUpFrameModel:ClearModel();
	--DBCS_Model_Viewer_DressUpFrameModel:SetModel("creature/eredar/archimonde.m2");

end

function DBCS_Model_Viewer_OnLoad(self)

	self:RegisterEvent("PLAYER_ENTERING_WORLD");
	self:RegisterEvent("PLAYER_TARGET_CHANGED");
	--self:RegisterEvent("VARIABLES_LOADED");

	--DBCS_Model_Viewer = {};

	SLASH_DBCS_MVW1 = "/dbcs_mvw";
	SlashCmdList["DBCS_MVW"] = function(msg)
		ShowUIPanel(DBCS_Model_Viewer_DressUpFrame);
	end
	
end

function DBCS_Model_Viewer_OnEvent(self,event,...)

local snommodele;
local sdate;
local snommob;
local snumregion;
local sGUID;
local sGUID_1_2;
local sGUID_3;
local sGUID_7_10;
local iGUID_7_10 = nil;
--local smodel;
local binummob;
local smessage;

	if ( event == "" ) then
	elseif ( ( event == "PLAYER_TARGET_CHANGED" ) and ( DBCS_b_Model_Viewer_model_onupdate == true ) ) then
		if ( InCombatLockdown() ) then
			return nil;
		elseif ( 1 == 0 ) then
			snommob = UnitName("target");
			sGUID = UnitGUID("target");
			if ( sGUID and snommob and ( not ( snommob == "Inconnu" ) ) ) then
--TraceFrame:AddMessage(sGUID);
				if ( strsub(sGUID,1,2) == "0x" ) then
					sGUID_1_2 = strsub(sGUID,3,4);
					if ( sGUID_1_2 == "00" or sGUID_1_2 == "01" ) then
					else
						sGUID_3 = strsub(sGUID,5,5);
						if ( sGUID_3 == "3" or sGUID_3 == "5" ) then
							--if ( DBCS_Model_Viewer_wow_build > DBCS_Model_Viewer_wow_build_live ) then
								sGUID_7_10 = strsub(sGUID,6,10);
							--else
							--	sGUID_7_10 = strsub(sGUID,9,12);
							--end
							iGUID_7_10 = tonumber(sGUID_7_10,16);
						end
					end
				end
			end
			if ( snommob ) then
--TraceFrame:AddMessage(snommob);
--TraceFrame:AddMessage(snommob.." = "..TargetFrameHealthBar:GetValue().." pdv.");
				DBCS_Model_Viewer_DressUpFrameModelZoom:SetText("1000");
				DBCS_Model_Viewer_Model_Zoomplay(DBCS_Model_Viewer_DressUpFrameModel);
				DBCS_Model_Viewer_Model_Zoomplay(DBCS_Model_Viewer_DressUpFrame_Target_Model);
				DBCS_Model_Viewer_DressUpFrameModel_cache:SetUnit("target");
				snommodele = DBCS_Model_Viewer_DressUpFrameModel_cache:GetModel();
				if ( type(snommodele) == "string" ) then
					snommodele, _ = string.gsub(snommodele,"\\","/");
				else
					snommodele = nil;
				end
				if ( iGUID_7_10 ) then
					DBCS_Model_Viewer_numcreature = iGUID_7_10;
					DBCS_Model_Viewer_creature_afficher();
					--DBCS_Model_Viewer_DressUpFrame_Target_Model:SetUnit("target");
				else
					DBCS_Model_Viewer_DressUpFrame_Target_Model:SetUnit("target");
					--smodel = DBCS_Model_Viewer_DressUpFrameModel_cache:GetModel();
					if ( type(snommodele) == "string" ) then
						DBCS_Model_Viewer_DressUpFrame_Target_Nommob:SetText(snommob.."\n"..snommodele);
					else
						DBCS_Model_Viewer_DressUpFrame_Target_Nommob:SetText(snommob);
					end
				end
				if ( DBMS ) then
					snumregion = DBCS_Region_liste_code_region_courante_new2();	--DBCS_numregionbyname(GetRealZoneText());
--TraceFrame:AddMessage(snumregion);
--TraceFrame:AddMessage(snommodele);
					sdate = DBCS_date();
--TraceFrame:AddMessage(sdate);
					if ( type(snommodele) == "string" ) then
						if ( DBCS_mobs_model and iGUID_7_10 ) then
							if ( DBCS_CMS_numcanalCMS and DBCS_CMS_numcanalCMS > 0 ) then
								binummob = DBCS_mobs_model_ajout(iGUID_7_10,snommodele,tonumber(sdate),snommodele);
								if ( binummob == true ) then
									smessage = "";
									smessage = smessage.."@ADBCS@";
									smessage = smessage.."ZZzz@";
									smessage = smessage.."MM01@";
									smessage = smessage..iGUID_7_10.."@";
									smessage = smessage..snommodele.."@";
									smessage = smessage..tonumber(sdate).."@";
									DBCS_SendChatMessage(smessage,"CHANNEL",self.language,DBCS_CMS_numcanalCMS);
if ( DBCS_debug and DBCS_debug > 1 ) then
TraceFrame:AddMessage("message cms depuis DBCS_model_viewer : "..smessage);
end
								end
							end
						else
							DBCS_MVW_envoi_modele(snommob,snumregion,snommodele,sdate);
						end
					end
				end
			end
		end
	elseif ( event == "PLAYER_ENTERING_WORLD" ) then
		DBCS_Model_Viewer_DressUpFrameModel_Player_OnClick();
		--DBCS_Model_Viewer_DressUpFrameModel:Hide();
		DBCS_MVW_Model2_Type_Tableau_Type_Init();
		DBCS_MVW_Model2_Type_DropDown_OnLoad();
		DBCS_MVW_Model2_Type_Tableau_Type_num = 2;
		UIDropDownMenu_SetSelectedValue(DBCS_Model_Viewer_DressUpFrameModel2_Type,DBCS_MVW_Model2_Type_Tableau_Type_num);
		DBCS_MVW_Model2_Type_Tableau_Rep_Init();
		UIDropDownMenu_SetSelectedValue(DBCS_Model_Viewer_DressUpFrameModel2_Type_alpha,1);
	end

end

function DBCS_MVW_afficher_model_target(snomblp)

local snommodele;
local ideb;
local ipos;
local stype;
local srep;
local sgenre;
local snom;
local bbon;
local inummodele;

	snommodele = DBCS_Model_Viewer_DressUpFrame_Target_Model:GetModel();
	
	if ( type(snommodele) == "string" ) then
	else
		return;
	end

	ideb = 1;
	snommodele = string.gsub(snommodele,"\\","/");
	ipos = strfind(snommodele,"/",ideb);
	if ( ipos ) then
		stype = strlower(strsub(snommodele,ideb,ipos-1));
		ideb = ipos + 1;
		ipos = strfind(snommodele,"/",ideb);
		if ( ipos ) then
			srep = strlower(strsub(snommodele,ideb,ipos-1));
			ideb = ipos + 1;
			if ( stype == "character" ) then
				ipos = strfind(snommodele,"/",ideb);
				if ( ipos ) then
					sgenre = strlower(strsub(snommodele,ideb,ipos-1));
					ideb = ipos + 1;
					ipos = strfind(snommodele,"m2",ideb);
					if ( ipos ) then
						snom = strlower(strsub(snommodele,ideb,ipos-2));
						bbon = true;
					end
				end
			elseif ( stype == "creature" ) then
				ipos = strfind(snommodele,"m2",ideb);
				if ( ipos ) then
					snom = strlower(strsub(snommodele,ideb,ipos-2));
					bbon = true;
				end
			end
		end
	end
	if ( bbon == true ) then
		if ( stype == "character" ) then
			--smodele = stype.."/"..srep.."/"..sgenre.."/"..snom..".m2";
		elseif ( stype == "creature" ) then
			inummodele = DBCS_MVW_recherche_nummodele(srep,snom);
			if ( inummodele ) then
				DBCS_MVW_affichermodele(inummodele,false,nil,snomblp);
			end
			--smodele = stype.."/"..srep.."/"..snom..".m2";
		end
	end

end

function DBCS_MVW_envoi_modele(snommob,snumregion,snommodele,sdate)

local tablo;
local stype = "";
local srep = "";
local sgenre = "";
local snom = "";
local ideb;
local ipos;
local bbon;
local smodele;
local smessage;
local idate;
local smodele2;

	if ( DBMS and DBMS[snommob] ) then
		if ( DBMS[snommob][snumregion] ) then
			bbon = false;
			tablo = DBMS[snommob][snumregion];
			ideb = 1;
			snommodele = string.gsub(snommodele,"\\","/");
			ipos = strfind(snommodele,"/",ideb);
			if ( ipos ) then
				stype = strlower(strsub(snommodele,ideb,ipos-1));
--TraceFrame:AddMessage("stype = "..stype);
				ideb = ipos + 1;
				ipos = strfind(snommodele,"/",ideb);
				if ( ipos ) then
					srep = strlower(strsub(snommodele,ideb,ipos-1));
--TraceFrame:AddMessage("srep = "..srep);
					ideb = ipos + 1;
					if ( stype == "character" ) then
						ipos = strfind(snommodele,"/",ideb);
						if ( ipos ) then
							sgenre = strlower(strsub(snommodele,ideb,ipos-1));
--TraceFrame:AddMessage("sgenre = "..sgenre);
							ideb = ipos + 1;
							ipos = strfind(snommodele,"m2",ideb);
							if ( ipos ) then
								snom = strlower(strsub(snommodele,ideb,ipos-2));
--TraceFrame:AddMessage("snom = "..snom);
								--ideb = ipos + 1;
								bbon = true;
							end
						end
					elseif ( stype == "creature" ) then
						ipos = strfind(snommodele,"m2",ideb);
						if ( ipos ) then
							snom = strlower(strsub(snommodele,ideb,ipos-2));
--TraceFrame:AddMessage("snom = "..snom);
							--ideb = ipos + 1;
							bbon = true;
						end
					end
				end
			end
			if ( bbon == true ) then
				if ( stype == "character" ) then
					--tablo[21] = srep;
					--tablo[22] = sgenre;
					--tablo[23] = snom;
					smodele = stype.."/"..srep.."/"..sgenre.."/"..snom..".m2";
				elseif ( stype == "creature" ) then
					--tablo[25] = srep;
					--tablo[26] = snom;
					smodele = stype.."/"..srep.."/"..snom..".m2";
				end
--TraceFrame:AddMessage("smodele = "..smodele);
				--DBCS_CMS_numcanalCMS
				--DBCS_SendChatMessage(message,"CHANNEL",self.language,DBCS_CMS_numcanalCMS);
				idate = tonumber(sdate);
				smodele2 = stype.."@"..srep.."@"..sgenre.."@"..snom..".m2@@";
--TraceFrame:AddMessage("smodele2 = "..smodele2);
				--if ( tablo[20] == nil or ( not ( tablo[20] == sdate ) ) ) then
				if ( tablo[28] == nil or tablo[28][smodele2] == nil or tablo[28][smodele2] < idate ) then
					if ( DBCS_CMS_numcanalCMS and DBCS_CMS_numcanalCMS > 0 ) then
						smessage = "";
						smessage = smessage.."@ADBCS@";
						smessage = smessage..DBCS_getlocale.."@";
						smessage = smessage.."MV01@";
						smessage = smessage..sdate.."@";
						smessage = smessage..snommob.."@";
						smessage = smessage..snumregion.."@";
						smessage = smessage..smodele.."@";
--TraceFrame:AddMessage("smessage = "..smessage);
						DBCS_SendChatMessage(smessage,"CHANNEL",self.language,DBCS_CMS_numcanalCMS);
					end
					DBmobs_MVW_enreg_modele(snommob,snumregion,smodele,sdate);
				end
				--tablo[20] = sdate;
				--DBMS[snommob][snumregion] = tablo;
			end
		end
	end

--			[20]	date du modèle
--			[21]	si character, rep du modèle
--			[22]	si character, genre du modèle
--			[23]	si character, nom du modèle
--			[24]	si character, blp du modèle
--			[25]	si creature, rep du modèle
--			[26]	si creature, nom du modèle
--			[27]	si creature, blp du modèle

end

function DBCS_MVW_envoi_modele_et_blp(snommob,snumregion,snommodele,snomblp,sdate)

local tablo;
local stype;
local srep;
local sgenre;
local snom;
local ideb;
local ipos;
local bbon;
local smodele;
local smessage;
local idate;
local smodele2;

	if ( DBMS and DBMS[snommob] ) then
		if ( DBMS[snommob][snumregion] ) then
			bbon = false;
			tablo = DBMS[snommob][snumregion];
			ideb = 1;
			snommodele = string.gsub(snommodele,"\\","/");
			ipos = strfind(snommodele,"/",ideb);
			if ( ipos ) then
				stype = strlower(strsub(snommodele,ideb,ipos-1));
				ideb = ipos + 1;
				ipos = strfind(snommodele,"/",ideb);
				if ( ipos ) then
					srep = strlower(strsub(snommodele,ideb,ipos-1));
					ideb = ipos + 1;
					if ( stype == "character" ) then
						ipos = strfind(snommodele,"/",ideb);
						if ( ipos ) then
							sgenre = strlower(strsub(snommodele,ideb,ipos-1));
							ideb = ipos + 1;
							ipos = strfind(snommodele,"m2",ideb);
							if ( ipos ) then
								snom = strlower(strsub(snommodele,ideb,ipos-2));
								bbon = true;
							end
						end
					elseif ( stype == "creature" ) then
						ipos = strfind(snommodele,"m2",ideb);
						if ( ipos ) then
							snom = strlower(strsub(snommodele,ideb,ipos-2));
							bbon = true;
						end
					end
				end
			end
			if ( bbon == true ) then
				if ( stype == "character" ) then
					smodele = stype.."/"..srep.."/"..sgenre.."/"..snom..".m2";
				elseif ( stype == "creature" ) then
					smodele = stype.."/"..srep.."/"..snom..".m2";
				end
				idate = tonumber(sdate);
				smodele2 = stype.."@"..srep.."@"..sgenre.."@"..snom..".m2@@";
				--if ( tablo[20] == nil or ( not ( tablo[20] == sdate ) ) ) then
				if ( tablo[28] == nil or tablo[28][smodele2] == nil or tablo[28][smodele2] < idate ) then
					if ( DBCS_CMS_numcanalCMS and DBCS_CMS_numcanalCMS > 0 ) then
						smessage = "";
						smessage = smessage.."@ADBCS@";
						smessage = smessage..DBCS_getlocale.."@";
						smessage = smessage.."MV02@";
						smessage = smessage..sdate.."@";
						smessage = smessage..snommob.."@";
						smessage = smessage..snumregion.."@";
						smessage = smessage..smodele.."@";
						smessage = smessage..snomblp.."@";
						DBCS_SendChatMessage(smessage,"CHANNEL",self.language,DBCS_CMS_numcanalCMS);
					end
					DBmobs_MVW_enreg_modele_et_blp(snommob,snumregion,smodele,snomblp,sdate);
				end
			end
		end
	end

--			[20]	date du modèle
--			[21]	si character, rep du modèle
--			[22]	si character, genre du modèle
--			[23]	si character, nom du modèle
--			[24]	si character, blp du modèle
--			[25]	si creature, rep du modèle
--			[26]	si creature, nom du modèle
--			[27]	si creature, blp du modèle

end

function DBCS_Model_Viewer_DressUpTexturePath()

	-- HACK
	local race, fileName = UnitRace("target");
	if ( not fileName ) then
		fileName = "Orc";
	else
		if ( strupper(fileName) == "GNOME" ) then
			fileName = "Dwarf";
		elseif ( strupper(fileName) == "TROLL" ) then
			fileName = "Orc";
		end
	end
	-- END HACK

	return "Interface\\DressUpFrame\\DressUpBackground-"..fileName;

end

function DBCS_Model_Viewer_SetDressUpBackground()

	local texture = DBCS_Model_Viewer_DressUpTexturePath();
	DBCS_Model_Viewer_DressUpFrameBackgroundTopLeft:SetTexture(texture..1);
	DBCS_Model_Viewer_DressUpFrameBackgroundTopRight:SetTexture(texture..2);
	DBCS_Model_Viewer_DressUpFrameBackgroundBotLeft:SetTexture(texture..3);
	DBCS_Model_Viewer_DressUpFrameBackgroundBotRight:SetTexture(texture..4);

end

function DBCS_Model_Viewer_Model_RotateLeft(model, rotationIncrement)

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

	if ( not rotationIncrement ) then
		rotationIncrement = 0.03;
	end
	DBCS_Model_Viewer_model_rotation = DBCS_Model_Viewer_model_rotation - rotationIncrement;
	model:SetFacing(DBCS_Model_Viewer_model_rotation);
	--DBCS_Model_Viewer_DressUpFrameModel2:SetFacing(DBCS_Model_Viewer_model_rotation);
	--DBCS_Model_Viewer_DressUpFrame_Target_Model:SetFacing(DBCS_Model_Viewer_model_rotation);
	DBCS_Model_Viewer_DressUpFrameModel2:SetRotation(DBCS_Model_Viewer_model_rotation);
	DBCS_Model_Viewer_DressUpFrame_Target_Model:SetRotation(DBCS_Model_Viewer_model_rotation);
	--DBCS_mobs_model_PlayerFrameModel_cache:SetFacing(DBCS_Model_Viewer_model_rotation);
	PlaySound("igInventoryRotateCharacter");

end

function DBCS_Model_Viewer_Model_RotateRight(model, rotationIncrement)

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

	if ( not rotationIncrement ) then
		rotationIncrement = 0.03;
	end
	DBCS_Model_Viewer_model_rotation = DBCS_Model_Viewer_model_rotation + rotationIncrement;
	model:SetFacing(DBCS_Model_Viewer_model_rotation);
	--DBCS_Model_Viewer_DressUpFrameModel2:SetFacing(DBCS_Model_Viewer_model_rotation);
	--DBCS_Model_Viewer_DressUpFrame_Target_Model:SetFacing(DBCS_Model_Viewer_model_rotation);
	DBCS_Model_Viewer_DressUpFrameModel2:SetRotation(DBCS_Model_Viewer_model_rotation);
	DBCS_Model_Viewer_DressUpFrame_Target_Model:SetRotation(DBCS_Model_Viewer_model_rotation);
	--DBCS_mobs_model_PlayerFrameModel_cache:SetFacing(DBCS_Model_Viewer_model_rotation);
	PlaySound("igInventoryRotateCharacter");

end

function DBCS_Model_Viewer_Model_OnUpdate(model, elapsed, rotationsPerSecond)

if ( InCombatLockdown() ) then
	return nil;
end

--TraceFrame:AddMessage("elapsed : "..elapsed);
	if ( DBCS_b_Model_Viewer_model_onupdate == false ) then
		if ( DBCS_i_Model_Viewer_model_onupdate_time == 0 ) then
			DBCS_i_Model_Viewer_model_onupdate_time = GetTime();
--TraceFrame:AddMessage("DBCS_i_Model_Viewer_model_onupdate_time = "..DBCS_i_Model_Viewer_model_onupdate_time);
		else
			if ( GetTime() - DBCS_i_Model_Viewer_model_onupdate_time > 1 ) then
--TraceFrame:AddMessage("GetTime() = "..GetTime());
				if ( model:IsShown() ) then
--TraceFrame:AddMessage("IsShown = true");
					--DBCS_MVW_affichermodele(339,false,nil);
					--DBCS_Model_Viewer_DressUpFrameModelModele_num:SetText(nummodel);
					DBCS_MVW_affichermodele(tonumber(DBCS_Model_Viewer_DressUpFrameModelModele_num:GetText()),true,nil);
					DBCS_b_Model_Viewer_model_onupdate = true;
					if ( DBCS_i_Model_Viewer_model_onupdate_inummodel > 0 ) then
						DBCS_MVW_affichermodele(DBCS_i_Model_Viewer_model_onupdate_inummodel,false,nil);
						DBCS_i_Model_Viewer_model_onupdate_inummodel = 0;
					elseif ( ( not ( DBCS_i_Model_Viewer_model_onupdate_srep == nil ) ) ) then
						DBCS_MVW_affichermodele_m2(DBCS_i_Model_Viewer_model_onupdate_srep,DBCS_i_Model_Viewer_model_onupdate_sm2,DBCS_i_Model_Viewer_model_onupdate_smodele,nil);
						DBCS_i_Model_Viewer_model_onupdate_srep = nil;
						DBCS_i_Model_Viewer_model_onupdate_sm2 = nil;
						DBCS_i_Model_Viewer_model_onupdate_smodele = nil;
					else
						--DBCS_MVW_affichermodele(340,false,nil);
						DBCS_MVW_affichermodele(DBCS_Model_Viewer_numorig,false,nil);
						--DBCS_Model_Viewer_DressUpFrame_Target_Model:SetModel("creature/kiljaeden/kiljaeden.m2");
					end
				end
			end
		end
	end
	if ( not rotationsPerSecond ) then
		rotationsPerSecond = ROTATIONS_PER_SECOND;
	end
	if ( _G["DBCS_Model_Viewer_DressUpFrameModelRotateLeftButton"]:GetButtonState() == "PUSHED" ) then
		DBCS_Model_Viewer_model_rotation = DBCS_Model_Viewer_model_rotation + (elapsed * 2 * PI * rotationsPerSecond);
		if ( DBCS_Model_Viewer_model_rotation < 0 ) then
			DBCS_Model_Viewer_model_rotation = DBCS_Model_Viewer_model_rotation + (2 * PI);
		end
		model:SetFacing(DBCS_Model_Viewer_model_rotation);
		--DBCS_Model_Viewer_DressUpFrameModel2:SetFacing(DBCS_Model_Viewer_model_rotation);
		--DBCS_Model_Viewer_DressUpFrame_Target_Model:SetFacing(DBCS_Model_Viewer_model_rotation);
		DBCS_Model_Viewer_DressUpFrameModel2:SetRotation(DBCS_Model_Viewer_model_rotation);
		DBCS_Model_Viewer_DressUpFrame_Target_Model:SetRotation(DBCS_Model_Viewer_model_rotation);
		--DBCS_mobs_model_PlayerFrameModel_cache:SetFacing(DBCS_Model_Viewer_model_rotation);
	end
	if ( _G["DBCS_Model_Viewer_DressUpFrameModelRotateRightButton"]:GetButtonState() == "PUSHED" ) then
		DBCS_Model_Viewer_model_rotation = DBCS_Model_Viewer_model_rotation - (elapsed * 2 * PI * rotationsPerSecond);
		if ( DBCS_Model_Viewer_model_rotation > (2 * PI) ) then
			DBCS_Model_Viewer_model_rotation = DBCS_Model_Viewer_model_rotation - (2 * PI);
		end
		model:SetFacing(DBCS_Model_Viewer_model_rotation);
		--DBCS_Model_Viewer_DressUpFrameModel2:SetFacing(DBCS_Model_Viewer_model_rotation);
		--DBCS_Model_Viewer_DressUpFrame_Target_Model:SetFacing(DBCS_Model_Viewer_model_rotation);
		DBCS_Model_Viewer_DressUpFrameModel2:SetRotation(DBCS_Model_Viewer_model_rotation);
		DBCS_Model_Viewer_DressUpFrame_Target_Model:SetRotation(DBCS_Model_Viewer_model_rotation);
		--DBCS_mobs_model_PlayerFrameModel_cache:SetFacing(DBCS_Model_Viewer_model_rotation);
	end
	
--TraceFrame:AddMessage("DBCS_Model_Viewer_model_rotation : "..DBCS_Model_Viewer_model_rotation);

end

function DBCS_Model_Viewer_Model_Zoomplay(model)

local si;
local i;

	si = DBCS_Model_Viewer_DressUpFrameModelZoom:GetText();
	if ( si == nil or si == "" ) then
		si = "1000";
	end
	i = tonumber(si);
	DBCS_Model_Viewer_DressUpFrameModelZoom:SetText(i);
	if ( i == 1 ) then
		DBCS_Model_Viewer_DressUpFrameModelZoomMoins:Hide();
	else
		DBCS_Model_Viewer_DressUpFrameModelZoomMoins:Show();
	end
	model:SetModelScale(i/1000);

end

function DBCS_Model_Viewer_Model_Zoomplus(model)

local si;
local i;

	si = DBCS_Model_Viewer_DressUpFrameModelZoom:GetText();
	if ( si == nil or si == "" ) then
		si = "1000";
	end
	i = tonumber(si);
	if ( i < 10 ) then
		i = i + 1;
	elseif ( i < 100 ) then
		i = i + 10;
	else
		i = i + 100;
	end
	DBCS_Model_Viewer_DressUpFrameModelZoom:SetText(i);
	DBCS_Model_Viewer_Model_Zoomplay(model);

end

function DBCS_Model_Viewer_Model_Zoommoins(model)

local si;
local i;

	si = DBCS_Model_Viewer_DressUpFrameModelZoom:GetText();
	if ( si == nil or si == "" ) then
		si = "1000";
	end
	i = tonumber(si);
	if ( i > 100 ) then
		i = i - 100;
	elseif ( i > 10 ) then
		i = i - 10;
	else
		i = i - 1;
	end
	DBCS_Model_Viewer_DressUpFrameModelZoom:SetText(i);
	DBCS_Model_Viewer_Model_Zoomplay(model);


end

function DBCS_Model_Viewer_Model_Animplus(model)

local si;
local i;

	si = DBCS_Model_Viewer_DressUpFrameModelAnim:GetText();
	if ( si == nil or si == "" ) then
		si = "0";
	end
	i = tonumber(si);
	i = i + 1;
	DBCS_Model_Viewer_DressUpFrameModelAnim:SetText(i);
	if ( i > 0 ) then
		DBCS_Model_Viewer_DressUpFrameModelAnimMoins:Show();
	end
	DBCS_Model_Viewer_Model_Animplay(model);

end

function DBCS_Model_Viewer_Model_Animplay(model)

local si;
local i;

	si = DBCS_Model_Viewer_DressUpFrameModelAnim:GetText();
	if ( si == nil or si == "" ) then
		si = "0";
	end
	i = tonumber(si);
	if ( i == 0 ) then
		DBCS_Model_Viewer_DressUpFrameModelAnimMoins:Hide();
	else
		DBCS_Model_Viewer_DressUpFrameModelAnimMoins:Show();
	end
	model:SetSequence(i);
	DBCS_Model_Viewer_DressUpFrame_Target_Model:SetSequence(i);

end

function DBCS_Model_Viewer_Model_Animmoins(model)

local si;
local i;

	si = DBCS_Model_Viewer_DressUpFrameModelAnim:GetText();
	if ( si == nil or si == "" ) then
		si = "1";
	end
	i = tonumber(si);
	i = i - 1;
	DBCS_Model_Viewer_DressUpFrameModelAnim:SetText(i);
	if ( i == 0 ) then
		DBCS_Model_Viewer_DressUpFrameModelAnimMoins:Hide();
	end
	DBCS_Model_Viewer_Model_Animplay(model);

end

--DBCS_Model_Viewer_ListeCreature
DBCS_MVW_tablo_creature_rep_bynom = {};
DBCS_MVW_tablo_creature_rep_nb = 0;
DBCS_MVW_tablo_creature_m2_bynum = {};
DBCS_MVW_tablo_creature_m2_nb = 0;
--/script DEFAULT_CHAT_FRAME:AddMessage(DBCS_MVW_tablo_creature_rep_nb)
--/script DEFAULT_CHAT_FRAME:AddMessage(DBCS_MVW_tablo_creature_m2_nb)

--/script DBCS_Model_Viewer_Model_Creature();
function DBCS_Model_Viewer_Model_Creature()

	local ideb;
	local ipos;
	local sligne;
	local ipos_barre;
	local srep;
	local irep;
	local ipos_blp;
	local sblp;
	local ipos_m2;
	local sm2;
	local i;
	
	ideb = 0;
	ipos = strfind(DBCS_Model_Viewer_ListeCreature,"@",ideb+1);
	while ( ipos ) do
		sligne = strsub(DBCS_Model_Viewer_ListeCreature,ideb,ipos-1);
		ipos_barre = strfind(sligne,"/");
		if ( ipos_barre ) then
			srep = strsub(sligne,1,ipos_barre-1);
			if ( DBCS_MVW_tablo_creature_rep_bynom[srep] ) then
				irep = DBCS_MVW_tablo_creature_rep_bynom[srep].nb;
			else
--TraceFrame:AddMessage("srep : "..srep);
				DBCS_MVW_tablo_creature_rep_nb = DBCS_MVW_tablo_creature_rep_nb + 1;
				irep = DBCS_MVW_tablo_creature_rep_nb;
				DBCS_MVW_tablo_creature_rep_bynom[srep] = {};
				DBCS_MVW_tablo_creature_rep_bynom[srep].nb = 0;
				DBCS_MVW_tablo_creature_rep_bynom[srep].blp = {};
			end
			sligne = strsub(sligne,ipos_barre+1);
			ipos_blp = nil;
			ipos_m2 = nil;
			ipos_blp = strfind(sligne,"%.blp");
			if ( ipos_blp ) then
				sblp = strsub(sligne,1,ipos_blp-1);
--TraceFrame:AddMessage("sblp : "..sblp);
				DBCS_MVW_tablo_creature_rep_bynom[srep].nb = DBCS_MVW_tablo_creature_rep_bynom[srep].nb + 1;
--TraceFrame:AddMessage("DBCS_MVW_tablo_creature_rep_bynom[srep].nb : "..DBCS_MVW_tablo_creature_rep_bynom[srep].nb);
				DBCS_MVW_tablo_creature_rep_bynom[srep].blp[DBCS_MVW_tablo_creature_rep_bynom[srep].nb] = sblp;
			else
				ipos_m2 = strfind(sligne,"%.m2");
				if ( ipos_m2 ) then
					sm2 = strsub(sligne,1,ipos_m2-1);
--TraceFrame:AddMessage("sm2 : "..sm2);
					DBCS_MVW_tablo_creature_m2_nb = DBCS_MVW_tablo_creature_m2_nb + 1;
--TraceFrame:AddMessage("DBCS_MVW_tablo_creature_m2_nb : "..DBCS_MVW_tablo_creature_m2_nb);
					DBCS_MVW_tablo_creature_m2_bynum[DBCS_MVW_tablo_creature_m2_nb] = {};
					DBCS_MVW_tablo_creature_m2_bynum[DBCS_MVW_tablo_creature_m2_nb].rep = srep;
					DBCS_MVW_tablo_creature_m2_bynum[DBCS_MVW_tablo_creature_m2_nb].m2 = sm2;
				end
			end
		else
			srep = sligne;
			if ( DBCS_MVW_tablo_creature_rep_bynom[srep] ) then
				irep = DBCS_MVW_tablo_creature_rep_bynom[srep].nb;
			else
--TraceFrame:AddMessage("srep : "..srep);
				DBCS_MVW_tablo_creature_rep_nb = DBCS_MVW_tablo_creature_rep_nb + 1;
				irep = DBCS_MVW_tablo_creature_rep_nb;
				DBCS_MVW_tablo_creature_rep_bynom[srep] = {};
				DBCS_MVW_tablo_creature_rep_bynom[srep].nb = 0;
				DBCS_MVW_tablo_creature_rep_bynom[srep].blp = {};
			end
		end
		ideb = ipos + 1;
		ipos = strfind(DBCS_Model_Viewer_ListeCreature,"@",ideb+1);
	end
	DBCS_Model_Viewer_DressUpFrameModelModele_max:SetText(DBCS_MVW_tablo_creature_m2_nb);

end

--/script DBCS_MVW_afficherblp(6,3)
function DBCS_MVW_afficherblp(nummodel,numblp)

	local srep;
	local sblp;
	local smodelblp;
	
	if ( DBCS_MVW_tablo_creature_m2_bynum[nummodel] ) then
		srep = DBCS_MVW_tablo_creature_m2_bynum[nummodel].rep;
--TraceFrame:AddMessage("srep : "..srep);
		DBCS_Model_Viewer_DressUpFrame_blp_Background:SetTexture();
		DBCS_Model_Viewer_DressUpFrameModelBlp:SetText("");
		if ( DBCS_MVW_tablo_creature_rep_bynom[srep] and DBCS_MVW_tablo_creature_rep_bynom[srep].blp[numblp] ) then
			sblp = DBCS_MVW_tablo_creature_rep_bynom[srep].blp[numblp];
			DBCS_Model_Viewer_DressUpFrameModelBlp:SetText(sblp);
--TraceFrame:AddMessage("sblp : "..sblp);
			smodelblp = "creature/"..srep.."/"..sblp..".blp";
--TraceFrame:AddMessage("smodelblp : "..smodelblp);
			DBCS_Model_Viewer_DressUpFrame_blp_Background:SetTexture(smodelblp);
		end
	end

end

--/script DBCS_MVW_affichermodele(152);
function DBCS_MVW_affichermodele(nummodel,bforce,inumcreature,snomblp)

local srep;
local sm2;
local smodel;
local bbon;
local i;
local j;
	
	if ( bforce == nil ) then
		bforce = false;
	end
	if ( bforce == false ) then
		if ( DBCS_b_Model_Viewer_model_onupdate == false ) then
			DBCS_i_Model_Viewer_model_onupdate_inummodel = nummodel;
			return nil;
		end
	end
	
	bbon = false;
	if ( inumcreature ) then
--TraceFrame:AddMessage(inumcreature);
		DBCS_Model_Viewer_DressUpFrameModel_cache:SetModel("spells/errorcube.m2");
		DBCS_Model_Viewer_DressUpFrameModel_cache:SetCreature(inumcreature);
		smodel = DBCS_Model_Viewer_DressUpFrameModel_cache:GetModel();
		if ( ( smodel == "spells\\errorcube.m2" ) or ( smodel == "spells/errorcube.m2" ) ) then
		else
			bbon = true;
			DBCS_Model_Viewer_numcreature = inumcreature;
			DBCS_Model_Viewer_creature_afficher();
			--DBCS_MVW_afficher_model_target();
		end
	end

	if ( DBCS_MVW_tablo_creature_m2_bynum[nummodel] ) then
		srep = DBCS_MVW_tablo_creature_m2_bynum[nummodel].rep;
		DBCS_Model_Viewer_DressUpFrameModelRepertoire:SetText(srep);
--TraceFrame:AddMessage("srep : "..srep);
		sm2 = DBCS_MVW_tablo_creature_m2_bynum[nummodel].m2;
		DBCS_Model_Viewer_DressUpFrameModelModele:SetText(sm2);
--TraceFrame:AddMessage("sm2 : "..sm2);
		smodel = "creature/"..srep.."/"..sm2..".m2";
--TraceFrame:AddMessage("smodel : "..smodel);
		DBCS_Model_Viewer_DressUpFrameModelZoom:SetText("1000");
		DBCS_Model_Viewer_Model_Zoomplay(DBCS_Model_Viewer_DressUpFrameModel);
		DBCS_Model_Viewer_Model_Zoomplay(DBCS_Model_Viewer_DressUpFrame_Target_Model);
		DBCS_Model_Viewer_DressUpFrameModel:SetModel(smodel);
		DBCS_Model_Viewer_DressUpFrameModelModele_num:SetText(nummodel);
		if ( nummodel == 1 ) then
			DBCS_Model_Viewer_DressUpFrameModelModelMoins:Hide();
		else
			DBCS_Model_Viewer_DressUpFrameModelModelMoins:Show();
		end
		if ( nummodel == DBCS_MVW_tablo_creature_m2_nb ) then
			DBCS_Model_Viewer_DressUpFrameModelModelPlus:Hide();
		else
			DBCS_Model_Viewer_DressUpFrameModelModelPlus:Show();
		end
		if ( DBCS_MVW_tablo_creature_rep_bynom[srep] ) then
			DBCS_Model_Viewer_DressUpFrameModelBlp_max:SetText(DBCS_MVW_tablo_creature_rep_bynom[srep].nb);
			if ( DBCS_MVW_tablo_creature_rep_bynom[srep].nb > 0 ) then
				DBCS_Model_Viewer_DressUpFrameModelBlp_num:SetText("1");
			else
				DBCS_Model_Viewer_DressUpFrameModelBlp_num:SetText("0");
			end
		else
			DBCS_Model_Viewer_DressUpFrameModelBlp_num:SetText("0");
		end
		if ( snomblp ) then
			if ( DBCS_MVW_tablo_creature_rep_bynom[srep] ) then
				if ( DBCS_MVW_tablo_creature_rep_bynom[srep].blp ) then
					j = 0;
					for i = 1 , table.getn(DBCS_MVW_tablo_creature_rep_bynom[srep].blp) do
						if ( j == 0 and DBCS_MVW_tablo_creature_rep_bynom[srep].blp[i] == snomblp ) then
							j = i;
						end
					end
					if ( j > 0 ) then
						DBCS_Model_Viewer_DressUpFrameModelBlp_num:SetText(""..j);
					end
				end
			end
		end
		DBCS_Model_Viewer_Model_Blp_num();
		--DBCS_MVW_afficherblp(nummodel,1);
	end

end

function DBCS_MVW_affichermodele_m2(srep,sm2,smodele,inumcreature)

local smodel;
local bbon;

	if ( inumcreature == nil and DBCS_b_Model_Viewer_model_onupdate == false ) then
		DBCS_i_Model_Viewer_model_onupdate_srep = srep;
		DBCS_i_Model_Viewer_model_onupdate_sm2 = sm2;
		DBCS_i_Model_Viewer_model_onupdate_smodele = smodele;
		return nil;
	end

	bbon = false;
	if ( inumcreature ) then
--TraceFrame:AddMessage(inumcreature);
		DBCS_Model_Viewer_DressUpFrameModel_cache:SetModel("spells/errorcube.m2");
		DBCS_Model_Viewer_DressUpFrameModel_cache:SetCreature(inumcreature);
		smodel = DBCS_Model_Viewer_DressUpFrameModel_cache:GetModel();
		if ( ( smodel == "spells\\errorcube.m2" ) or ( smodel == "spells/errorcube.m2" ) ) then
		else
			bbon = true;
			DBCS_Model_Viewer_numcreature = inumcreature;
			DBCS_Model_Viewer_creature_afficher();
			--DBCS_MVW_afficher_model_target();
		end
	end

	--if ( bbon == false ) then
		DBCS_Model_Viewer_DressUpFrameModelRepertoire:SetText(srep);
		DBCS_Model_Viewer_DressUpFrameModelModele:SetText(sm2);
		DBCS_Model_Viewer_DressUpFrameModelZoom:SetText("1000");
		DBCS_Model_Viewer_Model_Zoomplay(DBCS_Model_Viewer_DressUpFrameModel);
		DBCS_Model_Viewer_Model_Zoomplay(DBCS_Model_Viewer_DressUpFrame_Target_Model);
		DBCS_Model_Viewer_DressUpFrameModel:SetModel(smodele);
	--end

end

function DBCS_MVW_recherche_numblp(nummodel,snomblp)

local inumblp = nil;
local srep;

	snomblp = strlower(snomblp);

	if ( DBCS_MVW_tablo_creature_m2_bynum[nummodel] ) then
		srep = DBCS_MVW_tablo_creature_m2_bynum[nummodel].rep;
		for i, _ in pairs(DBCS_MVW_tablo_creature_rep_bynom[srep].blp) do
			if ( strlower(DBCS_MVW_tablo_creature_rep_bynom[srep].blp[i]) == snomblp ) then
				inumblp = i;
				break;
			end
		end
	end
	
	return inumblp;

end

function DBCS_MVW_recherche_nummodele(snomrep,snommodele)

local inummodele = nil;
local i;

	snomrep = strlower(snomrep);
	snommodele = strlower(snommodele);

	for i, _ in pairs(DBCS_MVW_tablo_creature_m2_bynum) do
		if ( strlower(DBCS_MVW_tablo_creature_m2_bynum[i].rep) == snomrep and strlower(DBCS_MVW_tablo_creature_m2_bynum[i].m2) == snommodele ) then
			inummodele = i;
			break;
		end
	end
	
	return inummodele;

end

function DBCS_Model_Viewer_Model_Model_num()

local si;

	si = DBCS_Model_Viewer_DressUpFrameModelModele_num:GetText();
	if ( si == nil or si == "" ) then
		si = "1";
	end
	if ( tonumber(si) > DBCS_MVW_tablo_creature_m2_nb ) then
		si = ""..DBCS_MVW_tablo_creature_m2_nb;
	end
	DBCS_Model_Viewer_DressUpFrameModelModele_num:SetText(si);
	DBCS_MVW_affichermodele(tonumber(si),false,nil);

end

function DBCS_Model_Viewer_Model_Modelplus()

local si;
local i;

	si = DBCS_Model_Viewer_DressUpFrameModelModele_num:GetText();
	if ( si == nil or si == "" ) then
		si = "1";
	end
	i = tonumber(si) + 1;
	DBCS_Model_Viewer_DressUpFrameModelModele_num:SetText(i);
	DBCS_MVW_affichermodele(tonumber(i),false,nil);

end

function DBCS_Model_Viewer_Model_Modelmoins()

local si;
local i;

	si = DBCS_Model_Viewer_DressUpFrameModelModele_num:GetText();
	if ( si == nil or si == "" ) then
		si = "2";
	end
	i = tonumber(si) - 1;
	DBCS_Model_Viewer_DressUpFrameModelModele_num:SetText(i);
	DBCS_MVW_affichermodele(tonumber(i),false,nil);

end

function DBCS_Model_Viewer_Model_Blp_num()

local srep;
local si;
local i;
local sj;
local j;

	si = DBCS_Model_Viewer_DressUpFrameModelModele_num:GetText();
	if ( si == nil or si == "" ) then
		si = "1";
	end
	if ( tonumber(si) > DBCS_MVW_tablo_creature_m2_nb ) then
		si = ""..DBCS_MVW_tablo_creature_m2_nb;
	end
	i = tonumber(si);
	DBCS_Model_Viewer_DressUpFrameModelModele_num:SetText(si);
	srep = DBCS_MVW_tablo_creature_m2_bynum[i].rep;
	sj = DBCS_Model_Viewer_DressUpFrameModelBlp_num:GetText();
	if ( sj == nil or sj == "" ) then
		if ( DBCS_MVW_tablo_creature_rep_bynom[srep].nb == 0 ) then
			sj = "0";
		else
			sj = "1";
		end
	end
	if ( tonumber(sj) > DBCS_MVW_tablo_creature_rep_bynom[srep].nb ) then
		sj = ""..DBCS_MVW_tablo_creature_rep_bynom[srep].nb;
	end
	j = tonumber(sj);
	DBCS_Model_Viewer_DressUpFrameModelBlp_num:SetText(sj);
	if ( j == 1 or DBCS_MVW_tablo_creature_rep_bynom[srep].nb == 0 ) then
		DBCS_Model_Viewer_DressUpFrameModelBlpMoins:Hide();
	else
		DBCS_Model_Viewer_DressUpFrameModelBlpMoins:Show();
	end
	if ( j == DBCS_MVW_tablo_creature_rep_bynom[srep].nb or DBCS_MVW_tablo_creature_rep_bynom[srep].nb == 0 ) then
		DBCS_Model_Viewer_DressUpFrameModelBlpPlus:Hide();
	else
		DBCS_Model_Viewer_DressUpFrameModelBlpPlus:Show();
	end
	DBCS_MVW_afficherblp(i,j);

end

function DBCS_Model_Viewer_Model_Blpplus()

local si;
local i;

	si = DBCS_Model_Viewer_DressUpFrameModelBlp_num:GetText();
	if ( si == nil or si == "" ) then
		si = "1";
	end
	i = tonumber(si) + 1;
	DBCS_Model_Viewer_DressUpFrameModelBlp_num:SetText(i);
	DBCS_Model_Viewer_Model_Blp_num();

end

function DBCS_Model_Viewer_Model_Blpmoins()

local si;
local i;

	si = DBCS_Model_Viewer_DressUpFrameModelBlp_num:GetText();
	if ( si == nil or si == "" ) then
		si = "2";
	end
	i = tonumber(si) - 1;
	DBCS_Model_Viewer_DressUpFrameModelBlp_num:SetText(i);
	DBCS_Model_Viewer_Model_Blp_num();

end

function DBCS_Model_Viewer_creature_plus()

local i;
local bbon;
local smodel;
local b2test;

local smot_milieu;
local ilen;
local smot_tout;
local snom;

	i = 0;
	bbon = false;
	while ( bbon == false and i < DBCS_Model_Viewer_numcreaturemax ) do
		i = i + 1;
		DBCS_Model_Viewer_numcreature = DBCS_Model_Viewer_numcreature + 1;
		if ( DBCS_Model_Viewer_numcreature > DBCS_Model_Viewer_numcreaturemax ) then
			DBCS_Model_Viewer_numcreature = 0;
		end
		b2test = false;
		if ( b2test == false ) then
			smot_milieu = format("%X",DBCS_Model_Viewer_numcreature);
			ilen = strlen(smot_milieu);
			--if ( DBCS_Model_Viewer_wow_build > DBCS_Model_Viewer_wow_build_live ) then
				smot_tout = "unit:0xF53"..strrep("0",5-ilen)..smot_milieu.."00000000:bla";
			--else
			--	smot_tout = "unit:0xF53"..strrep("0",7-ilen)..smot_milieu.."000000:bla";
			--end
			DBCS_Model_Viewer_TooltipTextLeft1:SetText(nil);
			DBCS_Model_Viewer_Tooltip:SetOwner(WorldFrame,"ANCHOR_NONE");
			DBCS_Model_Viewer_Tooltip:SetHyperlink(smot_tout);
			snom = DBCS_Model_Viewer_TooltipTextLeft1:GetText();
			if ( snom ) then
				DBCS_Model_Viewer_DressUpFrame_Target_Model:SetCreature(DBCS_Model_Viewer_numcreature);
				b2test = true;
			end
		end
		if ( b2test == true ) then
			bbon = true;
			DBCS_Model_Viewer_creature_afficher();
		end
	end

end

function DBCS_Model_Viewer_creature_moins()

local i;
local bbon;
local smodel;
local b2test;

local smot_milieu;
local ilen;
local smot_tout;
local snom;

	i = 0;
	bbon = false;
	while ( bbon == false and i < DBCS_Model_Viewer_numcreaturemax ) do
		i = i + 1;
		DBCS_Model_Viewer_numcreature = DBCS_Model_Viewer_numcreature - 1;
		if ( DBCS_Model_Viewer_numcreature < 0 ) then
			DBCS_Model_Viewer_numcreature = DBCS_Model_Viewer_numcreaturemax;
		end
		b2test = false;
		if ( b2test == false ) then
			smot_milieu = format("%X",DBCS_Model_Viewer_numcreature);
			ilen = strlen(smot_milieu);
			--if ( DBCS_Model_Viewer_wow_build > DBCS_Model_Viewer_wow_build_live ) then
				smot_tout = "unit:0xF53"..strrep("0",5-ilen)..smot_milieu.."00000000:bla";
			--else
			--	smot_tout = "unit:0xF53"..strrep("0",7-ilen)..smot_milieu.."000000:bla";
			--end
			DBCS_Model_Viewer_TooltipTextLeft1:SetText(nil);
			DBCS_Model_Viewer_Tooltip:SetOwner(WorldFrame,"ANCHOR_NONE");
			DBCS_Model_Viewer_Tooltip:SetHyperlink(smot_tout);
			snom = DBCS_Model_Viewer_TooltipTextLeft1:GetText();
			if ( snom ) then
				DBCS_Model_Viewer_DressUpFrame_Target_Model:SetCreature(DBCS_Model_Viewer_numcreature);
				b2test = true;
			end
		end
		if ( b2test == true ) then
			bbon = true;
			DBCS_Model_Viewer_creature_afficher();
		end
	end

end

function DBCS_Model_Viewer_creature_afficher()

local smot_milieu;
local ilen;
local smot_tout;
local snom;
local smodel;

	DBCS_Model_Viewer_DressUpFrameModelXYZ_X:SetText("0");
	DBCS_Model_Viewer_DressUpFrameModelXYZ_Y:SetText("0");
	DBCS_Model_Viewer_DressUpFrameModelXYZ_Z:SetText("0");
	DBCS_Model_Viewer_DressUpFrame_Target_Model:SetPosition(0,0,0);
	DBCS_Model_Viewer_DressUpFrame_Target_Model:SetCreature(DBCS_Model_Viewer_numcreature);

	DBCS_Model_Viewer_DressUpFrame_Target_creature_num:SetText(DBCS_Model_Viewer_numcreature);

	smot_milieu = format("%X",DBCS_Model_Viewer_numcreature);
	ilen = strlen(smot_milieu);
	--if ( DBCS_Model_Viewer_wow_build > DBCS_Model_Viewer_wow_build_live ) then
		smot_tout = "unit:0xF53"..strrep("0",5-ilen)..smot_milieu.."00000000:bla";
	--else
	--	smot_tout = "unit:0xF53"..strrep("0",7-ilen)..smot_milieu.."000000:bla";
	--end
			
	DBCS_Model_Viewer_TooltipTextLeft1:SetText(nil);
	DBCS_Model_Viewer_Tooltip:SetOwner(WorldFrame,"ANCHOR_NONE");
	DBCS_Model_Viewer_Tooltip:SetHyperlink(smot_tout);
	snom = DBCS_Model_Viewer_TooltipTextLeft1:GetText();
	
	if ( snom ) then
		smodel = DBCS_Model_Viewer_DressUpFrame_Target_Model:GetModel();
		if ( type(smodel) == "string" ) then
			smodel = string.gsub(smodel,"\\","/");
			DBCS_Model_Viewer_DressUpFrame_Target_Nommob:SetText(DBCS_Model_Viewer_numcreature.." : "..snom.."\n"..smodel);
			if ( DBCS_MVW_position_tableau_display_info[smodel] ) then
				DBCS_Model_Viewer_DressUpFrame_Target_Model:SetPosition(DBCS_MVW_position_tableau_display_info[smodel]["z"],DBCS_MVW_position_tableau_display_info[smodel]["x"],DBCS_MVW_position_tableau_display_info[smodel]["y"]);
			end
		else
			DBCS_Model_Viewer_DressUpFrame_Target_Nommob:SetText(DBCS_Model_Viewer_numcreature.." : "..snom);
		end
	else
		snom = "";
		if ( DBmobs_Local and DBmobs_Local[DBCS_Model_Viewer_numcreature] and DBmobs_Local[DBCS_Model_Viewer_numcreature][1] ) then
			snom = DBmobs_Local[DBCS_Model_Viewer_numcreature][1][1];
		end
		smodel = DBCS_Model_Viewer_DressUpFrame_Target_Model:GetModel();
		if ( type(smodel) == "string" ) then
			smodel = string.gsub(smodel,"\\","/");
			DBCS_Model_Viewer_DressUpFrame_Target_Nommob:SetText(DBCS_Model_Viewer_numcreature.." : "..snom.."\n"..smodel);
			if ( DBCS_MVW_position_tableau_display_info[smodel] ) then
				DBCS_Model_Viewer_DressUpFrame_Target_Model:SetPosition(DBCS_MVW_position_tableau_display_info[smodel]["z"],DBCS_MVW_position_tableau_display_info[smodel]["x"],DBCS_MVW_position_tableau_display_info[smodel]["y"]);
			end
		else
			DBCS_Model_Viewer_DressUpFrame_Target_Nommob:SetText(DBCS_Model_Viewer_numcreature.." : "..snom);
		end
	end

end

function DBCS_Model_Viewer_creature_init()

	DBCS_Model_Viewer_DressUpFrame_Target_Model:Undress();
	DBCS_Model_Viewer_DressUpFrameModel2:Undress();

end

function DBCS_Model_Viewer_creature_num()

local si;

	si = DBCS_Model_Viewer_DressUpFrame_Target_creature_num:GetText();
	if ( si == nil or si == "" ) then
		si = "1";
	end
	DBCS_Model_Viewer_numcreature = tonumber(si)-1;
	DBCS_Model_Viewer_creature_plus();

end

--/script DBCS_Model_Viewer_creature_recherche(tmodele,bplus,ival,stype,srep,ssexe,smodele)
function DBCS_Model_Viewer_creature_recherche(tmodele,bplus,ival,stype,srep,ssexe,smodele)

local i;
local bbon;
local smodel;
local b2test;
local snommodele1;
local snommodele2;
local ireturn;
local smot_milieu;
local ilen;
local smot_tout;
local snom;

	ireturn = 0;
	if ( strlower(stype) == "creature" ) then
		snommodele1 = strlower(stype).."/"..strlower(srep).."/"..strlower(smodele);
		snommodele2 = strlower(stype).."\\"..strlower(srep).."\\"..strlower(smodele);
	else
		snommodele1 = strlower(stype).."/"..strlower(srep).."/"..strlower(ssexe).."/"..strlower(smodele);
		snommodele2 = strlower(stype).."\\"..strlower(srep).."\\"..strlower(ssexe).."\\"..strlower(smodele);
	end
--TraceFrame:AddMessage(snommodele1);
--TraceFrame:AddMessage(snommodele2);
--TraceFrame:AddMessage(DBCS_Model_Viewer_numcreaturemax);
	i = 0;
	bbon = false;
	while ( bbon == false and i < DBCS_Model_Viewer_numcreaturemax ) do
		i = i + 1;
		if ( bplus == true ) then
			ival = ival + 1;
			if ( ival > DBCS_Model_Viewer_numcreaturemax ) then
				ival = 0;
			end
		else
			ival = ival - 1;
			if ( ival < 0 ) then
				ival = DBCS_Model_Viewer_numcreaturemax;
			end
		end
		b2test = false;
		if ( b2test == false ) then
			smot_milieu = format("%X",ival);
			ilen = strlen(smot_milieu);
			--if ( DBCS_Model_Viewer_wow_build > DBCS_Model_Viewer_wow_build_live ) then
				smot_tout = "unit:0xF53"..strrep("0",5-ilen)..smot_milieu.."00000000:bla";
			--else
			--	smot_tout = "unit:0xF53"..strrep("0",7-ilen)..smot_milieu.."000000:bla";
			--end
			DBCS_Model_Viewer_TooltipTextLeft1:SetText(nil);
			DBCS_Model_Viewer_Tooltip:SetOwner(WorldFrame,"ANCHOR_NONE");
			DBCS_Model_Viewer_Tooltip:SetHyperlink(smot_tout);
			snom = DBCS_Model_Viewer_TooltipTextLeft1:GetText();
			if ( snom ) then
				--tmodele:SetModel("creature/invisiblestalker/invisiblestalker.m2");
				tmodele:SetCreature(ival);
				smodel = tmodele:GetModel();
				smodel = string.gsub(smodel,"\\","/");
				if ( ( smodel == snommodele1..".m2" ) or ( smodel == snommodele1..",m2" ) ) then
					b2test = true;
				end
			end
		end
		--if ( b2test == false ) then
		--	tmodele:SetModel("creature/invisiblestalker/invisiblestalker.m2");
		--	tmodele:SetCreature(ival);
		--	smodel = tmodele:GetModel();
--TraceFrame:AddMessage(smodel);
		--	if ( smodel == "creature\\invisiblestalker\\invisiblestalker.m2" or smodel == "creature/invisiblestalker/invisiblestalker.m2" ) then	--	or ( not ( type(smodel) == "string" ) ) ) then
		--	else
		--		if ( ( smodel == snommodele1..".m2" ) or ( smodel == snommodele1..",m2" ) or ( smodel == snommodele2..".m2" ) or ( smodel == snommodele2..",m2" ) ) then
		--			b2test = true;
		--		end
		--	end
		--end
		--if ( b2test == false ) then
		--	tmodele:SetModel("creature/kiljaeden/kiljaeden.m2");
		--	tmodele:SetCreature(ival);
		--	smodel = tmodele:GetModel();
--TraceFrame:AddMessage(smodel);
		--	if ( smodel == "creature\\kiljaeden\\kiljaeden.m2" or smodel == "creature/kiljaeden/kiljaeden.m2" ) then	--	or ( not ( type(smodel) == "string" ) ) ) then
		--	else
		--		if ( ( smodel == snommodele1..".m2" ) or ( smodel == snommodele1..",m2" ) or ( smodel == snommodele2..".m2" ) or ( smodel == snommodele2..",m2" ) ) then
		--			b2test = true;
		--		end
		--	end
		--end
		if ( b2test == true ) then
			bbon = true;
--TraceFrame:AddMessage(ival);
			tmodele:SetCreature(ival);
			ireturn = ival;
		end
--		bbon = true;
	end
	
	return ireturn;

end

--function DBCS_Model_Viewer_creature_recherche_afficher(modele,
--
--end

local DBCS_Model_Viewer_creature_nonblp_tableau_ignore = {};
DBCS_Model_Viewer_creature_nonblp_tableau_ignore["creature/invisibleman/invisibleman.m2"] = 0;
DBCS_Model_Viewer_creature_nonblp_tableau_ignore["creature/invisiblestalker/invisiblestalker.m2"] = 0;
DBCS_Model_Viewer_creature_nonblp_tableau_ignore["creature/invisiblestalker/invisiblestalkerground.m2"] = 0;
DBCS_Model_Viewer_creature_nonblp_tableau_ignore["creature/invisiblestalker/invisiblestalkernoname.m2"] = 0;

--DBCS_MVW_type_recherche_blp_display = 1;	-- que les créatures qui n'ont pas de blp
--DBCS_MVW_type_recherche_blp_display = 2;	-- que les autres que créatures qui n'ont pas de display
--DBCS_MVW_type_recherche_blp_display = 3;	-- tous ceux qui n'ont pas de display
--DBCS_MVW_type_recherche_blp_display = 4;	-- que les autres que créatures et que character qui n'ont pas de display
--DBCS_MVW_type_recherche_blp_display = 5;	-- que les autres que character qui n'ont pas de display
DBCS_MVW_type_recherche_blp_display = 6;	-- que les autres que character qui n'ont pas de display et non plus certaines races creatures
--/script DBCS_MVW_type_recherche_blp_display = 1;
--/script DBCS_MVW_type_recherche_blp_display = 2;
--/script DBCS_MVW_type_recherche_blp_display = 3;
--/script DBCS_MVW_type_recherche_blp_display = 4;
--/script DBCS_MVW_type_recherche_blp_display = 5;

--/script DBCS_MVW_boutons_creature_blp_afficher();

function DBCS_Model_Viewer_creature_nonblp_plus()

local i;
local bbon;
local smodel;
local b2test;

local smot_milieu;
local ilen;
local smot_tout;
local snom;

	i = 0;
	bbon = false;
	if ( DBCS_mobs_model == nil ) then
		bbon = true;
	end
	--while ( bbon == false and i < DBCS_Model_Viewer_numcreaturemax ) do
	while ( bbon == false and i < 1000 ) do
		i = i + 1;
		DBCS_Model_Viewer_numcreature = DBCS_Model_Viewer_numcreature + 1;
		if ( DBCS_Model_Viewer_numcreature > DBCS_Model_Viewer_numcreaturemax ) then
			DBCS_Model_Viewer_numcreature = 0;
		end
		b2test = false;
		if ( b2test == false ) then
			smot_milieu = format("%X",DBCS_Model_Viewer_numcreature);
			ilen = strlen(smot_milieu);
			--if ( DBCS_Model_Viewer_wow_build > DBCS_Model_Viewer_wow_build_live ) then
				smot_tout = "unit:0xF53"..strrep("0",5-ilen)..smot_milieu.."00000000:bla";
			--else
			--	smot_tout = "unit:0xF53"..strrep("0",7-ilen)..smot_milieu.."000000:bla";
			--end
			DBCS_Model_Viewer_TooltipTextLeft1:SetText(nil);
			DBCS_Model_Viewer_Tooltip:SetOwner(WorldFrame,"ANCHOR_NONE");
			DBCS_Model_Viewer_Tooltip:SetHyperlink(smot_tout);
			snom = DBCS_Model_Viewer_TooltipTextLeft1:GetText();
			if ( snom ) then
				DBCS_Model_Viewer_DressUpFrameModel_cache:SetCreature(DBCS_Model_Viewer_numcreature);
				smodel = DBCS_Model_Viewer_DressUpFrameModel_cache:GetModel();
				smodel = string.gsub(smodel,"\\","/");
				if ( DBCS_MVW_type_recherche_blp_display == 1 ) then
					if ( ( strsub(smodel,1,8) == "creature" ) and ( DBCS_Model_Viewer_creature_nonblp_tableau_ignore[smodel] == nil ) ) then
						b2test = true;
						if ( DBCS_mobs_model[DBCS_Model_Viewer_numcreature] and DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1] and DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1]["blp"] ) then
							b2test = false;
						end
					end
				elseif ( DBCS_MVW_type_recherche_blp_display == 2 ) then
					if ( ( not ( strsub(smodel,1,8) == "creature" ) ) and ( DBCS_Model_Viewer_creature_nonblp_tableau_ignore[smodel] == nil ) ) then
						b2test = true;
						if ( DBCS_mobs_model[DBCS_Model_Viewer_numcreature] and DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1] and DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1]["display"] and DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1]["datemodel"] and ( DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1]["datemodel"] > DBCS_Model_Viewer_model_date_display ) ) then
							b2test = false;
						end
					end
				elseif ( DBCS_MVW_type_recherche_blp_display == 3 ) then
					if ( ( DBCS_Model_Viewer_creature_nonblp_tableau_ignore[smodel] == nil ) ) then
						b2test = true;
						if ( DBCS_mobs_model[DBCS_Model_Viewer_numcreature] and DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1] and DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1]["display"] ) then
							b2test = false;
						end
					end
				elseif ( DBCS_MVW_type_recherche_blp_display == 4 ) then
					if ( ( not ( strsub(smodel,1,8) == "creature" ) ) and ( not ( strsub(smodel,1,9) == "character" ) ) and ( DBCS_Model_Viewer_creature_nonblp_tableau_ignore[smodel] == nil ) ) then
						b2test = true;
						if ( DBCS_mobs_model[DBCS_Model_Viewer_numcreature] and DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1] and DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1]["display"] ) then
							b2test = false;
						end
					end
				elseif ( DBCS_MVW_type_recherche_blp_display == 5 ) then
					if ( ( not ( strsub(smodel,1,9) == "character" ) ) and ( DBCS_Model_Viewer_creature_nonblp_tableau_ignore[smodel] == nil ) ) then
						b2test = true;
						if ( DBCS_mobs_model[DBCS_Model_Viewer_numcreature] and DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1] and DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1]["display"] and DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1]["datemodel"] and ( DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1]["datemodel"] > DBCS_Model_Viewer_model_date_display ) ) then
							b2test = false;
						end
					end
				elseif ( DBCS_MVW_type_recherche_blp_display == 6 ) then
					if ( ( DBCS_Model_Viewer_creature_nonblp_tableau_ignore[smodel] == nil ) and ( not ( strsub(smodel,1,9) == "character" ) ) and ( not ( strsub(smodel,1,14) == "creature/hozu/" ) ) and ( not ( strsub(smodel,1,15) == "creature/jinyu/" ) ) and ( not ( strsub(smodel,1,16) == "creature/mantid/" ) ) and ( not ( strsub(smodel,1,14) == "creature/mogu/" ) ) and ( not ( strsub(smodel,1,21) == "creature/waterdragon/" ) ) and ( not ( strsub(smodel,1,16) == "creature/yaunka/" ) ) and ( not ( strsub(smodel,1,24) == "creature/zandalaritroll/" ) ) ) then
						b2test = true;
						if ( DBCS_mobs_model[DBCS_Model_Viewer_numcreature] and DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1] and DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1]["display"] and DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1]["datemodel"] and ( DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1]["datemodel"] > DBCS_Model_Viewer_model_date_display ) ) then
							b2test = false;
						end
					end
				end
			end
		end
		if ( b2test == true ) then
			bbon = true;
			DBCS_MVW_afficher_mobs_model(DBCS_Model_Viewer_numcreature);
			DBCS_Model_Viewer_creature_afficher();
			--DBCS_MVW_afficher_model_target();
		end
	end

end

function DBCS_Model_Viewer_creature_nonblp_moins()

local i;
local bbon;
local smodel;
local b2test;

local smot_milieu;
local ilen;
local smot_tout;
local snom;

	i = 0;
	bbon = false;
	if ( DBCS_mobs_model == nil ) then
		bbon = true;
	end
	--while ( bbon == false and i < DBCS_Model_Viewer_numcreaturemax ) do
	while ( bbon == false and i < 1000 ) do
		i = i + 1;
		DBCS_Model_Viewer_numcreature = DBCS_Model_Viewer_numcreature - 1;
		if ( DBCS_Model_Viewer_numcreature < 0 ) then
			DBCS_Model_Viewer_numcreature = DBCS_Model_Viewer_numcreaturemax;
		end
		b2test = false;
		if ( b2test == false ) then
			smot_milieu = format("%X",DBCS_Model_Viewer_numcreature);
			ilen = strlen(smot_milieu);
			--if ( DBCS_Model_Viewer_wow_build > DBCS_Model_Viewer_wow_build_live ) then
				smot_tout = "unit:0xF53"..strrep("0",5-ilen)..smot_milieu.."00000000:bla";
			--else
			--	smot_tout = "unit:0xF53"..strrep("0",7-ilen)..smot_milieu.."000000:bla";
			--end
			DBCS_Model_Viewer_TooltipTextLeft1:SetText(nil);
			DBCS_Model_Viewer_Tooltip:SetOwner(WorldFrame,"ANCHOR_NONE");
			DBCS_Model_Viewer_Tooltip:SetHyperlink(smot_tout);
			snom = DBCS_Model_Viewer_TooltipTextLeft1:GetText();
			if ( snom ) then
				DBCS_Model_Viewer_DressUpFrameModel_cache:SetCreature(DBCS_Model_Viewer_numcreature);
				smodel = DBCS_Model_Viewer_DressUpFrameModel_cache:GetModel();
				smodel = string.gsub(smodel,"\\","/");
				if ( DBCS_MVW_type_recherche_blp_display == 1 ) then
					if ( ( strsub(smodel,1,8) == "creature" ) and ( DBCS_Model_Viewer_creature_nonblp_tableau_ignore[smodel] == nil ) ) then
						b2test = true;
						if ( DBCS_mobs_model[DBCS_Model_Viewer_numcreature] and DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1] and DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1]["blp"] ) then
							b2test = false;
						end
					end
				elseif ( DBCS_MVW_type_recherche_blp_display == 2 ) then
					if ( ( not ( strsub(smodel,1,8) == "creature" ) ) and ( DBCS_Model_Viewer_creature_nonblp_tableau_ignore[smodel] == nil ) ) then
						b2test = true;
						if ( DBCS_mobs_model[DBCS_Model_Viewer_numcreature] and DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1] and DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1]["display"] and DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1]["datemodel"] and ( DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1]["datemodel"] > DBCS_Model_Viewer_model_date_display ) ) then
							b2test = false;
						end
					end
				elseif ( DBCS_MVW_type_recherche_blp_display == 3 ) then
					if ( ( DBCS_Model_Viewer_creature_nonblp_tableau_ignore[smodel] == nil ) ) then
						b2test = true;
						if ( DBCS_mobs_model[DBCS_Model_Viewer_numcreature] and DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1] and DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1]["display"] ) then
							b2test = false;
						end
					end
				elseif ( DBCS_MVW_type_recherche_blp_display == 4 ) then
					if ( ( not ( strsub(smodel,1,8) == "creature" ) ) and ( not ( strsub(smodel,1,9) == "character" ) ) and ( DBCS_Model_Viewer_creature_nonblp_tableau_ignore[smodel] == nil ) ) then
						b2test = true;
						if ( DBCS_mobs_model[DBCS_Model_Viewer_numcreature] and DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1] and DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1]["display"] ) then
							b2test = false;
						end
					end
				elseif ( DBCS_MVW_type_recherche_blp_display == 5 ) then
					if ( ( not ( strsub(smodel,1,9) == "character" ) ) and ( DBCS_Model_Viewer_creature_nonblp_tableau_ignore[smodel] == nil ) ) then
						b2test = true;
						if ( DBCS_mobs_model[DBCS_Model_Viewer_numcreature] and DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1] and DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1]["display"] and DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1]["datemodel"] and ( DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1]["datemodel"] > DBCS_Model_Viewer_model_date_display ) ) then
							b2test = false;
						end
					end
				elseif ( DBCS_MVW_type_recherche_blp_display == 6 ) then
					if ( ( DBCS_Model_Viewer_creature_nonblp_tableau_ignore[smodel] == nil ) and ( not ( strsub(smodel,1,9) == "character" ) ) and ( not ( strsub(smodel,1,14) == "creature/hozu/" ) ) and ( not ( strsub(smodel,1,15) == "creature/jinyu/" ) ) and ( not ( strsub(smodel,1,16) == "creature/mantid/" ) ) and ( not ( strsub(smodel,1,14) == "creature/mogu/" ) ) and ( not ( strsub(smodel,1,21) == "creature/waterdragon/" ) ) and ( not ( strsub(smodel,1,16) == "creature/yaunka/" ) ) and ( not ( strsub(smodel,1,24) == "creature/zandalaritroll/" ) ) ) then
						b2test = true;
						if ( DBCS_mobs_model[DBCS_Model_Viewer_numcreature] and DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1] and DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1]["display"] and DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1]["datemodel"] and ( DBCS_mobs_model[DBCS_Model_Viewer_numcreature][1]["datemodel"] > DBCS_Model_Viewer_model_date_display ) ) then
							b2test = false;
						end
					end
				end
			end
		end
		if ( b2test == true ) then
			bbon = true;
			DBCS_MVW_afficher_mobs_model(DBCS_Model_Viewer_numcreature);
			DBCS_Model_Viewer_creature_afficher();
			--DBCS_MVW_afficher_model_target();
		end
	end

end

function DBCS_Model_Viewer_Model_Blp_enreg()

local smodel_courant;
local smodel_target;
local sblp;
local idate;

	smodel_courant = "creature/"..DBCS_Model_Viewer_DressUpFrameModelRepertoire:GetText().."/"..DBCS_Model_Viewer_DressUpFrameModelModele:GetText()..".m2";
	smodel_target = DBCS_Model_Viewer_DressUpFrame_Target_Model:GetModel();
	smodel_target = string.gsub(smodel_target,"\\","/");
	
	if ( smodel_courant == smodel_target ) then
		sblp = DBCS_Model_Viewer_DressUpFrameModelBlp:GetText();
		idate = tonumber(date("%Y%m%d"));
		DBCS_mobs_model_blp_ajout(DBCS_Model_Viewer_numcreature,smodel_target,sblp,idate,smodel_target);
	else
		TraceFrame:AddMessage("DBCS_Model_Viewer_Model_Blp_enreg : mauvais skin : "..DBCS_Model_Viewer_numcreature);
	end

end

--/script DBCS_Model_Viewer_afficher_bulle_mob_id(190);
--/script DBCS_Model_Viewer_afficher_bulle_mob_id(8417);
function DBCS_Model_Viewer_afficher_bulle_mob_id(inum)

local smot_milieu;
local ilen;
local smot_tout;

	smot_milieu = format("%X",inum);
	ilen = strlen(smot_milieu);
	--if ( DBCS_Model_Viewer_wow_build > DBCS_Model_Viewer_wow_build_live ) then
		smot_tout = "unit:0xF53"..strrep("0",5-ilen)..smot_milieu.."00000000:bla";
	--else
	--	smot_tout = "unit:0xF53"..strrep("0",7-ilen)..smot_milieu.."000000:bla";
	--end
	SetItemRef(smot_tout);

end

--/script DBCS_MVW_test_position();
function DBCS_MVW_test_position()

local Scale = UIParent:GetEffectiveScale();
local Hypotenuse = ( ( GetScreenWidth() * Scale ) ^ 2 + ( GetScreenHeight() * Scale ) ^ 2 ) ^ 0.5;

local CoordRight = ( DBCS_Model_Viewer_DressUpFrame_Target_Model:GetRight() - DBCS_Model_Viewer_DressUpFrame_Target_Model:GetLeft() ) / Hypotenuse; -- X
local CoordTop = ( DBCS_Model_Viewer_DressUpFrame_Target_Model:GetTop() - DBCS_Model_Viewer_DressUpFrame_Target_Model:GetBottom() ) / Hypotenuse; -- Y

	TraceFrame:AddMessage("x = "..CoordRight.." / y = "..CoordTop);

end

--	z	x	y
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:SetPosition(0,0,0)
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:SetPosition(0,0,1)
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:SetPosition(0,0,2)
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:SetPosition(0,0,3)
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:SetPosition(0,1,0)
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:SetPosition(-1,0,0)

--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:SetCamera(0);
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:SetCamera(1);
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:SetCamera(2);

--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:SetFogFar(0);
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:SetFogNear(0);

--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:ClearFog();

--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:SetTexture("creature/pterrordax/pterrordaxskingreen");
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:ReplaceIconTexture("creature/pterrordax/pterrordaxskingreen");

--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:SetLight(0);
--/script DBCS_Model_Viewer_DressUpFrame_Target_Model:SetLight(1, 0, 0, -0.707, -0.707, 0.7, 1.0, 1.0, 1.0, 0.8, 1.0, 1.0, 0.8);

function DBCS_MVW_SetPosition()

local x;
local y;
local z;

	x = DBCS_Model_Viewer_DressUpFrameModelXYZ_X:GetNumber()/1000000;
	y = DBCS_Model_Viewer_DressUpFrameModelXYZ_Y:GetNumber()/1000000;
	z = DBCS_Model_Viewer_DressUpFrameModelXYZ_Z:GetNumber()/1000000;
	DBCS_Model_Viewer_DressUpFrame_Target_Model:SetPosition(z,x,y);
	DBCS_Model_Viewer_DressUpFrameModel2:SetPosition(z,x,y);

end

local DBCS_MVW_Model2_Type_Tableau_Type = {};
local DBCS_MVW_Model2_Type_Tableau_Type_num = 0;
local DBCS_MVW_Model2_Type_Tableau_Rep = {};
local DBCS_MVW_Model2_Type_Tableau_Rep_num = 0;
local DBCS_MVW_Model2_Type_Tableau_Rep_lettre = {};
local DBCS_MVW_Model2_Type_Tableau_Rep_lettre_num = 0;
local DBCS_MVW_Model2_Type_Tableau_Skin = {};
local DBCS_MVW_Model2_Type_Tableau_Skin_num = 0;
local DBCS_MVW_Model2_Type_Tableau_Blp = {};
local DBCS_MVW_Model2_Type_Tableau_Blp_num = 0;
local DBCS_MVW_Model2_Type_Tableau_Display = {};
local DBCS_MVW_Model2_Type_Tableau_Display_num = 0;
--/script i=i+1;DEFAULT_CHAT_FRAME:AddMessage(i);DBCS_Model_Viewer_DressUpFrameModel:SetDisplayInfo(i);

--/script DBCS_MVW_Model2_Type_Tableau_Type_Init();
function DBCS_MVW_Model2_Type_Tableau_Type_Init()

local s;
local i = 0;

--TraceFrame:AddMessage("DBCS_MVW_Model2_Type_Tableau_Type_Init");
	for s, _ in pairs(DBCS_model_data_creature_par_skin2) do
		i = i + 1;
		DBCS_MVW_Model2_Type_Tableau_Type[i] = s;
--TraceFrame:AddMessage("s = "..s);
	end
	table.sort(DBCS_MVW_Model2_Type_Tableau_Type);

end

--/script DBCS_MVW_Model2_Type_Tableau_Rep_Init();
function DBCS_MVW_Model2_Type_Tableau_Rep_Init()

local itype = UIDropDownMenu_GetSelectedValue(DBCS_Model_Viewer_DressUpFrameModel2_Type);
local stype = DBCS_MVW_Model2_Type_Tableau_Type[itype];
local s;
local i = 0;
local s1;
local j = 0;
local k;
local s_sous;

	DBCS_MVW_Model2_Type_Tableau_Rep = {};
	DBCS_MVW_Model2_Type_Tableau_Rep_lettre = {};
	if ( DBCS_model_data_creature_par_skin2[stype] ) then
		for s, _ in pairs(DBCS_model_data_creature_par_skin2[stype]) do
			i = i + 1;
			DBCS_MVW_Model2_Type_Tableau_Rep[i] = s;
			s1 = strsub(s,1,1);
			--compter le nb sous rep
			k = 0;
			for s_sous, _ in pairs(DBCS_model_data_creature_par_skin2[stype][s]) do
				k = k + 1;
				DBCS_MVW_Model2_Type_Tableau_Skin[i] = s;
			end
			--fin compter
			if ( DBCS_MVW_Model2_Type_Tableau_Rep_lettre[s1] ) then
				DBCS_MVW_Model2_Type_Tableau_Rep_lettre[s1] = DBCS_MVW_Model2_Type_Tableau_Rep_lettre[s1];
			else
				DBCS_MVW_Model2_Type_Tableau_Rep_lettre[s1] = k;
				j = j + 1;
				DBCS_MVW_Model2_Type_Tableau_Rep_lettre[j] = s1;
			end
		end
		table.sort(DBCS_MVW_Model2_Type_Tableau_Rep);
		DBCS_MVW_Model2_Type_Tableau_Rep_num = 1;
		DBCS_Model_Viewer_DressUpFrameModel2_Rep_Libelle:SetText(DBCS_MVW_Model2_Type_Tableau_Rep[DBCS_MVW_Model2_Type_Tableau_Rep_num]);
		table.sort(DBCS_MVW_Model2_Type_Tableau_Rep_lettre);
	else
		DBCS_MVW_Model2_Type_Tableau_Rep_num = 0;
		DBCS_Model_Viewer_DressUpFrameModel2_Rep_Libelle:SetText("");
	end
	DBCS_MVW_Model2_Type_alpha_DropDown_OnLoad();
	DBCS_MVW_Model2_Type_Tableau_Skin_Init();
	DBCS_Model_Viewer_DressUpFrameModel2_Rep_Skin_Click();

end

function DBCS_MVW_Model2_Type_Tableau_Skin_Init()

local itype = UIDropDownMenu_GetSelectedValue(DBCS_Model_Viewer_DressUpFrameModel2_Type);
local stype = DBCS_MVW_Model2_Type_Tableau_Type[itype];
local s;
local i = 0;

	DBCS_MVW_Model2_Type_Tableau_Skin = {};
	if ( DBCS_model_data_creature_par_skin2[stype] and DBCS_model_data_creature_par_skin2[stype][DBCS_MVW_Model2_Type_Tableau_Rep[DBCS_MVW_Model2_Type_Tableau_Rep_num]] ) then
		for s, _ in pairs(DBCS_model_data_creature_par_skin2[stype][DBCS_MVW_Model2_Type_Tableau_Rep[DBCS_MVW_Model2_Type_Tableau_Rep_num]]) do
			i = i + 1;
			DBCS_MVW_Model2_Type_Tableau_Skin[i] = s;
		end
		table.sort(DBCS_MVW_Model2_Type_Tableau_Skin);
		DBCS_MVW_Model2_Type_Tableau_Skin_num = 1;
		DBCS_Model_Viewer_DressUpFrameModel2_Skin_Libelle:SetText(DBCS_MVW_Model2_Type_Tableau_Skin[DBCS_MVW_Model2_Type_Tableau_Skin_num]);
	else
		DBCS_MVW_Model2_Type_Tableau_Skin_num = 0;
		DBCS_Model_Viewer_DressUpFrameModel2_Skin_Libelle:SetText("");
	end
	DBCS_MVW_Model2_Type_Tableau_Blp_Init();
	DBCS_Model_Viewer_DressUpFrameModel2_Blp_Click();

end

function DBCS_MVW_Model2_Type_Tableau_Blp_Init()

local itype = UIDropDownMenu_GetSelectedValue(DBCS_Model_Viewer_DressUpFrameModel2_Type);
local stype = DBCS_MVW_Model2_Type_Tableau_Type[itype];
local s;
local i = 0;
local s1,s2,s3;

	DBCS_MVW_Model2_Type_Tableau_Blp = {};
	if ( DBCS_model_data_creature_par_skin2[stype] and DBCS_model_data_creature_par_skin2[stype][DBCS_MVW_Model2_Type_Tableau_Rep[DBCS_MVW_Model2_Type_Tableau_Rep_num]] and DBCS_model_data_creature_par_skin2[stype][DBCS_MVW_Model2_Type_Tableau_Rep[DBCS_MVW_Model2_Type_Tableau_Rep_num]][DBCS_MVW_Model2_Type_Tableau_Skin[DBCS_MVW_Model2_Type_Tableau_Skin_num]] ) then
		for s, _ in pairs(DBCS_model_data_creature_par_skin2[stype][DBCS_MVW_Model2_Type_Tableau_Rep[DBCS_MVW_Model2_Type_Tableau_Rep_num]][DBCS_MVW_Model2_Type_Tableau_Skin[DBCS_MVW_Model2_Type_Tableau_Skin_num]]) do
			i = i + 1;
			DBCS_MVW_Model2_Type_Tableau_Blp[i] = s;
		end
		table.sort(DBCS_MVW_Model2_Type_Tableau_Blp);
		DBCS_MVW_Model2_Type_Tableau_Blp_num = 1;
		--DBCS_Model_Viewer_DressUpFrameModel2_Blp_Libelle1:SetText(DBCS_MVW_Model2_Type_Tableau_Blp[DBCS_MVW_Model2_Type_Tableau_Blp_num]);
		s1,s2,s3 = strsplit("@",DBCS_MVW_Model2_Type_Tableau_Blp[DBCS_MVW_Model2_Type_Tableau_Blp_num]);
		DBCS_Model_Viewer_DressUpFrameModel2_Blp_Libelle1:SetText(s1);
		DBCS_Model_Viewer_DressUpFrameModel2_Blp_Libelle2:SetText(s2);
		DBCS_Model_Viewer_DressUpFrameModel2_Blp_Libelle3:SetText(s3);
	else
		DBCS_MVW_Model2_Type_Tableau_Blp_num = 0;
		DBCS_Model_Viewer_DressUpFrameModel2_Blp_Libelle1:SetText("");
		DBCS_Model_Viewer_DressUpFrameModel2_Blp_Libelle2:SetText("");
		DBCS_Model_Viewer_DressUpFrameModel2_Blp_Libelle3:SetText("");
	end

end

function DBCS_MVW_Model2_Type_alpha_DropDown_OnLoad()
	UIDropDownMenu_Initialize(DBCS_Model_Viewer_DressUpFrameModel2_Type_alpha, DBCS_MVW_Model2_Type_alpha_DropDown_Initialize);
end

function DBCS_MVW_Model2_Type_alpha_DropDown_Initialize()

local id;
local info;

	for id = 1 , table.getn(DBCS_MVW_Model2_Type_Tableau_Rep_lettre) do
		info = UIDropDownMenu_CreateInfo();
		info.text = DBCS_MVW_Model2_Type_Tableau_Rep_lettre[id];
		info.value = id;
		info.func = DBCS_MVW_Model2_Type_alpha_DropDown_OnClick;
		UIDropDownMenu_AddButton(info);
	end
	DBCS_Model_Viewer_DressUpFrameModel2_Type_alphaMiddle:SetWidth(40);

end

function DBCS_MVW_Model2_Type_alpha_DropDown_OnClick(self)

local i;
local s;
local bfin;

	DBCS_MVW_Model2_Type_Tableau_Rep_lettre_num = self.value;
	UIDropDownMenu_SetSelectedValue(DBCS_Model_Viewer_DressUpFrameModel2_Type_alpha, DBCS_MVW_Model2_Type_Tableau_Rep_lettre_num);
--	DBCS_MVW_Model2_Type_Tableau_Rep_num = 1;
--	for i = 1 , table.getn(DBCS_MVW_Model2_Type_Tableau_Rep_lettre) do
--TraceFrame:AddMessage("i = "..i);
--		s = DBCS_MVW_Model2_Type_Tableau_Rep_lettre[DBCS_MVW_Model2_Type_Tableau_Rep_lettre_num];
--TraceFrame:AddMessage("s = "..s);
--		if ( DBCS_MVW_Model2_Type_Tableau_Rep_lettre[i] < s ) then
--			DBCS_MVW_Model2_Type_Tableau_Rep_num = DBCS_MVW_Model2_Type_Tableau_Rep_num + DBCS_MVW_Model2_Type_Tableau_Rep_lettre[DBCS_MVW_Model2_Type_Tableau_Rep_lettre[i]];
--		end
--	end
	bfin = false;
	s = DBCS_MVW_Model2_Type_Tableau_Rep_lettre[DBCS_MVW_Model2_Type_Tableau_Rep_lettre_num];
	for i = 1 , table.getn(DBCS_MVW_Model2_Type_Tableau_Rep) do
		if ( bfin == false ) then
			if ( s == strsub(DBCS_MVW_Model2_Type_Tableau_Rep[i],1,1) ) then
				DBCS_MVW_Model2_Type_Tableau_Rep_num = i;
				bfin = true;
			end
		end
	end
	DBCS_Model_Viewer_DressUpFrameModel2_Rep_Libelle:SetText(DBCS_MVW_Model2_Type_Tableau_Rep[DBCS_MVW_Model2_Type_Tableau_Rep_num]);
	DBCS_MVW_Model2_Type_Tableau_Skin_Init();
	DBCS_Model_Viewer_DressUpFrameModel2_Rep_Skin_Click();

end

function DBCS_MVW_Model2_Type_DropDown_OnLoad()
	UIDropDownMenu_Initialize(DBCS_Model_Viewer_DressUpFrameModel2_Type, DBCS_MVW_Model2_Type_DropDown_Initialize);
end

function DBCS_MVW_Model2_Type_DropDown_Initialize()

local id;
local info;

	for id = 1 , table.getn(DBCS_MVW_Model2_Type_Tableau_Type) do
		info = UIDropDownMenu_CreateInfo();
		info.text = DBCS_MVW_Model2_Type_Tableau_Type[id];
		info.value = id;
		info.func = DBCS_MVW_Model2_Type_DropDown_OnClick;
		UIDropDownMenu_AddButton(info);
	end
	
end

function DBCS_MVW_Model2_Type_DropDown_OnClick(self)

	DBCS_MVW_Model2_Type_Tableau_Type_num = self.value;
	UIDropDownMenu_SetSelectedValue(DBCS_Model_Viewer_DressUpFrameModel2_Type, DBCS_MVW_Model2_Type_Tableau_Type_num);
	DBCS_MVW_Model2_Type_Tableau_Rep_Init();
	UIDropDownMenu_SetSelectedValue(DBCS_Model_Viewer_DressUpFrameModel2_Type_alpha,1);

end

function DBCS_Model_Viewer_DressUpFrameModel2_Rep_Skin_Click()

	if ( ( DBCS_MVW_Model2_Type_Tableau_Rep_num == 1 ) and ( DBCS_MVW_Model2_Type_Tableau_Skin_num == 1 ) ) then
		DBCS_Model_Viewer_DressUpFrameModel2_Rep_Skin_moins:Hide();
	else
		DBCS_Model_Viewer_DressUpFrameModel2_Rep_Skin_moins:Show();
	end
	if ( ( DBCS_MVW_Model2_Type_Tableau_Rep_num == table.getn(DBCS_MVW_Model2_Type_Tableau_Rep) ) and ( DBCS_MVW_Model2_Type_Tableau_Skin_num == table.getn(DBCS_MVW_Model2_Type_Tableau_Skin) ) ) then
		DBCS_Model_Viewer_DressUpFrameModel2_Rep_Skin_plus:Hide();
	else
		DBCS_Model_Viewer_DressUpFrameModel2_Rep_Skin_plus:Show();
	end
	DBCS_Model_Viewer_DressUpFrameModel2_Rep_Libelle:SetText(DBCS_MVW_Model2_Type_Tableau_Rep[DBCS_MVW_Model2_Type_Tableau_Rep_num]);
	DBCS_Model_Viewer_DressUpFrameModel2_Type_alphaText:SetText(strsub(DBCS_MVW_Model2_Type_Tableau_Rep[DBCS_MVW_Model2_Type_Tableau_Rep_num],1,1));
	DBCS_Model_Viewer_DressUpFrameModel2_Skin_Libelle:SetText(DBCS_MVW_Model2_Type_Tableau_Skin[DBCS_MVW_Model2_Type_Tableau_Skin_num]);
	DBCS_MVW_Model2_Type_Tableau_Blp_Init();
	DBCS_Model_Viewer_DressUpFrameModel2_Blp_Click();

end

function DBCS_Model_Viewer_DressUpFrameModel2_Rep_Skin_moins_Click()

	if ( DBCS_MVW_Model2_Type_Tableau_Skin_num == 1 ) then
		DBCS_MVW_Model2_Type_Tableau_Rep_num = DBCS_MVW_Model2_Type_Tableau_Rep_num - 1;
		DBCS_MVW_Model2_Type_Tableau_Skin_Init();
		DBCS_MVW_Model2_Type_Tableau_Skin_num = table.getn(DBCS_MVW_Model2_Type_Tableau_Skin);
	else
		DBCS_MVW_Model2_Type_Tableau_Skin_num = DBCS_MVW_Model2_Type_Tableau_Skin_num - 1;
	end
	DBCS_Model_Viewer_DressUpFrameModel2_Rep_Skin_Click();

end

function DBCS_Model_Viewer_DressUpFrameModel2_Rep_Skin_plus_Click()

	if ( DBCS_MVW_Model2_Type_Tableau_Skin_num == table.getn(DBCS_MVW_Model2_Type_Tableau_Skin) ) then
		DBCS_MVW_Model2_Type_Tableau_Rep_num = DBCS_MVW_Model2_Type_Tableau_Rep_num + 1;
		DBCS_MVW_Model2_Type_Tableau_Skin_Init();
		DBCS_MVW_Model2_Type_Tableau_Skin_num = 1;
	else
		DBCS_MVW_Model2_Type_Tableau_Skin_num = DBCS_MVW_Model2_Type_Tableau_Skin_num + 1;
	end
	DBCS_Model_Viewer_DressUpFrameModel2_Rep_Skin_Click();

end

function DBCS_Model_Viewer_DressUpFrameModel2_Blp_moins_Click()

	DBCS_MVW_Model2_Type_Tableau_Blp_num = DBCS_MVW_Model2_Type_Tableau_Blp_num - 1;
	DBCS_Model_Viewer_DressUpFrameModel2_Blp_Click();

end

function DBCS_Model_Viewer_DressUpFrameModel2_Blp_plus_Click()

	DBCS_MVW_Model2_Type_Tableau_Blp_num = DBCS_MVW_Model2_Type_Tableau_Blp_num + 1;
	DBCS_Model_Viewer_DressUpFrameModel2_Blp_Click();

end

function DBCS_Model_Viewer_DressUpFrameModel2_Blp_Click()

local itype = UIDropDownMenu_GetSelectedValue(DBCS_Model_Viewer_DressUpFrameModel2_Type);
local stype = DBCS_MVW_Model2_Type_Tableau_Type[itype];
local i;
local inum;
local s1,s2,s3;
local smodelblp;

	if ( DBCS_MVW_Model2_Type_Tableau_Blp_num == 1 ) then
		DBCS_Model_Viewer_DressUpFrameModel2_Blp_moins:Hide();
	else
		DBCS_Model_Viewer_DressUpFrameModel2_Blp_moins:Show();
	end
	if ( DBCS_MVW_Model2_Type_Tableau_Blp_num == table.getn(DBCS_MVW_Model2_Type_Tableau_Blp) ) then
		DBCS_Model_Viewer_DressUpFrameModel2_Blp_plus:Hide();
	else
		DBCS_Model_Viewer_DressUpFrameModel2_Blp_plus:Show();
	end
	s1,s2,s3 = strsplit("@",DBCS_MVW_Model2_Type_Tableau_Blp[DBCS_MVW_Model2_Type_Tableau_Blp_num]);
	DBCS_Model_Viewer_DressUpFrameModel2_Blp_Libelle1:SetText(s1);
	DBCS_Model_Viewer_DressUpFrameModel2_Blp_Libelle2:SetText(s2);
	DBCS_Model_Viewer_DressUpFrameModel2_Blp_Libelle3:SetText(s3);

	DBCS_Model_Viewer_DressUpFrame_blp_Background:SetTexture();
--TraceFrame:AddMessage("stype = "..stype);
--TraceFrame:AddMessage("DBCS_MVW_Model2_Type_Tableau_Rep[DBCS_MVW_Model2_Type_Tableau_Rep_num] = "..DBCS_MVW_Model2_Type_Tableau_Rep[DBCS_MVW_Model2_Type_Tableau_Rep_num]);
--TraceFrame:AddMessage("DBCS_MVW_Model2_Type_Tableau_Skin[DBCS_MVW_Model2_Type_Tableau_Skin_num] = "..DBCS_MVW_Model2_Type_Tableau_Skin[DBCS_MVW_Model2_Type_Tableau_Skin_num]);
	smodelblp = ""..stype.."/"..DBCS_MVW_Model2_Type_Tableau_Rep[DBCS_MVW_Model2_Type_Tableau_Rep_num].."/"..s1..".blp";
	DBCS_Model_Viewer_DressUpFrame_blp_Background:SetTexture(smodelblp);

--local DBCS_MVW_Model2_Type_Tableau_Display = {};
--local DBCS_MVW_Model2_Type_Tableau_Display_num = 0;
--/script i=i+1;DEFAULT_CHAT_FRAME:AddMessage(i);DBCS_Model_Viewer_DressUpFrameModel:SetDisplayInfo(i);

	DBCS_MVW_Model2_Type_Tableau_Display = {};
	if ( DBCS_model_data_creature_par_skin2[stype] and DBCS_model_data_creature_par_skin2[stype][DBCS_MVW_Model2_Type_Tableau_Rep[DBCS_MVW_Model2_Type_Tableau_Rep_num]] and DBCS_model_data_creature_par_skin2[stype][DBCS_MVW_Model2_Type_Tableau_Rep[DBCS_MVW_Model2_Type_Tableau_Rep_num]][DBCS_MVW_Model2_Type_Tableau_Skin[DBCS_MVW_Model2_Type_Tableau_Skin_num]] and DBCS_model_data_creature_par_skin2[stype][DBCS_MVW_Model2_Type_Tableau_Rep[DBCS_MVW_Model2_Type_Tableau_Rep_num]][DBCS_MVW_Model2_Type_Tableau_Skin[DBCS_MVW_Model2_Type_Tableau_Skin_num]][DBCS_MVW_Model2_Type_Tableau_Blp[DBCS_MVW_Model2_Type_Tableau_Blp_num]] ) then
		i = 0;
		for inum, _ in pairs(DBCS_model_data_creature_par_skin2[stype][DBCS_MVW_Model2_Type_Tableau_Rep[DBCS_MVW_Model2_Type_Tableau_Rep_num]][DBCS_MVW_Model2_Type_Tableau_Skin[DBCS_MVW_Model2_Type_Tableau_Skin_num]][DBCS_MVW_Model2_Type_Tableau_Blp[DBCS_MVW_Model2_Type_Tableau_Blp_num]]) do
			i = i + 1;
			DBCS_MVW_Model2_Type_Tableau_Display[i] = inum;
--TraceFrame:AddMessage("inum = "..inum);
		end
		table.sort(DBCS_MVW_Model2_Type_Tableau_Display);
		DBCS_MVW_Model2_Type_Tableau_Display_num = 1;
		--DBCS_Model_Viewer_DressUpFrameModel2:SetDisplayInfo(DBCS_MVW_Model2_Type_Tableau_Display[DBCS_MVW_Model2_Type_Tableau_Display_num]);
	end
	DBCS_Model_Viewer_DressUpFrameModel2_Display_Click();

end

function DBCS_Model_Viewer_DressUpFrameModel2_Display_moins_Click()

	DBCS_MVW_Model2_Type_Tableau_Display_num = DBCS_MVW_Model2_Type_Tableau_Display_num - 1;
	DBCS_Model_Viewer_DressUpFrameModel2_Display_Click();

end

function DBCS_Model_Viewer_DressUpFrameModel2_Display_plus_Click()

	DBCS_MVW_Model2_Type_Tableau_Display_num = DBCS_MVW_Model2_Type_Tableau_Display_num + 1;
	DBCS_Model_Viewer_DressUpFrameModel2_Display_Click();

end

function DBCS_Model_Viewer_DressUpFrameModel2_Display_Click()

local sskin;

	if ( DBCS_MVW_Model2_Type_Tableau_Display_num == 1 ) then
		DBCS_Model_Viewer_DressUpFrameModel2_Display_moins:Hide();
	else
		DBCS_Model_Viewer_DressUpFrameModel2_Display_moins:Show();
	end
	if ( DBCS_MVW_Model2_Type_Tableau_Display_num == table.getn(DBCS_MVW_Model2_Type_Tableau_Display) ) then
		DBCS_Model_Viewer_DressUpFrameModel2_Display_plus:Hide();
	else
		DBCS_Model_Viewer_DressUpFrameModel2_Display_plus:Show();
	end
	DBCS_Model_Viewer_DressUpFrameModel2_Display_Num:SetText(DBCS_MVW_Model2_Type_Tableau_Display[DBCS_MVW_Model2_Type_Tableau_Display_num]);
	DBCS_Model_Viewer_DressUpFrameModel2:SetPosition(0,0,0);
	DBCS_Model_Viewer_DressUpFrameModel2:SetModelScale(1);
	DBCS_Model_Viewer_DressUpFrameModel2:SetDisplayInfo(DBCS_MVW_Model2_Type_Tableau_Display[DBCS_MVW_Model2_Type_Tableau_Display_num]);
	DBCS_MVW_model_setposition_display(DBCS_Model_Viewer_DressUpFrameModel2);
	--sskin = "creature/"..DBCS_MVW_Model2_Type_Tableau_Rep[DBCS_MVW_Model2_Type_Tableau_Rep_num].."/"..DBCS_MVW_Model2_Type_Tableau_Skin[DBCS_MVW_Model2_Type_Tableau_Skin_num]..".m2";
	--sskin = strlower(sskin);
--TraceFrame:AddMessage("sskin = "..sskin);
	--if ( DBCS_MVW_position_tableau_display_info[sskin] ) then
--TraceFrame:AddMessage("DBCS_Model_Viewer_DressUpFrameModel2_Display_Click DBCS_MVW_position_tableau_display_info[sskin] = "..sskin);
	--	DBCS_Model_Viewer_DressUpFrameModel2:SetPosition(DBCS_MVW_position_tableau_display_info[sskin]["z"],DBCS_MVW_position_tableau_display_info[sskin]["x"],DBCS_MVW_position_tableau_display_info[sskin]["y"]);
	--	--if ( DBCS_MVW_position_tableau_display_info[sskin]["s"] ) then
	--	--	DBCS_Model_Viewer_DressUpFrameModel2:SetModelScale(DBCS_MVW_position_tableau_display_info[sskin]["s"]);
	--	--end
	--end
--/script DBCS_Model_Viewer_DressUpFrameModel2:SetModelScale(0.27);

end

function DBCS_MVW_model_setposition_display(model)

local sskin;

	if ( model:GetName() == "DBCS_Model_Viewer_DressUpFrameModel2" ) then
		DBCS_Model_Viewer_DressUpFrameModelXYZ_X:SetText("0");
		DBCS_Model_Viewer_DressUpFrameModelXYZ_Y:SetText("0");
		DBCS_Model_Viewer_DressUpFrameModelXYZ_Z:SetText("0");
	end
	sskin = model:GetModel();
	if ( type(sskin) == "string" ) then
		sskin = string.gsub(sskin,"\\","/");
		sskin = strlower(sskin);
		if ( DBCS_MVW_position_tableau_display_info[sskin] ) then
			model:SetPosition(DBCS_MVW_position_tableau_display_info[sskin]["z"],DBCS_MVW_position_tableau_display_info[sskin]["x"],DBCS_MVW_position_tableau_display_info[sskin]["y"]);
			if ( model:GetName() == "DBCS_Model_Viewer_DressUpFrameModel2" ) then
				DBCS_Model_Viewer_DressUpFrameModelXYZ_X:SetText(DBCS_MVW_position_tableau_display_info[sskin]["x"]*1000000);
				DBCS_Model_Viewer_DressUpFrameModelXYZ_Y:SetText(DBCS_MVW_position_tableau_display_info[sskin]["y"]*1000000);
				DBCS_Model_Viewer_DressUpFrameModelXYZ_Z:SetText(DBCS_MVW_position_tableau_display_info[sskin]["z"]*1000000);
			end
		end
	end

end

function DBCS_Model_Viewer_DressUpFrameModel_Model_OnClick()

local srep;
local snom;
local snomblp;
local inummodele;

	DBCS_Model_Viewer_DressUpFrameModel_Model:Hide();
	DBCS_Model_Viewer_DressUpFrameModel_Player:Show();
	DBCS_Model_Viewer_DressUpFrameModel:Show();
	DBCS_Model_Viewer_DressUpFrameModel2:Hide();
	--DBCS_Model_Viewer_DressUpFrame_Target_Model:SetDisplayInfo(DBCS_MVW_Model2_Type_Tableau_Display[DBCS_MVW_Model2_Type_Tableau_Display_num]);
	--DBCS_MVW_afficher_model_target(DBCS_Model_Viewer_DressUpFrameModel2_Blp_Libelle1:GetText());
--TraceFrame:AddMessage("stype = "..stype);
--TraceFrame:AddMessage("DBCS_MVW_Model2_Type_Tableau_Rep[DBCS_MVW_Model2_Type_Tableau_Rep_num] = "..DBCS_MVW_Model2_Type_Tableau_Rep[DBCS_MVW_Model2_Type_Tableau_Rep_num]);
--TraceFrame:AddMessage("DBCS_MVW_Model2_Type_Tableau_Skin[DBCS_MVW_Model2_Type_Tableau_Skin_num] = "..DBCS_MVW_Model2_Type_Tableau_Skin[DBCS_MVW_Model2_Type_Tableau_Skin_num]);
	DBCS_MVW_Model2_Type_Tableau_Type_num = UIDropDownMenu_GetSelectedValue(DBCS_Model_Viewer_DressUpFrameModel2_Type);
--TraceFrame:AddMessage("DBCS_MVW_Model2_Type_Tableau_Type_num = "..DBCS_MVW_Model2_Type_Tableau_Type_num);
	srep = DBCS_MVW_Model2_Type_Tableau_Rep[DBCS_MVW_Model2_Type_Tableau_Rep_num];
	snom = DBCS_MVW_Model2_Type_Tableau_Skin[DBCS_MVW_Model2_Type_Tableau_Skin_num];
	if ( DBCS_MVW_Model2_Type_Tableau_Type_num == 2 ) then
		inummodele = DBCS_MVW_recherche_nummodele(srep,snom);
		if ( inummodele ) then
			snomblp = DBCS_Model_Viewer_DressUpFrameModel2_Blp_Libelle1:GetText();
			DBCS_MVW_affichermodele(inummodele,false,nil,snomblp);
		end
	else
		DBCS_Model_Viewer_DressUpFrameModel:SetModel(DBCS_MVW_Model2_Type_Tableau_Type[DBCS_MVW_Model2_Type_Tableau_Type_num].."/"..DBCS_MVW_Model2_Type_Tableau_Rep[DBCS_MVW_Model2_Type_Tableau_Rep_num].."/"..DBCS_MVW_Model2_Type_Tableau_Skin[DBCS_MVW_Model2_Type_Tableau_Skin_num]..".m2");
	end

end

function DBCS_Model_Viewer_DressUpFrameModel_Player_OnClick()

local srep;
local sskin;
local sblp;

	DBCS_Model_Viewer_DressUpFrameModel_Model:Show();
	DBCS_Model_Viewer_DressUpFrameModel_Player:Hide();
	DBCS_Model_Viewer_DressUpFrameModel:Hide();
	DBCS_Model_Viewer_DressUpFrameModel2:Show();
	srep = DBCS_Model_Viewer_DressUpFrameModelRepertoire:GetText();
	sskin = DBCS_Model_Viewer_DressUpFrameModelModele:GetText();
	sblp = DBCS_Model_Viewer_DressUpFrameModelBlp:GetText();
	DBCS_MVW_afficher_modele_blp("creature",srep,sskin,sblp.."@@",nil);

end

--/script DBCS_MVW_afficher_modele_blp("creature","alliancelionmount","alliancelion","alliancelion@@",12562)

function DBCS_MVW_afficher_modele_blp(stype,srep,smodele,sblp,inumdisplay)

-- local DBCS_MVW_Model2_Type_Tableau_Type = {};
-- local DBCS_MVW_Model2_Type_Tableau_Type_num = 0;
-- local DBCS_MVW_Model2_Type_Tableau_Rep = {};
-- local DBCS_MVW_Model2_Type_Tableau_Rep_num = 0;
-- local DBCS_MVW_Model2_Type_Tableau_Rep_lettre = {};
-- local DBCS_MVW_Model2_Type_Tableau_Rep_lettre_num = 0;
-- local DBCS_MVW_Model2_Type_Tableau_Skin = {};
-- local DBCS_MVW_Model2_Type_Tableau_Skin_num = 0;
-- local DBCS_MVW_Model2_Type_Tableau_Blp = {};
-- local DBCS_MVW_Model2_Type_Tableau_Blp_num = 0;
-- local DBCS_MVW_Model2_Type_Tableau_Display = {};
-- local DBCS_MVW_Model2_Type_Tableau_Display_num = 0;

local i;
local s;
local bfin;
local sblp1;
local sblp2;
local ireturn = nil;

	stype = strlower(stype);
	DBCS_MVW_Model2_Type_Tableau_Type_num = 0;
	for i = 1 , table.getn(DBCS_MVW_Model2_Type_Tableau_Type) do
		if ( DBCS_MVW_Model2_Type_Tableau_Type[i] == stype ) then
			DBCS_MVW_Model2_Type_Tableau_Type_num = i;
		end
	end
	if ( DBCS_MVW_Model2_Type_Tableau_Type_num > 0 ) then
		UIDropDownMenu_SetSelectedValue(DBCS_Model_Viewer_DressUpFrameModel2_Type,DBCS_MVW_Model2_Type_Tableau_Type_num);
		DBCS_Model_Viewer_DressUpFrameModel2_TypeText:SetText(DBCS_MVW_Model2_Type_Tableau_Type[DBCS_MVW_Model2_Type_Tableau_Type_num]);
		DBCS_MVW_Model2_Type_Tableau_Rep_Init();
		s = strsub(srep,1,1);
		DBCS_MVW_Model2_Type_Tableau_Rep_lettre_num = 0;
		for i = 1 , table.getn(DBCS_MVW_Model2_Type_Tableau_Rep_lettre) do
			if ( DBCS_MVW_Model2_Type_Tableau_Rep_lettre[i] == s ) then
				DBCS_MVW_Model2_Type_Tableau_Rep_lettre_num = i;
			end
		end
		if ( DBCS_MVW_Model2_Type_Tableau_Rep_lettre_num > 0 ) then
			UIDropDownMenu_SetSelectedValue(DBCS_Model_Viewer_DressUpFrameModel2_Type_alpha,DBCS_MVW_Model2_Type_Tableau_Rep_lettre_num);
			srep = strlower(srep);
			DBCS_MVW_Model2_Type_Tableau_Rep_num = 0;
			bfin = false;
			for i = 1 , table.getn(DBCS_MVW_Model2_Type_Tableau_Rep) do
				if ( bfin == false ) then
					if ( srep == DBCS_MVW_Model2_Type_Tableau_Rep[i] ) then
						DBCS_MVW_Model2_Type_Tableau_Rep_num = i;
						bfin = true;
					end
				end
			end
			if ( DBCS_MVW_Model2_Type_Tableau_Rep_num > 0 ) then
				DBCS_MVW_Model2_Type_Tableau_Skin_Init();
				smodele = strlower(smodele);
				DBCS_MVW_Model2_Type_Tableau_Skin_num = 0;
				bfin = false;
				for i = 1 , table.getn(DBCS_MVW_Model2_Type_Tableau_Skin) do
					if ( bfin == false ) then
						if ( smodele == DBCS_MVW_Model2_Type_Tableau_Skin[i] ) then
							DBCS_MVW_Model2_Type_Tableau_Skin_num = i;
							bfin = true;
						end
					end
				end
				if ( DBCS_MVW_Model2_Type_Tableau_Skin_num > 0 ) then
					DBCS_Model_Viewer_DressUpFrameModel2_Rep_Skin_Click();
					if ( sblp == nil ) then
						sblp = "@@";
					else
						sblp = strlower(sblp);
					end
					DBCS_MVW_Model2_Type_Tableau_Blp_num = 0;
					bfin = false;
					for i = 1 , table.getn(DBCS_MVW_Model2_Type_Tableau_Blp) do
						if ( bfin == false ) then
							if ( sblp == DBCS_MVW_Model2_Type_Tableau_Blp[i] ) then
								DBCS_MVW_Model2_Type_Tableau_Blp_num = i;
								bfin = true;
							end
						end
					end
					if ( DBCS_MVW_Model2_Type_Tableau_Blp_num == 0 ) then
						--	rechercher le blp qui commence pareil
						sblp1 = strsplit("@",sblp);
						bfin = false;
						for i = 1 , table.getn(DBCS_MVW_Model2_Type_Tableau_Blp) do
							if ( bfin == false ) then
								sblp2 = strsplit("@",DBCS_MVW_Model2_Type_Tableau_Blp[i]);
								if ( sblp1 == sblp2 ) then
									DBCS_MVW_Model2_Type_Tableau_Blp_num = i;
									bfin = true;
								end
							end
						end
					end
					if ( DBCS_MVW_Model2_Type_Tableau_Blp_num > 0 ) then
						DBCS_Model_Viewer_DressUpFrameModel2_Blp_Click();
						if ( inumdisplay ) then
							DBCS_MVW_Model2_Type_Tableau_Display_num = 0;
							bfin = false;
							for i = 1 , table.getn(DBCS_MVW_Model2_Type_Tableau_Display) do
								if ( bfin == false ) then
									if ( inumdisplay == DBCS_MVW_Model2_Type_Tableau_Display[i] ) then
										DBCS_MVW_Model2_Type_Tableau_Display_num = i;
										bfin = true;
									end
								end
							end
							if ( DBCS_MVW_Model2_Type_Tableau_Display_num == 0 ) then
								--DBCS_MVW_Model2_Type_Tableau_Display_num = math.random(table.getn(DBCS_MVW_Model2_Type_Tableau_Display));
								DBCS_MVW_Model2_Type_Tableau_Display_num = 1;
							end
							DBCS_Model_Viewer_DressUpFrameModel2_Display_Click();
						else
							--DBCS_MVW_Model2_Type_Tableau_Display_num = math.random(table.getn(DBCS_MVW_Model2_Type_Tableau_Display));
							DBCS_MVW_Model2_Type_Tableau_Display_num = 1;
							DBCS_Model_Viewer_DressUpFrameModel2_Display_Click();
						end
					else
						DBCS_MVW_Model2_Type_Tableau_Blp_num = 1;
					end
				else
					DBCS_MVW_Model2_Type_Tableau_Skin_num = 1;
				end
			else
				DBCS_MVW_Model2_Type_Tableau_Rep_num = 1;
			end
		else
			DBCS_MVW_Model2_Type_Tableau_Rep_lettre_num = 1;
		end
	else
		DBCS_MVW_Model2_Type_Tableau_Type_num = 1;
	end
	ireturn = DBCS_MVW_Model2_Type_Tableau_Display[DBCS_MVW_Model2_Type_Tableau_Display_num];
	
	return ireturn;

end

function DBCS_MVW_afficher_mobs_model(inumPNJ)

local stype;
local srep;
local sskin;
local sval = nil;
local stableau;
local i;
local ipos;
local sblp;
local idisplay;
local inumdisplay;

	ShowUIPanel(DBCS_Model_Viewer_DressUpFrame);
	DBCS_Model_Viewer_DressUpFrameModel_Player_OnClick();
	DBCS_Model_Viewer_numcreature = inumPNJ;
	--stype = "creature";
	--srep = "celestialdragonwyrm";
	--sskin = "celestialdragonwyrm";
	--sval = "creature/celestialdragonwyrm/celestialdragonwyrm.m2";
	if ( DBCS_mobs_model and DBCS_mobs_model[inumPNJ] and DBCS_mobs_model[inumPNJ][1] and DBCS_mobs_model[inumPNJ][1]["model"] ) then
		sval = DBCS_mobs_model[inumPNJ][1]["model"];
		sval = string.gsub(sval,"\\","/");
		sval = strlower(sval);
	else
		DBCS_Model_Viewer_DressUpFrameModel_cache:SetCreature(DBCS_Model_Viewer_numcreature);
		sval = DBCS_Model_Viewer_DressUpFrameModel_cache:GetModel();
		sval = string.gsub(sval,"\\","/");
		sval = strlower(sval);
	end
	stableau = { strsplit("/",sval) };
	stype = stableau[1];
	srep = "";
	for i = 2 , table.getn(stableau) do
		if ( i == table.getn(stableau) ) then
			ipos = strfind(stableau[i],"m2");
			if ( ipos ) then
				stableau[i] = strsub(stableau[i],1,strlen(stableau[i])-3);
			end
			sskin = stableau[i];
		else
			if ( i > 2 ) then
				srep = srep.."/";
			end
			srep = srep..stableau[i];
		end
	end
	sblp = "";
	if ( DBCS_mobs_model and DBCS_mobs_model[inumPNJ] and DBCS_mobs_model[inumPNJ][1] and DBCS_mobs_model[inumPNJ][1]["blp"] ) then
		sblp = DBCS_mobs_model[inumPNJ][1]["blp"];
	end
	if ( strfind(sblp,"@") == nil ) then
		sblp = sblp.."@@";
	end
	idisplay = nil;
	if ( DBCS_mobs_model and DBCS_mobs_model[inumPNJ] and DBCS_mobs_model[inumPNJ][1] and DBCS_mobs_model[inumPNJ][1]["display"] ) then
		idisplay = DBCS_mobs_model[inumPNJ][1]["display"];
	end
	DBCS_Model_Viewer_DressUpFrameModel2:SetPosition(0,0,0);
	DBCS_Model_Viewer_DressUpFrameModel2:SetModelScale(1);
	inumdisplay = DBCS_MVW_afficher_modele_blp(stype,srep,sskin,sblp,idisplay);
	if ( inumdisplay ) then
		DBCS_Model_Viewer_DressUpFrame_Target_Model:SetDisplayInfo(inumdisplay);
		DBCS_MVW_model_setposition_display(DBCS_Model_Viewer_DressUpFrame_Target_Model);
		DBCS_MVW_model_setposition_display(DBCS_Model_Viewer_DressUpFrameModel2);
	--else
	--	if ( sval ) then
	--		DBCS_Model_Viewer_DressUpFrame_Target_Model:SetModel(sval);
	--	end
	end

end

--/script DBCS_Model_Viewer_DressUpFrame_Target_creature_blp_moins:Show();
--/script DBCS_Model_Viewer_DressUpFrame_Target_creature_blp_plus:Show();
--/script DBCS_MVW_boutons_creature_blp_afficher();
function DBCS_MVW_boutons_creature_blp_afficher()

	DBCS_Model_Viewer_DressUpFrame_Target_creature_blp_moins:Show();
	DBCS_Model_Viewer_DressUpFrame_Target_creature_blp_plus:Show();
	DBCS_Model_Viewer_DressUpFrameModel2_Display_enreg:Show();

end

function DBCS_Model_Viewer_DressUpFrameModel2_Display_enreg_Click()

local smodel_courant;
local smodel_target;
local sblp;
local idisplay;
local idate;
local inumPNJ_vu;

	inumPNJ_vu = DBCS_Model_Viewer_DressUpFrame_Target_creature_num:GetText();
	if ( inumPNJ_vu == nil or inumPNJ_vu == "" ) then
		inumPNJ_vu = "0";
	end
	inumPNJ_vu = tonumber(inumPNJ_vu);
	if ( DBCS_Model_Viewer_numcreature == inumPNJ_vu ) then
		--TraceFrame:AddMessage("DBCS_Model_Viewer_Model_Blp_enreg : bon num : "..DBCS_Model_Viewer_numcreature);
	else
		TraceFrame:AddMessage("DBCS_Model_Viewer_Model_Blp_enreg : mauvais num : "..DBCS_Model_Viewer_numcreature);
		return nil;
	end

	smodel_courant = DBCS_Model_Viewer_DressUpFrameModel2:GetModel();
	smodel_courant = string.gsub(smodel_courant,"\\","/");
	smodel_courant = strlower(smodel_courant);
	smodel_target = DBCS_Model_Viewer_DressUpFrame_Target_Model:GetModel();
	smodel_target = string.gsub(smodel_target,"\\","/");
	smodel_target = strlower(smodel_target);
	
	if ( smodel_courant == smodel_target ) then
		sblp = DBCS_MVW_Model2_Type_Tableau_Blp[DBCS_MVW_Model2_Type_Tableau_Blp_num];
		idisplay = DBCS_MVW_Model2_Type_Tableau_Display[DBCS_MVW_Model2_Type_Tableau_Display_num];
		idate = tonumber(date("%Y%m%d"));
		DBCS_mobs_model_display_ajout(DBCS_Model_Viewer_numcreature,smodel_target,sblp,idisplay,idate,smodel_target);
	else
		TraceFrame:AddMessage("DBCS_Model_Viewer_DressUpFrameModel2_Display_enreg_Click : mauvais skin : "..DBCS_Model_Viewer_numcreature);
	end

end

--/script DBCS_Model_Viewer_DressUpFrameModel2:ClearFog();
--/script DBCS_Model_Viewer_DressUpFrameModel2:SetFogFar(50);
--/script DBCS_Model_Viewer_DressUpFrameModel2:SetFogNear(50);
--/script DBCS_Model_Viewer_DressUpFrameModel2:SetRotation(0);
--/script DBCS_Model_Viewer_DressUpFrameModel2:SetRotation(0.1);
--/script DBCS_Model_Viewer_DressUpFrameModel2:SetRotation(0.2);
--/script DBCS_Model_Viewer_DressUpFrameModel2:SetRotation(0.3);
--/script DBCS_Model_Viewer_DressUpFrameModel2:SetRotation(1);
--/script DBCS_Model_Viewer_DressUpFrameModel2:SetRotation(2);
--/script DBCS_Model_Viewer_DressUpFrameModel2:SetRotation(3);
--/script DBCS_Model_Viewer_DressUpFrameModel2:SetRotation(10);
--/script DBCS_Model_Viewer_DressUpFrameModel2:SetRotation(20);
--/script DBCS_Model_Viewer_DressUpFrameModel2:SetRotation(30);
--/script DBCS_Model_Viewer_DressUpFrameModel2:SetPortraitZoom(0.0);
--/script DBCS_Model_Viewer_DressUpFrameModel2:SetPortraitZoom(0.1);
--/script DBCS_Model_Viewer_DressUpFrameModel2:SetPortraitZoom(0.2);
--/script DBCS_Model_Viewer_DressUpFrameModel2:SetPortraitZoom(0.3);
--/script DBCS_Model_Viewer_DressUpFrameModel2:SetPortraitZoom(0.4);
--/script DBCS_Model_Viewer_DressUpFrameModel2:SetPortraitZoom(0.5);
--/script DBCS_Model_Viewer_DressUpFrameModel2:SetPortraitZoom(0.6);
--/script DBCS_Model_Viewer_DressUpFrameModel2:SetPortraitZoom(0.7);
--/script DBCS_Model_Viewer_DressUpFrameModel2:SetPortraitZoom(0.8);
--/script DBCS_Model_Viewer_DressUpFrameModel2:SetPortraitZoom(0.9);
--/script DBCS_Model_Viewer_DressUpFrameModel2:SetPortraitZoom(1);
--/script DBCS_Model_Viewer_DressUpFrameModel2:SetPortraitZoom(2);
--/script DBCS_Model_Viewer_DressUpFrameModel2:SetPortraitZoom(5);

--	DBCS_Region_Minimap_combo_TypeRegion1Middle:SetWidth(200);

--/script DBCS_MVW_Model2_Type_DropDown_OnLoad(DBCS_Model_Viewer_DressUpFrameModel2);
--UIDropDownMenu_SetSelectedValue(DBCS_Model_Viewer_DressUpFrameModel2,-1);

--/script DBCS_Model_Viewer_DressUpFrameModel2:Hide();
--/script DBCS_Model_Viewer_DressUpFrameModel2:Show();

--/script DBCS_Model_Viewer_DressUpFrameModel2:Undress();

--/script DBCS_Model_Viewer_DressUpFrameModel:Hide();
--/script DBCS_Model_Viewer_DressUpFrameModel:Show();

--boundairelemental		tout à revoir
--boundfireelemental	
--cloud
-->c fini
--dragonwhelp
--druidbear
-->d fini
--ent
--etherial
--etherialrobe
-->e fini

--/script DBCS_Model_Viewer_DressUpFrameModel2:SetCamera(0);
--/script DBCS_Model_Viewer_DressUpFrameModel2:SetCamera(1);
--/script DBCS_Model_Viewer_DressUpFrameModel2:SetCamera(2);

--DBCS_MVW_type_recherche_blp_display = 1;	-- que les créatures qui n'ont pas de blp
--DBCS_MVW_type_recherche_blp_display = 2;	-- que les autres que créatures qui n'ont pas de display
--DBCS_MVW_type_recherche_blp_display = 3;	-- tous ceux qui n'ont pas de display
--DBCS_MVW_type_recherche_blp_display = 4;	-- que les autres que créatures et que character qui n'ont pas de display
--DBCS_MVW_type_recherche_blp_display = 5;	-- que les autres que character qui n'ont pas de display
--/script DBCS_MVW_type_recherche_blp_display = 1;
--/script DBCS_MVW_type_recherche_blp_display = 2;
--/script DBCS_MVW_type_recherche_blp_display = 3;
--/script DBCS_MVW_type_recherche_blp_display = 4;
--/script DBCS_MVW_type_recherche_blp_display = 5;

--/script DBCS_MVW_boutons_creature_blp_afficher();

DBCS_MVW_position_tableau_display_info = {};
DBCS_MVW_position_tableau_display_info["creature/airelemental/airelemental.m2"] = { x = 0, y = -1, z = -4 };
--DBCS_MVW_position_tableau_display_info["creature/alexstrasza/alexstrasza.m2"] = { x = 0, y = 0, z = 0, s = .27 };
DBCS_MVW_position_tableau_display_info["creature/alliancebomb/alliancebomb.m2"] = { x = 0, y = 0, z = 20 };
DBCS_MVW_position_tableau_display_info["creature/alliancebrasscannon/alliancebrasscannon.m2"] = { x = 0, y = 0, z = -35 };
DBCS_MVW_position_tableau_display_info["creature/alliancebrasscannon/alliancebrasscannon_flat.m2"] = { x = 0, y = 0, z = -35 };
DBCS_MVW_position_tableau_display_info["creature/alliancelionmount/alliancelion.m2"] = { x = .8, y = -3.7, z = -10 };
DBCS_MVW_position_tableau_display_info["creature/alliancepvpmount/alliancepvpmount.m2"] = { x = 0, y = -2.5, z = -2 };
DBCS_MVW_position_tableau_display_info["creature/alliancerider/alliancerider.m2"] = { x = 0, y = 0, z = -5 };
--DBCS_MVW_position_tableau_display_info["creature/ammunae/ammunae.m2"] = { x = .5, y = 5, z = -12 };
--DBCS_MVW_position_tableau_display_info["creature/ancientoflore/ancientoflore.m2"] = { x = 3, y = 8, z = -15 };
DBCS_MVW_position_tableau_display_info["creature/ancientprotector/ancientprotector.m2"] = { x = .6, y = 2, z = -10 };
DBCS_MVW_position_tableau_display_info["creature/anubisath/anubisath.m2"] = { x = .5, y = 5, z = -11 };
DBCS_MVW_position_tableau_display_info["creature/arcanegolem/arcanegolembroken.m2"] = { x = .3, y = 9, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/band/band_drumset.m2"] = { x = 0, y = 0, z = -10 };
DBCS_MVW_position_tableau_display_info["creature/band/bandtaurenmale.m2"] = { x = 0, y = -1, z = -4 };
DBCS_MVW_position_tableau_display_info["creature/basiliskoutland/basilisk_outland.m2"] = { x = -1, y = 1, z = -4 };
--DBCS_MVW_position_tableau_display_info["creature/bear/bear.m2"] = { x = 0, y = -1, z = -2 };
--DBCS_MVW_position_tableau_display_info["creature/bear/spectralbear.m2"] = { x = 0, y = -1, z = -2 };
DBCS_MVW_position_tableau_display_info["creature/blackhole/blackhole.m2"] = { x = 0, y = 0, z = -10 };
DBCS_MVW_position_tableau_display_info["creature/bodyofkathune/bodyofkathune.m2"] = { x = 0, y = 0, z = 52 };
DBCS_MVW_position_tableau_display_info["creature/bogbeast/bogbeast.m2"] = { x = 0, y = -1.5, z = -6 };
--DBCS_MVW_position_tableau_display_info["creature/bonegolem/bonegolem.m2"] = { x = .5, y = .5, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/bouldergiant/bouldergiant.m2"] = { x = 0, y = -3, z = -10 };
DBCS_MVW_position_tableau_display_info["creature/broom/be_broom01.m2"] = { x = 0, y = -1.5, z = -2 };
--DBCS_MVW_position_tableau_display_info["creature/bubble_creature/bubble_creature.m2"] = { x = 0, y = 13, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/catapultball/catapultball01_creature.m2"] = { x = 0, y = -1, z = -5 };
--DBCS_MVW_position_tableau_display_info["creature/cenarius/cenarius.m2"] = { x = -2, y = 0, z = -4 };
DBCS_MVW_position_tableau_display_info["creature/centaur/centaur.m2"] = { x = 1, y = -.5, z = -2 };
DBCS_MVW_position_tableau_display_info["creature/centaur/centaurcaster.m2"] = { x = 1, y = -.5, z = -2 };
DBCS_MVW_position_tableau_display_info["creature/centaur/centaurkhan.m2"] = { x = 1, y = 0, z = -2 };
--DBCS_MVW_position_tableau_display_info["creature/centaur/centaurwarrior.m2"] = { x = 0, y = 0, z = 2 };
DBCS_MVW_position_tableau_display_info["creature/chimera/chimera.m2"] = { x = 0, y = -3, z = -7 };
DBCS_MVW_position_tableau_display_info["creature/chimeraoutland/chimeraoutland.m2"] = { x = 0, y = -3, z = -7 };
DBCS_MVW_position_tableau_display_info["creature/clawofkathune/clawofkathune.m2"] = { x = 0, y = 1.5, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/clockworkgiant/clockworkgiant.m2"] = { x = 0, y = 2, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/coldwraith/coldwraith.m2"] = { x = 0, y = .4, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/cow/cow.m2"] = { x = 0, y = .3, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/cryptfiend/cryptfiend.m2"] = { x = 0, y = -2, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/crystalportal/crystalportal.m2"] = { x = 0, y = 4, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/demolishervehicle/demolishervehicle.m2"] = { x = -3, y = 20, z = -20 };
DBCS_MVW_position_tableau_display_info["creature/demonhunter/demonhunter.m2"] = { x = -1.5, y = 6.5, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/diemetradon/diemetradon.m2"] = { x = 2.5, y = -5, z = -15 };
DBCS_MVW_position_tableau_display_info["creature/dragon/dragon.m2"] = { x = 0, y = 0, z = 15 };
DBCS_MVW_position_tableau_display_info["creature/dragon/dragonazurgoz.m2"] = { x = 0, y = 33, z = -15 };
DBCS_MVW_position_tableau_display_info["creature/dragon/dragonnefarian.m2"] = { x = 0, y = 1.2, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/dragon/dragononyxia.m2"] = { x = 0, y = 3, z = 20 };
DBCS_MVW_position_tableau_display_info["creature/dragon/lethon.m2"] = { x = 0, y = 25, z = -20 };
DBCS_MVW_position_tableau_display_info["creature/dragon/northrenddragon.m2"] = { x = 0, y = 1, z = 15 };
DBCS_MVW_position_tableau_display_info["creature/dragon/taerar.m2"] = { x = 0, y = 0, z = 10 };
DBCS_MVW_position_tableau_display_info["creature/dragon/taerar_q.m2"] = { x = 0, y = 25, z = -25 };
--DBCS_MVW_position_tableau_display_info["creature/dragonatramedes/dragonatramedes.m2"] = { x = 0, y = 2, z = 20 };
DBCS_MVW_position_tableau_display_info["creature/dragondarkshade/dragondarkshade.m2"] = { x = 0, y = 17, z = -20 };
DBCS_MVW_position_tableau_display_info["creature/dragonkalecgos/dragonkalecgos.m2"] = { x = 0, y = 0, z = 15 };
DBCS_MVW_position_tableau_display_info["creature/dragonkalecgos/dragonkalecgos_flighttier.m2"] = { x = 0, y = 0, z = 15 };
--DBCS_MVW_position_tableau_display_info["creature/dragonnefarianzombified/dragonnefarianzombified.m2"] = { x = 0, y = 1, z = 15 };
DBCS_MVW_position_tableau_display_info["creature/dragonredcrystal/redcrystaldragon.m2"] = { x = 0, y = 22, z = -20 };
DBCS_MVW_position_tableau_display_info["creature/dragonredcrystal/redcrystaldragonhologram.m2"] = { x = 0, y = 22, z = -20 };
DBCS_MVW_position_tableau_display_info["creature/dragonsinestra/dragonsinestra.m2"] = { x = 0, y = 1, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/dragonsinestra/dragontarecgosa.m2"] = { x = 0, y = 1, z = 15 };
DBCS_MVW_position_tableau_display_info["creature/dragonspawn/dragonspawngreater.m2"] = { x = 0, y = 0, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/dragonspawn/dragonspawnoverlordnexus.m2"] = { x = 0, y = 0, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/dragonspawn/dragonspawntwilight.m2"] = { x = 1, y = -1, z = -5 };
--DBCS_MVW_position_tableau_display_info["creature/dragonspawn/dragonspawntwilightarmored.m2"] = { x = 1, y = 0, z = -5 };
--DBCS_MVW_position_tableau_display_info["creature/dragonspawn/dragonspawntwilightcaster.m2"] = { x = 1, y = -1, z = -5 };
--DBCS_MVW_position_tableau_display_info["creature/dragonspawn/dragonspawntwilightoverlord.m2"] = { x = 0, y = -.5, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/dragonspawnarmoreddarkshade/dragonspawnarmoreddarkshade.m2"] = { x = 0, y = -1, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/dragonspawncaster/dragonspawncaster.m2"] = { x = 2, y = -1, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/dragonspawncasterdarkshade/dragonspawncasterdarkshade.m2"] = { x = 0, y = -1, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/dragonspawndarkshade/dragonspawndarkshade.m2"] = { x = 0, y = -1, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/dragonspawnnexus/dragonspawnarmorednexus.m2"] = { x = 1.5, y = -1.5, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/dragonspawnoverlorddarkshade/dragonspawnoverlorddarkshade.m2"] = { x = 0, y = -2, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/dragonwhelpdarkshade/dragonwhelpdarkshade.m2"] = { x = .3, y = 1, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/dragonwhelpoutland/dragonwhelpoutland.m2"] = { x = 0, y = .6, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/drake/orcdrakerider.m2"] = { x = 0, y = 1, z = -20 };
DBCS_MVW_position_tableau_display_info["creature/drakedarkshade/drakedarkshade.m2"] = { x = 0, y = -10, z = -20 };
DBCS_MVW_position_tableau_display_info["creature/dryad/dryad.m2"] = { x = .3, y = .5, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/dryder/dryder.m2"] = { x = .5, y = 0, z = -10 };
DBCS_MVW_position_tableau_display_info["creature/earthen_onager_vehicle/earthen_onager_vehicle.m2"] = { x = -4.5, y = -3, z = -20 };
DBCS_MVW_position_tableau_display_info["creature/egg/eggcreature.m2"] = { x = 0, y = -4, z = 0 };
--DBCS_MVW_position_tableau_display_info["creature/eyeofkathune/eyeofkathune.m2"] = { x = 0, y = 8, z = 40 };
DBCS_MVW_position_tableau_display_info["creature/eyestalkofkathune/eyestalkofkathune.m2"] = { x = 0, y = .5, z = -2 };
DBCS_MVW_position_tableau_display_info["creature/facelessmount/facelessmount.m2"] = { x = 0, y = -4.5, z = -10 };
DBCS_MVW_position_tableau_display_info["creature/felbat/batrider.m2"] = { x = 0, y = 0, z = -10 };
DBCS_MVW_position_tableau_display_info["creature/felbat/battaxi.m2"] = { x = 0, y = -2, z = -10 };
DBCS_MVW_position_tableau_display_info["creature/felgolem/felgolem.m2"] = { x = 1, y = 14, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/felreaver/felreaver.m2"] = { x = 0, y = 0, z = 10 };
DBCS_MVW_position_tableau_display_info["creature/flameleviathan/flameleviathan_weapon_cannon.m2"] = { x = 1.4, y = 9.5, z = -10 };
DBCS_MVW_position_tableau_display_info["creature/flyingbomber/flyingbomber.m2"] = { x = 0, y = -8, z = -20 };
DBCS_MVW_position_tableau_display_info["creature/flyingbomber/flyingbomber_02.m2"] = { x = 0, y = -30, z = 8 };
DBCS_MVW_position_tableau_display_info["creature/flyingbomber/flyingbomber_nosmoke.m2"] = { x = 0, y = -9, z = -20 };
DBCS_MVW_position_tableau_display_info["creature/flyingmachinecreature/flyingmachinecreature.m2"] = { x = 1.5, y = 4, z = -10 };
--DBCS_MVW_position_tableau_display_info["creature/flyingmachinecreature_vehicle/flyingmachinecreature_vehicle.m2"] = { x = 0, y = 0, z = 0 };	--introuvable	--toujours introuvable patch 4.2
DBCS_MVW_position_tableau_display_info["creature/forsakencatapult/forsakencatapult.m2"] = { x = 0, y = 13, z = -12 };
DBCS_MVW_position_tableau_display_info["creature/frostlord/frostlord.m2"] = { x = 0, y = 13, z = 15 };
--DBCS_MVW_position_tableau_display_info["creature/frostnymph/frostnymph.m2"] = { x = .4, y = .2, z = -1 };
DBCS_MVW_position_tableau_display_info["creature/frostwurm/frostwurm_nofrost.m2"] = { x = 0, y = 40, z = -30 };
DBCS_MVW_position_tableau_display_info["creature/frostwurmfellfire/frostwurmfellfire.m2"] = { x = 0, y = 3, z = 20 };
DBCS_MVW_position_tableau_display_info["creature/frostwurmnorthrend/frostwurmnorthrend.m2"] = { x = 0, y = 30, z = -30 };
DBCS_MVW_position_tableau_display_info["creature/gazelle/gazelle.m2"] = { x = -1.3, y = 0, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/gilneasstagecoach/gilneasstagecoach_carriage.m2"] = { x = 0, y = -2, z = -30 };
DBCS_MVW_position_tableau_display_info["creature/gilneasstagecoach/gilneasstagecoach_harness.m2"] = { x = 0, y = -13, z = -25 };
DBCS_MVW_position_tableau_display_info["creature/glaivethrowervehicle/glaivethrowervehicle.m2"] = { x = -7, y = -20, z = -6 };
DBCS_MVW_position_tableau_display_info["creature/gnollcaster/gnollcaster.m2"] = { x = -.3, y = 0, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/gnollmelee/gnollmelee.m2"] = { x = -.3, y = 0, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/gnomerocketcar/gnomerocketcar.m2"] = { x = .5, y = 5, z = -10 };
DBCS_MVW_position_tableau_display_info["creature/gnomespidertank/gnomepounder.m2"] = { x = 0, y = 12, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/gnomespidertank/gnomepoundervehicle.m2"] = { x = .5, y = 14, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/goblin_cannon/goblin_cannon.m2"] = { x = -.7, y = 14, z = -5 };
--DBCS_MVW_position_tableau_display_info["creature/goblin_riverboat_creature/goblin_riverboat_creature.m2"] = { x = 0, y = 15, z = -50 };
DBCS_MVW_position_tableau_display_info["creature/goblinhotairballoonvehicle/goblinhotairballoonvehicle.m2"] = { x = 0, y = 2, z = 20 };
DBCS_MVW_position_tableau_display_info["creature/goblinrocketcar/goblinrocketcar.m2"] = { x = -.5, y = -8, z = -20 };
--DBCS_MVW_position_tableau_display_info["creature/golemharveststage2/golemharveststage2.m2"] = { x = .5, y = 0, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/golemiron/golemcannoniron.m2"] = { x = .2, y = -.2, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/golemiron/golemiron.m2"] = { x = -.2, y = -.1, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/golemstone/golemcannonstone.m2"] = { x = .3, y = -.2, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/golemstone/golemstone.m2"] = { x = -.4, y = 0, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/grell/grell.m2"] = { x = -.2, y = 1.2, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/groundflower/groundflower.m2"] = { x = 0, y = 8, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/gryphon/gryphon.m2"] = { x = 0, y = 0, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/gryphon/gryphon_armored.m2"] = { x = 0, y = -3, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/gryphon/gryphon_ghost.m2"] = { x = 0, y = -1, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/gryphon/gryphon_skeletal.m2"] = { x = 0, y = 0, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/hakkar/hakkar.m2"] = { x = -4.4, y = 1, z = 28 };
DBCS_MVW_position_tableau_display_info["creature/harpy/harpy.m2"] = { x = .1, y = 1, z = -3 };
DBCS_MVW_position_tableau_display_info["creature/headlesshorsemanmount/headlesshorsemanmount.m2"] = { x = .4, y = 10, z = -4 };
DBCS_MVW_position_tableau_display_info["creature/hellhound/hellhound.m2"] = { x = 0, y = -1.5, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/hippogryph/hippogryph.m2"] = { x = 0, y = 0, z = -10 };
DBCS_MVW_position_tableau_display_info["creature/hordecaravan/hordecaravanvehicle.m2"] = { x = 19, y = 10, z = -45 };
DBCS_MVW_position_tableau_display_info["creature/hordecaravan/hordecaravanvehicle_carriage.m2"] = { x = 19, y = 10, z = -45 };
DBCS_MVW_position_tableau_display_info["creature/hordecaravan/hordecaravanvehicle_harness.m2"] = { x = -8, y = 10, z = -20 };
DBCS_MVW_position_tableau_display_info["creature/hordedeckgun/hordedeckgun.m2"] = { x = 0, y = -6, z = -12 };
DBCS_MVW_position_tableau_display_info["creature/hordepvpmount/hordepvpmount.m2"] = { x = 0, y = -1.6, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/horderider/horderider.m2"] = { x = 0, y = -1, z = -10 };
DBCS_MVW_position_tableau_display_info["creature/horse/horse.m2"] = { x = -1.2, y = -1, z = -6 };
--DBCS_MVW_position_tableau_display_info["creature/humanmalepeasant/humanmalepeasantwood.m2"] = { x = -.5, y = 0, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/illidanglaive/creature_illidansglaive.m2"] = { x = 0, y = 5.5, z = 0 };
--DBCS_MVW_position_tableau_display_info["creature/infernal/infernal.m2"] = { x = 1, y = 13, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/kelthuzad/kelthuzad.m2"] = { x = 0, y = 7.3, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/kodobeast/kodobeastpack.m2"] = { x = 2.2, y = -4, z = -40 };
DBCS_MVW_position_tableau_display_info["creature/kodobeast/kodobeastpvpt2.m2"] = { x = 0, y = 0, z = -10 };
DBCS_MVW_position_tableau_display_info["creature/kodobeast/kodobeasttame.m2"] = { x = 1, y = 0, z = -20 };
DBCS_MVW_position_tableau_display_info["creature/kologarn/kologarn.m2"] = { x = 0, y = 40, z = -20 };
DBCS_MVW_position_tableau_display_info["creature/krakken/krakkennofx.m2"] = { x = 0, y = 0, z = 30 };
DBCS_MVW_position_tableau_display_info["creature/larvaoutland/larvaoutland.m2"] = { x = -4, y = 4, z = -15 };
DBCS_MVW_position_tableau_display_info["creature/lavaworm/lavaworm_02.m2"] = { x = 0, y = 2, z = -10 };
DBCS_MVW_position_tableau_display_info["creature/lavaworm/lavaworm_03.m2"] = { x = 0, y = .1, z = -20 };
--DBCS_MVW_position_tableau_display_info["creature/leviathan/leviathan.m2"] = { x = 0, y = -70, z = -200 };
DBCS_MVW_position_tableau_display_info["creature/lifebindergift/lifebindergift.m2"] = { x = 2, y = 8, z = -15 };
DBCS_MVW_position_tableau_display_info["creature/lobstrokoutland/lobstrokoutland.m2"] = { x = -.7, y = -3, z = -10 };
DBCS_MVW_position_tableau_display_info["creature/lord kezzak/lordkezzak.m2"] = { x = 0, y = 0, z = 10 };
DBCS_MVW_position_tableau_display_info["creature/lord kezzak/lordkezzak_armored.m2"] = { x = 3, y = 10, z = -30 };
DBCS_MVW_position_tableau_display_info["creature/lostisles_carnivorousplant/lostisles_carnivorousplant01_creature.m2"] = { x = 0, y = 0, z = -2 };
DBCS_MVW_position_tableau_display_info["creature/lostisles_carnivorousplant/lostisles_carnivorousplant02_creature.m2"] = { x = 0, y = 0, z = -2 };
--DBCS_MVW_position_tableau_display_info["creature/magehunter/magehunter.m2"] = { x = 0, y = .5, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/magmagiant/magmagiant_legleft.m2"] = { x = -1, y = 0, z = 30 };
DBCS_MVW_position_tableau_display_info["creature/magmagiant/magmagiant_legright.m2"] = { x = 1, y = 0, z = 30 };
DBCS_MVW_position_tableau_display_info["creature/magnataur/magnataur.m2"] = { x = -1.3, y = -6, z = -8 };
DBCS_MVW_position_tableau_display_info["creature/malganis/malganis.m2"] = { x = .5, y = 0, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/malorne/malorne.m2"] = { x = -2, y = -2, z = -11 };
DBCS_MVW_position_tableau_display_info["creature/malygos/malygos.m2"] = { x = 0, y = 4.5, z = 20 };
DBCS_MVW_position_tableau_display_info["creature/mammoth/mammoth.m2"] = { x = 2.5, y = 1, z = -20 };
DBCS_MVW_position_tableau_display_info["creature/manafiendgreen/manafiendgreen.m2"] = { x = 0, y = -.5, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/mechastrider/gnomemechastrider.m2"] = { x = .6, y = 8, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/mimiron/mimiron_head.m2"] = { x = 1, y = 11, z = -15 };
DBCS_MVW_position_tableau_display_info["creature/mimiron/mimiron_legs.m2"] = { x = -1, y = 7, z = -40 };
DBCS_MVW_position_tableau_display_info["creature/mimiron/mimiron_torso.m2"] = { x = -5, y = -13, z = -20 };
DBCS_MVW_position_tableau_display_info["creature/moarg/moarg1.m2"] = { x = .2, y = 0, z = -6 };
DBCS_MVW_position_tableau_display_info["creature/moarg/moarg2.m2"] = { x = 1, y = -1, z = -10 };
DBCS_MVW_position_tableau_display_info["creature/moarg/moarg3.m2"] = { x = 1.5, y = -.5, z = -12 };
DBCS_MVW_position_tableau_display_info["creature/moarg/moarg4.m2"] = { x = 1.2, y = -1, z = -11 };
DBCS_MVW_position_tableau_display_info["creature/moarg/moarg5.m2"] = { x = 1, y = 0, z = -12 };
DBCS_MVW_position_tableau_display_info["creature/moarg/moarg6.m2"] = { x = .5, y = -1, z = -12 };
DBCS_MVW_position_tableau_display_info["creature/mobat/mobat.m2"] = { x = 0, y = -1, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/monstrouseel/monstrouseel.m2"] = { x = .5, y = 0, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/mountaingiantcrystal/mountaingiantcrystal.m2"] = { x = 5.5, y = 15, z = -15 };
DBCS_MVW_position_tableau_display_info["creature/mountaingiantcrystalogrila/mountaingiantcrystalogrila.m2"] = { x = 7, y = 17, z = -15 };
DBCS_MVW_position_tableau_display_info["creature/mountaingiantnorthrend/mountaingiant_howling.m2"] = { x = 1, y = 20, z = -15 };
DBCS_MVW_position_tableau_display_info["creature/mountaingiantoutland/mountaingiant_netherstorm.m2"] = { x = -.7, y = 22, z = -15 };
DBCS_MVW_position_tableau_display_info["creature/mountaingiantoutland/mountaingiant_zangarmarsh.m2"] = { x = -1.5, y = 23, z = -15 };
DBCS_MVW_position_tableau_display_info["creature/mounteddeathknight/mounteddeathknight_korthazz.m2"] = { x = 0, y = -1.5, z = -3 };
DBCS_MVW_position_tableau_display_info["creature/mounteddeathknight/mounteddeathknight_mograine.m2"] = { x = 0, y = 9, z = -2 };
DBCS_MVW_position_tableau_display_info["creature/mounteddeathknight/mounteddeathknight_zeliek.m2"] = { x = 0, y = 9.5, z = -3 };
DBCS_MVW_position_tableau_display_info["creature/mounteddemonknight/mounteddemonknight.m2"] = { x = -1.5, y = -1, z = -7 };
DBCS_MVW_position_tableau_display_info["creature/mountedknight/mountedknight.m2"] = { x = -1.5, y = -1, z = -7 };
DBCS_MVW_position_tableau_display_info["creature/mouthofkathune01/mouthofkathune01.m2"] = { x = 0, y = 10, z = 0 };
--DBCS_MVW_position_tableau_display_info["creature/murloc/diablobabymurloc.m2"] = { x = 0, y = -9, z = -20 };
--DBCS_MVW_position_tableau_display_info["creature/murloc/murlocdeepsea.m2"] = { x = 0, y = 1, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/murmur/murmur.m2"] = { x = 2, y = -30, z = -6 };
DBCS_MVW_position_tableau_display_info["creature/neptulon/neptulon.m2"] = { x = 0, y = 5, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/nerubian/nerubian.m2"] = { x = 0, y = -5, z = -10 };
DBCS_MVW_position_tableau_display_info["creature/nerubiancaster/nerubiancaster.m2"] = { x = 0, y = -5, z = -10 };
DBCS_MVW_position_tableau_display_info["creature/nerubianspiderling/nerubianspiderling.m2"] = { x = -.4, y = 1, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/nerubianwarrior/nerubianwarrior.m2"] = { x = 0, y = -5, z = -10 };
DBCS_MVW_position_tableau_display_info["creature/nightbane/nightbane.m2"] = { x = 0, y = 0, z = 10 };
DBCS_MVW_position_tableau_display_info["creature/northrendfrostwurm/northrendfrostwurm.m2"] = { x = 0, y = 2.2, z = 20 };
DBCS_MVW_position_tableau_display_info["creature/northrendnightbane/northrendnightbane.m2"] = { x = 0, y = 2.2, z = 20 };
DBCS_MVW_position_tableau_display_info["creature/object/archerytarget.m2"] = { x = .3, y = .6, z = -6 };
DBCS_MVW_position_tableau_display_info["creature/object/cannon.m2"] = { x = -2, y = -1, z = -20 };
DBCS_MVW_position_tableau_display_info["creature/object/woodendummy.m2"] = { x = 0, y = 0, z = -1 };
--DBCS_MVW_position_tableau_display_info["creature/onyxiaundead/onyxiaundead.m2"] = { x = -10, y = 40, z = -30 };
DBCS_MVW_position_tableau_display_info["creature/orca/orca.m2"] = { x = -.5, y = -3, z = -7 };
--DBCS_MVW_position_tableau_display_info["creature/owl/owl.m2"] = { x = 0, y = 1, z = -2 };
DBCS_MVW_position_tableau_display_info["creature/pandarenmonk/pandarenmonk.m2"] = { x = 0, y = -4, z = -10 };
DBCS_MVW_position_tableau_display_info["creature/portal/portalbluearcane.m2"] = { x = 0, y = 0, z = -10 };
--DBCS_MVW_position_tableau_display_info["creature/pterrordax/pterrordax.m2"] = { x = 3, y = 0, z = -5 };
--DBCS_MVW_position_tableau_display_info["creature/pyrogryph/pyrogryph.m2"] = { x = 0, y = 0, z = 00 };		-- bug, prend le skin du précédent, résolu, c'était a cause du 31718
DBCS_MVW_position_tableau_display_info["creature/questobjects/blackrockv2_shieldgong_01.m2"] = { x = 0, y = 1.8, z = -2 };
DBCS_MVW_position_tableau_display_info["creature/questobjects/blackrockv2_shieldgong_02.m2"] = { x = 0, y = 4.5, z = -2 };
DBCS_MVW_position_tableau_display_info["creature/questobjects/blackrockv2_shieldgong_03.m2"] = { x = 0, y = 4.5, z = -2 };
DBCS_MVW_position_tableau_display_info["creature/questobjects/blackrockv2_shieldgong_04.m2"] = { x = 0, y = 4, z = -2 };
DBCS_MVW_position_tableau_display_info["creature/questobjects/blackrockv2_shieldgong_05.m2"] = { x = 0, y = 4, z = -2 };
DBCS_MVW_position_tableau_display_info["creature/questobjects/blackrockv2_shieldgong_06.m2"] = { x = 0, y = 4.5, z = -2 };
DBCS_MVW_position_tableau_display_info["creature/questobjects/blackrockv2_shieldgong_07.m2"] = { x = 0, y = 2.8, z = -2 };
DBCS_MVW_position_tableau_display_info["creature/questobjects/blackrockv2_shieldgong_08.m2"] = { x = 0, y = 4, z = -2 };
DBCS_MVW_position_tableau_display_info["creature/questobjects/creature_burningash.m2"] = { x = .2, y = 2.7, z = -1 };
DBCS_MVW_position_tableau_display_info["creature/questobjects/creature_iceblock.m2"] = { x = -1, y = -18, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/questobjects/creature_nagadistiller.m2"] = { x = 0, y = 12, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/questobjects/creature_sc_crystal.m2"] = { x = 0, y = 3, z = -10 };
DBCS_MVW_position_tableau_display_info["creature/questobjects/creature_scourgecrystal.m2"] = { x = 0, y = .2, z = -10 };
DBCS_MVW_position_tableau_display_info["creature/questobjects/creature_scourgecrystal02.m2"] = { x = 0, y = 3.1, z = -11 };
DBCS_MVW_position_tableau_display_info["creature/questobjects/creature_scourgecrystaldamaged.m2"] = { x = .3, y = 10, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/raccoon/raccoon.m2"] = { x = 0, y = -2, z = -10 };
DBCS_MVW_position_tableau_display_info["creature/ragnaros2/ragnaros2.m2"] = { x = 0, y = 20, z = -50 };
--DBCS_MVW_position_tableau_display_info["creature/rajah/rajah.m2"] = { x = .4, y = 5.2, z = -11 };
DBCS_MVW_position_tableau_display_info["creature/ram/ram.m2"] = { x = -2, y = -.5, z = -5 };
--DBCS_MVW_position_tableau_display_info["creature/raptoroutland/raptor_outland.m2"] = { x = 0, y = -1, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/reindeer/reindeer.m2"] = { x = -2, y = -1, z = -10 };
--DBCS_MVW_position_tableau_display_info["creature/ridinghorse/packmule.m2"] = { x = -1, y = -1, z = -7 };
DBCS_MVW_position_tableau_display_info["creature/roots/entanglingroots_brown_01.m2"] = { x = -2.5, y = -1.9, z = -2 };
DBCS_MVW_position_tableau_display_info["creature/rowboat_vehicle/be_rowboat_vehicle.m2"] = { x = 1, y = -18, z = -35 };
DBCS_MVW_position_tableau_display_info["creature/rowboat_vehicle/darkshoreboat_vehicle.m2"] = { x = 1.3, y = 0, z = -30 };
DBCS_MVW_position_tableau_display_info["creature/rowboat_vehicle/rowboat01_vehicle.m2"] = { x = .3, y = -10, z = -21 };
DBCS_MVW_position_tableau_display_info["creature/saberworg/saberworg.m2"] = { x = 0, y = -1, z = -2 };
DBCS_MVW_position_tableau_display_info["creature/saberworg/spectralsaberworg.m2"] = { x = 0, y = -1, z = -2 };
DBCS_MVW_position_tableau_display_info["creature/sandworm/sandworm.m2"] = { x = 0, y = .8, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/scryingorb/scryingorb.m2"] = { x = 0, y = .5, z = 0 };
--DBCS_MVW_position_tableau_display_info["creature/setesh/setesh.m2"] = { x = .5, y = 5.5, z = -12 };
--DBCS_MVW_position_tableau_display_info["creature/shade/shade.m2"] = { x = .8, y = 7, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/shark/hammerhead.m2"] = { x = 0, y = -7, z = -15 };
DBCS_MVW_position_tableau_display_info["creature/siegevehicle/siegevehicle.m2"] = { x = 26, y = 20, z = -30 };
DBCS_MVW_position_tableau_display_info["creature/siegevehicle/siegevehicle_weapon_cannon.m2"] = { x = 1.5, y = 18, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/siegevehicle/siegevehiclehasgun.m2"] = { x = -17, y = 30, z = -30 };
DBCS_MVW_position_tableau_display_info["creature/silithid/silithid.m2"] = { x = -.5, y = 0, z = -10 };
DBCS_MVW_position_tableau_display_info["creature/silithidtankboss/silithidtankboss_damaged.m2"] = { x = 0, y = -2, z = -10 };
DBCS_MVW_position_tableau_display_info["creature/skeletalserpent/skeletalserpent.m2"] = { x = 0, y = 1, z = -10 };
DBCS_MVW_position_tableau_display_info["creature/skeleton/skeleton.m2"] = { x = 0, y = .4, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/skeleton/skeletonnohelm.m2"] = { x = 0, y = .4, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/skeletonmage/skeletonmage.m2"] = { x = 0, y = .4, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/slime/slime.m2"] = { x = .3, y = -2, z = -7 };
DBCS_MVW_position_tableau_display_info["creature/slime/slime_flame.m2"] = { x = .5, y = 8, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/slith/slith.m2"] = { x = 0, y = -.4, z = -1 };
DBCS_MVW_position_tableau_display_info["creature/snowflakecreature/snowflakecreature.m2"] = { x = 0, y = -1, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/spectraltiger/sandbox_spectraltiger_01.m2"] = { x = 0, y = 0, z = -3 };
DBCS_MVW_position_tableau_display_info["creature/spells/airelementaltotem.m2"] = { x = 0, y = .6, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spells/battlestandard_alliance.m2"] = { x = 0, y = 4, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/spells/battlestandard_frostwolf_a_01.m2"] = { x = 0, y = 5.5, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/spells/battlestandard_horde.m2"] = { x = 0, y = 5.5, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/spells/battlestandard_stormpike_a_01.m2"] = { x = 0, y = 4, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/spells/draeneitotem_fire.m2"] = { x = 0, y = 8, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spells/draeneitotem_water.m2"] = { x = 0, y = .7, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spells/dwarventotem_air.m2"] = { x = 0, y = .2, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spells/dwarventotem_earth.m2"] = { x = 0, y = .3, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spells/dwarventotem_fire.m2"] = { x = 0, y = .7, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spells/dwarventotem_water.m2"] = { x = 0, y = .7, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spells/earthelementaltotem.m2"] = { x = 0, y = .7, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spells/fireelementaltotem.m2"] = { x = 0, y = 1, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spells/firelighttotem.m2"] = { x = 0, y = .7, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spells/firetotem.m2"] = { x = 0, y = .7, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spells/flameturret.m2"] = { x = 0, y = 7, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spells/goblinshamantotem_air.m2"] = { x = 0, y = 11, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spells/goblinshamantotem_earth.m2"] = { x = 0, y = 11, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spells/goblinshamantotem_fire.m2"] = { x = 0, y = 8, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spells/goblinshamantotem_water.m2"] = { x = 0, y = 11, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spells/healingtotem.m2"] = { x = 1, y = 8, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spells/invisibilitytotem.m2"] = { x = 0, y = 8, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spells/landmine01.m2"] = { x = 0, y = -1, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spells/manatotem.m2"] = { x = 1, y = 8, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spells/monsterlure01.m2"] = { x = 0, y = 1, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spells/monsterlure_02.m2"] = { x = 0, y = .5, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spells/orctotem_earth.m2"] = { x = 0, y = .3, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spells/orctotem_fire.m2"] = { x = 0, y = .9, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spells/orctotem_water.m2"] = { x = 0, y = 8, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spells/sentrytotem.m2"] = { x = 0, y = .6, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spells/serpent_totem.m2"] = { x = 0, y = 0, z = -2 };
DBCS_MVW_position_tableau_display_info["creature/spells/stasistotem.m2"] = { x = 0, y = 8, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spells/trolltotem_air.m2"] = { x = 0, y = .3, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spells/trolltotem_earth.m2"] = { x = 0, y = .4, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spells/trolltotem_fire.m2"] = { x = 0, y = .8, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spells/trolltotem_water.m2"] = { x = .3, y = 7.3, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spells/valentinesdummy.m2"] = { x = 0, y = .9, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spells/waterelementaltotem.m2"] = { x = 0, y = .8, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/spirithealer/spirithealer.m2"] = { x = 0, y = 3, z = -40 };
DBCS_MVW_position_tableau_display_info["creature/spiritofredemption/spiritofredemption.m2"] = { x = -3.8, y = -3.5, z = -12 };
DBCS_MVW_position_tableau_display_info["creature/sporecreature/sporecreature.m2"] = { x = 0, y = .5, z = -2 };
DBCS_MVW_position_tableau_display_info["creature/squirrel/squirrel.m2"] = { x = 0, y = -.5, z = -1.5 };
DBCS_MVW_position_tableau_display_info["creature/stag/stag.m2"] = { x = -2.2, y = 0, z = -10 };
DBCS_MVW_position_tableau_display_info["creature/star/collapsing_star.m2"] = { x = 0, y = 0, z = -2 };
DBCS_MVW_position_tableau_display_info["creature/stingray/stingray.m2"] = { x = 0, y = -3, z = -5 };
--DBCS_MVW_position_tableau_display_info["creature/stonekeeper/stonekeeper.m2"] = { x = .5, y = 5, z = -12 };
DBCS_MVW_position_tableau_display_info["creature/terongorefiend_mounted/terongorefiend_mounted.m2"] = { x = .5, y = 10, z = -2 };
DBCS_MVW_position_tableau_display_info["creature/tharazun/tharazun.m2"] = { x = 0, y = -1, z = -7 };
DBCS_MVW_position_tableau_display_info["creature/therazane/therazane.m2"] = { x = 0, y = 0, z = 7 };
DBCS_MVW_position_tableau_display_info["creature/threshadon/threshadon.m2"] = { x = 1, y = -3, z = -20 };
DBCS_MVW_position_tableau_display_info["creature/thunderlizard/thunderlizard.m2"] = { x = 0, y = -3, z = -10 };
DBCS_MVW_position_tableau_display_info["creature/tiger/tiger.m2"] = { x = -1.5, y = -2.5, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/tiger/tigercub.m2"] = { x = .2, y = -1.6, z = -2 };
DBCS_MVW_position_tableau_display_info["creature/tiger/tigergem.m2"] = { x = 0, y = -4, z = -8 };
DBCS_MVW_position_tableau_display_info["creature/tigon/tigonfemale.m2"] = { x = .4, y = .9, z = -1 };
DBCS_MVW_position_tableau_display_info["creature/titanmale/titanmale.m2"] = { x = .5, y = 4.3, z = -11 };
DBCS_MVW_position_tableau_display_info["creature/titanmale/titanmale_ghost.m2"] = { x = .5, y = 4.3, z = -11 };
DBCS_MVW_position_tableau_display_info["creature/titanorb/titanorb_02.m2"] = { x = 0, y = -3, z = -7 };
--DBCS_MVW_position_tableau_display_info["creature/tree/ashenvaletreefalling01.m2"] = { x = 0, y = 0, z = 0 };
--DBCS_MVW_position_tableau_display_info["creature/trolldire/trolldire.m2"] = { x = .2, y = -2, z = -9 };
--DBCS_MVW_position_tableau_display_info["creature/twighlightdragon/twighlightdragon.m2"] = { x = 0, y = 3, z = 20 };
--DBCS_MVW_position_tableau_display_info["creature/uldumwatcher/uldumwatchercenter.m2"] = { x = .5, y = 8, z = -15 };
DBCS_MVW_position_tableau_display_info["creature/uldumwatcher/uldumwatcherleft.m2"] = { x = 0, y = 0, z = 10 };
DBCS_MVW_position_tableau_display_info["creature/uldumwatcher/uldumwatcherright.m2"] = { x = .5, y = 7, z = -15 };
DBCS_MVW_position_tableau_display_info["creature/undeadnerubianbeast/undeadnerubianbeast.m2"] = { x = 0, y = -2, z = -8 };
DBCS_MVW_position_tableau_display_info["creature/voidgod/voidgod.m2"] = { x = .1, y = 6, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/vrykulboat/transport_vrykul_mediumlight.m2"] = { x = 0, y = 150, z = -30 };
DBCS_MVW_position_tableau_display_info["creature/warhorse/argentwarhorse.m2"] = { x = 0, y = -1.2, z = -1 };
DBCS_MVW_position_tableau_display_info["creature/warhorse/pvpwarhorse.m2"] = { x = 0, y = -2, z = -3 };
DBCS_MVW_position_tableau_display_info["creature/warhorse/warhorse.m2"] = { x = 0, y = -2, z = -2 };
DBCS_MVW_position_tableau_display_info["creature/warpstorm/warpstorm.m2"] = { x = 1.5, y = 8, z = -10 };
DBCS_MVW_position_tableau_display_info["creature/waterbubblecreature/waterbubblecreature.m2"] = { x = -3, y = -2, z = -2 };
DBCS_MVW_position_tableau_display_info["creature/waterbubblecreature/waterbubblecreature_nosound.m2"] = { x = -3, y = -2, z = -2 };
--DBCS_MVW_position_tableau_display_info["creature/waterelemental/waterelemental_nosplash.m2"] = { x = .2, y = 8, z = -2 };
DBCS_MVW_position_tableau_display_info["creature/wellofsouls/wellofsouls.m2"] = { x = 0, y = 70, z = -200 };
DBCS_MVW_position_tableau_display_info["creature/wellofsouls/wellofsoulsgrief.m2"] = { x = 0, y = -2, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/wellofsouls/wellofsoulspain.m2"] = { x = 0, y = -2, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/wellofsouls/wellofsoulsseduction.m2"] = { x = 0, y = -2, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/whaleshark/whaleshark.m2"] = { x = -1.3, y = -4, z = -8 };
DBCS_MVW_position_tableau_display_info["creature/wight/wight.m2"] = { x = 0, y = -1.7, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/wingedlionmount/wingedlionmount.m2"] = { x = .5, y = -3, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/wingedlionpet/wingedlionpet.m2"] = { x = 0, y = -1, z = -10 };							--38359
DBCS_MVW_position_tableau_display_info["creature/wolf/wolf.m2"] = { x = 0, y = -2, z = -4 };
DBCS_MVW_position_tableau_display_info["creature/wolf/wolf_ghost.m2"] = { x = 0, y = -2, z = -4 };
DBCS_MVW_position_tableau_display_info["creature/woolyrhino/woolyrhino.m2"] = { x = 0, y = -2, z = -5 };
DBCS_MVW_position_tableau_display_info["creature/woolyrhino/woolyrhinomount.m2"] = { x = 0, y = -2, z = -4 };
DBCS_MVW_position_tableau_display_info["creature/wyvern/wyvern.m2"] = { x = 0, y = 0, z = 8 };
DBCS_MVW_position_tableau_display_info["creature/wyvern/wyvern_armored.m2"] = { x = 0, y = -3, z = -20 };
DBCS_MVW_position_tableau_display_info["creature/yoggsaron/cataclysm_tentacle.m2"] = { x = 0, y = -2, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/yoggsaron/yoggsaronbrain.m2"] = { x = 45, y = -30, z = -200 };
DBCS_MVW_position_tableau_display_info["creature/yoggsaron/yoggsaronstage2.m2"] = { x = 2, y = -75, z = -80 };
DBCS_MVW_position_tableau_display_info["creature/zigguratcrystal/zigguratcrystal.m2"] = { x = 16, y = -80, z = -80 };
DBCS_MVW_position_tableau_display_info["creature/zippelin/zippelin.m2"] = { x = .2, y = 7, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/zombie/zombie.m2"] = { x = .2, y = .2, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/zombie/zombiearm.m2"] = { x = .2, y = .2, z = 0 };
DBCS_MVW_position_tableau_display_info["creature/zombie/zombiesword.m2"] = { x = .2, y = .2, z = 0 };
--DBCS_MVW_position_tableau_display_info["creature/zuldrakgolem/zuldrakgolem.m2"] = { x = .3, y = 0, z = -7 };

DBCS_MVW_position_tableau_display_info = {};
