function onStepOut(cid)
local speedtile = -50
doChangeSpeed(cid, -speedtile)
return true
end
function onStepOut(cid)
local speedtile = -50
doChangeSpeed(cid, -speedtile)
return true
end
Editado Junho 22 por Enself
info
Grupo: Visconde
Registrado: 10/02/11
Posts: 377
Reputação: +78

function onStepOut(cid) local speedtile = -50 doChangeSpeed(cid, -speedtile) return true endesta fazendo o speed ir a 100
e n volta ao q era antes de pisar no tile
Editado Junho 22 por rohfagundes
TENTA ESSE
speedchange = 50 function onStepIn(cid) doChangeSpeed(cid, getCreatureSpeed(cid) + speedchange) return true end function onStepOut(cid) doChangeSpeed(cid, getCreatureSpeed(cid) - speedchange) return true end
info
Grupo: Visconde
Registrado: 10/02/11
Posts: 377
Reputação: +78

TENTA ESSE
speedchange = 50 function onStepIn(cid) doChangeSpeed(cid, getCreatureSpeed(cid) + speedchange) return true end function onStepOut(cid) doChangeSpeed(cid, getCreatureSpeed(cid) - speedchange) return true end
agora ficou aumentando a velo em + de 100
info
Grupo: Príncipe
Registrado: 19/08/10
Posts: 4k
Reputação: +1.1k
Gênero: Masculino

local speedchange = 50 local sto = 865488 function onStepIn(cid) if not isPlayer(cid) then return true end setPlayerStorageValue(cid, sto, getCreatureSpeed(cid)) doChangeSpeed(cid, -getCreatureSpeed(cid)) doChangeSpeed(cid, speedchange) return true end function onStepOut(cid) if not isPlayer(cid) then return true end doChangeSpeed(cid, -getCreatureSpeed(cid)) local oldspeed = getPlayerStorageValue(cid, sto) == -1 and getCreatureBaseSpeed(cid) or getPlayerStorageValue(cid, sto) doChangeSpeed(cid, oldspeed) return true end
info
Grupo: Visconde
Registrado: 10/02/11
Posts: 377
Reputação: +78

funcionou vlw =D
+rep
duvida sanada e ja reportada
info
Grupo: Barão
Registrado: 31/07/09
Posts: 205
Reputação: +24
Gênero: Masculino

@slicer tem comu tu fazer uma dessas pra poketibia pq tah tenso akii
info
Grupo: Visconde
Registrado: 10/02/11
Posts: 377
Reputação: +78
Eae =)
eu comecei a fazer um script pra quando player pisar em tal tile ele ficar com 50 de speed
e fiz assim\/
ate ai ta certo ele diminui a velo de qualquer um a 50
só q n sei como fazer se ele sair desse tile
o speed do player voltar ao q era antes
alguem pode me dar uma ajuda nisso?
Editado Junho 22 por rohfagundes