Advertisement
Uissu

[X-TIBIA][FUNCTION] doPlayerAddHundreds(cid, itemid, count)

Feb 8th, 2012
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. function doPlayerAddHundreds(cid, itemid, count) -- By Byerne XTibia
  2.     if count <= 100 then
  3.         return doPlayerAddItem(cid, itemid, count)
  4.     end
  5.     local count_now = count
  6.     while count_now > 100 do
  7.         doPlayerAddItem(cid, itemid, 100)
  8.         count_now = count_now - 100
  9.     end
  10.     return doPlayerAddItem(cid, itemid, count_now)
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement