| | #1 (permalink) |
| Challenge for skilled scripter! Hey im looking for a script that will push a player back to x location if they try to enter y portal... The point of the portal is to prevent botting in my new players area... where it is non pvp..... and maybe even a script that will kick the player from the noob area when he reaches a certain level? | |
| | |
| | #2 (permalink) |
|
Although i don't really get what you want this for, since this will stop all players from entering the portal, but here you go lol Lua Code: function onStepIn(cid, item, position, fromPosition) | |
| | |
| | #3 (permalink) |
| Lua Code: function onStepIn(cid, item, position, fromPosition) Lua Code: local levelLimit = 100 | |
| | |
| | #5 (permalink) |
|
Create a file called tp_back.lua in data/movements/scripts and add this: Lua Code: function onStepIn(cid, item, position, fromPosition) Lua Code:
<movevent type="StepIn" actionid="12000" event="script" value="tp_back.lua"/> Other script Create a file called level_tp.lua in data/creaturescripts/scripts and add this: Lua Code:
local levelLimit = 100 Lua Code:
<event type="advance" name="LevelTP" event="script" value="level_tp.lua"/> (Under function onLogin(cid)) Lua Code:
registerCreatureEvent(cid, "LevelTP") Lua Code: local fromPosition = { x = 100, y = 100, z = 7 } --from position of the area | |
| | |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |