Advertisement
EmpireJordan

LUA

Mar 29th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.73 KB | None | 0 0
  1. -- SETTING -------------------------------------------
  2. -----------------------------------------------------
  3. ManaType = 284
  4. ManasToDrop = 5
  5. -----------------------------------------------------
  6. -- END OF SETTING--------------------------------------
  7.  
  8. function dropItem(id, cnt)
  9. local cont = Container.GetFirst()
  10.  
  11. while (cont:isOpen()) do
  12. for spot = 0, cont:ItemCount() do
  13. local item = cont:GetItemData(spot)
  14. if (item.id == id and item.count >= cnt) then
  15. cont:MoveItemToGround(spot, Self.Position().x, Self.Position().y, Self.Position().z)
  16. return true
  17. end
  18. end
  19.  
  20. cont = cont:GetNext()
  21. end
  22.  
  23. return false
  24. end
  25.  
  26.  
  27. while (true) do
  28. if (dropItem(ManaType,ManasToDrop)) then
  29. wait(48000, 60000)
  30. else
  31. wait(2000)
  32. end
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement