09-10-2021, 09:25 PM
In my otserv, in caves have sqm with traps (it have diferent ID) can i AVOID x sqm type by id or pos() to dont walk on there?
|
How to avoid?
|
|
09-10-2021, 09:25 PM
In my otserv, in caves have sqm with traps (it have diferent ID) can i AVOID x sqm type by id or pos() to dont walk on there?
Hello.
Add traps ids to Cavebot -> Walkable ids. Hi, thanks for the reply, as always! But the problem is exactly this, he MUST NOT walk on these squares. It's possible? (Like poison, energy or fire avoidance)
09-13-2021, 03:10 PM
Hello.
Sorry, my bad. There's no option on Bot to do that. So I only recommend you to make a script to close traps instead.
09-14-2021, 03:05 PM
Hello.
Yes, I will add that on next release. Does that trap closes itself or it will always stay open? If the trap closes itself from time to time then you can make an action to check the top item id, because it will change when closed and opened. So it should wait until it closes. Example: Make a node to reach that trap, create an action with code below to check and another node to walk thru. So the action will wait until you can walk. local TRAP_ID = 1234 -- Trap id when open.If it never closes then you use Special Areas (or I add Unwalkable Ids) to avoid that SQM, but if you are using Cavebot->Map clicks only then I recommend you to make a node to reach that trap, create an action with code below to disable map-clicks only and another node to walk thru then finally another action to enable map-clicks only. Otherwise, game-client could walk thru that trap even with special areas, since it's game-client that calculates the path when using map-clicks only. setsettings('Cavebot/Map-clicks only', false) -- to disable
06-27-2022, 03:17 AM
is there any way, when wpt arrives in the action script to disable maps clicks, it also changes the target so as not to run after the monsters? and after returning the wpt to activate the map clicks, also return the target to chase?
06-27-2022, 03:43 AM
Hello.
Use setsettings() to change that as well. setsettings('Targeting/Dragon/Setting1/Atk Mode', 'Stand/Offensive')setsettings('Targeting/Dragon/Setting1/Atk Mode', 'Chase/Offensive')setsettings('Targeting/Dragon/Setting1/Stance', 'Reach')setsettings('Targeting/Dragon/Setting1/Stance', 'No stance')local Monsters = { 'Dragon', 'Dragon Lord' }
06-27-2022, 03:50 AM
(This post was last modified: 06-27-2022, 04:23 AM by juniorcrms.)
this one I can put all creatures ne, instead of putting a line of each ne
local Monsters = { 'Dragon', 'Dragon Lord' } for _, monster in ipairs(Monsters) do setsettings('Targeting/' .. monster ..'/Setting1/Atk Mode', 'Stand/Offensive') en
06-27-2022, 04:23 AM
Yeah
|