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
Questions.
#1
Hello, good morning, i just wordering to know some functions at the bot if they work or how they work.

1. In the runemaker tab, there are 4 boxes (PK, Monster, Attacked, Player), How do they work? If there something like that, the bot will make it run to the "On Danger" SQM? Or how it work?
2. In the runemaker tab, the Refill Settings (Food, SQM, Blank Rune, etc) Do i have to put a backpack in the ground with those items or just the items in the ground?
3. How can i set variables example i want to do something like this: 
if playerattack then
 set PK = 1
end

if PK = 1 then
gotolabel ('RUNFROMPK')
WAIT(700,1000)
set PK = 0
end
4. How to declare variables, i want to do something like this, (or where do i put it? cavebot lua, persistent?)
MAINBP = 'Blue Backpack'
GOLDBP = 'Gold Backpack'
SUPPLYBP = 'Brown Backpack'

MAXCAP = 100
ITEM = 'Mana Fluid'


Thanks in advance.

#2
Hello.

Question #1
You can check those 4 boxes for your needs and if one of those specific dangers happens, it will go to Danger Location. Then you also have two more boxes at left: "XLog" and "Walk Back", that's the action that Bot will perform if it successfully reaches the Danger Location.

Question #2
In the ground. I'm already improving it to make possible using backpacks.

Question #3
That's a kinda complicated question, because depends on your goal. So it should be up to you.
There are five places that you can run LUA scripts, however, for a script, you should only use four places: Hotkeys->LUA Script, Persistent's, Cavebot->Action's and Cavebot->LUA script. The fifth place is the "Console", which should be used for testing purposes only like printing, etc.

The script that you posted will not only set a variable, but check a condition.

You can develop scripts in LUA using Hotkey's->LUA, Persistent's and Cavebot->Action's.

The links below goes to the LUA's 5.1 manual, which you can read to learn about it.
ENGLISH ->
|Only Registered members can see download links. | Click here to buy subscription or here to register.

PORTUGUESE ->
|Only Registered members can see download links. | Click here to buy subscription or here to register.

SPANISH ->
|Only Registered members can see download links. | Click here to buy subscription or here to register.


Question #4
Once again, that's up to you and your script.

You should use a script in one of those listed's and the one should be chosen according your script needs.

Hotkeys->LUA Script
It will the LUA script when you execute/press that hotkey.
One LUA instance for all hotkeys, this means that you cannot run two Hotkeys->LUA Scripts at once and share its variables.
If you use a Hotkey->LUA Script then press another one while the first is still running, the second will abort the first script and run itself.

Persistents
It will run the LUA script every X ms (default: 1000ms to 1000ms).
One LUA instance for EACH persistent, this means that you CAN run multiple at once.

Cavebot->Action
It will run the LUA script when the Cavebot runs that waypoint, notice that Cavebot will not WALK to the place, only runs the LUA script.
One LUA instance for all Actions, this means they share its variables.

As you could notice, the tools doesn't share variables by default (e.g. if you set a variable on a Persistent, you will not be able to read it on Hotkeys or on another Persistent), but you can do that using the setglobal() function.


That being said, i will explain how LUA Setup works because it's not like previously tools.
Cavebot->LUA Setup
This script will run ONCE on all tools that runs LUA scripts on the tool's next run. The "tools" that are the ones i just talked about. So this script will be run on ALL Persistents, Hotkeys and Cavebot...
So this is the place that you should set all "global" variables (constants), variables that you would not change like your example on question 4.
It's not recommended to run functions here, unless you really want to run this function once on all tools.

#3
Thanks alot!



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016