CastSpellRange question

bob_the_builder

Well-Known Member
Just hoping for some clarification on this:


From eq2bot:

Code:
function CastSpellRange(int start, int finish, int xvar1, int xvar2, int targettobuff, int notall, int refreshtimer, bool castwhilemoving)

If I send it this:
call CastSpellRange 51 0 1 0 ${KillTarget} 0 0 1
start is my spell, what is finish and xvar1/2?
What does notall and refreshtimer do?

Thanks in advance.

Bob
 

bob_the_builder

Well-Known Member
Also, if I wanted to add in a "/p Casting Verdict" can i just put this under/above my SpellCast?

I don't want it to spam the "/p" but would like to know when its casted.

Thx Bob
 

Pygar

EQ2Bot Specialist
CastSpellRange 51 55 1 1 ${KillTarget} 1 0 1

51 is the first spell in the range to cast
55 is the last spell in the range to cast
1 is move to melee range
1 is get behind the mob
${KillTarget} is the ID of the mob to cast this on
1 means only cast one spell from the range, ie cast the first one that is ready
0 means don't cast if refresh timer (not really used)
1 means this spell can be cast while moving to position. (combat art)

as far as your notification

call CastSpellRange 51 0 0 0 ${KillTarget}

if ${Return}
eq2execute /tell Pygar Verdict in!
 
Top Bottom