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
Problem with function SetSettings
#1
Hello guys.
Im having problem trying to use the function Setsettings with persistente.
Im trying to make the bot set Looter disabled if cap<10, but it dont turns the loot off, and it cant set the loot to be ignore.
Maybe i am using it wrong??
See the codes i tried to use for both case without sucess:
Codes:

if cap() > 10 then
    setsettings('Looter/Settings/Enabled', true)
else
setsettings('Looter/Settings/Enabled', false)
end


I also tried:

if cap() > 10 then
    setsettings('Looter/fish/Action', 'Loot')
elseif cap() < 10 then
    setsettings('Looter/gold coin/Action', 'ignore')
end


Help please guys!
Reply

#2
Hello.

To enable/disable looter, there's no "settings" in path.
if cap() > 10 then
    setsettings('Looter/Enabled', true)
else
    setsettings('Looter/Enabled', false)
end

This works fine for me. But notice that you are changing action of two different items: fish and gold coin.
if cap() > 10 then
    setsettings('Looter/fish/Action', 'Loot')
elseif cap() < 10 then
    setsettings('Looter/gold coin/Action', 'ignore')
end
Reply

#3
Thank you very much!!!

Maybe need to change it at the functions list.
item 2.2.1 Bot Systems:
setsettings(string path, string/number/boolean value) [void]: Changes the path's value. e.g.: setsettings('Looter/Settings/Enabled', true), it's gonna enable Looter.
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016