@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]