marcos16
Falkhonn
- Joined
- May 4, 2012
- Messages
- 224
- Reaction score
- 1
My server is made for low speed.
I'm using a speed of script, but I'm having a lot of problems with it.
I wonder if you have any way to modify the source, that certainly would be less error.
Following is the script that I am using:
I'm using a speed of script, but I'm having a lot of problems with it.
I wonder if you have any way to modify the source, that certainly would be less error.
Following is the script that I am using:
Code:
local info = {
[{10, 49}] = {speed = 250},
[{50, 100}] = {speed = 290},
[{101, 149}] = {speed = 340},
[{150, 249}] = {speed = 360},
[{250, 300}] = {speed = 380},
[{301, 4000}] = {speed = 400}
}
function onLogin(cid, skill, oldLevel, newLevel)
for level, x in pairs(info) do
if skill == 8 and newLevel >= level[1] and newLevel <= level[2] then
doChangeSpeed(cid, -getCreatureBaseSpeed(cid))
doChangeSpeed(cid, x.speed)
doCreatureSetStorage(cid, 30029, x.speed)
end
end
return 1
end