Done:
(Actually had this for a while already, but didn't think anyone needed it)
http://forums.tibiawindbot.com/showt...ter-Elementals
Printable View
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 =)
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.
Well, for the average user, pretty much no difference at all, except for the fact that mine is setting OnlyIfTrapped for all settings (Setting1, Setting2, Setting3 and Setting4).
If you'd like a little more in-depth explanation, my version, when used with more than one creature, adds a little overhead because it ends up comparing and converting itemcount(itemName) < itemCount more than once. I chose to do it the other way thought because it looks classier, because I like to use my own functions (toyesno), because performs just as well for the specific use case you requested and because the overhead really isn't really measurable or even noticeable.
[QUOTE=Raphael;18005]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).
Could you atleast tell me how to open the Inbox, the usuall openitem or w/e we're using to open shit dosn't open it when Im using the inbox ID
May that be cause of marked open next backpack if the one you use is ful?
Im going to make huge lootbag and i need Action to pick up items to bp. Just simple hotkey which move items from sqm under my legs to container which is already open.
The bot opens next backpack if the other one is full right? So I winder if that's what is causing his problem. The bot opens depot as there is no free spots faster than his action to open inbox. Just wondering...
and where did you come from?
just another guy who dosn't pay attention reading.
I already made my request and RApha didn't wanna help me, im not sure how he thought but was something like I am the only one who need it or something iddunno
btw I counter rudeness with rudeness
@up Haahahahah, truelly :D
can you provide script/action who will automatly relog from char to char when no stamina? this is huge help for people who botting alot of accounts and dont have time to relog manually.
http://i62.tinypic.com/2eaqbyh.png
#pic borrowed from another forum
I'm looking for a smart mana-potion-healer, like on iBot.
example: When monster on screen = Set use mana potion on <%50, if no monsters on screen set <%90. Therefor avoiding using mana potions midfight!
Anyone? Thanks
How about a combo script that will SD the target of [Leader] when the [Leader] attacks a [Person]?
Thread closed until all requests are answered.
This is a prototype, please give feedback.
https://gist.github.com/rmobis/79630...oot+Sorter.lua
This one:
http://i.imgur.com/88V2Q7v.png
Done: (Really late, but whatever)
http://forums.tibiawindbot.com/showt...on-Low-Stamina