Search found 13 matches

by mandoleth
Mon Jan 11, 2010 7:09 pm
Forum: Runes of Magic
Topic: Node Pirating - skip nodes being harvested by others?
Replies: 18
Views: 5484

Re: Node Pirating - skip nodes being harvested by others?

Looks like arntom has made some great fixes in player.lua... he or I will be posting soon. Nice...
by mandoleth
Sat Jan 09, 2010 3:58 pm
Forum: Runes of Magic
Topic: Node Pirating - skip nodes being harvested by others?
Replies: 18
Views: 5484

Re: Node Pirating - skip nodes being harvested by others?

http://dl.dropbox.com/u/2584982/player.lua

But - I must widen the scan a bit before it's going to detect much.
by mandoleth
Sat Jan 09, 2010 3:35 pm
Forum: Runes of Magic
Topic: Node Pirating - skip nodes being harvested by others?
Replies: 18
Views: 5484

Re: Node Pirating - skip nodes being harvested by others?

Yep. Scan is working now in my code... I had multiplied outside the window. Kind of a bad thing. If the scan determines that the other player is within a few ticks of the node, it's safe to assume they are or will be harvesting. Just an idea - it's not perfect by a long shot, but it's a beginning. M...
by mandoleth
Fri Jan 08, 2010 5:27 pm
Forum: Runes of Magic
Topic: Node Pirating - skip nodes being harvested by others?
Replies: 18
Views: 5484

Re: Node Pirating - skip nodes being harvested by others?

Having some trouble getting the second scan to run (or at least I can't see the pass executing twice,) but I'm working on it. If anyone's looked at the code and knows why - lemme know! :)
by mandoleth
Thu Jan 07, 2010 2:24 pm
Forum: Runes of Magic
Topic: Node Pirating - skip nodes being harvested by others?
Replies: 18
Views: 5484

WORKING? - skip nodes being harvested by others

Working! or at least... compiles and runs the paths without breaking anything. I have yet to come across another player so I don't know yet if the first scan for player pass works. We'll see. But at this point at least I can modify it until it DOES properly scan. http://dl.dropbox.com/u/2584982/play...
by mandoleth
Thu Jan 07, 2010 10:51 am
Forum: Runes of Magic
Topic: Node Pirating - skip nodes being harvested by others?
Replies: 18
Views: 5484

Re: Node Pirating - skip nodes being harvested by others?

one other reason I didn't detect people within the same scan - the scan is such that it moves the mouse around "until..." Therefore if I were to try to detect two objects within the same scan, I couldn't be guaranteed to detect both objects unless I scanned for a very long time, ignoring t...
by mandoleth
Thu Jan 07, 2010 9:54 am
Forum: Runes of Magic
Topic: Node Pirating - skip nodes being harvested by others?
Replies: 18
Views: 5484

Re: Node Pirating - skip nodes being harvested by others?

I agree - yes the player could be detected within the same scan if the scan were wider. I scan twice because the player may be a distance from the node that the first scan won't detect. The *only* reason I didn't alter the original scan was because I felt that altering the author's code to that exte...
by mandoleth
Thu Jan 07, 2010 12:08 am
Forum: Runes of Magic
Topic: Node Pirating - skip nodes being harvested by others?
Replies: 18
Views: 5484

Re: Node Pirating - skip nodes being harvested by others?

I have not had time to test this at ALL but this code should explain the idea. One major change I have made is by extracting the scan function from an inline method to a regular function. Other than that I just call scan twice with some added parameters - once for PT_NODE and once for PT_PLAYER type...
by mandoleth
Thu Jan 07, 2010 12:01 am
Forum: Runes of Magic
Topic: Node Pirating - skip nodes being harvested by others?
Replies: 18
Views: 5484

Re: Node Pirating - skip nodes being harvested by others?

A scan is performed, slightly wider than the scan for the harvest node and looks for player objects within a certain distance. It's assumed that players harvesting that particular node will be within this particular area. If a node is found AND a player is found AND that player is within a certain d...
by mandoleth
Wed Jan 06, 2010 6:19 pm
Forum: Runes of Magic
Topic: Node Pirating - skip nodes being harvested by others?
Replies: 18
Views: 5484

Re: Node Pirating - skip nodes being harvested by others?

Not sure if anyone is needing this functionality or gives a crap but I'm pretty much done coding the check for players in very close proximity to the harvest node. I'm testing tonight and perhaps I'll have the paranoid other player check working. If anyone's interested please let me know. Otherwise ...
by mandoleth
Wed Jan 06, 2010 5:01 pm
Forum: Runes of Magic
Topic: Node Pirating - skip nodes being harvested by others?
Replies: 18
Views: 5484

Re: Node Pirating - skip nodes being harvested by others?

I think I found a way to program some "avoidance" into the lua scripts. In player.lua, line 96 -- normal harvesting if( mousePawn.Address ~= 0 and mousePawn.Type == PT_NODE and distance(self.X, self.Z, mousePawn.X, mousePawn.Z) < 150 and database.nodes[mousePawn.Id] ) then return mousePawn...
by mandoleth
Tue Jan 05, 2010 5:05 pm
Forum: Runes of Magic
Topic: Node Pirating - skip nodes being harvested by others?
Replies: 18
Views: 5484

Re: Node Pirating - skip nodes being harvested by others?

Hmm. All right, then what would be the best way to detect the proximity of the nearest player within the harvest() method? Is there something like getNearestDoucheBag().getDistanceTo() in perhaps more complex terms?
by mandoleth
Tue Jan 05, 2010 11:40 am
Forum: Runes of Magic
Topic: Node Pirating - skip nodes being harvested by others?
Replies: 18
Views: 5484

Node Pirating - skip nodes being harvested by others?

Does the "node" object have any attributes we can scan just prior to harvesting? If the node has a decreasing available amount, one could assume it's being currently harvested. I noticed the bot walking up to a player who was already gathering and I had to stop the bot before it started hu...