Sign in to follow this  
Followers 0
Dreu

Odd Script Function

2 posts in this topic

#1 ·  Posted (edited)

( I forgot my password to my old account lol XD... edit , I don't know whats causing the mass white space below the post content. )

Alright , I'm writing a program that will write configuration files for another program I'm making.

This program is essentially a string parser... But its producing very strange results. It "works"... but doesn't work , fully. It's parsing through a section of html , that I manually add into a txt file.

For some reason, its only writing one value to each section in the INI file. My first guess , was that its using the same key each time it writes to a particular Key. But, I set it to increase the key value by 1 each loop... so it should have a fresh key to use each time...

I'm sure this is probably a logic error, but I can't seem to figure out what it is. Any help is appreciated, although I understand if you don't care to look at it close enough to find such a problem. Thank you regardless.

Heres the script:

Global $Level,$CurrentLine,$SpellName,$ID,$Rank
$file = @ScriptDir&"/TestAutoConfig.txt"
$inifile = @ScriptDir&"/TestMage.ini"
$Occurance = 1
$FileAsString = FileRead(FileOpen($file, 0))
$IniKeyNumber = 1
Do
_ReturnLine()   ; Returns current line.
_GetSpellRank() ; Return Spell Rank
_GetSpellName() ; Return Spell Name
_GetSpellID()   ; Return Spell ID
_GetSpellLevel(); Returns Level of Current Spell Line.
_WriteToINI()   ; Writes data to the INI Config File
$IniKeyNumber = $IniKeyNumber + 1
Until $Occurance = 1000


Func _GetSpellID()
    $GetIDFromString_Spot = StringInStr( $CurrentLine, "[{id:", 0) + 5
    $GetIDFromString_SpotEnd = StringInStr( $CurrentLine, ",", 0, 1, $GetIDFromString_Spot)
    $Count = $GetIDFromString_SpotEnd - $GetIDFromString_Spot
    $ID = StringMid( $CurrentLine, $GetIDFromString_Spot, $Count)
    ;Msgbox( 0, "_GetSpellID", $ID)
EndFunc

Func _GetSpellName()
    $SpellName_Spot = StringInStr( $CurrentLine, "@", 0, 1)
    $SpellName_SpotEnd = StringinStr( $CurrentLine, "'", 0, 1, $SpellName_Spot)
    $SpellName_SpotCount = $SpellName_SpotEnd - $SpellName_Spot
    $SpellName = StringTrimLeft(StringMid( $CurrentLine, $SpellName_Spot, $SpellName_SpotCount),1)
    ;Msgbox( 0, "_GetSpellName", $SpellName)
EndFunc

Func _GetSpellLevel()
    $LevelSpot = StringInStr($CurrentLine, "level", 0, 1)
    $LevelSpot_End = StringInStr($CurrentLine, ",", 0, 1, $LevelSpot)
    $LevelCount = $LevelSpot_End - $LevelSpot
    $Level = StringTrimLeft(StringMid( $CurrentLine, $LevelSpot, $LevelCount), 6)
    ;Msgbox( 0, "_GetSpellLevel", $Level)
EndFunc

Func _GetSpellRank()
    $RankSpot = StringInStr($CurrentLine, "rank", 0, 1 + 1)
    $RankSpot_End = StringInStr($CurrentLine, "'", 0, 1, $RankSpot)
    $RankSpot_Count = $RankSpot_End - $RankSpot
    $Rank = StringMid($CurrentLine,$RankSpot,$RankSpot_Count)
    ;Msgbox( 0, "_GetSpellRank", $Rank)
EndFunc

Func _ReturnLine()
    $GetIDFromString_Spot = StringInStr( $FileAsString, "{id:", 0)
    $GetIDFromString_SpotEnd = StringInStr( $FileAsString, "]},", 0, 1, $GetIDFromString_Spot)
    $Count = $GetIDFromString_SpotEnd - $GetIDFromString_Spot
    $CurrentLine = StringMid( $FileAsString, $GetIDFromString_Spot, $Count)
    $FileAsString = StringTrimLeft($FileAsString,StringLen($CurrentLine))
    $Occurance = $Occurance + 1

    EndFunc

Func _WriteToINI()
    IniWriteSection($inifile, $Level, "")
    IniWrite($inifile,$Level,$IniKeyNumber,$SpellName&" ("&$Rank&" )-"&$ID)
EndFunc

Heres the section of HTML the program is parsing:

{id:1459,name:'@Arcane Intellect',level:1,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 1',source:[6]},


{id:133,name:'@Fireball',level:1,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 1',source:[10]},

{id:168,name:'@Frost Armor',level:1,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 1',source:[10]},

{id:5504,name:'6Conjure Water',level:4,school:6,skill:[237],cat:7,chrclass:128,creates:[5350,2,2],rank:'Rank 

1',source:[6]},{id:116,name:'@Frostbolt',level:4,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

1',source:[6]},{id:587,name:'6Conjure 

Food',level:6,school:6,skill:[237],cat:7,chrclass:128,creates:[5349,2,2],rank:'Rank 

1',source:[6]},{id:2136,name:'@Fire Blast',level:6,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

1',source:[6]},{id:143,name:'@Fireball',level:6,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

2',source:[6]},{id:5143,name:'@Arcane Missiles',level:8,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

1',source:[6]},{id:205,name:'@Frostbolt',level:8,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

2',source:[6]},{id:118,name:'@Polymorph',level:8,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

1',source:[6]},{id:5505,name:'6Conjure 

Water',level:10,school:6,skill:[237],cat:7,chrclass:128,creates:[2288,2,2],rank:'Rank 

2',source:[6]},{id:7300,name:'@Frost Armor',level:10,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

2',source:[6]},{id:122,name:'@Frost Nova',level:10,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

1',source:[6]},{id:597,name:'6Conjure 

Food',level:12,school:6,skill:[237],cat:7,chrclass:128,creates:[1113,2,2],rank:'Rank 

2',source:[6]},{id:604,name:'@Dampen Magic',level:12,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

1',source:[6]},{id:145,name:'@Fireball',level:12,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

3',source:[6]},{id:130,name:'@Slow 

Fall',level:12,school:6,reagents:[[17056,1]],skill:[237],cat:7,chrclass:128,source:[6]},{id:1449,name:'@Arcane 

Explosion',level:14,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 1',source:[6]},{id:1460,name:'@Arcane 

Intellect',level:14,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 2',source:[6]},{id:2137,name:'@Fire 

Blast',level:14,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

2',source:[6]},{id:837,name:'@Frostbolt',level:14,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

3',source:[6]},{id:5144,name:'@Arcane Missiles',level:16,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

2',source:[6]},{id:2120,name:'@Flamestrike',level:16,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

1',source:[6]},{id:1008,name:'@Amplify Magic',level:18,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

1',source:[6]},{id:3140,name:'@Fireball',level:18,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

4',source:[6]},{id:475,name:'@Remove 

Curse',level:18,school:6,skill:[237],cat:7,chrclass:128,source:[6]},{id:1953,name:'@Blink',level:20,school:6,skill:[

237],cat:7,chrclass:128,source:[6]},{id:10,name:'@Blizzard',level:20,school:4,skill:[6],cat:7,chrclass:128,rank:'Ra

nk 1',source:[6]},{id:5506,name:'6Conjure 

Water',level:20,school:6,skill:[237],cat:7,chrclass:128,creates:[2136,2,2],rank:'Rank 

3',source:[6]},{id:12051,name:'@Evocation',level:20,school:6,skill:[237],cat:7,chrclass:128,source:[6]},{id:543,na

me:'@Fire Ward',level:20,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 1',source:[6]},{id:7301,name:'@Frost 

Armor',level:20,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

3',source:[6]},{id:7322,name:'@Frostbolt',level:20,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

4',source:[6]},{id:1463,name:'@Mana Shield',level:20,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

1',source:[6]},{id:12824,name:'@Polymorph',level:20,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

2',source:[6]},{id:32271,name:'@Teleport: 

Exodar',level:20,school:6,reagents:[[17031,1]],skill:[237],cat:7,chrclass:128,races:[1,3,4,7,11],source:[6]},{id:356

2,name:'@Teleport: 

Ironforge',level:20,school:6,reagents:[[17031,1]],skill:[237],cat:7,chrclass:128,races:[1,3,4,7,11],source:[6]},{id:35

67,name:'@Teleport: 

Orgrimmar',level:20,school:6,reagents:[[17031,1]],skill:[237],cat:7,chrclass:128,races:[2,5,6,8,10],source:[6]},{id:

32272,name:'@Teleport: 

Silvermoon',level:20,school:6,reagents:[[17031,1]],skill:[237],cat:7,chrclass:128,races:[2,5,6,8,10],source:[6]},{id:

3561,name:'@Teleport: 

Stormwind',level:20,school:6,reagents:[[17031,1]],skill:[237],cat:7,chrclass:128,races:[1,3,4,7,11],source:[6]},{id:

3563,name:'@Teleport: 

Undercity',level:20,school:6,reagents:[[17031,1]],skill:[237],cat:7,chrclass:128,races:[2,5,6,8,10],source:[6]},{id:8

437,name:'@Arcane Explosion',level:22,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

2',source:[6]},{id:990,name:'6Conjure 

Food',level:22,school:6,skill:[237],cat:7,chrclass:128,creates:[1114,2,2],rank:'Rank 

3',source:[6]},{id:2138,name:'@Fire Blast',level:22,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

3',source:[6]},{id:6143,name:'@Frost Ward',level:22,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

1',source:[6]},{id:2948,name:'@Scorch',level:22,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

1',source:[6]},{id:5145,name:'@Arcane Missiles',level:24,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

3',source:[6]},{id:2139,name:'@Counterspell',level:24,school:6,skill:[237],cat:7,chrclass:128,source:[6]},{id:8450,

name:'@Dampen Magic',level:24,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

2',source:[6]},{id:8400,name:'@Fireball',level:24,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

5',source:[6]},{id:2121,name:'@Flamestrike',level:24,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

2',source:[6]},{id:12505,name:'@Pyroblast',level:24,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

2',source:[6]},{id:120,name:'@Cone of Cold',level:26,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

1',source:[6]},{id:865,name:'@Frost Nova',level:26,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

2',source:[6]},{id:8406,name:'@Frostbolt',level:26,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

5',source:[6]},{id:1461,name:'@Arcane Intellect',level:28,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

3',source:[6]},{id:6141,name:'@Blizzard',level:28,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

2',source:[6]},{id:759,name:'6Conjure Mana 

Gem',level:28,school:6,skill:[237],cat:7,chrclass:128,creates:[5514,1,1],rank:'Rank 

1',source:[6]},{id:8494,name:'@Mana Shield',level:28,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

2',source:[6]},{id:8444,name:'@Scorch',level:28,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

2',source:[6]},{id:8455,name:'@Amplify Magic',level:30,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

2',source:[6]},{id:8438,name:'@Arcane Explosion',level:30,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

3',source:[6]},{id:6127,name:'6Conjure 

Water',level:30,school:6,skill:[237],cat:7,chrclass:128,creates:[3772,2,2],rank:'Rank 

4',source:[6]},{id:8412,name:'@Fire Blast',level:30,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

4',source:[6]},{id:8457,name:'@Fire Ward',level:30,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

2',source:[6]},{id:8401,name:'@Fireball',level:30,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

6',source:[6]},{id:7302,name:'@Ice Armor',level:30,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

1',source:[6]},{id:45438,name:'@Ice 

Block',level:30,school:4,skill:[6],cat:7,chrclass:128,source:[6]},{id:12522,name:'@Pyroblast',level:30,school:2,skil

l:[8],cat:7,chrclass:128,rank:'Rank 3',source:[6]},{id:3565,name:'@Teleport: 

Darnassus',level:30,school:6,reagents:[[17031,1]],skill:[237],cat:7,chrclass:128,races:[1,3,4,7,11],source:[6]},{id:

3566,name:'@Teleport: Thunder 

Bluff',level:30,school:6,reagents:[[17031,1]],skill:[237],cat:7,chrclass:128,races:[2,5,6,8,10],source:[6]},{id:8416,n

ame:'@Arcane Missiles',level:32,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

4',source:[6]},{id:6129,name:'6Conjure 

Food',level:32,school:6,skill:[237],cat:7,chrclass:128,creates:[1487,2,2],rank:'Rank 

4',source:[6]},{id:8422,name:'@Flamestrike',level:32,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

3',source:[6]},{id:8461,name:'@Frost Ward',level:32,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

2',source:[6]},{id:8407,name:'@Frostbolt',level:32,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

6',source:[6]},{id:8492,name:'@Cone of Cold',level:34,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

2',source:[6]},{id:6117,name:'@Mage Armor',level:34,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

1',source:[6]},{id:8445,name:'@Scorch',level:34,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

3',source:[6]},{id:49361,name:'@Portal: 

Stonard',level:35,school:6,reagents:[[17032,1]],skill:[237],cat:7,chrclass:128,races:[2,5,6,8,10],source:[6]},{id:493

60,name:'@Portal: 

Theramore',level:35,school:6,reagents:[[17032,1]],skill:[237],cat:7,chrclass:128,races:[1,3,4,7,11],source:[6]},{id:

49358,name:'@Teleport: 

Stonard',level:35,school:6,reagents:[[17031,1]],skill:[237],cat:7,chrclass:128,races:[2,5,6,8,10],source:[6]},{id:493

59,name:'@Teleport: 

Theramore',level:35,school:6,reagents:[[17031,1]],skill:[237],cat:7,chrclass:128,races:[1,3,4,7,11],source:[6]},{id:

13018,name:'@Blast Wave',level:36,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

2',source:[6]},{id:8427,name:'@Blizzard',level:36,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

3',source:[6]},{id:8451,name:'@Dampen Magic',level:36,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

3',source:[6]},{id:8402,name:'@Fireball',level:36,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

7',source:[6]},{id:8495,name:'@Mana Shield',level:36,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

3',source:[6]},{id:12523,name:'@Pyroblast',level:36,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

4',source:[6]},{id:8439,name:'@Arcane Explosion',level:38,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

4',source:[6]},{id:3552,name:'6Conjure Mana 

Gem',level:38,school:6,skill:[237],cat:7,chrclass:128,creates:[5513,1,1],rank:'Rank 

2',source:[6]},{id:8413,name:'@Fire Blast',level:38,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

5',source:[6]},{id:8408,name:'@Frostbolt',level:38,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

7',source:[6]},{id:8417,name:'@Arcane Missiles',level:40,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

5',source:[6]},{id:10138,name:'6Conjure 

Water',level:40,school:6,skill:[237],cat:7,chrclass:128,creates:[8077,2,2],rank:'Rank 

5',source:[6]},{id:8458,name:'@Fire Ward',level:40,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

3',source:[6]},{id:8423,name:'@Flamestrike',level:40,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

4',source:[6]},{id:6131,name:'@Frost Nova',level:40,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

3',source:[6]},{id:7320,name:'@Ice Armor',level:40,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

2',source:[6]},{id:12825,name:'@Polymorph',level:40,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

3',source:[6]},{id:32266,name:'@Portal: 

Exodar',level:40,school:6,reagents:[[17032,1]],skill:[237],cat:7,chrclass:128,races:[1,3,4,7,11],source:[6]},{id:114

16,name:'@Portal: 

Ironforge',level:40,school:6,reagents:[[17032,1]],skill:[237],cat:7,chrclass:128,races:[1,3,4,7,11],source:[6]},{id:11

417,name:'@Portal: 

Orgrimmar',level:40,school:6,reagents:[[17032,1]],skill:[237],cat:7,chrclass:128,races:[2,5,6,8,10],source:[6]},{id:

32267,name:'@Portal: 

Silvermoon',level:40,school:6,reagents:[[17032,1]],skill:[237],cat:7,chrclass:128,races:[2,5,6,8,10],source:[6]},{id:

10059,name:'@Portal: 

Stormwind',level:40,school:6,reagents:[[17032,1]],skill:[237],cat:7,chrclass:128,races:[1,3,4,7,11],source:[6]},{id:

11418,name:'@Portal: 

Undercity',level:40,school:6,reagents:[[17032,1]],skill:[237],cat:7,chrclass:128,races:[2,5,6,8,10],source:[6]},{id:8

446,name:'@Scorch',level:40,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

4',source:[6]},{id:10169,name:'@Amplify Magic',level:42,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

3',source:[6]},{id:10156,name:'@Arcane Intellect',level:42,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

4',source:[6]},{id:10159,name:'@Cone of Cold',level:42,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

3',source:[6]},{id:10144,name:'6Conjure 

Food',level:42,school:6,skill:[237],cat:7,chrclass:128,creates:[8075,2,2],rank:'Rank 

5',source:[6]},{id:10148,name:'@Fireball',level:42,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

8',source:[6]},{id:8462,name:'@Frost Ward',level:42,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

3',source:[6]},{id:12524,name:'@Pyroblast',level:42,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

5',source:[6]},{id:13019,name:'@Blast Wave',level:44,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

3',source:[6]},{id:10185,name:'@Blizzard',level:44,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

4',source:[6]},{id:10179,name:'@Frostbolt',level:44,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

8',source:[6]},{id:10191,name:'@Mana Shield',level:44,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

4',source:[6]},{id:10201,name:'@Arcane Explosion',level:46,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

5',source:[6]},{id:10197,name:'@Fire Blast',level:46,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

6',source:[6]},{id:13031,name:'@Ice Barrier',level:46,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

2',source:[6]},{id:22782,name:'@Mage Armor',level:46,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

2',source:[6]},{id:10205,name:'@Scorch',level:46,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

5',source:[6]},{id:10211,name:'@Arcane Missiles',level:48,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

6',source:[6]},{id:10053,name:'6Conjure Mana 

Gem',level:48,school:6,skill:[237],cat:7,chrclass:128,creates:[8007,1,1],rank:'Rank 

3',source:[6]},{id:10173,name:'@Dampen Magic',level:48,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

4',source:[6]},{id:10149,name:'@Fireball',level:48,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

9',source:[6]},{id:10215,name:'@Flamestrike',level:48,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

5',source:[6]},{id:12525,name:'@Pyroblast',level:48,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

6',source:[6]},{id:10160,name:'@Cone of Cold',level:50,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

4',source:[6]},{id:10139,name:'6Conjure 

Water',level:50,school:6,skill:[237],cat:7,chrclass:128,creates:[8078,2,2],rank:'Rank 

6',source:[6]},{id:10223,name:'@Fire Ward',level:50,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

4',source:[6]},{id:10180,name:'@Frostbolt',level:50,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

9',source:[6]},{id:10219,name:'@Ice Armor',level:50,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

3',source:[6]},{id:11419,name:'@Portal: 

Darnassus',level:50,school:6,reagents:[[17032,1]],skill:[237],cat:7,chrclass:128,races:[1,3,4,7,11],source:[6]},{id:

11420,name:'@Portal: Thunder 

Bluff',level:50,school:6,reagents:[[17032,1]],skill:[237],cat:7,chrclass:128,races:[2,5,6,8,10],source:[6]},{id:13020,

name:'@Blast Wave',level:52,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

4',source:[6]},{id:10186,name:'@Blizzard',level:52,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

5',source:[6]},{id:10145,name:'6Conjure 

Food',level:52,school:6,skill:[237],cat:7,chrclass:128,creates:[8076,2,2],rank:'Rank 

6',source:[6]},{id:10177,name:'@Frost Ward',level:52,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

4',source:[6]},{id:13032,name:'@Ice Barrier',level:52,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

3',source:[6]},{id:10192,name:'@Mana Shield',level:52,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

5',source:[6]},{id:10206,name:'@Scorch',level:52,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

6',source:[6]},{id:10170,name:'@Amplify Magic',level:54,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

4',source:[6]},{id:10202,name:'@Arcane Explosion',level:54,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

6',source:[6]},{id:10199,name:'@Fire Blast',level:54,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

7',source:[6]},{id:10150,name:'@Fireball',level:54,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

10',source:[6]},{id:10230,name:'@Frost Nova',level:54,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

4',source:[6]},{id:12526,name:'@Pyroblast',level:54,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

7',source:[6]},{id:23028,name:'@Arcane 

Brilliance',level:56,school:6,reagents:[[17020,1]],skill:[237],cat:7,chrclass:128,rank:'Rank 

1',source:[6]},{id:10157,name:'@Arcane Intellect',level:56,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

5',source:[6]},{id:10212,name:'@Arcane Missiles',level:56,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

7',source:[6]},{id:33041,name:'@Dragon\'s Breath',level:56,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

2',source:[6]},{id:10216,name:'@Flamestrike',level:56,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

6',source:[6]},{id:10181,name:'@Frostbolt',level:56,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

10',source:[6]},{id:10161,name:'@Cone of Cold',level:58,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

5',source:[6]},{id:10054,name:'6Conjure Mana 

Gem',level:58,school:6,skill:[237],cat:7,chrclass:128,creates:[8008,1,1],rank:'Rank 

4',source:[6]},{id:13033,name:'@Ice Barrier',level:58,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

4',source:[6]},{id:22783,name:'@Mage Armor',level:58,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

3',source:[6]},{id:10207,name:'@Scorch',level:58,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

7',source:[6]},{id:25345,name:'@Arcane Missiles',level:60,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

8',source:[6]},{id:13021,name:'@Blast Wave',level:60,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

5',source:[6]},{id:10187,name:'@Blizzard',level:60,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

6',source:[6]},{id:28612,name:'6Conjure 

Food',level:60,school:6,skill:[237],cat:7,chrclass:128,creates:[22895,10,10],rank:'Rank 

7',source:[6]},{id:10140,name:'6Conjure 

Water',level:60,school:6,skill:[237],cat:7,chrclass:128,creates:[8079,10,10],rank:'Rank 

7',source:[4,6]},{id:10174,name:'@Dampen Magic',level:60,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

5',source:[6]},{id:10225,name:'@Fire Ward',level:60,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

5',source:[6]},{id:10151,name:'@Fireball',level:60,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

11',source:[6]},{id:28609,name:'@Frost Ward',level:60,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

5',source:[6]},{id:25304,name:'@Frostbolt',level:60,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

11',source:[6]},{id:10220,name:'@Ice Armor',level:60,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

4',source:[6]},{id:10193,name:'@Mana Shield',level:60,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

6',source:[6]},{id:61305,name:'@Polymorph',level:60,school:6,skill:[237],cat:7,chrclass:128,rank:'Black 

Cat'},{id:28272,name:'@Polymorph',level:60,school:6,skill:[237],cat:7,chrclass:128,rank:'Pig',source:[4]},{id:6172

1,name:'@Polymorph',level:60,school:6,skill:[237],cat:7,chrclass:128,rank:'Rabbit'},{id:12826,name:'@Polymorp

h',level:60,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

4',source:[6]},{id:61780,name:'@Polymorph',level:60,school:6,skill:[237],cat:7,chrclass:128,rank:'Turkey'},{id:282

71,name:'@Polymorph',level:60,school:6,skill:[237],cat:7,chrclass:128,rank:'Turtle'},{id:18809,name:'@Pyroblast

',level:60,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 8',source:[6]},{id:33690,name:'@Teleport: 

Shattrath',level:60,school:6,reagents:[[17031,1]],skill:[237],cat:7,chrclass:128,races:[1,3,4,7,11]},{id:35715,name:

'@Teleport: 

Shattrath',level:60,school:6,reagents:[[17031,1]],skill:[237],cat:7,chrclass:128,races:[2,5,6,8,10],source:[6]},{id:27

078,name:'@Fire Blast',level:61,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

8',source:[6]},{id:27080,name:'@Arcane Explosion',level:62,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

7',source:[6]},{id:25306,name:'@Fireball',level:62,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

12',source:[6]},{id:30482,name:'@Molten Armor',level:62,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

1',source:[6]},{id:27130,name:'@Amplify Magic',level:63,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

5',source:[6]},{id:27075,name:'@Arcane Missiles',level:63,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

9',source:[6]},{id:27071,name:'@Frostbolt',level:63,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

12',source:[6]},{id:30451,name:'@Arcane Blast',level:64,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

1',source:[6]},{id:33042,name:'@Dragon\'s Breath',level:64,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

3',source:[6]},{id:27086,name:'@Flamestrike',level:64,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

7',source:[6]},{id:27134,name:'@Ice Barrier',level:64,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

5',source:[6]},{id:27133,name:'@Blast Wave',level:65,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

6',source:[6]},{id:27087,name:'@Cone of Cold',level:65,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

6',source:[6]},{id:37420,name:'6Conjure 

Water',level:65,school:6,skill:[237],cat:7,chrclass:128,creates:[30703,10,10],rank:'Rank 

8',source:[6]},{id:33691,name:'@Portal: 

Shattrath',level:65,school:6,reagents:[[17032,1]],skill:[237],cat:7,chrclass:128,races:[1,3,4,7,11]},{id:35717,name:

'@Portal: 

Shattrath',level:65,school:6,reagents:[[17032,1]],skill:[237],cat:7,chrclass:128,races:[2,5,6,8,10],source:[6]},{id:27

073,name:'@Scorch',level:65,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

8',source:[6]},{id:27070,name:'@Fireball',level:66,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

13',source:[6]},{id:30455,name:'@Ice Lance',level:66,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

1',source:[6]},{id:27132,name:'@Pyroblast',level:66,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

9',source:[6]},{id:33944,name:'@Dampen Magic',level:67,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

6',source:[6]},{id:27088,name:'@Frost Nova',level:67,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

5',source:[6]},{id:27085,name:'@Blizzard',level:68,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

7',source:[6]},{id:27101,name:'6Conjure Mana 

Gem',level:68,school:6,skill:[237],cat:7,chrclass:128,creates:[22044,1,1],rank:'Rank 

5',source:[6]},{id:66,name:'@Invisibility',level:68,school:6,skill:[237],cat:7,chrclass:128,source:[6]},{id:27131,nam

e:'@Mana Shield',level:68,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

7',source:[6]},{id:33946,name:'@Amplify Magic',level:69,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

6',source:[6]},{id:38699,name:'@Arcane Missiles',level:69,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

10',source:[6]},{id:27128,name:'@Fire Ward',level:69,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

6',source:[6]},{id:27072,name:'@Frostbolt',level:69,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

13',source:[6]},{id:27124,name:'@Ice Armor',level:69,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

5',source:[6]},{id:27125,name:'@Mage Armor',level:69,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

4',source:[6]},{id:44780,name:'@Arcane Barrage',level:70,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

2',source:[6]},{id:27127,name:'@Arcane 

Brilliance',level:70,school:6,reagents:[[17020,1]],skill:[237],cat:7,chrclass:128,rank:'Rank 

2',source:[6]},{id:27082,name:'@Arcane Explosion',level:70,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

8',source:[6]},{id:27126,name:'@Arcane Intellect',level:70,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

6',source:[6]},{id:38704,name:'@Arcane Missiles',level:70,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

11',source:[6]},{id:33933,name:'@Blast Wave',level:70,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

7',source:[6]},{id:33717,name:'6Conjure 

Food',level:70,school:6,skill:[237],cat:7,chrclass:128,creates:[22019,10,10],rank:'Rank 

8',source:[6]},{id:27090,name:'6Conjure 

Water',level:70,school:6,skill:[237],cat:7,chrclass:128,creates:[22018,10,10],rank:'Rank 

9',source:[6]},{id:33043,name:'@Dragon\'s Breath',level:70,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

4',source:[6]},{id:27079,name:'@Fire Blast',level:70,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

9',source:[6]},{id:38692,name:'@Fireball',level:70,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

14',source:[6]},{id:32796,name:'@Frost Ward',level:70,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

6',source:[6]},{id:38697,name:'@Frostbolt',level:70,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

14',source:[6]},{id:33405,name:'@Ice Barrier',level:70,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

6',source:[6]},{id:55359,name:'@Living Bomb',level:70,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

2',source:[6]},{id:33938,name:'@Pyroblast',level:70,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

10',source:[6]},{id:43987,name:'@Ritual of 

Refreshment',level:70,school:6,reagents:[[17020,2]],skill:[237],cat:7,chrclass:128,rank:'Rank 

1',source:[6]},{id:27074,name:'@Scorch',level:70,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

9',source:[6]},{id:30449,name:'@Spellsteal',level:70,school:6,skill:[237],cat:7,chrclass:128,source:[6]},{id:42894,

name:'@Arcane Blast',level:71,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

2',source:[6]},{id:43023,name:'@Mage Armor',level:71,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

5',source:[6]},{id:43045,name:'@Molten Armor',level:71,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

2',source:[6]},{id:53140,name:'@Teleport: 

Dalaran',level:71,school:6,reagents:[[17031,1]],skill:[237],cat:7,chrclass:128,source:[4,6]},{id:42930,name:'@Con

e of Cold',level:72,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

7',source:[6]},{id:42925,name:'@Flamestrike',level:72,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

8',source:[6]},{id:42913,name:'@Ice Lance',level:72,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

2',source:[6]},{id:43019,name:'@Mana Shield',level:73,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

8',source:[6]},{id:42890,name:'@Pyroblast',level:73,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

11',source:[6]},{id:42858,name:'@Scorch',level:73,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

10',source:[6]},{id:42939,name:'@Blizzard',level:74,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

8',source:[6]},{id:42872,name:'@Fire Blast',level:74,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

10',source:[6]},{id:42832,name:'@Fireball',level:74,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

15',source:[6]},{id:53142,name:'@Portal: 

Dalaran',level:74,school:6,reagents:[[17032,1]],skill:[237],cat:7,chrclass:128,source:[6]},{id:42843,name:'@Arcan

e Missiles',level:75,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 12',source:[6]},{id:42944,name:'@Blast 

Wave',level:75,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 8',source:[6]},{id:42955,name:'6Conjure 

Refreshment',level:75,school:6,skill:[237],cat:7,chrclass:128,creates:[43518,20,20],rank:'Rank 

1',source:[6]},{id:42949,name:'@Dragon\'s Breath',level:75,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

5',source:[6]},{id:42917,name:'@Frost Nova',level:75,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

6',source:[6]},{id:42841,name:'@Frostbolt',level:75,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

15',source:[6]},{id:44614,name:'@Frostfire Bolt',level:75,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

1',source:[6]},{id:43038,name:'@Ice Barrier',level:75,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

7',source:[6]},{id:42896,name:'@Arcane Blast',level:76,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

3',source:[6]},{id:42920,name:'@Arcane Explosion',level:76,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

9',source:[6]},{id:43015,name:'@Dampen Magic',level:76,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

7',source:[6]},{id:43017,name:'@Amplify Magic',level:77,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

7',source:[6]},{id:42985,name:'6Conjure Mana 

Gem',level:77,school:6,skill:[237],cat:7,chrclass:128,creates:[33312,1,1],rank:'Rank 

6',source:[6]},{id:42891,name:'@Pyroblast',level:77,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

12',source:[6]},{id:43010,name:'@Fire Ward',level:78,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

7',source:[6]},{id:42833,name:'@Fireball',level:78,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

16',source:[6]},{id:42914,name:'@Ice Lance',level:78,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

3',source:[6]},{id:42859,name:'@Scorch',level:78,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

11',source:[6]},{id:42846,name:'@Arcane Missiles',level:79,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

13',source:[6]},{id:42931,name:'@Cone of Cold',level:79,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

8',source:[6]},{id:42926,name:'@Flamestrike',level:79,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

9',source:[6]},{id:43012,name:'@Frost Ward',level:79,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

7',source:[6]},{id:42842,name:'@Frostbolt',level:79,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

16',source:[6]},{id:43008,name:'@Ice Armor',level:79,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

6',source:[6]},{id:43024,name:'@Mage Armor',level:79,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

6',source:[6]},{id:43020,name:'@Mana Shield',level:79,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

9',source:[6]},{id:43046,name:'@Molten Armor',level:79,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

3',source:[6]},{id:44781,name:'@Arcane Barrage',level:80,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

3',source:[6]},{id:42897,name:'@Arcane Blast',level:80,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

4',source:[6]},{id:43002,name:'@Arcane 

Brilliance',level:80,school:6,reagents:[[17020,1]],skill:[237],cat:7,chrclass:128,rank:'Rank 

3',source:[6]},{id:42921,name:'@Arcane Explosion',level:80,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

10',source:[6]},{id:42995,name:'@Arcane Intellect',level:80,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

7',source:[6]},{id:42945,name:'@Blast Wave',level:80,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

9',source:[6]},{id:42940,name:'@Blizzard',level:80,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

9',source:[6]},{id:42956,name:'6Conjure 

Refreshment',level:80,school:6,skill:[237],cat:7,chrclass:128,creates:[43523,20,20],rank:'Rank 

2',source:[6]},{id:61316,name:'@Dalaran 

Brilliance',level:80,school:6,reagents:[[17020,1]],skill:[237],cat:7,chrclass:128,rank:'Rank 

3'},{id:61024,name:'@Dalaran Intellect',level:80,school:6,skill:[237],cat:7,chrclass:128,rank:'Rank 

7'},{id:42950,name:'@Dragon\'s Breath',level:80,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

6',source:[6]},{id:42873,name:'@Fire Blast',level:80,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

11',source:[6]},{id:47610,name:'@Frostfire Bolt',level:80,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

2',source:[6]},{id:43039,name:'@Ice Barrier',level:80,school:4,skill:[6],cat:7,chrclass:128,rank:'Rank 

8',source:[6]},{id:55360,name:'@Living Bomb',level:80,school:2,skill:[8],cat:7,chrclass:128,rank:'Rank 

3',source:[6]},{id:55342,name:'@Mirror 

Image',level:80,school:6,skill:[237],cat:7,chrclass:128,source:[6]},{id:58659,name:'@Ritual of 

Refreshment',level:80,school:6,reagents:[[17020,5]],skill:[237],cat:7,chrclass:128,rank:'Rank 2'
Edited by Dreu

Share this post


Link to post
Share on other sites



I figured it out. I used IniReadSectionNames to send the currently used section names to an array , which I checked if one was in use before writing it again in the loop like i had been doing. This seemed to fix the issue.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0