something wrong

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

Bio_War
a lesser mummy
a lesser mummy
Posts: 36
Joined: Sun Sep 29, 2002 1:03 pm

something wrong

Post by Bio_War » Sat Apr 10, 2004 7:22 pm

ok, use to use this code all the time with no problems, it just keeps a set range between you and mob, and follows mob beating on it and doing a few skills untell mob is dead, but now, when it ends, I can't do anything else as far as pressing hotkeys, i get the "you can't use that command right now...", please help.

Thanks
Bio

Code: Select all

#turbo
Sub Main
	/declare RangeMax global
	/declare RangeMin global
	/declare FastRange global
	
	/varset RangeMax 8
	/varset RangeMin 6
	/varset FastRange 10
  :start  
 /if n $target(id)==0 {
    /attack off
    /end keep keys
    }
    /call MoveToMob
    /call Skills
    /goto :start
   
Sub MoveToMob
	/face nolook
	/if n $target(distance)>=@FastRange /call Fastmove
	/if n $target(distance)>@RangeMax {
		/keypress forward
	}
	/if n $target(distance)<@RangeMin {
		/keypress back
	}
/return

Sub Fastmove
	:fastmoveloop
	/face nolook
	/if n $target(distance)>@FastRange {
		/keypress forward hold
	}
	/if n $target(distance)<=@FastRange {
		/keypress back
		/return
	}
	/goto :fastmoveloop
/return

Sub Skills
	/if n $char(ability,"kick")!=-2 {
		/if $target()=="TRUE" {
			/face fast nolook
			/doability "kick"
		}
		}
	/if n $char(ability,"Disarm")!=-2 {
		/if $target()=="TRUE" {
			/face fast nolook
			/doability "Disarm"
		}
		}
	/if n $char(ability,"Begging")!=-2 {
	/attack off
	/doability "Begging"
	/attack on
	}
/return

LordGiddion
a snow griffon
a snow griffon
Posts: 352
Joined: Sat Sep 13, 2003 6:12 pm
Contact:

Post by LordGiddion » Sat Apr 10, 2004 7:27 pm

Double check that in the MQ source you downloaded MQ2Param$ wasn't turned off.

Bio_War
a lesser mummy
a lesser mummy
Posts: 36
Joined: Sun Sep 29, 2002 1:03 pm

Post by Bio_War » Sat Apr 10, 2004 7:46 pm

there uncommented