Advertisement
Guest User

Reb OTS

a guest
Dec 12th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.54 KB | None | 0 0
  1. You will need probably to make action id For the title or door I have given you some examples below I'm not sure if this work as I just made it now on the go.
  2. Well it's more edit of the script well you can modify any script with getPlayerRebirth(cid)
  3.  
  4. [CODE]
  5. // That's For Title
  6.  
  7. <movevent type="StepIn" actionid="1234" event="script" value="rebtile.lua"/>
  8.  
  9.  
  10. function onStepIn(cid, item, position, fromPosition)
  11.         if getPlayerRebirth(cid) == 0 then
  12.             doTeleportThing(cid, fromPosition, FALSE)
  13.         end
  14. return true
  15. end
  16.  
  17. // Thats for reb doors
  18.  
  19. <action actionid="1234" event="script" value="rebdoor.lua"/>
  20.  
  21. function onUse(cid, item, frompos, item2, topos)
  22.         if getPlayerRebirth(cid) >= 1 then
  23.            pos = getPlayerPosition(cid)
  24.            if pos.x == topos.x then
  25.               if pos.y < topos.y then
  26.                  pos.y = topos.y + 1
  27.               else
  28.                  pos.y = topos.y - 1
  29.               end
  30.            elseif pos.y == topos.y then
  31.                   if pos.x < topos.x then
  32.                      pos.x = topos.x + 1
  33.                   else
  34.                      pos.x = topos.x - 1
  35.                   end
  36.            else
  37.                doPlayerSendTextMessage(cid,22,"Stand in front of the door.")
  38.            return true
  39.            end
  40.            doTeleportThing(cid,pos)
  41.            doSendMagicEffect(topos,12)
  42.         else
  43.            doPlayerSendTextMessage(cid,22,'Sorry You Need Have Rebirth 1 to enter here.')
  44.         end
  45.         return true
  46. end[/CODE]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement