doesn't skip waypoint anymore

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

doesn't skip waypoint anymore

#1 Post by lisa »

It might be just me but running a char on a new WP, it isn't skipping any waypoints, ever. It will run to a mob, turn round and go back to the last waypoint and then turn again and continue on even though there were 2 waypoints between the dead mob and the waypoint it walked back to.

If it is just me, any settings I might have messed up to make it not skip anymore?
Looks far to unnatural.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
User avatar
Administrator
Site Admin
Posts: 5353
Joined: Sat Jan 05, 2008 4:21 pm

Re: doesn't skip waypoint anymore

#2 Post by Administrator »

Try this in your onLeaveCombat event:

Code: Select all

<![CDATA[
local nwp = __WPL:getNearestWaypoint();
local cwp = __WPL.CurrentWaypoint;

if( math.abs(nwp - cwp) < 3 ) then
 -- Within 2 waypoints, allow update
  __WPL:setWaypointIndex(nwp);
elseif( nwp < 3 and cwp > math.abs(#__WPL.Waypoints - 2) ) then
  -- Within 2 waypoints, but looping around to the beginning.
  __WPL:setWaypointIndex(nwp);
end
]]>
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: doesn't skip waypoint anymore

#3 Post by lisa »

Keeps returning this error.

Code: Select all

nil value passed to distance()
I even commented out all but

Code: Select all

 local nwp = __WPL:getNearestWaypoint();
and it still returned same error, which I find odd as it is just setting a string?
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: doesn't skip waypoint anymore

#4 Post by rock5 »

Logically getNearestWaypoint should default to getting the nearest waypoint to the player, but it doesn't. This should work

Code: Select all

local nwp = __WPL:getNearestWaypoint(player.X, player.Z);
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: doesn't skip waypoint anymore

#5 Post by lisa »

No errors anymore =)

Need to test it out more, first glance it does set to go to a different waypoint, trouble is it is now saying it is skipping that waypoint. So maybe it is doing the skip thing again now, lol, I need to test this more.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Post Reply