Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. function onUse(cid, item, topos)
  2.     if getGlobalStorageValue(storage) ~= 1 then
  3.         doSummonCreautre("Vampire", {x = 1085, y = 1073, z = 10})
  4.         doPlayerSendTextMessage(cid, 22, "A vampire have been awakened.")
  5.         setGlobalStorageValue(storage, 1)
  6.         addEvent(setGlobalStorageValue, 240*1000, storage, 0)
  7.     else
  8.         doPlayerSendCancel(cid, "The coffin is empty.")
  9.     end
  10.     return true
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement