SHOW:
|
|
- or go back to the newest paste.
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. |
1 | + | |
2 | - | Well it's more edit of the script well you can modify any script with getPlayerRebirth(cid) |
2 | + | |
3 | <movevent type="StepIn" actionid="1234" event="script" value="rebtile.lua"/> | |
4 | - | [CODE] |
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 |