Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local config = {
- storage = 38477,
- position = {x = 1085, y = 1073, z = 10},
- time = 240 -- Uno secondas
- }
- function onUse(cid, item, frompos, item2, topos)
- if getGlobalStorageValue(config.storage) >= os.time() then
- doPlayerSendCancel(cid, "The coffin is empty.")
- else
- if item.actionid == 667 then
- doSummonCreature("Vampire", config.position)
- doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "A vampire have been awakened.")
- setGlobalStorageValue(config.storage, os.time() + config.time)
- end
- end
- return TRUE
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement