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
Small Questions regarding Cavebot (LUA Actions and Lure)
#1
Hello,

I've downloaded a few scripts to see how the community builds their cavebots, and I have 2 questions that I wasn't able to figure out by myself.


1) A few scripts have these 3 actions on their Cavebot:

The first action of the cavebot is a initialcheck()

Then everytime the player changes a floor, they do a checkfloor(number of the new floor)


Finally, the more complex scripts with bank deposit and auto-refill have sometimes a resetbackpack()

What exactly those 3 actions do and why are they important?


2) How do I setup a Lure rule when there's more than X creatures on-screen (eg 3+)?

For example, if there's 1 or 2 trolls, I want the stance be "no stance" and atk mode be "chase/offensive", the default setting for a melee character.

But if there's 3+ trolls, I want the stance be "lure" and atk mode be "stand/offensive", so I can bring the monsters to a corner where I can attack only 2 at a time.

I set a "lure" step on the Cavebot for each floor. Then, on Targeting, I setup two "trolls":

- troll / any
no stance
chase/offensive

- troll / 3+
lure
stand/offensive

I thought that it would work (there's a valid lure point that's reachable and nearby every point where there's possibility of having multiple creatures), but it didn't worked: the bot stayed chase/offensive on all creatures, even when there were 3+ on screen.


Regards
Reply

#2
Hello.

1. Both functions are not bots function, that means the guy who created the script developed both functions and placed somewhere, it may be on the script (probably on Cavebot->LUA Setup) or it's lua library that he could be sharing.

2. You created two entries, both probably has the same danger, but the first you setup as "Any", so based on your Targeting Priority, it may be picking up this setting.
Notice that it will not look for the closest lure wpt, but the last ran in cavebot or that you setup using the setlurelocation() function.
Reply

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

Regarding the lure wpt, see if I'm understanding correctly how the cavebot will work.

Waypoint 1: lure
Waypoint 2-5: nodes
Waypoint 6: lure
Waypoint 7-11: nodes



If I'm between waypoint 2 and 5 and there's a need to use a lure wpt, it'll go to wpt 1. If I'm between 7-11 and there's a need to use a lure wpt, it'll go to 6.

Thanks!
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016