Done:
(Actually had this for a while already, but didn't think anyone needed it)
http://forums.tibiawindbot.com/showt...ter-Elementals
Done:
(Actually had this for a while already, but didn't think anyone needed it)
http://forums.tibiawindbot.com/showt...ter-Elementals
Hehe i like these descriptions in fishing code =)
Latest Scripts: Ultimate Dawnport FACC Spots Souleater Tunnels Useful Lua:
Yo, I tried it on other script and it's going back everytime :/
I used this
local moneyToWithdraw = moneytowithdraw('a')
if islocation(1) then
depositerbank('a')
end
if gold() < moneyToWithdraw then
gotolabel($wptid - 1)
end
And this is what's happening
Code:10:30:03 error in Action script wptid:21: ["if gold() < moneyToWithdraw then"]:label::5 attempt to compare number with nil
Nah, it's just that I don't like writing code for very specific problems (like, specifically sorting items from the inbox) so i'm trying to think of a good way to make it more generic (like, sort items from any place).
You know, if you're using depositerbank, it already does this check for you.
My problem is infinite spawn, so i'm draining myself until death, so I need a script that changes my targetting to "only if trapped" when below a certain amount of potions, then switches targetting back to usual when above that amount!
Like
if itemcount('mana potion') < 20 then
setsettings/targeting/mammoth/must be trapped, yes
else
setsettings/targeting/mammoth/must be trapped, no
end
Whats the difference between yours and this -
auto(200)
if itemcount('mana potion') < 20 then
setsetting('Targeting/Creatures/Mammoth/Setting1/OnlyIfTrapped', 'yes')
setsetting('Targeting/Creatures/Barbarian Brutetamer/Setting1/OnlyIfTrapped', 'yes')
else
setsetting('Targeting/Creatures/Mammoth/Setting1/OnlyIfTrapped', 'no')
setsetting('Targeting/Creatures/Barbarian Brutetamer/Setting1/OnlyIfTrapped', 'no')
end
His version uses toyesno(value) which converts the value into 'yes' or 'no' depending on what is the value.
toyesno(itemcount('mana potion') < 20) will return 'yes' if you have less than 20 mp and 'no' if this sentence is not true.
In other words, every 100 ms it'll set the OnlyIfTrapped setting to 'yes' if you have less then 20 mp and 'no' if you have more.