Errors ???

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

Moderator: MacroQuest Developers

DrMadd
a lesser mummy
a lesser mummy
Posts: 43
Joined: Tue Jun 03, 2003 1:03 pm

Errors ???

Post by DrMadd » Wed Jun 11, 2003 1:09 pm

Would like input on the alterations I did to the hunter.mac .

Basicly I want my pet to kill and if the mob is below 40% health I blast him away till dead. then loot... seems fairly simple... but cant test it yet cus im at work.. ( working hard huh ) input welcome!!

Code: Select all

sub CombatSub 
   /if $target()=="FALSE" {    |Get the target
      /varset HasTarget 0 
      /return 
   } 

   :combatloop  
   /face fast nopredict        |Face the target
   /pet attack
   /if $target(hp,pct)<=40 { 
        /cast 2
        /delay 3s
   }
   /if n $target(id)==0 /varset TargetDead 1  |target dead
   /if n $TargetDead!=1 /goto :combatloop     |target still alive
   /delay 1s 
   /target corpse $MobToHunt 
/return 

User avatar
grimjack
Macro Author
Macro Author
Posts: 525
Joined: Thu Nov 07, 2002 6:51 am
Contact:

Range

Post by grimjack » Wed Jun 11, 2003 1:21 pm

Maybe add something to keep you in range for the spells, or at a specified distance.