Everyone who has never used our Bots before, can test each one for 2 days without any limitation.
The trial is given automatically when you login on the Bot, but in some cases it wouldn't work (security reasons).
If this happens, send me a private message and i will be checking the failed trials manually and adding it for those who didn't get it.
We are looking for resellers who may accept payment methods different from ours, including classictibia's cash, realesta's cash, mastercores' cash, etc. Interested? Click here at anytime.



Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to avoid?
#1
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?
Reply

#2
Hello.

Add traps ids to Cavebot -> Walkable ids.
Reply

#3
|Only Registered members can see download links. | Click here to buy subscription or here to register.

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)
Reply

#4
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.
Reply

#5
|Only Registered members can see download links. | Click here to buy subscription or here to register.
Hello! No problem, in future release can u add this? Cause is not possible to close traps, is not a common trap, this is specific sqm who if u walk give back u damage, like fields. But, thank u anyway!!
Reply

#6
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.
local LOCATION = { X = 12345, Y = 12345, Z = 6 }

local top_item = topitem(LOCATION.X, LOCATION.Y, LOCATION.Z, false)
while top_item.id == TRAP_ID do
    wait(1000, 2000)
    top_item = topitem(LOCATION.X, LOCATION.Y, LOCATION.Z, false)
end
This could will make it wait while trap is 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
setsettings('Cavebot/Map-clicks only', true) -- to enable
Reply

#7
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?
Reply

#8
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' }

for _, monster in ipairs(Monsters) do
    setsettings('Targeting/' .. monster  ..'/Setting1/Atk Mode', 'Stand/Offensive')
end
Reply

#9
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
Reply

#10
Yeah
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016