Guest User

Untitled

a guest
Jun 20th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.67 KB | None | 0 0
  1. local FLASK_ID = 285
  2. local TIME_BETWEEN_DROPS = {
  3.     ["low"] = 10000,
  4.     ["high"] = 20000
  5.     }
  6.  
  7. function dropItem(id)
  8.  
  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) then
  15.                 cont:MoveItemToGround(spot, Self.Position().x, Self.Position().y, Self.Position().z)
  16.                 return true
  17.             end
  18.         end
  19.             cont = cont:GetNext()
  20.     end
  21.     return false
  22. end
  23.  
  24.  
  25. while (true) do
  26.     dropItem(FLASK_ID)
  27.     wait(TIME_BETWEEN_DROPS["low"], TIME_BETWEEN_DROPS["high"])
  28. end
Add Comment
Please, Sign In to add comment