Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onUse(cid, item, fromPosition, itemEx, toPosition)
- local player = Player(cid)
- if not item.actionid == 1234 then
- return true
- end
- if player:getStorageValue(12345) > 0 then
- player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You need to wait" .. player:getStorageValue(12345) .. "before you can use it again.")
- player:sendMagicEffect(player(cid):getPosition(), CONST_ME_POFF)
- else
- player:addItem(22718, 1)
- player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have found a tinder box.")
- player:setStorageValue(12345, os.time(20*60*60))
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement