Hi otlanders,I have a simple script on animation for players. I don't know why animation don't be show on player, maybe someone know how fix it?
Thanks for help
Laron
PHP:
local Trans = {
{["voc"] = 1, ["newVoc"] = 2, ["looktype"] = 5, ["level"] = 50, ["rage"] = 3, ["kiToTrans"] = 10, ["addHp"] = 200, ["addKi"] = 150, ["effectOn"] = 2, ["aura"] = 0, ["text"] = "You have reverted.", ["constant"] = false},
{["voc"] = 2, ["newVoc"] = 3, ["looktype"] = 6, ["level"] = 130, ["rage"] = 5, ["kiToTrans"] = 15, ["addHp"] = 450, ["addKi"] = 300, ["effectOn"] = 2, ["aura"] = 0, ["text"] = "You have reverted.", ["constant"] = false},
{["voc"] = 3, ["newVoc"] = 4, ["looktype"] = 7, ["level"] = 180, ["rage"] = 8, ["kiToTrans"] = 20, ["addHp"] = 1600, ["addKi"] = 900, ["effectOn"] = 2, ["aura"] = 104, ["text"] = "You have reverted.", ["constant"] = false},
{["voc"] = 4, ["newVoc"] = 5, ["looktype"] = 8, ["level"] = 270, ["rage"] = 12, ["kiToTrans"] = 25, ["addHp"] = 2900, ["addKi"] = 2700, ["effectOn"] = 2, ["aura"] = 104, ["text"] = "You have reverted.", ["constant"] = false},
{["voc"] = 5, ["newVoc"] = 6, ["looktype"] = 10, ["level"] = 350, ["rage"] = 15, ["kiToTrans"] = 30, ["addHp"] = 4000, ["addKi"] = 4000, ["effectOn"] = 2, ["aura"] = 105, ["text"] = "You have reverted.", ["constant"] = false}
}
function onThink(interval, lastExecution, thinkInterval)
local players = {}
for _, i in pairs(getPlayersOnline()) do
table.insert(players, i)
end
-------------
for k, v in pairs(players) do
for i = 1, #Trans do
if (Trans[i].newVoc == getPlayerVocation(v)) then
if Trans[i].aura > 0 then
doSendMagicEffect(getCreaturePosition(v), Trans[i].aura)
end
doPlayerAddMana(v, -Trans[i].kiToTrans, false)
return true
end
end
end
return true
end
Thanks for help
Laron