Need help with basic shaman bot

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

oakley
decaying skeleton
decaying skeleton
Posts: 1
Joined: Mon Jul 12, 2004 5:36 pm

Need help with basic shaman bot

Post by oakley » Mon Jul 12, 2004 5:41 pm

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]

User avatar
aChallenged1
a grimling bloodguard
a grimling bloodguard
Posts: 1804
Joined: Mon Jun 28, 2004 10:12 pm

Post by aChallenged1 » Mon Jul 12, 2004 7:12 pm

Might want to fix your code, some how you ended up with html code for your < and > signs.

< = <
> = >

missingfiles
a hill giant
a hill giant
Posts: 224
Joined: Wed Jun 09, 2004 1:15 pm

Post by missingfiles » Mon Jul 12, 2004 7:27 pm

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