• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua Incrase player speed

Faraonekkk

New Member
Joined
Feb 15, 2010
Messages
686
Reaction score
4
in tfs 0.3.6 is any storage value to incrase player speed? or any ideas how to make it?
 
LUA:
local addSpeed = 300
doChangeSpeed(cid, (-getCreatureSpeed(cid)+getCreatureBaseSpeed(cid)+addSpeed))
Here to remove speed:
LUA:
local delSpeed = 300
doChangeSpeed(cid, (-getCreatureSpeed(cid)+getCreatureBaseSpeed(cid)-delSpeed))

that will change the speed based on the BaseSpeed which is the normal speed, to just do normal adding i think it would be like this
LUA:
doChangeSpeed(cid, (getCreatureSpeed(cid)+addSpeed))
 
LUA:
doChangeSpeed(cid, delta)
So
LUA:
doChangeSpeed(cid, 30)
x (basic speed) + 30
LUA:
doChangeSpeed(cid, -30)
x (basic speed) - 30
 
Milice is right....

@Milice: i want to know if you could pass me a document, i know you have, called "sql", that you use to hack some server's web pages.... Could you give it to me?


EDIT: My error, Ralcoral ir right, Milice is wrong.... The function is doChangeSpeed(cid, delta)... Delta, in mathematics, means "difference" between a before and after state.... So if you put 30, it will add +30 to speed... xDDD
 
Last edited:
Milice is wrong actually, if you make something like:

LUA:
doChangeSpeed(cid,30)
your speed will be:

LUA:
getCreatureBaseSpeed(cid)+30

Also, if you relog, you lose the current speed and back to the basespeed.
And yes, I made the test. I'm 100% sure about it.
 
Back
Top