• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[TFS 1.2] How to make delay to stack stairs if you have pz

SixNine

Active Member
Joined
Dec 12, 2018
Messages
452
Reaction score
41
TFS 1.2
How can i make if you have pz or pk you would have delay to kite trough stairs because its super annoying if you trying to kill someone with pk or pz and they just running trough stairs every single time
 
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.
 
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.
Would be super cool, does it affect performance a lot?
 
I don't notice the performance, test it to see if it's good or bad and let me know here.

Lua:
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

Lua:
<!-- 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"/>



I set a time of 2 seconds to allow the player to go down or up the ladder.
 
Back
Top