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
Help with some commands and functions
#1
Question 
Hello,
I want to ask forĀ help with 3 things i'm trying to do.
I searched the forum and didn't find any solution.

1. Is there some way to turn on and turn off the autofishing via lua script ?
like: autofishing(false)

2. Is there some way to pause/unpause some persistent script ?
like: pausepersistent('script name')

3. Is there some way to open a label, insert a text, and press ok ?
like:
openitem('label')
insert the text inside
press ok

Thanks in advance.

#2
Hello.

#1 and #2
Yes, you should use setsettings() to change bots settings. You can disable/enable fishing and disable/enable a persistent for example.
setsettings(string path, string/number/boolean value) [void]: Changes the path's value.
Example:
setsettings('Looter/Settings/Enabled', 'yes')
It's gonna enable Looter.
setsettings('Tools/Auto Fishing/Enabled', 'yes')
It's gonna enable Auto Fishing.
setsettings('Persistents/0/Enabled', 'yes')
It's gonna enable the first persistent. 0 is the persistent index (zero-based).

If you wanna find find the tool's path then you just need to right-click on the option, a small context window will show up, click on "Copy path". The tool's path will be copied to your clipboard (CTRL+C).


#3
writetextwindow(string/number item, string text, optional string locationItem, optional number index) [boolean]
Example:
writetextwindow('label', 'Player name\nVenore', 'red backpack')
Writes "Player name
Venore" in a label that's in a red backpack.
\n = new line.

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

Just perfect.
Solved.
Thanks.



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016