Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- SETTING -------------------------------------------
- -----------------------------------------------------
- ManaType = 284
- ManasToDrop = 5
- -----------------------------------------------------
- -- END OF SETTING--------------------------------------
- function dropItem(id, cnt)
- local cont = Container.GetFirst()
- while (cont:isOpen()) do
- for spot = 0, cont:ItemCount() do
- local item = cont:GetItemData(spot)
- if (item.id == id and item.count >= cnt) 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
- if (dropItem(ManaType,ManasToDrop)) then
- wait(48000, 60000)
- else
- wait(2000)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement