#GoodLuck.
function onSay(cid, words, param)
local speedGain = 100
local vocs = {
[1] = 538,
[2] = 585,
[3] = 536,
}
if not vocs[getPlayerVocation(cid)] then
return true
end
if getPlayerStorageValue(cid, 9330) < 1 then
doCreatureSetNoMove(cid, true)
setPlayerStorageValue(cid, 9330, 1)
speed(cid, speedGain, 2)
doSetCreatureOutfit(cid, {lookType = vocs[getPlayerVocation(cid)]}, -1)
elseif getPlayerStorageValue(cid, 9330) >= 1 then
doCreatureSetNoMove(cid, false)
setPlayerStorageValue(cid, 9330, -1)
doRemoveCondition(cid, CONDITION_OUTFIT)
end
return true
end
function speed(uid, speed, mlose)
if not isPlayer(uid) then
return true
end
if getCreatureMana(uid) < mlose then
return true
end
if getPlayerStorageValue(uid, 9330) < 1 then
return true
end
doCreatureAddMana(uid, -mlose)
doChangeSpeed(uid, getCreatureSpeed(uid) + speed)
return addEvent(speed, 1 * 1500, uid, speed)
end







info
Grupo: Visconde
Registrado: 08/10/11
Posts: 444
Reputação: +71
Gênero: Feminino
Char no Tibia: No Have.
Gostaria que quando o player fala-se "Run" certa vocação muda-se para outra looktype e depois de falar "Run" volta-se a looktype normal.
(OBS: quero que perca 2 pontos de mana por segundo enquanto estiver usando "RUN" e ganhar + 100 de speed)
Tem esse script do Roksas e do Vodkart , se der para usar como base .
Editado Agosto 17 por DarkHeel