so i'm trying to write this macro that i can have runing in a constant loop all the time that all it does is monitor to see if i fizzle and recast automatically for me.
#turbo
#event CastSpell "You begin casting"
Sub Main
Sub Event_CastSpell
/return
is what i got so far, i know thats sad but i'm not a programmer and this stuff is mind-wracking.
i cant figure out how to have it cast the last spell. i didnt see a variable for that in the manual. i DID see some other ones i thought i could use but dont quite understand how to use them.
say this string comes up in my text
You begin casting Shield of Maelin.
that is the format whenever you cast a spell so do i store it or use it like a command '$strlen' have it tell me how long it is then use that information to tell me the values to use with '$mid' so...
$strlen ("You begin casting Shield of Maelin.")
will return 35. but how to i load whatever the string may be into that line? it'd have to be a variable itself so how do i find a string in the chat and store it to a variable is what i need to know i guess. Anyways, the first 18 char you dont need and the last char you dont need. so whatver that results (35 - 19 = 16)should be used here
$mid (18,16,"You begin casting Shield of Maelin.")
where that 18 will always be 18 because the line always says that part and the last part will be the result of the previous equation.
that should return 'Shield of Maelin'
which i can then use as the spell to recast
#event NoRecovery "Spell recovery time not yet met."
#event Fizzle "Your spell fizzles!"
/sub event_NoRecovery
/cast Shield of Maelin
/return
/sub event_Fizzle
/cast Shield of Maelin
/return
or something like that.... i'd appreciate pointers tips or any type of help anyone can offer.

