I have script "Aura" but i dosnt know why does not work :S
0 Reactions
Scrypts like this:
Can somebody help me ?
0 Reactions
Scrypts like this:
Lua:
local config =
{
[2] = {x = {
efe= 2,
hp= 25,
mn= 12,
efesum= 2
}
},
[31] = {x = {
efe= 14,
hp= 30,
mn= 20,
efesum= 16
}
},
}
function onThink(cid, interval)
addevent(aura, 2000)
end
function aura(player, creature, interval)
summon = config[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType]
if creature:isPlayer() then
creature:getPosition():sendMagicEffect(summon.x.efe)
creature:addHealth(summon.x.hp)
creature:addMana(summon.x.mn)
player:addManaSpent(player:getVocation():getRequiredManaSpent(player:getBaseMagicLevel() + summon.x.mp) - player:getManaSpent())
local summons = creature:getSummons()
for i = 1, #summons do
summons[i]:getPosition():sendMagicEffect(summon.x.efesum)
end
addevent(aura, 2000)
end
return true
end
Can somebody help me ?