my attempt at shaman mac

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

Moderator: MacroQuest Developers

Flint_the_dorf
orc pawn
orc pawn
Posts: 13
Joined: Sat Oct 12, 2002 3:14 pm
Location: Atlanta, GA
Contact:

my attempt at shaman mac

Post by Flint_the_dorf » Sun Oct 27, 2002 12:30 am

could anyone tell me why this won't work ;) i have been fiddling with it for a while now and am having trouble

Code: Select all

--Sham.mac--

#define my-toons-name v2 
#define my-friend v1 
#event resist "resisted"
#event chloro "you stop regenerating"

Sub Main

/if $target(mana,pct)>30 /goto :medtime

/if $v1~~"heal" /call Heal
/if $v1~~"help" /call Help
/if $v1~~"regen" /call Chloro
/if $gm==TRUE /call Crap 
/doevents

:medtime
/sit
/if $v2(mana,pct)<60 /call Gmana


Sub Heal
/if n $v1(hp,pct)>60 /goto :heal

  :heal 
     /stand
     /target $v1
     /press 6

/return

Sub Help
/assist $v1
/stand
/cast 5
/cast 6
/if $target()~~"resists your torgors insects spell" /call Resist



Sub Crap
/end macro
/cleanup
/unload
/sit
/camp
/return

Sub Resist
/cast 6
/return

Sub Chloro
/stand
/target $v1
/cast 4
/if $v2~~"you stop regenerating" /goto regenme
  
   :regenme
    /target $v2
    /press 4
/return

Sub Gmana
/tell $v1 mana good pull on
/sit
/return

when i run it in game it says cannot parse sub heal or something along those lines.. not sure about that


any help would be great. thanks!


Flint

Gengis
a ghoul
a ghoul
Posts: 116
Joined: Wed Aug 14, 2002 7:46 pm

Post by Gengis » Sun Oct 27, 2002 12:53 am

Code: Select all

Sub Heal 
/if n $v1(hp,pct)>60 { 
                      /stand 
                      /target $v1 
                      /press 6 
                     }
/return
might work but I don't understand why your asking for a heal if your greater than 60 percent

Gengis
a ghoul
a ghoul
Posts: 116
Joined: Wed Aug 14, 2002 7:46 pm

Post by Gengis » Sun Oct 27, 2002 1:10 am

or remove

Code: Select all

/if n $v1(hp,pct)>60 /goto :heal 

  :heal
if you want a heal regardless of HP check