This will set tell your macro what rank spell your using (yes even if you type in rk. iii it will still notice you have rank 1 of the spell) and it will return back what spell you'll want to load... (thought of this for kissassist since people tend to type just the spell name not the whole thing "oops i forgot to type " Rk. II"" -.-)
Example Useage
tested it on my necro and works pretty well so far... going to try to intigrate it into kissassist and see if i can make it work... *crossing my everything i can possibly cross*
Rich (BB code):
Sub WhatRank(String SpellName)
/if (${SpellToLoad.Find[Rk. III]}) /varset SpellName ${SpellToLoad.Left[-8]}
/if (${SpellToLoad.Find[Rk. II]}) /varset SpellName ${SpellToLoad.Left[-7]}
/if (${Me.Book[${SpellName} Rk. III]}) {
/return ${SpellName} Rk. III
}
/if (${Me.Book[${SpellName} Rk. II]}) {
/return ${SpellName} Rk. II
}
/if (${Me.Book[${SpellName}]}) {
/return ${SpellName}
}
/return NotFound
Example Useage
Rich (BB code):
Sub Main
/declare SpellToLoad string outer Naeya Venom Rk. II
/call WhatRank "${SpellToLoad}"
/if (${Macro.Return.NotEqual[NotFound]}) /echo Loading ${Macro.Return}
/return
tested it on my necro and works pretty well so far... going to try to intigrate it into kissassist and see if i can make it work... *crossing my everything i can possibly cross*


nice stuff though dancelle