Então mano, o problema é essa fórmula
local speed = getCreatureBaseSpeed(cid) + getSpeed(cid) * speedRate
alguns players entram e outros não, saca. Eu adicionei pra velocidade aumentar em relacão ao lvl e aparentemente funcionou
porém esse de baixo todos ficam com mesma velocidade independendo do lvl mas nao da erro
local speed = Playerspeed
Aqui todo código
function doregainspeed
function doRegainSpeed(cid)
if not isCreature(cid) then return true end
local speed = getCreatureBaseSpeed(cid) + getSpeed(cid) * speedRate
--local speed = Playerspeed
if isMonster(cid) then
speed = getSpeed(cid)
elseif isPlayer(cid) and isInArray({4, 5, 6}, getPlayerGroupId(cid)) then
speed = 200*getPlayerGroupId(cid)
end
doChangeSpeed(cid, -getCreatureSpeed(cid))
if getCreatureCondition(cid, CONDITION_PARALYZE) == true then
doRemoveCondition(cid, CONDITION_PARALYZE)
addEvent(doAddCondition, 10, cid, paralizeArea2)
end
doChangeSpeed(cid, speed)
return speed
end