cast.mac - Spell Trainer (Updated: 12/10/2003)

A forum for you to dump all the macros you create, allowing users to use, modify, and comment on your work.

Moderator: MacroQuest Developers

Sdksnowboy
orc pawn
orc pawn
Posts: 11
Joined: Mon Jan 19, 2004 9:06 pm

Post by Sdksnowboy » Sat Feb 07, 2004 5:35 pm

Has anyone figured out why this only casts once for some certain classes?

TomServo
a lesser mummy
a lesser mummy
Posts: 30
Joined: Thu Jul 31, 2003 3:23 pm

Post by TomServo » Sun Feb 08, 2004 8:09 am

I'm still trying to figure it out myself, but near as I can tell it has something to do with this line:

Code: Select all

/varset castmcr_spellcycle $calc($calc($calc($spell("@castmcr_spellname",casttime)+$if(n,$spell("@castmcr_spellname",recasttime)<$spell("@castmcr_spellname",recoverytime),$spell("@castmcr_spellname",recoverytime),$spell("@castmcr_spellname",recasttime)))*10)+5) 
This is the line that calculates how long to wait until the macro starts re-casting the spell. For some reason, and only on certain characters/spells, the formula returns a negative number, even though all of the individual variables return positives.

It might be a bug in MQ2, but I'm hesitant to post it as a bug until I have a better idea (plus I don't want to get the smackdown from Lax :wink: )

For now, you can brute-force set the recast timer so it will work, but it won't be as efficient as the real thing. Replace said line with:

Code: Select all

/varset castmcr_spellcycle 10
where 10 is the number of seconds you want to wait until your toon recasts.

tranze204
a lesser mummy
a lesser mummy
Posts: 39
Joined: Tue Mar 02, 2004 6:26 pm

Can you fix the mac PLEASE

Post by tranze204 » Tue Mar 02, 2004 6:32 pm

The updated mac is not working...your original mac works great, but the updated one with Gm fixes and summoned item deletes doesnt work. i would greatly appreciate it thanx alot

tranze204
a lesser mummy
a lesser mummy
Posts: 39
Joined: Tue Mar 02, 2004 6:26 pm

PLEASE UPDATE THIS ONE

Post by tranze204 » Sat Apr 03, 2004 4:33 pm

PLEASE can anyone update this macro, its one of the best spell casting macros out there that work really well