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
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 ?
Regards, Rikardo;
Take Care.
My Script Thread: http://forums.xenobot.net/showthread...-script-thread
Facebook: fb.com/ricardo.pereirasilveira
Playing in: Guardia (if ur playing in the same world, msg me with ur characterer)
My Project (RP): http://forums.xenobot.net/showthread...do-life-thread
Write
depot
instead of
deport
Should work.
Kind Regards,
Mister Neo
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))