Fiz as duas spells bem rápido aqui, então qualquer erro, só postar.
Revenge:
PS: Como não foi informado o intervalo de tempo entre os ataques, coloquei 500 milésimos.
elseif spell == "Revenge" then
local effs = {92, 93, 99, 94, 93}
for i = 1, #effs do
addEvent(function()
if not isCreature(cid) then return true end
doAreaCombatHealth(cid, FIGHTINGDAMAGE, getThingPosWithDebug(cid), splash, -min, -max, 0)
doSendMagicEffect(getThingPos(cid), effs[i])
end, i * 500)
end
elseif spell == "Protection" then
local duel_sto_1 = xxx --Storage de duel.
local duel_sto_2 = xxx --Storage de duel.
local pvp_sto_1 = xxx --Storage de PvP.
local pvp_sto_2 = xxx --Storage de PvP.
local duration = 8 --Duração do buff.
local eff = 117
local ret = {}
local function isMonster(cid)
if isCreature(cid) then
if not isPlayer(cid) and not isSummon(cid) and not ehNPC(cid) then
return true
else
return false
end
end
return nil
end
local spec = getSpectators(getThingPos(cid), 5, 5, false)
for i = 1, #spec do
if isSummon(cid) then
local owner = getCreatureMaster(cid)
if isSummon(spec[i]) or isPlayer(spec[i]) then
if getPlayerStorageValue(owner, duel_sto_1) >= 1 then
if getPlayerStorageValue(getCreatureMaster(spec[i]), duel_sto_2) >= 1 then
table.remove(spec, i)
end
elseif getPlayerStorageValue(owner, duel_sto_2) >= 1 then
if getPlayerStorageValue(getCreatureMaster(spec[i]), duel_sto_1) >= 1 then
table.remove(spec, i)
end
elseif getPlayerStorageValue(owner, pvp_sto_2) >= 1 then
if getPlayerStorageValue(getCreatureMaster(spec[i]), pvp_sto_1) >= 1 then
table.remove(spec, i)
end
elseif getPlayerStorageValue(owner, pvp_sto_1) >= 1 then
if getPlayerStorageValue(getCreatureMaster(spec[i]), pvp_sto_2) >= 1 then
table.remove(spec, i)
end
end
elseif isMonster(spec[i]) then
table.remove(spec, i)
end
end
end
for i = 1, #spec do
ret.id = spec[i]
ret.cd = duration
ret.eff = eff
ret.check = 0
ret.buff = spell
ret.first = true
doCondition2(ret)
end
elseif buff == "Protection" then
doRaiseStatus(cid, 0, 2, 0, a) --Estará buffando a mesma quantia de def que o Harden. Altere no valor "2".







info
Grupo: Infante
Registrado: 28/01/12
Posts: 1.6k
Reputação: +262
Gênero: Masculino
Bah noite moçada.
Venho pedir + 2 moves para meu servidor, Revenge e Protection.
Segue a imagem do Revenge: (PS: nao repare kkk. Tavo no TG msm hahahaha, aproveitar que ta liberado.)
Efeitos:
Move Protection.
Esse move, ele da uns % a mais de defesa para quem estiver perto (player e no poke) com tempo para acabar.
O efeito ficará no poke que soltou a spell e em quem ta por perto. (Se for possivel fazer isso)
Claro que nao irá dar essa proteçao em quem estiver no time adversario no pvp e duelo.
Rep+, qualquer duvida sobre eles, só perguntar.
Editado Fevereiro 16 por FlamesAdmin