o script q muda a velocidade é esse :
function onSay(cid, words, param, channel)
playerpos = getCreaturePosition(cid)
pos = getCreaturePosition(cid)
flyoutfit = {lookType = 34, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}
if getCreatureCondition(cid, CONDITION_INFIGHT) == true then
doPlayerSendCancel(cid, "Sorry, you are in battle.")
elseif getTilePzInfo(pos) == true then
doPlayerSendCancel(cid, "Você nao pode voar aqui.")
elseif getPlayerStorageValue(cid,1234) == 1 then
doPlayerSendCancel(cid, "Você já está voando.")
elseif getPlayerMana(cid) > 199 then
doSendMagicEffect(playerpos, 10)
doSetCreatureOutfit(cid, flyoutfit, -1)
doPlayerAddMana(cid,-200)
setPlayerStorageValue(cid,1234,1)
doChangeSpeed (cid, 1500)
else
doPlayerSendCancel(cid, "Você não pode fazer isso.")
end
return TRUE
end
e o q volta na velocidade é esse (eu tentei mudar aki mas n consegui o efeito esperado)
function onSay(cid, words, param, channel)
playerpos = getCreaturePosition(cid)
if getTileItemById(playerpos, 11154) == False then
doPlayerSendCancel(cid, "Você nao pode descer aqui.")
elseif getPlayerStorageValue(cid,1234) == 1 then
doSendMagicEffect(playerpos, 10)
doRemoveCondition(cid, CONDITION_OUTFIT)
doChangeSpeed(cid, 500)
setPlayerStorageValue(cid,1234,0)
else
doPlayerSendCancel(cid, "você não pode fazer isso.")
end
return TRUE
end
obs : a velocidade tem q ser por tempo indeterminado