Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // That's For Title
- <movevent type="StepIn" actionid="1234" event="script" value="rebtile.lua"/>
- function onStepIn(cid, item, position, fromPosition)
- if getPlayerRebirth(cid) == 0 then
- doTeleportThing(cid, fromPosition, FALSE)
- end
- return true
- end
- // Thats for reb doors
- <action actionid="1234" event="script" value="rebdoor.lua"/>
- function onUse(cid, item, frompos, item2, topos)
- if getPlayerRebirth(cid) >= 1 then
- pos = getPlayerPosition(cid)
- if pos.x == topos.x then
- if pos.y < topos.y then
- pos.y = topos.y + 1
- else
- pos.y = topos.y - 1
- end
- elseif pos.y == topos.y then
- if pos.x < topos.x then
- pos.x = topos.x + 1
- else
- pos.x = topos.x - 1
- end
- else
- doPlayerSendTextMessage(cid,22,"Stand in front of the door.")
- return true
- end
- doTeleportThing(cid,pos)
- doSendMagicEffect(topos,12)
- else
- doPlayerSendTextMessage(cid,22,'Sorry You Need Have Rebirth 1 to enter here.')
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement