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!
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!