XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 10 of 105

Thread: [Update] XenoBot v2.7.1

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #10
    XenoBot Scripts Developer Syntax's Avatar
    Join Date
    Feb 2011
    Posts
    1,658
    Mentioned
    431 Post(s)
    Tagged
    4 Thread(s)
    @Demonic Saint, @stefps

    buyAlotOfItemsBecauseItsSuchAGodDamnBigDeal = Self.ShopBuyItem

    Because oh look at that, I made both of them, and they have the same exact contents... Open up the library...

    This is the function that is currently in the native library... look familiar?
    [code=lua]Self.ShopBuyItem = function(item, count)
    local func = (type(item) == "string") and shopBuyItemByName or shopBuyItemByID
    count = tonumber(count) or 1
    repeat
    local amnt = math.min(count, 100)
    if (func(item, amnt) == 0) then
    return 0, amnt
    end
    wait(300,600)
    count = (count - amnt)
    until count <= 0
    return 1, 0
    end[/code]
    Last edited by Syntax; 09-03-2012 at 10:26 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •