Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local FLASK_ID = 285
- local TIME_BETWEEN_DROPS = {
- ["low"] = 10000,
- ["high"] = 20000
- }
- function dropItem(id)
- local cont = Container.GetFirst()
- while (cont:isOpen()) do
- for spot = 0, cont:ItemCount() do
- local item = cont:GetItemData(spot)
- if (item.id == id) then
- cont:MoveItemToGround(spot, Self.Position().x, Self.Position().y, Self.Position().z)
- return true
- end
- end
- cont = cont:GetNext()
- end
- return false
- end
- while (true) do
- dropItem(FLASK_ID)
- wait(TIME_BETWEEN_DROPS["low"], TIME_BETWEEN_DROPS["high"])
- end
Add Comment
Please, Sign In to add comment