Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Inq Door Script for Eternia from Saraahh!!
- function onUse(cid, item, fromPosition, itemEx, toPosition)
- local cidPosition = getCreaturePosition(cid)
- if (item.actionid == 5788 and getPlayerStorageValue(cid,11551) >= 1) then
- if cidPosition.x < toPosition.x then
- doTeleportThing(cid, {x=toPosition.x+1,y=toPosition.y,z=toPosition.z}, TRUE)
- else
- doTeleportThing(cid, {x=toPosition.x-1,y=toPosition.y,z=toPosition.z}, TRUE)
- end
- return TRUE
- else
- doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Sorry, but only people who have completed the Inquisition Quest can pass.")
- return TRUE
- end
- return FALSE
- end
Add Comment
Please, Sign In to add comment