Page 1 of 1

shaman bot having problems

Posted: Tue Jun 01, 2004 2:33 pm
by rheally

Code: Select all

#include spellcast.inc
#Event resistslow "Your target resisted the Turgur's#*#" 
#chat group

	
sub Main
	/echo "Go smoke you fuck, Macro running."
	/declare malospct int outer ${Param0} 
	/declare slowpct int outer ${Param1}
	/declare assper string outer ${Param2}
	/declare slowed int outer 0
	/declare resslow int outer 0
	/declare malos int outer 0
	/declare debuff string outer malo
	/declare slowps string outer turgur's insects
        /declare cann string outer cannibalize IV
	/declare focusing string outer khura's focusing
	/declare stam string outer talisman of the boar
	/declare haste string outer talisman of alacrity
	/declare fos string outer focus of soul

	:start
   /doevents
	/if (${Me.PctMana}<100 && ${Me.PctHPs}>90) /call canni 
	/goto :start 
	
/return
Sub Event_Chat(ChatType,Sender,ChatText) 
  	/if (${ChatText.Equal[assist]}) { 
	/assist ${assper}
	/delay 10 
	/call malosm 
	/call slow
	}
/return 
Sub malosm
	/if (${Target.PctHPs}<=${malospct} && malos==0 && ${Target.Distance}<=200){
	/call cast "${debuff}" 
	/g Casting Malos on < %t >
	/varset malos 1
	/delay 23
	/pet attack
	} 
/return
Sub slow
	/if (${Target.PctHPs}<=${slowpct}&&slowed==0 && ${Target.Distance}<=200){
	/call cast "${slowps}" 
	/g Casting Slow on < %t >
	/varset slowed 1
        /doevents
	/delay 60
	} 
/return

Sub canni
/call cast "${cann}"
/delay 31
/return

Posted: Tue Jun 01, 2004 3:16 pm
by Drumstix42
Here's the fix in magic ink:

Code: Select all











What's the problem?

Posted: Tue Jun 01, 2004 3:29 pm
by rheally
I am sorry for not posting error. K here it is

Failed to paras /if command. could not find command to execute.

sham.mac@37 (malosm): /if (${Target.PctHPs}<=${malospct} && malos==0 && ${Target.Distance}<=200){ sham.mac@32 Event_Chat(ChatType,Sender,ChatText): /call malosm
sham.mac@22 (main): : start