Would be super cool, does it affect performance a lot?I have a script in the "movements.xml" file that prevents the player from going up or down stairs. It has a 1 second interval in which it is allowed to descend or ascend. If you want I can send you the script. I also use this feature on my server.
function onStepIn(cid, item, position, fromPosition)
local storage = 89301
local delay = 2
if (getPlayerStorageValue(cid, storage) <= os.time()) then
setPlayerStorageValue(cid, storage, os.time()+delay)
return true
else
doTeleportThing(cid, fromPosition, false)
doPlayerSendCancel(cid, "Wait a moment to use this ladder.")
end
return true
end
<!-- ladder delay -->
<movevent event="StepIn" itemid="8281;459;8564;8565;8566;8560;8561;8562;8563;8559;6924;6923;6922;6918;6919;6920;6917;9574;480;5259;5260;3687;3688;9573;1388;1390;1392;1394;5258;6921;6130;6129;6128;411;423;4836;9846;432;433;4837;475;429;3138;8282;476;3219;3220;8283;479;4834;4835;7925;7924;1396;1385;8372;6915;6913;6911;6909;3685;3683;3681;8374;8376;8378" script="ladderdelay.lua"/>
stairJumpExhaustion = 2000
Doesnt workMaybe not exactly as you want but you can try to adjust the code to your needs:
config.lua
LUA:stairJumpExhaustion = 2000
![]()
forgottenserver/config.lua at 1.2 · otland/forgottenserver
A free and open-source MMORPG server emulator written in C++ - otland/forgottenservergithub.com
![]()
forgottenserver/src/player.cpp at 1.2 · otland/forgottenserver
A free and open-source MMORPG server emulator written in C++ - otland/forgottenservergithub.com