HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Could someone convert this Jass for me?

10-14-2004, 03:10 AM#1
Kojiro
function Item2Path takes item obj returns string
local string array path
local integer array objet
local integer end
local integer i
local integer id = GetItemTypeId(obj)
set objet[0] = 'amrc'
set path[0] = "ReplaceableTextures\\CommandButtons\\BTNAmulet.blp"
set objet[1] = 'ankh'
set path[1] = "ReplaceableTextures\\CommandButtons\\BTNAnkh.blp"
set objet[2] = 'belv'
set path[2] = "ReplaceableTextures\\CommandButtons\\BTNBoots.blp"
set objet[3] = 'bgst'
set path[3] = "ReplaceableTextures\\CommandButtons\\BTNBelt.blp"
set objet[4] = 'bspd'
set path[4] = "ReplaceableTextures\\CommandButtons\\BTNBootsOfSpeed.blp"
set objet[5] = 'ccmd'
set path[5] = "ReplaceableTextures\\CommandButtons\\BTNScepterOfMastery.blp"
set objet[6] = 'ciri'
set path[6] = "ReplaceableTextures\\CommandButtons\\BTNRobeOfTheMagi.blp"
set objet[7] = 'ckng'
set path[7] = "ReplaceableTextures\\CommandButtons\\BTNHelmutPurple.blp"
set objet[8] = 'clsd'
set path[8] = "ReplaceableTextures\\CommandButtons\\BTNCloak.blp"
set objet[9] = 'crys'
set path[9] = "ReplaceableTextures\\CommandButtons\\BTNCrystalBall.blp"
set objet[10] = 'desc'
set path[10] = "ReplaceableTextures\\CommandButtons\\BTNDaggerOfEscape.blp"
set objet[11] = 'flag'
set path[11] = "ReplaceableTextures\\CommandButtons\\BTNHumanCaptureFlag.blp"
set objet[12] = 'nflg'
set path[12] = "ReplaceableTextures\\CommandButtons\\BTNNightElfCaptureFlag.blp"
set objet[13] = 'oflg'
set path[13] = "ReplaceableTextures\\CommandButtons\\BTNOrcCaptureFlag.blp"
set objet[14] = 'uflg'
set path[14] = "ReplaceableTextures\\CommandButtons\\BTNUndeadCaptureFlag.blp"
set objet[15] = 'gemt'
set path[15] = "ReplaceableTextures\\CommandButtons\\BTNGem.blp"
set objet[16] = 'gobm'
set path[16] = "ReplaceableTextures\\CommandButtons\\BTNGoblinLandMine.blp"
set objet[17] = 'gsou'
set path[17] = "ReplaceableTextures\\CommandButtons\\BTNSoulGem.blp"
set objet[18] = 'soul'
set path[18] = "ReplaceableTextures\\CommandButtons\\BTNUsedSoulGem.blp"
set objet[19] = 'mdpb'
set path[19] = "ReplaceableTextures\\CommandButtons\\BTNPebble.blp"
set objet[20] = 'rag1'
set path[20] = "ReplaceableTextures\\CommandButtons\\BTNSlippersOfAgility.blp"
set objet[21] = 'rat3'
set path[21] = "ReplaceableTextures\\CommandButtons\\BTNClawsOfAttack.blp"
set objet[22] = 'rin1'
set path[22] = "ReplaceableTextures\\CommandButtons\\BTNMantleOfIntelligence.blp"
set objet[23] = 'rde1'
set path[23] = "ReplaceableTextures\\CommandButtons\\BTNRingGreen.blp"
set objet[24] = 'rde2'
set path[24] = "ReplaceableTextures\\CommandButtons\\BTNRingGreen.blp"
set objet[25] = 'rde3'
set path[25] = "ReplaceableTextures\\CommandButtons\\BTNRingGreen.blp"
set objet[26] = 'rhth'
set path[26] = "ReplaceableTextures\\CommandButtons\\BTNPeriapt1.blp"
set objet[27] = 'rst1'
set path[27] = "ReplaceableTextures\\CommandButtons\\BTNGauntletsOfOgrePower.blp"
set objet[28] = 'odef'
set path[28] = "ReplaceableTextures\\CommandButtons\\BTNOrbOfDarkness.blp"
set objet[29] = 'ofir'
set path[29] = "ReplaceableTextures\\CommandButtons\\BTNOrbOfFire.blp"
set objet[30] = 'ofro'
set path[30] = "ReplaceableTextures\\CommandButtons\\BTNOrbOfFrost.blp"
set objet[31] = 'olig'
set path[31] = "ReplaceableTextures\\CommandButtons\\BTNOrbOfLightning.blp"
set objet[32] = 'oli2'
set path[32] = "ReplaceableTextures\\CommandButtons\\BTNOrbOfLightning.blp"
set objet[33] = 'oven'
set path[33] = "ReplaceableTextures\\CommandButtons\\BTNOrbOfVenom.blp"
set objet[34] = 'ocor'
set path[34] = "ReplaceableTextures\\CommandButtons\\BTNOrbOfCorruption.blp"
set objet[35] = 'pdiv'
set path[35] = "ReplaceableTextures\\CommandButtons\\BTNPotionOfDivinity.blp"
set objet[36] = 'phea'
set path[36] = "ReplaceableTextures\\CommandButtons\\BTNPotionGreenSmall.blp"
set objet[37] = 'pghe'
set path[37] = "ReplaceableTextures\\CommandButtons\\BTNPotionGreen.blp"
set objet[38] = 'pinv'
set path[38] = "ReplaceableTextures\\CommandButtons\\BTNLesserInvisibility.blp"
set objet[39] = 'pgin'
set path[39] = "ReplaceableTextures\\CommandButtons\\BTNGreaterInvisibility.blp"
set objet[40] = 'pman'
set path[40] = "ReplaceableTextures\\CommandButtons\\BTNPotionBlueSmall.blp"
set objet[41] = 'pgma'
set path[41] = "ReplaceableTextures\\CommandButtons\\BTNPotionBlueBig.blp"
set objet[42] = 'pnvu'
set path[42] = "ReplaceableTextures\\CommandButtons\\BTNGreaterInvulneralbility.blp"
set objet[43] = 'pnvl'
set path[43] = "ReplaceableTextures\\CommandButtons\\BTNLesserInvulneralbility.blp"
set objet[44] = 'pres'
set path[44] = "ReplaceableTextures\\CommandButtons\\BTNPotionOfRestoration.blp"
set objet[45] = 'pspd'
set path[45] = "ReplaceableTextures\\CommandButtons\\BTNPotionRed.blp"
set objet[46] = 'rlif'
set path[46] = "ReplaceableTextures\\CommandButtons\\BTNRingSkull.blp"
set objet[47] = 'rwiz'
set path[47] = "ReplaceableTextures\\CommandButtons\\BTNSobiMask.blp"
set objet[48] = 'shea'
set path[48] = "ReplaceableTextures\\CommandButtons\\BTNScrollOfTownPortal.blp"
set objet[49] = 'sman'
set path[49] = "ReplaceableTextures\\CommandButtons\\BTNScrollOfProtection.blp"
set objet[50] = 'spro'
set path[50] = "ReplaceableTextures\\CommandButtons\\BTNScroll.blp"
set objet[51] = 'sres'
set path[51] = "ReplaceableTextures\\CommandButtons\\BTNScrollOfHealing.blp"
set objet[52] = 'ssil'
set path[52] = "ReplaceableTextures\\CommandButtons\\BTNStaffOfSilence.blp"
set objet[53] = 'stwp'
set path[53] = "ReplaceableTextures\\CommandButtons\\BTNScrollUber.blp"
set objet[54] = 'tels'
set path[54] = "ReplaceableTextures\\CommandButtons\\BTNTelescope.blp"
set objet[55] = 'tdex'
set path[55] = "ReplaceableTextures\\CommandButtons\\BTNTome.blp"
set objet[56] = 'texp'
set path[56] = "ReplaceableTextures\\CommandButtons\\BTNTomeBrown.blp"
set objet[57] = 'tint'
set path[57] = "ReplaceableTextures\\CommandButtons\\BTNTome.blp"
set objet[58] = 'tkno'
set path[58] = "ReplaceableTextures\\CommandButtons\\BTNTomeRed.blp"
set objet[59] = 'tstr'
set path[59] = "ReplaceableTextures\\CommandButtons\\BTNTome.blp"
set objet[60] = 'ward'
set path[60] = "ReplaceableTextures\\CommandButtons\\BTNDrum.blp"
set objet[61] = 'will'
set path[61] = "ReplaceableTextures\\CommandButtons\\BTNWand.blp"
set objet[62] = 'wneg'
set path[62] = "ReplaceableTextures\\CommandButtons\\BTNWandSkull.blp"
set objet[63] = 'fgrd'
set path[63] = "ReplaceableTextures\\CommandButtons\\BTNRedDragon.blp"
set objet[64] = 'fgrg'
set path[64] = "ReplaceableTextures\\CommandButtons\\BTNRockGolem.blp"
set objet[65] = 'fgdg'
set path[65] = "ReplaceableTextures\\CommandButtons\\BTNDoomGuard.blp"
set objet[66] = 'fgfh'
set path[66] = "ReplaceableTextures\\CommandButtons\\BTNFelHound.blp"
set objet[67] = 'fgsk'
set path[67] = "ReplaceableTextures\\CommandButtons\\BTNBookOfTheDead.blp"
set objet[68] = 'ktrm'
set path[68] = "ReplaceableTextures\\CommandButtons\\BTNUrnOfKelThuzad.blp"
set objet[69] = 'sehr'
set path[69] = "ReplaceableTextures\\CommandButtons\\BTNHeartOfSearinox.blp"
set objet[70] = 'azhr'
set path[70] = "ReplaceableTextures\\CommandButtons\\BTNHeartOfAszune.blp"
set objet[71] = 'bzbe'
set path[71] = "ReplaceableTextures\\CommandButtons\\BTNVialEmpty.blp"
set objet[72] = 'bzbf'
set path[72] = "ReplaceableTextures\\CommandButtons\\BTNVialFull.blp"
set objet[73] = 'cnhn'
set path[73] = "ReplaceableTextures\\CommandButtons\\BTNHornOfCenarius.blp"
set objet[74] = 'glsk'
set path[74] = "ReplaceableTextures\\CommandButtons\\BTNGuldanSkull.blp"
set objet[75] = 'engs'
set path[75] = "ReplaceableTextures\\CommandButtons\\BTNEnchantedGemstone.blp"
set objet[76] = 'k3m1'
set path[76] = "ReplaceableTextures\\CommandButtons\\BTN3M1.blp"
set objet[77] = 'k3m2'
set path[77] = "ReplaceableTextures\\CommandButtons\\BTN3M2.blp"
set objet[78] = 'k3m3'
set path[78] = "ReplaceableTextures\\CommandButtons\\BTN3M3.blp"
set objet[79] = 'modt'
set path[79] = "ReplaceableTextures\\CommandButtons\\BTNMaskOfDeath.blp"
set objet[80] = 'sand'
set path[80] = "ReplaceableTextures\\CommandButtons\\BTNSnazzyScrollPurple.blp"
set objet[81] = 'srrc'
set path[81] = "ReplaceableTextures\\CommandButtons\\BTNSnazzyScroll.blp"
set objet[82] = 'sror'
set path[82] = "ReplaceableTextures\\CommandButtons\\BTNSnazzyScrollGreen.blp"
set objet[83] = 'infs'
set path[83] = "ReplaceableTextures\\CommandButtons\\BTNInfernalStone.blp"
set objet[84] = 'shar'
set path[84] = "ReplaceableTextures\\CommandButtons\\BTNIceShard.blp"
set objet[85] = 'wild'
set path[85] = "ReplaceableTextures\\CommandButtons\\BTNAmuletOftheWild.blp"
set objet[86] = 'wswd'
set path[86] = "ReplaceableTextures\\CommandButtons\\BTNSentryWard.blp"
set objet[87] = 'whwd'
set path[87] = "ReplaceableTextures\\CommandButtons\\BTNHealingWard.blp"
set objet[88] = 'wlsd'
set path[88] = "ReplaceableTextures\\CommandButtons\\BTNStarWand.blp"
set objet[89] = 'wcyc'
set path[89] = "ReplaceableTextures\\CommandButtons\\BTNWandOfCyclone.blp"
set objet[90] = 'rnec'
set path[90] = "ReplaceableTextures\\CommandButtons\\BTNRodOfNecromancy.blp"
set objet[91] = 'pams'
set path[91] = "ReplaceableTextures\\CommandButtons\\BTNSnazzyPotion.blp"
set objet[92] = 'clfm'
set path[92] = "ReplaceableTextures\\CommandButtons\\BTNCloakOfFlames.blp"
set objet[93] = 'evtl'
set path[93] = "ReplaceableTextures\\CommandButtons\\BTNTalisman.blp"
set objet[94] = 'nspi'
set path[94] = "ReplaceableTextures\\CommandButtons\\BTNNecklace.blp"
set objet[95] = 'lhst'
set path[95] = "ReplaceableTextures\\CommandButtons\\BTNLionHorn.blp"
set objet[96] = 'kpin'
set path[96] = "ReplaceableTextures\\CommandButtons\\BTNPipeOfInsight.blp"
set objet[97] = 'sbch'
set path[97] = "ReplaceableTextures\\CommandButtons\\BTNBoneChimes.blp"
set objet[98] = 'afac'
set path[98] = "ReplaceableTextures\\CommandButtons\\BTNAlleriaFlute.blp"
set objet[99] = 'ajen'
set path[99] = "ReplaceableTextures\\CommandButtons\\BTNJanggo.blp"
set objet[100] = 'lgdh'
set path[100] = "ReplaceableTextures\\CommandButtons\\BTNHornOfDoom.blp"
set objet[101] = 'hcun'
set path[101] = "ReplaceableTextures\\CommandButtons\\BTNHoodOfCunning.blp"
set objet[102] = 'mcou'
set path[102] = "ReplaceableTextures\\CommandButtons\\BTNMedalionOfCourage.blp"
set objet[103] = 'hval'
set path[103] = "ReplaceableTextures\\CommandButtons\\BTNHelmOfValor.blp"
set objet[104] = 'cnob'
set path[104] = "ReplaceableTextures\\CommandButtons\\BTNCirclet.blp"
set objet[105] = 'prvt'
set path[105] = "ReplaceableTextures\\CommandButtons\\BTNPeriapt.blp"
set objet[106] = 'tgxp'
set path[106] = "ReplaceableTextures\\CommandButtons\\BTNManual3.blp"
set objet[107] = 'mnst'
set path[107] = "ReplaceableTextures\\CommandButtons\\BTNManaStone.blp"
set objet[108] = 'hlst'
set path[108] = "ReplaceableTextures\\CommandButtons\\BTNHealthStone.blp"
set objet[109] = 'tpow'
set path[109] = "ReplaceableTextures\\CommandButtons\\BTNTomeRed.blp"
set objet[110] = 'tst2'
set path[110] = "ReplaceableTextures\\CommandButtons\\BTNTome.blp"
set objet[111] = 'tin2'
set path[111] = "ReplaceableTextures\\CommandButtons\\BTNTome.blp"
set objet[112] = 'tdx2'
set path[112] = "ReplaceableTextures\\CommandButtons\\BTNTome.blp"
set objet[113] = 'rde0'
set path[113] = "ReplaceableTextures\\CommandButtons\\BTNRingGreen.blp"
set objet[114] = 'rde4'
set path[114] = "ReplaceableTextures\\CommandButtons\\BTNRingGreen.blp"
set objet[115] = 'rat6'
set path[115] = "ReplaceableTextures\\CommandButtons\\BTNClawsOfAttack.blp"
set objet[116] = 'rat9'
set path[116] = "ReplaceableTextures\\CommandButtons\\BTNClawsOfAttack.blp"
set objet[117] = 'ratc'
set path[117] = "ReplaceableTextures\\CommandButtons\\BTNClawsOfAttack.blp"
set objet[118] = 'ratf'
set path[118] = "ReplaceableTextures\\CommandButtons\\BTNClawsOfAttack.blp"
set objet[119] = 'manh'
set path[119] = "ReplaceableTextures\\CommandButtons\\BTNManual.blp"
set objet[120] = 'pmna'
set path[120] = "ReplaceableTextures\\CommandButtons\\BTNPendantOfMana.blp"
set objet[121] = 'penr'
set path[121] = "ReplaceableTextures\\CommandButtons\\BTNPendantOfEnergy.blp"
set objet[122] = 'gcel'
set path[122] = "ReplaceableTextures\\CommandButtons\\BTNGlove.blp"
set objet[123] = 'ledg'
set path[123] = "ReplaceableTextures\\CommandButtons\\BTNSorceressMaster.blp"
set objet[124] = 'totw'
set path[124] = "ReplaceableTextures\\CommandButtons\\BTNStone.blp"
set objet[125] = 'kybl'
set path[125] = "ReplaceableTextures\\CommandButtons\\BTNBloodKey.blp"
set objet[126] = 'kygh'
set path[126] = "ReplaceableTextures\\CommandButtons\\BTNGhostKey.blp"
set objet[127] = 'kysn'
set path[127] = "ReplaceableTextures\\CommandButtons\\BTNSunKey.blp"
set objet[128] = 'kymn'
set path[128] = "ReplaceableTextures\\CommandButtons\\BTNMoonKey.blp"
set objet[129] = 'phlt'
set path[129] = "ReplaceableTextures\\CommandButtons\\BTNUndeadShrine.blp"
set objet[130] = 'gopr'
set path[130] = "ReplaceableTextures\\CommandButtons\\BTNGlyph.blp"
set objet[131] = 'ches'
set path[131] = "ReplaceableTextures\\CommandButtons\\BTNCheese.blp"
set objet[132] = 'mlst'
set path[132] = "ReplaceableTextures\\CommandButtons\\BTNHammer.blp"
set objet[133] = 'rnsp'
set path[133] = "ReplaceableTextures\\CommandButtons\\BTNGoldRing.blp"
set objet[134] = 'brag'
set path[134] = "ReplaceableTextures\\CommandButtons\\BTNRingPurple.blp"
set objet[135] = 'sksh'
set path[135] = "ReplaceableTextures\\CommandButtons\\BTNGrimWard.blp"
set objet[136] = 'vddl'
set path[136] = "ReplaceableTextures\\CommandButtons\\BTNShadowPact.blp"
set objet[137] = 'sprn'
set path[137] = "ReplaceableTextures\\CommandButtons\\BTNRingVioletSpider.blp"
set objet[138] = 'tmmt'
set path[138] = "ReplaceableTextures\\CommandButtons\\BTNEntrapmentWard.blp"
set objet[139] = 'anfg'
set path[139] = "ReplaceableTextures\\CommandButtons\\BTNClayFigurine.blp"
set objet[140] = 'lnrn'
set path[140] = "ReplaceableTextures\\CommandButtons\\BTNRingLionHead.blp"
set objet[141] = 'iwbr'
set path[141] = "ReplaceableTextures\\CommandButtons\\BTNNatureTouchGrow.blp"
set objet[142] = 'jdrn'
set path[142] = "ReplaceableTextures\\CommandButtons\\BTNRingJadeFalcon.blp"
set objet[143] = 'drph'
set path[143] = "ReplaceableTextures\\CommandButtons\\BTNDust.blp"
set objet[144] = 'hslv'
set path[144] = "ReplaceableTextures\\CommandButtons\\BTNHealingSalve.blp"
set objet[145] = 'pclr'
set path[145] = "ReplaceableTextures\\CommandButtons\\BTNPotionOfClarity.blp"
set objet[146] = 'plcl'
set path[146] = "ReplaceableTextures\\CommandButtons\\BTNLesserClarityPotion.blp"
set objet[147] = 'rej1'
set path[147] = "ReplaceableTextures\\CommandButtons\\BTNMinorRejuvPotion.blp"
set objet[148] = 'rej2'
set path[148] = "ReplaceableTextures\\CommandButtons\\BTNLesserRejuvPotion.blp"
set objet[149] = 'rej3'
set path[149] = "ReplaceableTextures\\CommandButtons\\BTNRejuvPotion.blp"
set objet[150] = 'rej4'
set path[150] = "ReplaceableTextures\\CommandButtons\\BTNGreaterRejuvPotion.blp"
set objet[151] = 'rej5'
set path[151] = "ReplaceableTextures\\CommandButtons\\BTNLesserRejuvScroll.blp"
set objet[152] = 'rej6'
set path[152] = "ReplaceableTextures\\CommandButtons\\BTNGreaterRejuvScroll.blp"
set objet[153] = 'sreg'
set path[153] = "ReplaceableTextures\\CommandButtons\\BTNScrollOfRegenerationGreen.blp"
set objet[154] = 'gold'
set path[154] = "ReplaceableTextures\\CommandButtons\\BTNChestOfGold.blp"
set objet[155] = 'lmbr'
set path[155] = "ReplaceableTextures\\CommandButtons\\BTNBundleOfLumber.blp"
set objet[156] = 'fgun'
set path[156] = "ReplaceableTextures\\CommandButtons\\BTNFlare.blp"
set objet[157] = 'pomn'
set path[157] = "ReplaceableTextures\\CommandButtons\\BTNPotionOfOmniscience.blp"
set objet[158] = 'wneu'
set path[158] = "ReplaceableTextures\\CommandButtons\\BTNWandOfNeutralization.blp"
set objet[159] = 'silk'
set path[159] = "ReplaceableTextures\\CommandButtons\\BTNSpiderSilkBroach.blp"
set objet[160] = 'lure'
set path[160] = "ReplaceableTextures\\CommandButtons\\BTNMonsterLure.blp"
set objet[161] = 'sfog'
set path[161] = "ReplaceableTextures\\CommandButtons\\BTNHornOfFog.blp"
set objet[162] = 'skul'
set path[162] = "ReplaceableTextures\\CommandButtons\\BTNSacrificialSkull.blp"
set objet[163] = 'moon'
set path[163] = "ReplaceableTextures\\CommandButtons\\BTNMoonStone.blp"
set objet[164] = 'vamp'
set path[164] = "ReplaceableTextures\\CommandButtons\\BTNPotionOfVampirism.blp"
set objet[165] = 'brac'
set path[165] = "ReplaceableTextures\\CommandButtons\\BTNRunedBracers.blp"
set objet[166] = 'woms'
set path[166] = "ReplaceableTextures\\CommandButtons\\BTNWandOfManaSteal.blp"
set objet[167] = 'tcas'
set path[167] = "ReplaceableTextures\\CommandButtons\\BTNTinyCastle.blp"
set objet[168] = 'tsct'
set path[168] = "ReplaceableTextures\\CommandButtons\\BTNHumanWatchTower.blp"
set objet[169] = 'tgrh'
set path[169] = "ReplaceableTextures\\CommandButtons\\BTNGreathall.blp"
set objet[170] = 'wshs'
set path[170] = "ReplaceableTextures\\CommandButtons\\BTNWandOfShadowSight.blp"
set objet[171] = 'tret'
set path[171] = "ReplaceableTextures\\CommandButtons\\BTNTomeOfRetraining.blp"
set objet[172] = 'stel'
set path[172] = "ReplaceableTextures\\CommandButtons\\BTNStaffOfTeleportation.blp"
set objet[173] = 'spre'
set path[173] = "ReplaceableTextures\\CommandButtons\\BTNStaffOfPreservation.blp"
set objet[174] = 'mcri'
set path[174] = "ReplaceableTextures\\CommandButtons\\BTNMechanicalCritter.blp"
set objet[175] = 'spsh'
set path[175] = "ReplaceableTextures\\CommandButtons\\BTNSpellShieldAmulet.blp"
set objet[176] = 'sbok'
set path[176] = "ReplaceableTextures\\CommandButtons\\BTNSpellBookBLS.blp"
set objet[177] = 'ssan'
set path[177] = "ReplaceableTextures\\CommandButtons\\BTNStaffOfSanctuary.blp"
set objet[178] = 'shas'
set path[178] = "ReplaceableTextures\\CommandButtons\\BTNScrollOfHaste.blp"
set objet[179] = 'dust'
set path[179] = "ReplaceableTextures\\CommandButtons\\BTNDustOfAppearance.blp"
set objet[180] = 'oslo'
set path[180] = "ReplaceableTextures\\CommandButtons\\BTNOrbofSlowness.blp"
set objet[181] = 'sneg'
set path[181] = "ReplaceableTextures\\CommandButtons\\BTNStaffOfNegation.blp"
set objet[182] = 'rreb'
set path[182] = "ReplaceableTextures\\CommandButtons\\BTNRune.blp"
set objet[183] = 'guvi'
set path[183] = "ReplaceableTextures\\CommandButtons\\BTNGlyph.blp"
set objet[184] = 'dsum'
set path[184] = "ReplaceableTextures\\CommandButtons\\BTNDarkSummoning.blp"
set objet[185] = 'gomn'
set path[185] = "ReplaceableTextures\\CommandButtons\\BTNGlyph.blp"
set objet[186] = 'gfor'
set path[186] = "ReplaceableTextures\\CommandButtons\\BTNGlyph.blp"
set objet[187] = 'rspl'
set path[187] = "ReplaceableTextures\\CommandButtons\\BTNRune.blp"
set objet[188] = 'rsps'
set path[188] = "ReplaceableTextures\\CommandButtons\\BTNRune.blp"
set objet[189] = 'rre1'
set path[189] = "ReplaceableTextures\\CommandButtons\\BTNRune.blp"
set objet[190] = 'rre2'
set path[190] = "ReplaceableTextures\\CommandButtons\\BTNRune.blp"
set objet[191] = 'rspd'
set path[191] = "ReplaceableTextures\\CommandButtons\\BTNRune.blp"
set objet[192] = 'rman'
set path[192] = "ReplaceableTextures\\CommandButtons\\BTNRune.blp"
set objet[193] = 'rma2'
set path[193] = "ReplaceableTextures\\CommandButtons\\BTNRune.blp"
set objet[194] = 'rres'
set path[194] = "ReplaceableTextures\\CommandButtons\\BTNRune.blp"
set objet[195] = 'rhe1'
set path[195] = "ReplaceableTextures\\CommandButtons\\BTNRune.blp"
set objet[196] = 'rhe2'
set path[196] = "ReplaceableTextures\\CommandButtons\\BTNRune.blp"
set objet[197] = 'rhe3'
set path[197] = "ReplaceableTextures\\CommandButtons\\BTNRune.blp"
set objet[198] = 'rdis'
set path[198] = "ReplaceableTextures\\CommandButtons\\BTNRune.blp"
set objet[199] = 'rwat'
set path[199] = "ReplaceableTextures\\CommandButtons\\BTNRune.blp"
set objet[200] = 'sor1'
set path[200] = "ReplaceableTextures\\CommandButtons\\BTNOrbOfDarkness.blp"
set objet[201] = 'sor2'
set path[201] = "ReplaceableTextures\\CommandButtons\\BTNOrbOfDarkness.blp"
set objet[202] = 'sor3'
set path[202] = "ReplaceableTextures\\CommandButtons\\BTNOrbOfDarkness.blp"
set objet[203] = 'sor4'
set path[203] = "ReplaceableTextures\\CommandButtons\\BTNOrbOfDarkness.blp"
set objet[204] = 'sor5'
set path[204] = "ReplaceableTextures\\CommandButtons\\BTNOrbOfDarkness.blp"
set objet[205] = 'sor6'
set path[205] = "ReplaceableTextures\\CommandButtons\\BTNOrbOfDarkness.blp"
set objet[206] = 'sor7'
set path[206] = "ReplaceableTextures\\CommandButtons\\BTNOrbOfDarkness.blp"
set objet[207] = 'sor8'
set path[207] = "ReplaceableTextures\\CommandButtons\\BTNOrbOfDarkness.blp"
set objet[208] = 'sor9'
set path[208] = "ReplaceableTextures\\CommandButtons\\BTNOrbOfDarkness.blp"
set objet[209] = 'sora'
set path[209] = "ReplaceableTextures\\CommandButtons\\BTNOrbOfDarkness.blp"
set objet[210] = 'sorf'
set path[210] = "ReplaceableTextures\\CommandButtons\\BTNOrbOfDarkness.blp"
set objet[211] = 'fwss'
set path[211] = "ReplaceableTextures\\CommandButtons\\BTNGrimWard.blp"
set objet[212] = 'gmfr'
set path[212] = "ReplaceableTextures\\CommandButtons\\BTNGem.blp"
set objet[213] = 'ram1'
set path[213] = "ReplaceableTextures\\CommandButtons\\BTNRingJadeFalcon.blp"
set objet[214] = 'ram2'
set path[214] = "ReplaceableTextures\\CommandButtons\\BTNRingJadeFalcon.blp"
set objet[215] = 'ram3'
set path[215] = "ReplaceableTextures\\CommandButtons\\BTNRingJadeFalcon.blp"
set objet[216] = 'ram4'
set path[216] = "ReplaceableTextures\\CommandButtons\\BTNRingJadeFalcon.blp"
set objet[217] = 'shtm'
set path[217] = "ReplaceableTextures\\CommandButtons\\BTNEntrapmentWard.blp"
set objet[218] = 'esaz'
set path[218] = "ReplaceableTextures\\CommandButtons\\BTNHeartOfAszune.blp"
set objet[219] = 'jpnt'
set path[219] = "ReplaceableTextures\\CommandButtons\\BTNScrollOfProtection.blp"
set objet[220] = 'shwd'
set path[220] = "ReplaceableTextures\\CommandButtons\\BTNShimmerWeed.blp"
set objet[221] = 'btst'
set path[221] = "ReplaceableTextures\\CommandButtons\\BTNOrcBattleStandard.blp"
set objet[222] = 'skrt'
set path[222] = "ReplaceableTextures\\CommandButtons\\BTNOrbOfCorruption.blp"
set objet[223] = 'thle'
set path[223] = "ReplaceableTextures\\CommandButtons\\BTNThunderLizardEgg.blp"
set objet[224] = 'sclp'
set path[224] = "ReplaceableTextures\\CommandButtons\\BTNSelectHeroOn.blp"
set objet[225] = 'gldo'
set path[225] = "ReplaceableTextures\\CommandButtons\\BTNUsedSoulGem.blp"
set objet[226] = 'wtlg'
set path[226] = "ReplaceableTextures\\CommandButtons\\BTNWirtsLeg.blp"
set objet[227] = 'wolg'
set path[227] = "ReplaceableTextures\\CommandButtons\\BTNWirtsOtherLeg.blp"
set objet[228] = 'tbsm'
set path[228] = "ReplaceableTextures\\CommandButtons\\BTNBlacksmith.blp"
set objet[229] = 'tfar'
set path[229] = "ReplaceableTextures\\CommandButtons\\BTNFarm.blp"
set objet[230] = 'tlum'
set path[230] = "ReplaceableTextures\\CommandButtons\\BTNHumanLumberMill.blp"
set objet[231] = 'tbar'
set path[231] = "ReplaceableTextures\\CommandButtons\\BTNHumanBarracks.blp"
set objet[232] = 'tbak'
set path[232] = "ReplaceableTextures\\CommandButtons\\BTNAltarOfKings.blp"
set objet[233] = 'mgtk'
set path[233] = "ReplaceableTextures\\CommandButtons\\BTNBlood&GhostKey.blp"
set objet[234] = 'stre'
set path[234] = "ReplaceableTextures\\CommandButtons\\BTNWandSkull.blp"
set objet[235] = 'horl'
set path[235] = "ReplaceableTextures\\CommandButtons\\BTNGlyph.blp"
set objet[236] = 'hbth'
set path[236] = "ReplaceableTextures\\CommandButtons\\BTNUnholyAura.blp"
set objet[237] = 'blba'
set path[237] = "ReplaceableTextures\\CommandButtons\\BTNArmorGolem.blp"
set objet[238] = 'rugt'
set path[238] = "ReplaceableTextures\\CommandButtons\\BTNImprovedUnholyStrength.blp"
set objet[239] = 'frhg'
set path[239] = "ReplaceableTextures\\CommandButtons\\BTNAdvancedUnholyStrength.blp"
set objet[240] = 'gvsm'
set path[240] = "ReplaceableTextures\\CommandButtons\\BTNSpellSteal.blp"
set objet[241] = 'crdt'
set path[241] = "ReplaceableTextures\\CommandButtons\\BTNRevenant.blp"
set objet[242] = 'arsc'
set path[242] = "ReplaceableTextures\\CommandButtons\\BTNBansheeAdept.blp"
set objet[243] = 'scul'
set path[243] = "ReplaceableTextures\\CommandButtons\\BTNBansheeMaster.blp"
set objet[244] = 'tmsc'
set path[244] = "ReplaceableTextures\\CommandButtons\\BTNNecromancerAdept.blp"
set objet[245] = 'dtsb'
set path[245] = "ReplaceableTextures\\CommandButtons\\BTNSorceressMaster.blp"
set objet[246] = 'grsl'
set path[246] = "ReplaceableTextures\\CommandButtons\\BTNNecromancerMaster.blp"
set objet[247] = 'arsh'
set path[247] = "ReplaceableTextures\\CommandButtons\\BTNArcaniteArmor.blp"
set objet[248] = 'shdt'
set path[248] = "ReplaceableTextures\\CommandButtons\\BTNLightningShield.blp"
set objet[249] = 'shhn'
set path[249] = "ReplaceableTextures\\CommandButtons\\BTNHumanArmorUpThree.blp"
set objet[250] = 'shen'
set path[250] = "ReplaceableTextures\\CommandButtons\\BTNThoriumArmor.blp"
set objet[251] = 'thdm'
set path[251] = "ReplaceableTextures\\CommandButtons\\BTNEnchantedGemstone.blp"
set objet[252] = 'stpg'
set path[252] = "ReplaceableTextures\\CommandButtons\\BTNPenguin.blp"
set objet[253] = 'shrs'
set path[253] = "ReplaceableTextures\\CommandButtons\\BTNMonsterLure.blp"
set objet[254] = 'bfhr'
set path[254] = "ReplaceableTextures\\CommandButtons\\BTNPhilosophersStone.blp"
set objet[255] = 'cosl'
set path[255] = "ReplaceableTextures\\CommandButtons\\BTNUsedSoulGem.blp"
set objet[256] = 'shcw'
set path[256] = "ReplaceableTextures\\CommandButtons\\BTNShamanMaster.blp"
set objet[257] = 'srbd'
set path[257] = "ReplaceableTextures\\CommandButtons\\BTNArcaniteMelee.blp"
set objet[258] = 'frgd'
set path[258] = "ReplaceableTextures\\CommandButtons\\BTNThoriumMelee.blp"
set objet[259] = 'envl'
set path[259] = "ReplaceableTextures\\CommandButtons\\BTNVialFull.blp"
set objet[260] = 'rump'
set path[260] = "ReplaceableTextures\\CommandButtons\\BTNGatherGold.blp"
set objet[261] = 'mort'
set path[261] = "ReplaceableTextures\\CommandButtons\\BTNSpy.blp"
set objet[262] = 'srtl'
set path[262] = "ReplaceableTextures\\CommandButtons\\BTNOrcMeleeUpThree.blp"
set objet[263] = 'stwa'
set path[263] = "ReplaceableTextures\\CommandButtons\\BTNOrcMeleeUpOne.blp"
set objet[264] = 'klmm'
set path[264] = "ReplaceableTextures\\CommandButtons\\BTNSpiritWalkerAdeptTraining.blp"
set objet[265] = 'rots'
set path[265] = "ReplaceableTextures\\CommandButtons\\BTNWitchDoctorAdept.blp"
set objet[266] = 'axas'
set path[266] = "ReplaceableTextures\\CommandButtons\\BTNWitchDoctorMaster.blp"
set objet[267] = 'mnsf'
set path[267] = "ReplaceableTextures\\CommandButtons\\BTNBrilliance.blp"
set objet[268] = 'schl'
set path[268] = "ReplaceableTextures\\CommandButtons\\BTNPriestAdept.blp"
set objet[269] = 'asbl'
set path[269] = "ReplaceableTextures\\CommandButtons\\BTNDaggerOfEscape.blp"
set objet[270] = 'kgal'
set path[270] = "ReplaceableTextures\\CommandButtons\\BTNBarrel.blp"
set objet[271] = 'dphe'
set path[271] = "ReplaceableTextures\\CommandButtons\\BTNThunderLizardEgg.blp"
set objet[272] = 'dkfw'
set path[272] = "ReplaceableTextures\\CommandButtons\\BTNBarrel.blp"
set objet[273] = 'dthb'
set path[273] = "ReplaceableTextures\\CommandButtons\\BTNManaFlareOff.blp"
set end = 274
set i = 0
loop
exitwhen ( i == end )
if (id == objet[i]) then
return path[i]
endif
set i = i + 1
endloop
return "Aucun objet trouvé"
endfunction



//===========================================================================
//Function optional for multiboard
function Item2PathMImg takes multiboard whichmultiboard, integer column, integer row, item obj returns nothing
call MultiboardSetItemIconBJ( whichmultiboard, column, row, Item2Path( obj ) )
endfunction


This Jass was originally posted by Aylane, in the JASS section of wc3sear.ch, so credit goes there for that. What this does, is gets the paths for icons for use in the multiboard. I need someone to convert this into getting the path of every UNIT MODEL in Warcraft 3 and the Expansion. And store the path in a string. Thats ALL I need to do. Yes, it'd be tedious, but I'd give rep.
Thanks in advance.
10-14-2004, 03:20 AM#2
MysticGeneral
Don't quite get the question. But try using the WarCraft 3 Viewer thingy... It's at http://www.wc3sear.ch. I know it got the word viewer in it.
10-14-2004, 03:49 AM#3
Rafael Br
First, the function takes an item as a parameter, you have to make it use a unit, then, the local array objet is the items that can be given, in your function they will be units, like this:
Code:
function Item2Path takes unit obj returns string
    local string array path
    local integer array objet
    local integer end
    local integer i
    local integer id = GetUnitTypeId(obj)
    set objet[0] = 'hfoo' // The footman rawcoe
    set path[0] = "units\human\Footman\Footman.mdl"
 //   Do that for all the units, look at their path in the object editor
    set end = (The number of units that you used
    set i = 0
    loop
        exitwhen ( i == end )
        if (id == objet[i]) then
            return path[i]
        endif
        set i = i + 1
    endloop
    return "Aucun objet trouvé"
endfunction

Try doing it, cause this is work for hours... BTW, Why do you need this?
10-14-2004, 03:52 AM#4
MysticGeneral
Must be that I'm tired, can't make out what you typed. Not that I don't know JASS. Just I'm fooken tired. I'll re-read this tomorrow >.>
10-14-2004, 11:35 PM#5
Kojiro
If figured as much about the raw unit code and the model paths, thats the easy part. I just need the thing to take a target unit, then look through the models (I can do the model entering by myself) and then put that into a string. I know ABSOLUTELY nothing about Jass, so, I'm confused when it comes to nearly everything about it.

So... is that code you wrote the code I need to use? And I can just do the model paths and raw data myself? I mean... I don't see what string it saves it to... or what string it even uses to look for it... Make sense?
10-15-2004, 01:22 AM#6
Guest
o.0 Why do you need to know the paths for different models in-game?
10-15-2004, 01:24 AM#7
Aiursrage2k
That is a whorrible function (pun intended!), better to make the strings only once...
10-15-2004, 07:42 AM#8
Kojiro
If you folks really need to know... I just want to use the paths for things like an impale spell for the dragoon, where he takes the opponent on his spear and throws him. Using people as body shields, etc... etc.. Just things like that... I suppose I could figure out how to do this by myself much easier...