Advertisement
GoalTV_

Otland Re Rebith Titles

Dec 12th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // That's For Title
  2.  
  3. <movevent type="StepIn" actionid="1234" event="script" value="rebtile.lua"/>
  4.  
  5.  
  6. function onStepIn(cid, item, position, fromPosition)
  7.         if getPlayerRebirth(cid) == 0 then
  8.             doTeleportThing(cid, fromPosition, FALSE)
  9.         end
  10. return true
  11. end
  12.  
  13. // Thats for reb doors
  14.  
  15. <action actionid="1234" event="script" value="rebdoor.lua"/>
  16.  
  17. function onUse(cid, item, frompos, item2, topos)
  18.         if getPlayerRebirth(cid) >= 1 then
  19.            pos = getPlayerPosition(cid)
  20.            if pos.x == topos.x then
  21.               if pos.y < topos.y then
  22.                  pos.y = topos.y + 1
  23.               else
  24.                  pos.y = topos.y - 1
  25.               end
  26.            elseif pos.y == topos.y then
  27.                   if pos.x < topos.x then
  28.                      pos.x = topos.x + 1
  29.                   else
  30.                      pos.x = topos.x - 1
  31.                   end
  32.            else
  33.                doPlayerSendTextMessage(cid,22,"Stand in front of the door.")
  34.            return true
  35.            end
  36.            doTeleportThing(cid,pos)
  37.            doSendMagicEffect(topos,12)
  38.         else
  39.            doPlayerSendTextMessage(cid,22,'Sorry You Need Have Rebirth 1 to enter here.')
  40.         end
  41.         return true
  42. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement