mimic spell casting

Status
Not open for further replies.

n00bsgoboom

Loading Please Wait...
Joined
Jun 13, 2006
Messages
444
Reaction score
1
Points
18
Recently I started botting a caster class that's same as mine and I was wondering if anyone has or know how hard it would be to make a macro that casts the same spell that one person is casting. One problem though, the other character doesn't have the same Rk. II spells I do.
 
If your looking to setup a macro but dont want to set the individual spell for each character to use you can use this sub to determine which spell the character has.
Code:
sub spellcheck(string spellname,string vartoset)
	/if (!${Defined[${vartoset}]}) /declare ${vartoset} outer string
	/varset ${vartoset} ${spellname}
	/if (${Me.Book[${spellname} RK. II]}) /varset ${vartoset} ${spellname} RK. II
	/if (${Me.Book[${spellname} RK. III]}) /varset ${vartoset} ${spellname} RK. III
/return
Heres a sample of how it would be used...
Code:
/call spellcheck "Ancestral Bargain" cannispell
This sets the variable ${cannispell} to:
"Ancestral Bargain" if you only have the base spell in your book,
"Ancestral Bargain RK. II" if you have rank 2, or
"Ancestral Bargain RK. III" for rank 3.
 
Status
Not open for further replies.