bard twisting

Help section from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

BEHEMOTH
orc pawn
orc pawn
Posts: 13
Joined: Wed Sep 11, 2002 3:45 pm
Location: RightBehindYou

bard twisting

Post by BEHEMOTH » Wed Jan 22, 2003 8:38 pm

i am trying to get a macro to twist 2 songs (gem 1 and 2) unless my hp drop below 90%, then i want it to twist gems 1 and 3. what have i done wrong here?

Code: Select all

#define CastTimer t0 
#define CurSpell v10

Sub Main
 /varset a(0,1) 1
 /varset CurSpell 1
 /varset t0 0
:loop
 /if n $CastTimer<=0 /call Sing $int($a(0,1))
 /goto :loop
/return

Sub Sing 
 /stopsong
 /varset CastTimer 35
 /cast $p0
 /Call Switch
/return

Sub Switch 
 /if $CurSpell==1 {
 /varset a(0,1) 1
 /varset CurSpell 2
 }  
 /if $CurSpell==2 /if n $char(hp,pct)>=90 {
 /varset CurSpell 1 
 /varset a(0,1) 2
 }
 /if $CurSpell==2 /if n $char(hp,pct)<90 {
 /varset CurSpell 1
 /varset a(0,1) 3
 }
/return
at least this doesnt crash me to desktop... lol
thx if you rply
---------

Signature?!??! Nobody ever reads these damn things anyway....

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Wed Jan 22, 2003 9:24 pm

Change the /if statements in Switch to /if n

Put a delay in your loop.

Otherwise, it looks like it should work.

BEHEMOTH
orc pawn
orc pawn
Posts: 13
Joined: Wed Sep 11, 2002 3:45 pm
Location: RightBehindYou

Post by BEHEMOTH » Wed Jan 22, 2003 11:33 pm

got the /if to /if n

btw... i'm putting this sucker into another macro, so i was trying to get it to cast and pause for the song using the timer, not delay, so it wouldn't delay the whole macro... if it works like that.
---------

Signature?!??! Nobody ever reads these damn things anyway....

Ariain
a ghoul
a ghoul
Posts: 88
Joined: Fri Oct 11, 2002 10:35 am

...

Post by Ariain » Thu Jan 23, 2003 12:31 am

Heres a twist macro I made with all timers no delays
Maybe it can help ya.http://macroquest2.com/phpBB2/viewtopic.php?t=994