rogue.mac - AutoRogue v. 2.0j *New Parm Rdy* (4/25/2004)

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

Moderator: MacroQuest Developers

Tinkoman
orc pawn
orc pawn
Posts: 10
Joined: Tue Apr 06, 2004 12:04 pm

Post by Tinkoman » Fri Apr 23, 2004 2:28 pm

Cunning:

I wrote this for my last rogue mac, and it works with new Data system, you might try to add it after initial positioning, it works well for staying behind the mob using strafes. Doesn't have any code for obstacle avoidance or wall issues, but as long as mob isn't walled, works.

Code: Select all

Sub StayBehindStrafe
   /declare relativeHeading local
:StayBehindLoop
   /face nolook
   /varset relativeHeading ${Math.Calc[${Me.Heading.DegreesCCW}-${Target.Heading.DegreesCCW}].Int}
   /call GetRightDistance
   /if (${String[${Target.Type}].NotEqual[NPC]}) /return
   /if (${Math.Calc[${Math.Abs[@relativeHeading].Int}<=30].Int})  /goto :noneed
   /if (${Math.Calc[${Math.Abs[@relativeHeading].Int}>=330].Int} && ${Math.Calc[${Math.Abs[@relativeHeading].Int}<390].Int})  /goto :noneed

|=========================
|    Strafing Required
|=========================
   /if (${Math.Calc[${Math.Calc[@relativeHeading].Int}<=0].Int})  {
      /if (${Math.Calc[${Math.Abs[@relativeHeading].Int}<=180].Int})  /goto :StrafeRight
      /goto :StrafeLeft
   }

   /if (${Math.Calc[${Math.Abs[@relativeHeading].Int}<=180].Int})  /goto :StrafeLeft
   /goto :StrafeRight

:StrafeLeft
   /keypress strafe_left Hold
   /delay 3 
   /keypress strafe_left
   /goto :StayBehindLoop

:StrafeRight
   /keypress strafe_right Hold
   /delay 3 
   /keypress strafe_right
   /goto :StayBehindLoop

:noneed 
/return 
Tinkoman

Oskar
orc pawn
orc pawn
Posts: 12
Joined: Sun Nov 30, 2003 2:01 pm

Post by Oskar » Fri Apr 23, 2004 9:38 pm

I was using this macro around version 2.0e and it worked very well. This latest version, when kiting, has me twitching all over the place, overshooting mobs and generally looking strangly to others in my group.

With the previous version, I could activate the macro and nobody could tell that it wasn't me at the controls, chasing mobs aroudn the coutyard. Any ideas or suggestions? I tried inserting #Turbo 150 but that didn't seem to help.

I'm still learning the program and the code, so please forgive me if it's something obvious. Any help would be appreciated.

Smitty
orc pawn
orc pawn
Posts: 25
Joined: Sun Dec 21, 2003 8:56 pm

Post by Smitty » Sat Apr 24, 2004 1:45 pm

curious...

is there a way I can change the max range for the move to during combat?

I comented the getbehind out due to it being too twitchy right now but now it wont move to unless I am grosly out of range.

Thanks,

(yes I know i am demanding and picky hehe thanks for putting up with me)
Smitty

Epsilon
a lesser mummy
a lesser mummy
Posts: 61
Joined: Wed Apr 30, 2003 5:46 pm

Post by Epsilon » Sat Apr 24, 2004 9:54 pm

i get alot of errors now with this macro, sometimes i have to restart macro a couple time to get it to work and everytime i start it i get an error saying something about char and hppct

Cunning
a lesser mummy
a lesser mummy
Posts: 61
Joined: Tue Mar 23, 2004 4:42 pm

Post by Cunning » Sat Apr 24, 2004 10:21 pm

I can't help you if you don't give me specifics. I ran 2.0g in PoFire for three hours with no issues except the getbehind not working quite right. In any event, I'm posting a new version now with that fixed. I think I got the wall bug patched as well.

illus1on
orc pawn
orc pawn
Posts: 24
Joined: Wed Apr 14, 2004 3:32 pm

Post by illus1on » Sat Apr 24, 2004 11:01 pm

No such character HpPct
No such spawn HpPct

AutoRogue2.0g
***** Is the MA

Cunning
a lesser mummy
a lesser mummy
Posts: 61
Joined: Tue Mar 23, 2004 4:42 pm

Post by Cunning » Sat Apr 24, 2004 11:15 pm

Grab 2.0h and the current build of MacroQuest (one came out today) and try it. I don't know what you two are typing/doing wrong...

Smitty
orc pawn
orc pawn
Posts: 25
Joined: Sun Dec 21, 2003 8:56 pm

Post by Smitty » Sat Apr 24, 2004 11:56 pm

using it in bot.. working well ,, get behind is still a little twitchy but much better,,

you are awsome thanks!
Smitty

illus1on
orc pawn
orc pawn
Posts: 24
Joined: Wed Apr 14, 2004 3:32 pm

Post by illus1on » Sun Apr 25, 2004 1:24 am

I did that. Still got the same errors.

This is my usage

/macro rogue.mac Tank 95 1 (Sets anchor at camp)


Then I get the red errors, usually 4 of them. Then the macro runs. Runs fine for 3 or 4 fights. Then he kind of just stands there "Waiting for MA to select a new target" But never engages again.

When he does fight, (Sol Ro Tower) I'm getting 60% Cannot see your target from here. He seems to be getting to close, then over compensating and running back, etc.

Cunning
a lesser mummy
a lesser mummy
Posts: 61
Joined: Tue Mar 23, 2004 4:42 pm

Post by Cunning » Sun Apr 25, 2004 1:33 am

What are these red errors you're talking about? Write down the output from the mq chat window and post it.

Cunning
a lesser mummy
a lesser mummy
Posts: 61
Joined: Tue Mar 23, 2004 4:42 pm

Post by Cunning » Sun Apr 25, 2004 1:42 am

Ok, I figured out the "red errors" problem. It wasn't effecting the execution of the script. The PctHPs errors you were getting at the beginning of the execution were from the new parser trying to read objects that were commented. This is a bug in MQ. To fix it on my end though, I simply changed the comments in custom.inc. You can grab them now.

Cunning
a lesser mummy
a lesser mummy
Posts: 61
Joined: Tue Mar 23, 2004 4:42 pm

Post by Cunning » Sun Apr 25, 2004 6:20 pm

Version updated. Custom.inc also updated so grab a new copy as well. I tested it for a few hours today without issue...but if you find one post here (and please provide details).

crisdan
a ghoul
a ghoul
Posts: 126
Joined: Mon Mar 24, 2003 1:56 pm

Post by crisdan » Sun Apr 25, 2004 6:35 pm

I am having trouble with this macro when mob bounces from the tank to another group member, or for example you have to kite the mob. Its does not travel to mob very quickly...it takes baby steps. I noticed this happens primarly after mob has been engaged. Its very good about running to the mob to engage, but if mobs location drastically changes after that, the script will "baby step" its way back trying to find the mob.

Cunning
a lesser mummy
a lesser mummy
Posts: 61
Joined: Tue Mar 23, 2004 4:42 pm

Post by Cunning » Sun Apr 25, 2004 6:52 pm

Ack, yeah I see that. I was trying out something and forgot to put it back. Correcting now, version number won't change as it's minor.

Smitty
orc pawn
orc pawn
Posts: 25
Joined: Sun Dec 21, 2003 8:56 pm

Post by Smitty » Sun Apr 25, 2004 8:12 pm

with todays updates it no longer uses assasin strike..


i updated the inc and the macro no such luck .. lol

any help?
Smitty