Would be nice if that would get replaced with buyitemsupto instead or if there would be an alternative.
Printable View
Not tested but cba to login to Tibia. Feel free to leech it.
Code:local function buyAlotOfItemsBecauseItsSuchAGodDamnBigDeal(item, count)
count = tonumber(count) or 1
repeat
local amnt = math.min(count, 100)
if(Self.ShopBuyItem(item, amnt) == 0)then
return printf("ERROR: failed to buy item: %s", tostring(item))
end
wait(200,500)
count = (count - amnt)
until count <= 0
end
Thanks DarkstaR
Thanks.
nice update. hopefully Ill have time to test it out sometime this week. Now I can finish my scripts with those npc trade options.
any1 got problem with depositer in deport ?
all my script use the same script to deposit
and it deposit all in slot 00 in deport.PHP Code:
elseif (labelName == 'deport') then
Self.DepositItems(9657, {2869, 1})
Self.DepositItems(9657, {7398, 2})
wait(2000)
what script i should use to deposit right from now ?
Write
depot
instead of
deport
Should work.
Not necessarily. That's the name of his label, as long as it matches in his waypoints it should be fine. The function was written by @Syntax, maybe he can explain why it's not working.
Could some1 help me with this?
It sells 1 halberd and then it runs to next wpt >.<
Self.SayToNpc({"Hi", "Trade"}, 65)
sleep(math.random(700, 1400))
Self.ShopSellItem("halberd", 100)
sleep(math.random(700, 1400))
Self.ShopSellItem("plate armor", 100)
sleep(math.random(700, 1400))
Try pausing your cavebot.
Which is the code? too tired to search on the forums, just want my depositer done so I can go to sleep :u
sowwy for asking nub questions :d
453 people used xenobot today ;)
delayWalker(10000)
will delay the walker for 10 seconds.
this is my halberd&twohanded sword seller
PHP Code:
delayWalker(10000)
Self.SayToNpc({"hi", "trade"}, 65)
wait(900, 1200)
Self.ShopSellItem(3269, Self.ItemCount(3269))
wait(900, 1200)
Self.ShopSellItem(3265, Self.ItemCount(3265))
wait(700, 1400)
Great Job @DarkstaR !!!
Without wanting to be boring ... but the option to open the bodies only with the items listed would be amazing! :D
Thanks for all!
bump to keep newest version on top :P
Awesome.
Hello Darkstar. Do you have plans to add a multiple spell attacks (Ex. exori frigo & exori gran frigo) to the targeting, I was unable to find a script for it with the search function.
Thank you,
Xank