//----------------------------------------------------------------------
// This example to to all non powerup item stored to gui variable
//----------------------------------------------------------------------
function SaveItemTypes takes nothing returns nothing
set udg_Item_Type[0] = 'pams' //Anti-magic Potion id:1885433203
set udg_Item_Type[1] = 'gvsm' //Gloves of Spell Mastery id:1735816045
set udg_Item_Type[2] = 'gobm' //Goblin Land Mines id:1735352941
set udg_Item_Type[3] = 'gemt' //Gem of True Seeing id:1734700404
set udg_Item_Type[4] = 'cosl' //Celestial Orb of Souls id:1668248428
set udg_Item_Type[5] = 'brag' //Bracer of Agility id:1651663207
set udg_Item_Type[6] = 'blba' //Bladebane Armor id:1651270241
set udg_Item_Type[7] = 'bfhr' //Bloodfeather's Heart id:1650878578
set udg_Item_Type[8] = 'asbl' //Assassin's Blade id:1634951788
set udg_Item_Type[9] = 'arsh' //Arcanite Shield id:1634890600
set udg_Item_Type[10] = 'arsc' //Arcane Scroll id:1634890595
set udg_Item_Type[11] = 'wolg' //Wirt's Other Leg id:2003790951
set udg_Item_Type[12] = 'shen' //Enchanted Shield id:1936221550
set udg_Item_Type[13] = 'rat3' //Claws of Attack +3 id:1918989363
set udg_Item_Type[14] = 'dust' //Dust of Appearance id:1685418868
set udg_Item_Type[15] = 'dtsb' //Drek'thar's Spellbook id:1685353314
set udg_Item_Type[16] = 'drph' //Druid Pouch id:1685221480
set udg_Item_Type[17] = 'crdt' //Crown of the Deathlord id:1668441204
set udg_Item_Type[18] = 'axas' //Ancestral Staff id:1635279219
set udg_Item_Type[19] = 'anfg' //Ancient Figurine id:1634625127
set udg_Item_Type[20] = 'amrc' //Amulet of Recall id:1634562659
set udg_Item_Type[21] = 'tsct' //Ivory Tower id:1953719156
set udg_Item_Type[22] = 'rde1' //Ring of Protection +2 id:1919182129
set udg_Item_Type[23] = 'prvt' //Periapt of Vitality id:1886549620
set udg_Item_Type[24] = 'pmna' //Pendant of Mana id:1886219873
set udg_Item_Type[25] = 'plcl' //Lesser Clarity Potion id:1886151532
set udg_Item_Type[26] = 'penr' //Pendant of Energy id:1885695602
set udg_Item_Type[27] = 'moon' //Moonstone id:1836019566
set udg_Item_Type[28] = 'mcri' //Mechanical Critter id:1835233897
set udg_Item_Type[29] = 'hslv' //Healing Salve id:1752394870
set udg_Item_Type[30] = 'tels' //Goblin Night Scope id:1952803955
set udg_Item_Type[31] = 'sor4' //Shadow Orb +4 id:1936683572
set udg_Item_Type[32] = 'tmsc' //Tome of Sacrifices id:1953330019
set udg_Item_Type[33] = 'tmmt' //Totem of Might id:1953328500
set udg_Item_Type[34] = 'srtl' //Serathil id:1936880748
set udg_Item_Type[35] = 'srbd' //Searing Blade id:1936876132
set udg_Item_Type[36] = 'sora' //Shadow Orb +10 id:1936683617
set udg_Item_Type[37] = 'sor9' //Shadow Orb +9 id:1936683577
set udg_Item_Type[38] = 'sor8' //Shadow Orb +8 id:1936683576
set udg_Item_Type[39] = 'sor7' //Shadow Orb +7 id:1936683575
set udg_Item_Type[40] = 'sor6' //Shadow Orb +6 id:1936683574
set udg_Item_Type[41] = 'sor5' //Shadow Orb +5 id:1936683573
set udg_Item_Type[42] = 'sor3' //Shadow Orb +3 id:1936683571
set udg_Item_Type[43] = 'sor2' //Shadow Orb +2 id:1936683570
set udg_Item_Type[44] = 'sor1' //Shadow Orb +1 id:1936683569
set udg_Item_Type[45] = 'shcw' //Shaman Claws id:1936221047
set udg_Item_Type[46] = 'sfog' //Horn of the Clouds id:1936093031
set udg_Item_Type[47] = 'rej6' //Greater Scroll of Replenishment id:1919248950
set udg_Item_Type[48] = 'rej4' //Greater Replenishment Potion id:1919248948
set udg_Item_Type[49] = 'hbth' //Helm of Battlethirst id:1751282792
set udg_Item_Type[50] = 'grsl' //Grimoire of Souls id:1735553900
set udg_Item_Type[51] = 'fwss' //Frost Wyrm Skull Shield id:1719104371
set udg_Item_Type[52] = 'frgd' //Frostguard id:1718773604
set udg_Item_Type[53] = 'wtlg' //Wirt's Leg id:2004118631
set udg_Item_Type[54] = 'sehr' //The Heart of Searinox id:1936025714
set udg_Item_Type[55] = 'scul' //Scroll of the Unholy Legion id:1935897964
set udg_Item_Type[56] = 'schl' //Scepter of Healing id:1935894636
set udg_Item_Type[57] = 'rej5' //Lesser Scroll of Replenishment id:1919248949
set udg_Item_Type[58] = 'rej2' //Lesser Replenishment Potion id:1919248946
set udg_Item_Type[59] = 'rej1' //Minor Replenishment Potion id:1919248945
set udg_Item_Type[60] = 'nspi' //Necklace of Spell Immunity id:1853059177
set udg_Item_Type[61] = 'mnsf' //Mindstaff id:1835955046
set udg_Item_Type[62] = 'mlst' //Maul of Strength id:1835823988
set udg_Item_Type[63] = 'lure' //Monster Lure id:1819636325
set udg_Item_Type[64] = 'ktrm' //Urn of King Terenas id:1802793581
set udg_Item_Type[65] = 'klmm' //Killmaim id:1802268013
set udg_Item_Type[66] = 'kgal' //Keg of Ale id:1801937260
set udg_Item_Type[67] = 'jdrn' //Jade Ring id:1784967790
set udg_Item_Type[68] = 'iwbr' //Ironwood Branch id:1769431666
set udg_Item_Type[69] = 'horl' //Sacred Relic id:1752134252
set udg_Item_Type[70] = 'frhg' //Firehand Gauntlets id:1718773863
set udg_Item_Type[71] = 'fgun' //Flare Gun id:1718056302
set udg_Item_Type[72] = 'esaz' //Essence of Aszune id:1702060410
set udg_Item_Type[73] = 'envl' //Enchanted Vial id:1701738092
set udg_Item_Type[74] = 'ccmd' //Scepter of Mastery id:1667460452
set udg_Item_Type[75] = 'rlif' //Ring of Regeneration id:1919707494
set udg_Item_Type[76] = 'rin1' //Mantle of Intelligence +3 id:1919512113
set udg_Item_Type[77] = 'rde4' //Ring of Protection +5 id:1919182132
set udg_Item_Type[78] = 'rde3' //Ring of Protection +4 id:1919182131
set udg_Item_Type[79] = 'rde2' //Ring of Protection +3 id:1919182130
set udg_Item_Type[80] = 'pnvl' //Potion of Lesser Invulnerability id:1886287468
set udg_Item_Type[81] = 'pman' //Potion of Mana id:1886216558
set udg_Item_Type[82] = 'pinv' //Potion of Invisibility id:1885957750
set udg_Item_Type[83] = 'phea' //Potion of Healing id:1885889889
set udg_Item_Type[84] = 'pclr' //Clarity Potion id:1885564018
set udg_Item_Type[85] = 'ofro' //Orb of Frost id:1868984943
set udg_Item_Type[86] = 'odef' //Orb of Darkness id:1868850534
set udg_Item_Type[87] = 'modt' //Mask of Death id:1836016756
set udg_Item_Type[88] = 'mcou' //Medallion of Courage id:1835233141
set udg_Item_Type[89] = 'lgdh' //Legion Doom-Horn id:1818715240
set udg_Item_Type[90] = 'ciri' //Robe of the Magi +6 id:1667854953
set udg_Item_Type[91] = 'vddl' //Voodoo Doll id:1986290796
set udg_Item_Type[92] = 'sksh' //Skull Shield id:1936421736
set udg_Item_Type[93] = 'shtm' //Shamanic Totem id:1936225389
set udg_Item_Type[94] = 'shrs' //Shimmerglaze Roast id:1936224883
set udg_Item_Type[95] = 'shhn' //Shield of Honor id:1936222318
set udg_Item_Type[96] = 'shdt' //Shield of the Deathlord id:1936221300
set udg_Item_Type[97] = 'rump' //Rusty Mining Pick id:1920298352
set udg_Item_Type[98] = 'rots' //Scepter of the Sea id:1919906931
set udg_Item_Type[99] = 'soul' //Soul id:1936684396
set udg_Item_Type[100] = 'skul' //Sacrificial Skull id:1936422252
set udg_Item_Type[101] = 'skrt' //Skeletal Artifact id:1936421492
set udg_Item_Type[102] = 'rugt' //Runed Gauntlets id:1920296820
set udg_Item_Type[103] = 'rnsp' //Ring of Superiority id:1919841136
set udg_Item_Type[104] = 'rde0' //Ring of Protection +1 id:1919182128
set udg_Item_Type[105] = 'ram3' //Ring of the Archmagi id:1918987571
set udg_Item_Type[106] = 'ram2' //Ring of the Archmagi id:1918987570
set udg_Item_Type[107] = 'ram1' //Ring of the Archmagi id:1918987569
set udg_Item_Type[108] = 'pspd' //Potion of Speed id:1886613604
set udg_Item_Type[109] = 'pgin' //Potion of Greater Invisibility id:1885825390
set udg_Item_Type[110] = 'oven' //Orb of Venom id:1870030190
set udg_Item_Type[111] = 'oslo' //Orb of Slow id:1869835375
set udg_Item_Type[112] = 'olig' //Orb of Lightning id:1869375847
set udg_Item_Type[113] = 'oli2' //Orb of Lightning id:1869375794
set udg_Item_Type[114] = 'ofir' //Orb of Fire id:1868982642
set udg_Item_Type[115] = 'ocor' //Orb of Corruption id:1868787570
set udg_Item_Type[116] = 'lnrn' //Lion's Ring id:1819177582
set udg_Item_Type[117] = 'kysn' //Sun Key id:1803121518
set udg_Item_Type[118] = 'glsk' //Skull of Gul'dan id:1735160683
set udg_Item_Type[119] = 'gldo' //Orb of Kil'jaeden id:1735156847
set udg_Item_Type[120] = 'wcyc' //Wand of the Wind (3) id:2003007843
set udg_Item_Type[121] = 'sman' //Scroll of Mana id:1936548206
set udg_Item_Type[122] = 'shea' //Scroll of Healing id:1936221537
set udg_Item_Type[123] = 'sbch' //Scourge Bone Chimes id:1935827816
set udg_Item_Type[124] = 'rwiz' //Sobi Mask id:1920428410
set udg_Item_Type[125] = 'rnec' //Rod of Necromancy id:1919837539
set udg_Item_Type[126] = 'rhth' //Khadgar's Gem of Health id:1919448168
set udg_Item_Type[127] = 'ratf' //Claws of Attack +15 id:1918989414
set udg_Item_Type[128] = 'rag1' //Slippers of Agility +3 id:1918986033
set udg_Item_Type[129] = 'kpin' //Khadgar's Pipe of Insight id:1802529134
set udg_Item_Type[130] = 'hval' //Helm of Valor id:1752588652
set udg_Item_Type[131] = 'hcun' //Hood of Cunning id:1751348590
set udg_Item_Type[132] = 'desc' //Kelen's Dagger of Escape id:1684370275
set udg_Item_Type[133] = 'ckng' //Crown of Kings +5 id:1667984999
set udg_Item_Type[134] = 'brac' //Runed Bracers id:1651663203
set udg_Item_Type[135] = 'tlum' //Tiny Lumber Mill id:1953265005
set udg_Item_Type[136] = 'thdm' //Thunderlizard Diamond id:1952998509
set udg_Item_Type[137] = 'tfar' //Tiny Farm id:1952866674
set udg_Item_Type[138] = 'tbsm' //Tiny Blacksmith id:1952609133
set udg_Item_Type[139] = 'tbar' //Tiny Barracks id:1952604530
set udg_Item_Type[140] = 'tbak' //Tiny Altar of Kings id:1952604523
set udg_Item_Type[141] = 'stwa' //Sturdy War Axe id:1937012577
set udg_Item_Type[142] = 'stre' //Staff of Reanimation id:1937011301
set udg_Item_Type[143] = 'sprn' //Spider Ring id:1936749166
set udg_Item_Type[144] = 'spre' //Staff of Preservation id:1936749157
set udg_Item_Type[145] = 'sbok' //Spell Book id:1935830891
set udg_Item_Type[146] = 'ram4' //Ring of the Archmagi id:1918987572
set udg_Item_Type[147] = 'phlt' //Phat Lewt id:1885891700
set udg_Item_Type[148] = 'k3m2' //Partial Key of the Three Moons id:1798532402
set udg_Item_Type[149] = 'k3m1' //Mooncrystal id:1798532401
set udg_Item_Type[150] = 'jpnt' //Note to Jaina Proudmoore id:1785753204
set udg_Item_Type[151] = 'gsou' //Soul Gem id:1735618421
set udg_Item_Type[152] = 'wshs' //Wand of Shadowsight (2) id:2004052083
set udg_Item_Type[153] = 'woms' //Wand of Mana Stealing (2) id:2003791219
set udg_Item_Type[154] = 'wlsd' //Wand of Lightning Shield (3) id:2003596132
set udg_Item_Type[155] = 'ward' //Warsong Battle Drums id:2002874980
set udg_Item_Type[156] = 'stel' //Staff of Teleportation id:1937007980
set udg_Item_Type[157] = 'ssil' //Staff of Silence id:1936943468
set udg_Item_Type[158] = 'sreg' //Scroll of Regeneration id:1936876903
set udg_Item_Type[159] = 'spro' //Scroll of Protection id:1936749167
set udg_Item_Type[160] = 'shas' //Scroll of Speed id:1936220531
set udg_Item_Type[161] = 'rst1' //Gauntlets of Ogre Strength +3 id:1920169009
set udg_Item_Type[162] = 'lhst' //The Lion Horn of Stormwind id:1818784628
set udg_Item_Type[163] = 'gcel' //Gloves of Haste id:1734567276
set udg_Item_Type[164] = 'evtl' //Talisman of Evasion id:1702261868
set udg_Item_Type[165] = 'dsum' //Diamond of Summoning id:1685288301
set udg_Item_Type[166] = 'mort' //Mogrin's Report id:1836020340
set udg_Item_Type[167] = 'mgtk' //Magic Key Chain id:1835496555
set udg_Item_Type[168] = 'kymn' //Moon Key id:1803119982
set udg_Item_Type[169] = 'k3m3' //Key of Three Moons id:1798532403
set udg_Item_Type[170] = 'will' //Wand of Illusion (3) id:2003397740
set udg_Item_Type[171] = 'wild' //Amulet of the Wild (1) id:2003397732
set udg_Item_Type[172] = 'totw' //Talisman of the Wild (3) id:1953461367
set udg_Item_Type[173] = 'stwp' //Scroll of Town Portal id:1937012592
set udg_Item_Type[174] = 'ssan' //Staff of Sanctuary id:1936941422
set udg_Item_Type[175] = 'sneg' //Staff of Negation id:1936614759
set udg_Item_Type[176] = 'silk' //Spider Silk Broach id:1936288875
set udg_Item_Type[177] = 'rat9' //Claws of Attack +9 id:1918989369
set udg_Item_Type[178] = 'fgsk' //Book of the Dead (1) id:1718055787
set udg_Item_Type[179] = 'fgrg' //Stone Token (1) id:1718055527
set udg_Item_Type[180] = 'fgfh' //Spiked Collar (1) id:1718052456
set udg_Item_Type[181] = 'fgdg' //Demonic Figurine (1) id:1718051943
set udg_Item_Type[182] = 'crys' //Crystal Ball id:1668446579
set udg_Item_Type[183] = 'clsd' //Cloak of Shadows id:1668051812
set udg_Item_Type[184] = 'clfm' //Cloak of Flames id:1668048493
set udg_Item_Type[185] = 'ankh' //Ankh of Reincarnation (1) id:1634626408
set udg_Item_Type[186] = 'uflg' //Undead Flag id:1969646695
set udg_Item_Type[187] = 'oflg' //Orc Flag id:1868983399
set udg_Item_Type[188] = 'nflg' //Night Elf Flag id:1852206183
set udg_Item_Type[189] = 'flag' //Human Flag id:1718378855
set udg_Item_Type[190] = 'gopr' //Glyph of Purification id:1735356530
set udg_Item_Type[191] = 'cnhn' //Horn of Cenarius id:1668180078
set udg_Item_Type[192] = 'azhr' //Heart of Aszune id:1635412082
set udg_Item_Type[193] = 'wswd' //Sentry Wards (3) id:2004055908
set udg_Item_Type[194] = 'whwd' //Healing Wards (3) id:2003335012
set udg_Item_Type[195] = 'vamp' //Vampiric Potion id:1986096496
set udg_Item_Type[196] = 'tret' //Tome of Retraining id:1953654132
set udg_Item_Type[197] = 'tgrh' //Tiny Great Hall id:1952936552
set udg_Item_Type[198] = 'tcas' //Tiny Castle id:1952670067
set udg_Item_Type[199] = 'srrc' //Scroll of Resurrection (1) id:1936880227
set udg_Item_Type[200] = 'sror' //Scroll of the Beast (1) id:1936879474
set udg_Item_Type[201] = 'shar' //Ice Shard (1) id:1936220530
set udg_Item_Type[202] = 'ratc' //Claws of Attack +12 id:1918989411
set udg_Item_Type[203] = 'rat6' //Claws of Attack +6 id:1918989366
set udg_Item_Type[204] = 'infs' //Inferno Stone (1) id:1768842867
set udg_Item_Type[205] = 'hlst' //Health Stone (1) id:1751937908
set udg_Item_Type[206] = 'cnob' //Circlet of Nobility id:1668181858
set udg_Item_Type[207] = 'stpg' //Clockwork Penguin id:1937010791
set udg_Item_Type[208] = 'sorf' //Shadow Orb Fragment id:1936683622
set udg_Item_Type[209] = 'btst' //Battle Standard id:1651798900
set udg_Item_Type[210] = 'thle' //Thunder Lizard Egg id:1953000549
set udg_Item_Type[211] = 'dthb' //Thunderbloom Bulb id:1685350498
set udg_Item_Type[212] = 'dphe' //Thunder Phoenix Egg id:1685088357
set udg_Item_Type[213] = 'ledg' //Gerard's Lost Ledger id:1818584167
set udg_Item_Type[214] = 'kygh' //Ghost Key id:1803118440
set udg_Item_Type[215] = 'gmfr' //Gem Fragment id:1735222898
set udg_Item_Type[216] = 'wneu' //Wand of Neutralization id:2003723637
set udg_Item_Type[217] = 'wneg' //Wand of Negation id:2003723623
set udg_Item_Type[218] = 'sres' //Scroll of Restoration (1) id:1936876915
set udg_Item_Type[219] = 'sand' //Scroll of Animate Dead (1) id:1935765092
set udg_Item_Type[220] = 'rej3' //Replenishment Potion (1) id:1919248947
set udg_Item_Type[221] = 'pgma' //Potion of Greater Mana (1) id:1885826401
set udg_Item_Type[222] = 'pghe' //Potion of Greater Healing (1) id:1885825125
set udg_Item_Type[223] = 'pdiv' //Potion of Divinity (1) id:1885628790
set udg_Item_Type[224] = 'mnst' //Mana Stone (1) id:1835955060
set udg_Item_Type[225] = 'kybl' //Blood Key id:1803117164
set udg_Item_Type[226] = 'bspd' //Boots of Speed id:1651732580
set udg_Item_Type[227] = 'bgst' //Belt of Giant Strength +6 id:1650946932
set udg_Item_Type[228] = 'belv' //Boots of Quel'Thalas +6 id:1650814070
set udg_Item_Type[229] = 'ajen' //Ancient Janggo of Endurance id:1634362734
set udg_Item_Type[230] = 'shwd' //Shimmerweed id:1936226148
set udg_Item_Type[231] = 'sclp' //Secret Level Powerup id:1935895664
set udg_Item_Type[232] = 'engs' //Enchanted Gemstone id:1701734259
set udg_Item_Type[233] = 'dkfw' //Keg of Thunderwater id:1684760183
set udg_Item_Type[234] = 'bzbf' //Full Vial id:1652187750
set udg_Item_Type[235] = 'spsh' //Amulet of Spell Shield id:1936749416
set udg_Item_Type[236] = 'pres' //Potion of Restoration (1) id:1886545267
set udg_Item_Type[237] = 'pomn' //Potion of Omniscience (1) id:1886350702
set udg_Item_Type[238] = 'pnvu' //Potion of Invulnerability (1) id:1886287477
set udg_Item_Type[239] = 'fgrd' //Red Drake Egg (1) id:1718055524
set udg_Item_Type[240] = 'ches' //Cheese id:1667786099
set udg_Item_Type[241] = 'bzbe' //Empty Vial id:1652187749
set udg_Item_Type[242] = 'afac' //Alleria's Flute of Accuracy id:1634099555
set udg_Item_Type_Count = 242
endfunction
//----------------------------------------------------------------------
// This part of the randomized string
//----------------------------------------------------------------------
// "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
function RandomizeString takes string t returns string
local string s = ""
local integer i = 0
local integer len = StringLength(t)
local integer c = len
local integer clen = 0
local string l = ""
if len > 2 then
loop
exitwhen StringLength(s) == c
set len = StringLength(t)
if len > 1 then
set i = GetRandomInt(0, len-1)
set l = SubString(t, i, i + 1)
if i < len then
if i == len-1 then
set s = s + l
set t = SubString(t, 0, len - 1)
elseif i == 0 then
set s = s + l
set t = SubString(t, 1, len)
else
set s = s + l
set t = SubString(t, 0, i) + SubString(t, i + 1, len)
endif
elseif i == len-1 then
set s = s + l
set t = SubString(t, 0, len - 1)
endif
else
set s = s + t
set t=""
endif
endloop
else
set s = t
endif
set l = null
set t = null
return s
endfunction
Name | Type | is_array | initial_value |
I | integer | No | |
Item_Type | integer | Yes | |
Item_Type_Count | integer | No |
function Chr2Asc takes integer chr returns string
local string s = "0123456789#######ABCDEFGHIJKLMNOPQRSTUVWXYZ######abcdefghijklmnopqrstuvwxyz"
if chr > 47 and chr < 123 then
return SubString(s, chr - 48, chr - 47)
else
return "#"
endif
endfunction
function Asc2Chr takes string asc returns integer
local string s = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
local integer l = StringLength(s)
local integer i = 0
local integer chr = - 1
loop
exitwhen i == l - 1 or chr != - 1
if SubString(s, i, i + 1) == asc then
if i < 10 then
set chr = i + 48
elseif i < 36 then
set chr = i + 55
else
set chr = i + 61
endif
endif
set i = i + 1
endloop
return chr
endfunction
function ItemId2RawCode takes integer id returns string
local integer a1
local integer a2
local integer a3
local integer a4
set a1 = id / (256 * 256 * 256)
set id = id - (a1 * 256 * 256 * 256)
set a2 = id / (256 * 256)
set id = id - (a2 * 256 * 256)
set a3 = id / 256
set id = id - (a3 * 256)
set a4 = id
return (Chr2Asc(a1) + Chr2Asc(a2) + Chr2Asc(a3) + Chr2Asc(a4))
endfunction
function SaveItemToTxT takes nothing returns nothing
local integer Id
local item Itm = GetEnumItem()
local itemtype Itype = GetItemType(Itm)
local string s
local string Ic
if (Itype != ITEM_TYPE_POWERUP) then
if (Itype == ITEM_TYPE_CHARGED) then
set Ic = " (" + I2S(GetItemCharges(Itm)) + ")"
else
set Ic = ""
endif
set Id = GetItemTypeId (Itm)
set s = "set i[" + I2S(udg_I) + "] = '" + ItemId2RawCode(Id) + "' O9APT7" + GetItemName(Itm) + Ic + " id:" + I2S(Id)
call Preload(s)
call RemoveItem( Itm )
endif
set udg_I = udg_I + 1
set Ic = null
set s = null
set Itm = null
set Itype = null
endfunction
function Trig_Save_all_item_to_txt_Actions takes nothing returns nothing
set udg_I = 0
call PreloadGenClear()
call PreloadGenStart()
call EnumItemsInRect(GetPlayableMapRect(), null, function SaveItemToTxT)
call Preload("set iMax="+I2S(udg_I-1))
call PreloadGenEnd("ItemToTXT\\itemtotxt.txt")
call DisplayTextToForce( GetPlayersAll(), "All non power up saved to |cff9999ffItemToTxt\\itemtotxt.txt|r" )
endfunction
//===========================================================================
function InitTrig_Save_all_item_to_txt takes nothing returns nothing
set gg_trg_Save_all_item_to_txt = CreateTrigger( )
call TriggerAddAction( gg_trg_Save_all_item_to_txt, function Trig_Save_all_item_to_txt_Actions )
endfunction
function Trig_Melee_Initialization_Actions takes nothing returns nothing
call PreloadGenClear()
call PreloadGenStart()
call Preload(RandomizeString("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!@#$&+-=*[]"))
call Preload(RandomizeString("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!@#$&+-=*[]"))
call Preload(RandomizeString("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!@#$&+-=*[]"))
call Preload(RandomizeString("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!@#$&+-=*[]"))
call Preload(RandomizeString("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!@#$&+-=*[]"))
call Preload(RandomizeString("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!@#$&+-=*[]"))
call Preload(RandomizeString("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!@#$&+-=*[]"))
call Preload(RandomizeString("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!@#$&+-=*[]"))
call Preload(RandomizeString("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!@#$&+-=*[]"))
call Preload(RandomizeString("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!@#$&+-=*[]"))
call PreloadGenEnd("random.txt")
call DisplayTextToPlayer (Player(0), 0, 0, "Random code saved to |cffffff00warcraft 3\\log folder\\random.txt|r")
endfunction
//===========================================================================
function InitTrig_Random takes nothing returns nothing
set gg_trg_Random = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Random, 1.00 )
call TriggerAddAction( gg_trg_Random, function Trig_Melee_Initialization_Actions )
endfunction