tag :
<instant name="NOME DA MAGIA" words="FALA PRA ELA FAZER" lvl="16" mana="20" prem="1" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="10000" needlearn="0" event="script" value="NOME DO ARQUIVO LUA"> <vocation id="1"/> <vocation id="5"/> </instant>
spell :
local conf = {
summon = {"Warlock", "Warlock", "Warlock", "Warlock"}, -- nome dos 4 monstros que irão aparecer.
min = 100, -- dano minimo de cada SD
max = 200, -- dano maximo de cada SD
}
local summon = {
monster = function (cid, tab)
for _, mid in pairs(tab) do
s = doSummonCreature(mid, getThingPos(cid))
doConvinceCreature(cid, s)
end
end,
attack = function (cid, target, min, max)
for _, summon in pairs(getCreatureSummons(cid)) do
doSendDistanceShoot(getThingPos(summon), getThingPos(target), CONST_ANI_SUDDENDEATH)
doAreaCombatHealth(summon, COMBAT_DEATHDAMAGE, getThingPos(target), 0, -min, -max, CONST_ME_MORTAREA)
end
end,
remove = function (cid)
for _, summon in pairs(getCreatureSummons(cid)) do
doRemoveCreature(summon)
end
end,
}
function onCastSpell(cid, var)
local target = getCreatureTarget(cid)
if target then
summon.monster(cid, conf.summon)
addEvent(summon.attack, 1000, cid, target, conf.min, conf.max)
addEvent(summon.remove, 2000, cid)
end
return true
end
configurações no arquivo,
obs: não testei, estou sem pc, qualquer coisa fala ai
CERTIFIQUE QUE OS MONSTRO QUE VC USAR, VÃO ESTAR CONVICIABLE.





info
Grupo: Campones
Registrado: 11/08/11
Posts: 7
Reputação: 0
Char no Tibia: Lord Jefe
Ae Galera Do XTibia só novo aqui então se não for área certa me avisem.
Quero adicionar no meu ot serv uma magia novo.
Descrição:É para mages aonde o mage com magia sumona 4 bixos eles atacam 1 sd cada 1 e some.
Agradeço desde ja.