Search found 10940 matches

by rock5
Fri Apr 16, 2010 12:31 pm
Forum: Runes of Magic
Topic: Error RoMScript returned values
Replies: 11
Views: 2955

Re: Error RoMScript returned values

Had a bit of a look at RoMScript function and I think I understand. The results are written to macro2 and read by rombot. Macros have a character limitation so that is why it doesn't get all the returned values. Is there anyway around this problem? I'm not sure how rombot communicates with the clien...
by rock5
Fri Apr 16, 2010 11:57 am
Forum: Runes of Magic
Topic: Error RoMScript returned values
Replies: 11
Views: 2955

Error RoMScript returned values

I'm trying to write an in-game function to return all the quest names in the quest book to speed up some quest functions I'm writing but I've encountered a problem. Taking igf_GetTooltip as a guide I wrote in my MyFunction addon.; function igf_getQuestList() local qq={} for i=1,30 do __, __, name = ...
by rock5
Wed Apr 14, 2010 9:00 am
Forum: Runes of Magic
Topic: Getting stuck while fighting
Replies: 17
Views: 4303

Re: Getting stuck while fighting

Ok, I think I've finally got it all figured out. It should be working properly now. I've also removed setCurrentWaypoint (use setWaypointIndex() again). Yep, tested all 3 and they seem to work. Starting a new file goes to the nearest waypoint first. Loadpaths() takes you to the nearest waypoint. se...
by rock5
Wed Apr 14, 2010 3:40 am
Forum: Runes of Magic
Topic: Error after Update: bot.lua:797
Replies: 3
Views: 1348

Re: Error after Update: bot.lua:797

Got this eror now and cant start the rom/bot.lua script/rom/bot.lua:797: function arguments expected near `___RPL` Update: tryed createpath.lua and got this error: scripts\rom/createpath.lua:3: ..../classes/player.lua :858: unexpected symbol near `and` I reported on this too. Until it's fixed just ...
by rock5
Tue Apr 13, 2010 9:05 pm
Forum: Runes of Magic
Topic: Getting stuck while fighting
Replies: 17
Views: 4303

Re: Getting stuck while fighting

OK, just committed this with r432. It should also resolve some more waypoint issues. There were a couple of errors; Line 858 of player.lua has an extra 'and'; if( and settings.profile.options.LOOT == true and And line 797 of bot.lua is missing a bracket; __RPL:setCurrentWaypoint __RPL:getNearestWay...
by rock5
Tue Apr 13, 2010 9:46 am
Forum: Runes of Magic
Topic: Getting stuck while fighting
Replies: 17
Views: 4303

Re: Getting stuck while fighting

My mistake. I posted that quite hastily. Look a few lines down and you'll have to wrap the loot call in an if statement. self:update(); if( not break_fight ) then self:loot(); end Ok, that works. So everything works now. So to summarize, I've added this code to around line 405 and 634; if( self.Bat...
by rock5
Mon Apr 12, 2010 11:57 pm
Forum: Runes of Magic
Topic: Getting stuck while fighting
Replies: 17
Views: 4303

Re: Getting stuck while fighting

No change. Still looted.

I noticed, though, the only thing in that if statement was inventory:updateSlotsByTime(800);. How is not running this supposed to stop me looting?
by rock5
Mon Apr 12, 2010 7:52 am
Forum: Runes of Magic
Topic: Getting stuck while fighting
Replies: 17
Views: 4303

Re: Getting stuck while fighting

I think that your character is moving forward again because it is attempting to use a melee skill (which causes your character to run towards the target with click-to-move turned on) or because the bot notices it is too far away from the target. Try resting for 1 second ( yrest(1000) should do the ...
by rock5
Mon Apr 12, 2010 6:37 am
Forum: Runes of Magic
Topic: Skipped waypoints
Replies: 9
Views: 2468

Re: Skipped waypoints

Revision 431 did not fix it. As stated in the above post, when 1 waypoint file loads another waypoint file with the loadpaths command then it correctly moves to the closest point but when you load your first waypoint file it starts from the point before the closest point. So in fixing loadpaths you ...
by rock5
Mon Apr 12, 2010 6:22 am
Forum: Runes of Magic
Topic: Waypoint <onLoad> sequence
Replies: 2
Views: 1136

Re: Waypoint <onLoad> sequence

Yep, working.

Thx.
by rock5
Mon Apr 12, 2010 5:20 am
Forum: Runes of Magic
Topic: Getting stuck while fighting
Replies: 17
Views: 4303

Re: Getting stuck while fighting

You could change it to: if( self.Battling ) then yrest(1000); self:unstick(); self:update(); yrest(500); end That should help some. I'm not sure what would cause it to 'not work'. You'll have to describe what you mean. Does it not move (ie. the unsticking isn't doing anything at all)? Is the player...
by rock5
Mon Apr 12, 2010 4:52 am
Forum: Runes of Magic
Topic: Waypoint <onLoad> sequence
Replies: 2
Views: 1136

Waypoint <onLoad> sequence

I tried setting the waypoint in the <onLoad> section of the waypoint file but it still moved to the nearest waypoint. I assume from this that the load sequence goes something like this; Load waypoints Do onload instructions Find nearest waypoint Goto waypoint So I'm not able to override the starting...
by rock5
Sun Apr 11, 2010 5:40 am
Forum: Runes of Magic
Topic: Skipped waypoints
Replies: 9
Views: 2468

Re: Skipped waypoints

Line 444 of rom/functions.lua has this: __WPL:setWaypointIndex(__WPL:getNearestWaypoint(player.X, player.Z)); Change to: local wpi = __WPL:getNearestWaypoint(player.X, player.Z); if( wpi == 1 ) then wpi = #__WPL.Waypoints else wpi = wpi - 1; end; __WPL:setWaypointIndex(wpi); That should get you mov...
by rock5
Sat Apr 10, 2010 11:44 pm
Forum: Runes of Magic
Topic: Getting stuck
Replies: 2
Views: 1052

Re: Getting stuck

COMBAT_DISTANCE is how close you have to move to before attacking. To limit the range that you attack you need to add a not well documented option called MAX_TARGET_DIST. Example: <option name="MAX_TARGET_DIST" value="50" /> It would be nice if they added that to the default prof...
by rock5
Sat Apr 10, 2010 10:46 am
Forum: Runes of Magic
Topic: How to: My bot is not looting !!!
Replies: 41
Views: 54281

Re: How to: My bot is not looting !!!

I've been having problems not looting Muddy Wheezers because of stun. If I become stunned after killing the Wheezer I never loot after recovering from the stun. I tried changing these values in settings with no effect; LOOT_TIME = 2000, LOOT_AGAIN = 2000, -- second loot try if rooted after x ms It s...
by rock5
Fri Apr 09, 2010 9:13 pm
Forum: Runes of Magic
Topic: Getting stuck while fighting
Replies: 17
Views: 4303

Re: Getting stuck while fighting

You could change it to: if( self.Battling ) then yrest(1000); self:unstick(); self:update(); yrest(500); end That should help some. I'm not sure what would cause it to 'not work'. You'll have to describe what you mean. Does it not move (ie. the unsticking isn't doing anything at all)? Is the player...
by rock5
Fri Apr 09, 2010 8:49 pm
Forum: Runes of Magic
Topic: Skipped waypoints
Replies: 9
Views: 2468

Re: Skipped waypoints

It's easier to just work around it so that we don't have to worry about fixing any additional bugs. A new function specifically for this could be added, though: function CWaypoint:setCurrentWaypoint(wpi) if( wpi == 1 ) then wpi = #__WPL.Waypoints else wpi = wpi - 1; end; __WPL:setWaypointIndex(wpi)...
by rock5
Fri Apr 09, 2010 12:36 pm
Forum: Runes of Magic
Topic: Getting stuck while fighting
Replies: 17
Views: 4303

Re: Getting stuck while fighting

Also, it should only do the unstick if in combat. But I've noticed that if you target a mob and can't attack it, but haven't attracted aggro yet, you still do the unstick move before continuing to the next waypoint.
by rock5
Fri Apr 09, 2010 12:26 pm
Forum: Runes of Magic
Topic: Skipped waypoints
Replies: 9
Views: 2468

Re: Skipped waypoints

Should I be using __WPL:getNextWaypoint() somehow? Isn't the next waypoint stored anywhere? Isn't there anyway to just set the next waypoint instead of using the previous waypoint? Maybe you could create a __WPL:setNextWaypointIndex function that works out and sets __WPL:setWaypointIndex() correctly...
by rock5
Fri Apr 09, 2010 6:17 am
Forum: Runes of Magic
Topic: RomBot Wiki down
Replies: 1
Views: 1081

RomBot Wiki down

Not sure if this is the right place to report this but someone has screwed up the rombot wiki.

http://www.solarstrike.net/wiki/index.p ... le=RoM_Bot