Guest User

Untitled

a guest
Jul 16th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. -- Inq Door Script for Eternia from Saraahh!!
  2. function onUse(cid, item, fromPosition, itemEx, toPosition)
  3. local cidPosition = getCreaturePosition(cid)
  4. if (item.actionid == 5788 and getPlayerStorageValue(cid,11551) >= 1) then
  5. if cidPosition.x < toPosition.x then
  6. doTeleportThing(cid, {x=toPosition.x+1,y=toPosition.y,z=toPosition.z}, TRUE)
  7. else
  8. doTeleportThing(cid, {x=toPosition.x-1,y=toPosition.y,z=toPosition.z}, TRUE)
  9. end
  10. return TRUE
  11. else
  12. doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Sorry, but only people who have completed the Inquisition Quest can pass.")
  13. return TRUE
  14. end
  15. return FALSE
  16. end
Add Comment
Please, Sign In to add comment