marcos16
Falkhonn
- Joined
- May 4, 2012
- Messages
- 224
- Reaction score
- 1
Hello!
I am using the following script to reduce my server speed . But ... when the player moves the level he gets speed 0 , does anyone know why ?
Following is the script:
I'm using svn Tfs 3884
I am using the following script to reduce my server speed . But ... when the player moves the level he gets speed 0 , does anyone know why ?
Following is the script:
local info = {
[10] = {speed = 250},
[50] = {speed = 280},
[100] = {speed = 340},
[200] = {speed = 380},
[300] = {speed = 480},
[400] = {speed = 580}
}
function onAdvance(cid, skill, oldLevel, newLevel)
for level, x in pairs(info) do
if skill == 8 and newLevel >= level then
doChangeSpeed(cid, -getCreatureSpeed(cid))
doChangeSpeed(cid, info.speed)
end
end
return 1
end
I'm using svn Tfs 3884