Is there a way to skip a target if it's xx away from waypoin
Is there a way to skip a target if it's xx away from waypoin
I was wondering if there was a way to skip a target because it is too far from the waypoint pathing? It would be nice to have the option of a skipping a target because the combat distance is too far away.
Re: Is there a way to skip a target if it's xx away from waypoin
If your range class, you can just turn down the
You can also try turning down
Code: Select all
<option name="COMBAT_DISTANCE" value="200" />
Code: Select all
<option name="WANDER_RADIUS" value="0" />
<option name="WAYPOINT_DEVIATION" value="0" />
Re: Is there a way to skip a target if it's xx away from waypoin
That won't work. It will just keep creeping up closer to the target till it's within range.
Re: Is there a way to skip a target if it's xx away from waypoin
What happens when you turn down the wander radius?
Re: Is there a way to skip a target if it's xx away from waypoin
I use waypoints so Wander Radius isn't used. I also have Waypoint Deviation set to 0.
- Administrator
- Site Admin
- Posts: 5307
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Is there a way to skip a target if it's xx away from waypoin
Open player.lua and look for this:
Change that last line to this:
Where 150 is the max distance you want to engage targets at.
Code: Select all
if( self:haveTarget() and self.Fighting == false ) then
local target = self:getTarget();
if( not target:haveTarget() ) then
Code: Select all
if( not target:haveTarget() and distance(self.X, self.Z, target.X, target.Z) < 150 ) then
Re: Is there a way to skip a target if it's xx away from waypoin
Thanks so much!
-
- Posts: 2
- Joined: Sat Jun 27, 2009 3:34 am
Re: Is there a way to skip a target if it's xx away from waypoin
hmm i tried this in my player.lua, but the bot still seems to attack enemies far away from my waypoint, is there a way i can set it to where it only targets enemies exactly where i set my waypoint, ive tried all the ways previously mentioned in this post and none of them work for me.
Re: Is there a way to skip a target if it's xx away from waypoin
I'm not really sure which situation you mean. I suppose you mean:dictator187 wrote:tried all the ways previously mentioned in this post and none of them work for me.
- the bot has selected a target and the target is moving away. In that case the bot tries to move closer to the mob. If the mob wander again, the bot moves again closer ... and so on.
The RoM Bot Online Wiki needs your help!
Re: Is there a way to skip a target if it's xx away from waypoin
I am still having issues with the proposed fix. I have modified the script as mentioned but the bot will still move in closer to attack. The reason I am having this issue to begin with is if you have your waypoints close to a hillside and a mob is close by, the bot may go down the hill with no means of making it back up. There is so many hills and mounds to get stuck on. I just want to be able to have the bot check distance to mob first then ignore if it's too far away.
Re: Is there a way to skip a target if it's xx away from waypoin
This gave me an idea. Why not add an option:
It would target mobs if theyr at 300 range or closer to the waypoint. This way the bot would look more humanlike if it could target from a long range and just run straight to mob instead of running through every waypoint. This would work especially in flat areas.
Code: Select all
<option name="TARGETING_DISTANCE" value="300" />
Re: Is there a way to skip a target if it's xx away from waypoin
I don't really get the problem. Since I have some remarks:aasi888 wrote:This gave me an idea. Why not add an option:It would target mobs if theyr at 300 range or closer to the waypoint. This way the bot would look more humanlike if it could target from a long range and just run straight to mob instead of running through every waypoint. This would work especially in flat areas.Code: Select all
<option name="TARGETING_DISTANCE" value="300" />
- the only way to 'see' and find a mob is to get it as a target with the target hotkey. That works only in a range from ~ 220.
- if you set a distance from your waypoint with 300, than your waypoints must also be in that distance. It is not uncommon to set waypoints only every 400 or greater distance. I think what you mean would be more a targeting 'corridor' from waypoint to waypoint.
The RoM Bot Online Wiki needs your help!
Re: Is there a way to skip a target if it's xx away from waypoin
I think you got what I mean. Mayby the targeting hotkey range could be edited in the client so we could target mobs from greater distance? In other bots like Lineage2 bots the mob can be targeted from pretty much any distance in spite of the normal l2 client only allows to do short range targeting.d003232 wrote:'see' and find a mob is to get it as a target with the target hotkey. That works only in a range from ~ 220.[*]if you set a distance from your waypoint with 300, than your waypoints must also be in that distance. It is not uncommon to set waypoints only every 400 or greater distance. I think what you mean would be more a targeting 'corridor' from waypoint to waypoint.[/list]
Who is online
Users browsing this forum: No registered users and 14 guests