• 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!

Lua Character speed

deviant motive

New Member
Joined
Jul 9, 2009
Messages
60
Reaction score
0
Hi, my question is:

Is it possible to disable the raise of speed of character when his lvl grows up? I want all characters to have one speed not changeable (only rings etc.)
 
Code:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Capped player speed" enabled="yes">
	<event type="login" name="Speed" event="script"><![CDATA[
		local speed = 220

		function onLogin(cid)
			if getPlayerGroupId(cid) < 4 then
				doChangeSpeed(cid, speed - getCreatureBaseSpeed(cid))
			end
			return true
		end
	]]></event>
</mod>
 
an alternative for 0.2.x series?
-EDIT-
Nevermind, Solve it
speed.lua on creaturescripts
Code:
local speed = 220

		function onLogin(cid)
			if getPlayerGroupId(cid) < 4 then
				doChangeSpeed(cid, speed - getCreatureBaseSpeed(cid))
			end
			return true
		end
works like a charm, Ty Cyko
 
Last edited:
Back
Top