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

Set player speed to XXX when entering title with itemID X?

Flipparn

I like horses
Joined
Feb 19, 2008
Messages
89
Reaction score
21
I'm going to have a race event on my server, and I was wondering if it is possible to set someones speed to, say, 100 when entering, for example, itemID 231?

Example;
Player1 is level 250.
Player2 is level 175.
Player3 is level 20.
Player 1&2&3 walks on itemID 231 and they are now at the same speed as eachother.

It would also, obviously, have to reset their speed to normal on stepout.

Any ideas?
 
ah, i found another way...
Set my speed with the Level Speed formula hehe

function getSpeed(cid)
return (220 +(2 *(getPlayerLevel(cid)-1)))
end
function doResetSpeed(cid)
doRemoveCondition(cid, CONDITION_HASTE)
doChangeSpeed(cid, getSpeed(cid) - getCreatureSpeed(cid) )
return TRUE
end
 
Back
Top