Advertisement
Skymagnum

Untitled

May 10th, 2013
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. function onUse(cid, item, fromPosition, itemEx, toPosition)
  2.  
  3.  
  4. local doorID = 9999
  5. local doorID_OPEN = 9999
  6.  
  7.     local seconds = 10
  8.  
  9.     if itemEx.itemid == doorID then
  10.         addEvent(doTransformItem, seconds * 1000, item.uid, doorID)
  11.         doTransformItem(item.uid, doorID_OPEN)
  12.     else
  13.         doPlayerSendTextMessage(cid, 27, "Sorry, wrong key.")
  14.     end
  15.  
  16.     return true
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement