Macro depository for macros written before the user variable changes that broke all of them.
Moderator: MacroQuest Developers
-
GD
- a snow griffon

- Posts: 353
- Joined: Sat Jun 29, 2002 11:57 pm
Post
by GD » Fri Jul 05, 2002 4:18 pm
Code: Select all
| - SpellSub.mac -
| Spell Casting Sub routine - Usage "/call SpellSub <gem> <delay *actual cast time plus recast*>"
| Will return $v99 = 999 if you go oom.
|
| Modified by GD to work with the 7-4-2002 Release
|
#Event SkillUp "You have become better at "
#Event CastFizzle "Your spell fizzles!"
#Event CastStart "You begin casting"
#Event CastInterrupt "Your spell is interrupted."
#Event CastResist "Your target resisted "
Sub SpellSub
/varset v98 $p0
/varset v99 $p1
:ReCast
/varset v1 0
/cast $v98
/delay 1s
/doevents
/if n $v1>1 /goto :ReCast
/if n $v1==0 /goto :SpellSubGetMana
/return
:SpellSubGetMana
/varset v99 999
/delay 5
/return
Sub Event_SkillUp
/varset v1 1
/return
Sub Event_CastStart
/varset v1 1
/delay $v99s
/return
Sub Event_CastFizzle
/varset v1 2
/return
Sub Event_CastInterrupt
/varset v1 3
/return
Sub Event_CastResist
/varset v1 4
/return
-
gingertips
- a hill giant

- Posts: 230
- Joined: Wed Jun 26, 2002 3:47 am
- Location: Tseu-Qorcam
Post
by gingertips » Tue Jul 09, 2002 10:40 am
I assume this one works with 7-6-2002 release?

-
GD
- a snow griffon

- Posts: 353
- Joined: Sat Jun 29, 2002 11:57 pm
Post
by GD » Tue Jul 09, 2002 11:00 am
Yup, the only change that was needed to make it compatible was to add the Custom Event Triggers.
-
gingertips
- a hill giant

- Posts: 230
- Joined: Wed Jun 26, 2002 3:47 am
- Location: Tseu-Qorcam
Post
by gingertips » Tue Sep 03, 2002 10:56 am
If you use spellsub.mac, you might want to add the following 2 sections of code (assuming you use porting spell such as gate)
#Event CastGateUnstable "Your gate is too unstable, and collapses."
Sub Event_CastGateUnstable
/varset v1 5
/return
-
S_B_R
- a lesser mummy

- Posts: 72
- Joined: Tue Jul 30, 2002 11:12 am
Post
by S_B_R » Tue Sep 03, 2002 2:10 pm
I have a question. Does #Event CastResist "Your target resisted" actually work? The reason I ask is that message doesn't come across until after the #Event CastStart "You begin casting" event, and spell has totally finished casting.
[b]dd if=/dev/zero of=/dev/hda[/b]
-
gingertips
- a hill giant

- Posts: 230
- Joined: Wed Jun 26, 2002 3:47 am
- Location: Tseu-Qorcam
Post
by gingertips » Tue Sep 03, 2002 5:57 pm
err dunno - too busy playing with MQ ever to actually play the game...
-
Wendel
- a lesser mummy

- Posts: 58
- Joined: Wed Jul 24, 2002 1:48 am
Post
by Wendel » Tue Sep 03, 2002 11:32 pm
I have no problems with spell casting when I use this sub.
It will recast resists, which can sometimes be a problem(enchanters trying to slow unslowable mobs for instance)
Other wise it works well.
-
Red Moogle
- orc pawn

- Posts: 23
- Joined: Sat Sep 14, 2002 10:27 pm
Post
by Red Moogle » Mon Sep 16, 2002 11:19 am
Hmm this is still missing some thing not at home to post the code i made but added some thing to recast if you are stunned
:Loop
/echo Kupo!
/goto :Loop
-
Nerfy
- a lesser mummy

- Posts: 72
- Joined: Tue Oct 15, 2002 11:37 am
Post
by Nerfy » Wed Oct 23, 2002 1:45 am
Great mac, small addition:
Code: Select all
#Event NeedToRecover "You haven't recovered yet..."
Sub Event_NeedToRecover
/varset v1 4
/return
-----------
Be aware that if you insert this code you need to be careful not to call spells that have long recycle times. Some have upwards of 15 minutes, and I don't think that you want to be stuck in this routine for all of that time. On second thought it might be better to return an error code. Do as you will.