Page 1 of 1

Need help with basic shaman bot

Posted: Mon Jul 12, 2004 5:41 pm
by oakley
Ok, I am trying to write a macro that will:
1) follow the tank around
2) slow the mob the tank pulled, if slow resist or fizzle do again
3) heal tank and myself at specified %
4) canni V when life and mana at specified %

thats really about it, here is what I have so far

Code: Select all


|Simple sham bot 

#include spellcast.inc 
#event exp "You have gained#*#"    

Sub Main 
   /declare slowed bool outer FALSE 
   /declare maintank string outer sirro 

   :main 
   /doevents
   /tar maintank
   /follow
   /assist maintank
   

   :slow 
   /if (!${slowed}) { 
      /call Cast "Turgur's Insects" 
      /if (!${String[${Macro.Return}].Equal[CAST_SUCCESS]}) { 
         /goto :slow 
      } else { 
         /varset slowed TRUE 
      } 
   } 
   :tank 
   /target maintank 
   /if (${Target.PctHPs}<=65) { 
      /call Cast "Tnarg's mending"
      /if (!${String[${Macro.Return}].Equal[CAST_SUCCESS]}) { 
         /goto :tank 
      } 
   :me
    /tar myself
    /if (${target.Pcthps}<=65) {
    /call cast "Quiescence"
    /if (!${String[${Macro.Return}].Equal[CAST_SUCCESS]}) { 
         /goto :tank 
   } 
   /goto :main 
/return 
        

Sub Event_exp 
   /varset slowed FALSE 
/return 

help is very much appreciated with this, I am new to coding, however I am trying my best to learn this syntax. Thanks[/code]

Posted: Mon Jul 12, 2004 7:12 pm
by aChallenged1
Might want to fix your code, some how you ended up with html code for your < and > signs.

< = <
> = >

Posted: Mon Jul 12, 2004 7:27 pm
by missingfiles

Code: Select all

|Simple sham bot 

#include spellcast.inc 
#event exp "You have gained#*#"    

Sub Main 
   /declare slowed bool outer FALSE 
   /declare maintank string outer soandso

   :main 
   /doevents 
   /tar maintank 
   /follow 
   /assist maintank 
    

   :slow 
   /if (!${slowed}) { 
      /call Cast "Turgur's Insects" 
      /if (!${String[${Macro.Return}].Equal[CAST_SUCCESS]}) { 
         /goto :slow 
      } else { 
         /varset slowed TRUE 
      } 
   } 
   :tank 
   /target maintank 
   /if (${Target.PctHPs}<=65) { 
      /call Cast "Tnarg's mending" 
      /if (!${String[${Macro.Return}].Equal[CAST_SUCCESS]}) { 
         /goto :tank 
      } 
   :me 
    /tar myself 
    /if (${target.Pcthps}<=65) { 
    /call cast "Quiescence" 
    /if (!${String[${Macro.Return}].Equal[CAST_SUCCESS]}) { 
         /goto :tank 
   } 
   /goto :main 
/return 
        

Sub Event_exp 
   /varset slowed FALSE 
/return