...

A forum for you to dump all the macros you create, allowing users to use, modify, and comment on your work.

Moderator: MacroQuest Developers

User avatar
hakcenter
a lesser mummy
a lesser mummy
Posts: 35
Joined: Mon Jan 26, 2004 8:15 am

...

Post by hakcenter » Tue Feb 03, 2004 5:27 pm

...
Last edited by hakcenter on Wed Apr 14, 2004 8:03 pm, edited 1 time in total.

User avatar
Bad Karma
a snow griffon
a snow griffon
Posts: 346
Joined: Sat Nov 22, 2003 9:34 pm
Contact:

Post by Bad Karma » Mon Feb 09, 2004 5:51 am

Should end your Sub's with a /return....

Code: Select all

|------------------------------------------------
| Auto Backstabber
|-------------------------------------------------

#turbo 75

|-------------------------------------------------

Sub Main
   :Start
   /call AttackingCheck
   /goto :Start
/return

|-------------------------------------------------

Sub AttackingCheck
   /if $combat!="TRUE" {
   /call BSCheck
   }
[color=cyan][b]/return[/b][/color]

Sub BSCheck
   /if n $distance($calc($target(y)-$cos($target(heading))*10),$calc($target(x)-$sin($target(heading))*10))<8 {
   /call BS
   }
[color=cyan][b]/return[/b][/color]

Sub BS
   /if n $char(ability,"Backstab")!=-2 {
   /doability "Backstab"
   }
[color=cyan][b]/return[/b][/color]
[b]- Bad Karma
________________________________________[/b]

In our own quest for excellence, we should strive to take the time to help those who help themselves.

All others should [b]RTFM[/b]!!!!!!!!!