Ir para conteúdo
  • Cadastre-se

[HELP] SPELL QUE PARA SER USADA PRECISA DE UM ITEM


Posts Recomendados

Olá, boa noite... Preciso de uma ajudinha de vocês. Preciso criar uma magia que só seja utilizada se um player estiver com um determinado item, REP +                                                        

 

 

:amem:

Link para o post
Compartilhar em outros sites

Esta é uma mensagem automática! Este tópico foi movido para a área correta.
Pedimos que você leia as regras do fórum.

Spoiler

This is an automated message! This topic has been moved to the correct area.
Please read the forum rules.

 

                                                              ezgif-1-98aab239f3.gif.1a897c9c3225228909e7b356a5cfb8e4.gif

Link para o post
Compartilhar em outros sites

@Demonio007, leia as regras do fórum, por favor:

2.7 - Dar "UP" para subir tópicos:
É totalmente proibido comentar "UP" para subir tópicos, caso você tenha a intenção você pode utilizar nosso recurso de subir tópicos e ele automaticamente irá te colocar um tempo de espera de 24 horas para realizar a função novamente. Caso o membro realize tal ato isso pode ser interpretado como flood.

Regras Gerais: http://www.tibiaking.com/forum/forums/topic/1281-regras-gerais/

 

Link para o post
Compartilhar em outros sites

@Demonio007 script da spell:

Spoiler

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -4.2, 1, -4.2, 1)

function onCastSpell(cid, var)

local itemid = 2160 -- item que precisa pra usar essa spell

if getPlayerItemCount(cid, itemid) >= 1 then
doSendMagicEffect(getCreaturePosition(getCreatureTarget(cid)), 352)
return doCombat(cid, combat, var)
else
return false, doPlayerSendCancel(cid, "Você precisa do item: 'Grelho de Puta' para poder usar esse poder.")
end
end

 

 

spells.xml:

<instant name="Spell" words="spell" lvl="1" mana="1" prem="0" exhaustion="10" enabled="1" needtarget="1" event="script" value="arquivo.lua">
  <vocation id="1"/>
</instant>

 

                                                              ezgif-1-98aab239f3.gif.1a897c9c3225228909e7b356a5cfb8e4.gif

Link para o post
Compartilhar em outros sites

@Demonio007 depende, as funções mesmo, getCreaturePosition(getCreatureTarget(cid)

ela pega a posição de um player/monstro através do target, sem o needTarget na tag xml, e você fosse usar em você mesmo, daria erro Thing_not_found,

 

então depende da spell que você quer, essa ae é de atk.

 

Essa spell sem needTarget, serve pra quê ? Atk, suporte, oquê  ?

 

O needTarget vai na tag.xml  needtarget="1" mudando para 0 ou removendo, não precisará de target. 

                                                              ezgif-1-98aab239f3.gif.1a897c9c3225228909e7b356a5cfb8e4.gif

Link para o post
Compartilhar em outros sites

@Demonio007 bom, só fixando o que falei, depende das funções contidas no scripts, tem funções que precisam de um target, mas é só fazer o script usando forma diferente, nada é impossível, por isso perguntei como seria seu outro pedido, e iria fazer com a mesma tática, porém usando uma forma diferente.

 

Abraços e boa noite! 

                                                              ezgif-1-98aab239f3.gif.1a897c9c3225228909e7b356a5cfb8e4.gif

Link para o post
Compartilhar em outros sites

@KotZletY 

local spellConfig = {
        {effect = CONST_ME_GIANTICE,
         area = createCombatArea({
                {1, 1, 1},
                {1, 3, 1},
                {1, 1, 1}})
        },
        {effect = CONST_ME_WATERSPLASH,
         area = createCombatArea({
                {0, 1, 0, 0, 0},
                {1, 0, 0, 1, 0},
                {0, 0, 3, 0, 0},
                {0, 0, 1, 0, 1},
                {1, 0, 0, 1, 0}})
        },
        {effect = CONST_ME_GIANTICE,
         area = createCombatArea({
                {0, 0, 1, 0, 1},
                {1, 0, 0, 0, 1},
                {0, 0, 3, 1, 0},
                {0, 1, 0, 0, 1},
                {1, 0, 1, 0, 0}})
        },
        {effect = CONST_ME_SMOKE,
         area = createCombatArea({
                {0, 0, 1, 0, 1},
                {1, 0, 0, 0, 1},
                {0, 0, 3, 1, 0},
                {0, 1, 0, 0, 1},
                {1, 0, 1, 0, 0}})
        },
        {effect = CONST_ME_WATERSPLASH,
         area = createCombatArea({
                {0, 0, 1, 0, 1, 0, 0},
                {0, 0, 0, 0, 0, 1, 0},
                {1, 0, 0, 0, 0, 0, 1},
                {0, 0, 1, 3, 1, 0, 0},
                {1, 0, 0, 0, 0, 0, 1},
                {0, 0, 1, 0, 0, 0, 0},
                {0, 0, 1, 0, 1, 0, 0}})
        },
        {effect = CONST_ME_SMOKE,
         area = createCombatArea({
                {0, 0, 1, 0, 1, 0, 0},
                {0, 1, 0, 1, 0, 1, 0},
                {1, 0, 1, 0, 0, 0, 1},
                {0, 0, 0, 3, 1, 0, 0},
                {0, 1, 0, 0, 0, 0, 1},
                {1, 0, 0, 1, 0, 1, 0},
                {0, 0, 1, 0, 1, 0, 0}})
        },
        {effect = CONST_ME_WATERSPLASH,
         area = createCombatArea({
                {0, 0, 1, 0, 1, 0, 0},
                {0, 1, 0, 1, 0, 1, 0},
                {1, 0, 1, 0, 0, 0, 1},
                {0, 0, 0, 3, 1, 0, 0},
                {0, 1, 0, 0, 0, 0, 1},
                {1, 0, 0, 1, 0, 1, 0},
                {0, 0, 1, 0, 1, 0, 0}})
        }
}

local combats = {}
for k, config in ipairs(spellConfig) do
        combats[k] = createCombatObject()
                onTargetTile = function(cid, pos)
                        local basePos = getThingPosition(cid)
                        local fromPos = {x=basePos.x-6, y=basePos.y-8, z=basePos.z}
                        doSendDistanceShoot(fromPos, pos, CONST_ANI_SNOWBALL)
                end
                setCombatCallback(combats[k], CALLBACK_PARAM_TARGETTILE, "onTargetTile")
                setCombatParam(combats[k], COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
                setCombatParam(combats[k], COMBAT_PARAM_EFFECT, config.effect)
                setCombatFormula(combats[k], COMBAT_FORMULA_DAMAGE, -500, -500, -500, -500)
                setCombatArea(combats[k], config.area)
end

local function castingSpellTime(p)
        if(isCreature(p[1]) == TRUE) then
                doCombat(unpack(p))
        end
end
function onCastSpell(cid, var)
        for k, combat in ipairs(combats) do
                addEvent(castingSpellTime, (250*k), {cid, combat, var})
        end        
        if isMonster(cid) then
        doCreatureSay(cid, "METEORO DE PEGASUS!", TALKTYPE_MONSTER)
    end    
    return true
end

@KotZletY tentei por a sua action em uma magia do meu server so que nao esta funfando

aqui o script :

 

 

local acombat = createCombatObject()

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, 1)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 255)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -5.6,-400, -35.5, 350)

local arr = {
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}
}
local area = createCombatArea(arr)
setCombatArea(acombat, area)

function onTargetTile(cid, pos)
rand = math.random(1 ,8)
if rand == 1 then
npos = {x = pos.x + 1, y = pos.y, z = pos.z}
elseif rand == 2 then
npos = {x = pos.x - 1, y = pos.y, z = pos.z}
elseif rand == 3 then
npos = {x = pos.x, y = pos.y + 1, z = pos.z}
elseif rand == 4 then
npos = {x = pos.x, y = pos.y - 1, z = pos.z}
elseif rand == 5 then
npos = {x = pos.x - 1, y = pos.y + 1, z = pos.z}
elseif rand == 6 then
npos = {x = pos.x + 1, y = pos.y + 1, z = pos.z}
elseif rand == 7 then
npos = {x = pos.x - 1, y = pos.y - 1, z = pos.z}
elseif rand == 8 then
npos = {x = pos.x + 1, y = pos.y - 1, z = pos.z}
end
doSendDistanceShoot(npos, pos, 27)
doCombat(cid,combat,positionToVariant(pos))
end

setCombatCallback(acombat, CALLBACK_PARAM_TARGETTILE, "onTargetTile")

function onCastSpell(cid, var)

local itemid = 2160 -- item que precisa pra usar essa spell

if getPlayerItemCount(cid, itemid) >= 1 then
doSendMagicEffect(getCreaturePosition(getCreatureTarget(cid)), 352)
return doCombat(cid, combat, var)
else
return false, doPlayerSendCancel(cid, "Você precisa do item: 'Grelho de Puta' para poder usar esse poder.")
end
end

Link para o post
Compartilhar em outros sites
Spoiler

local spellConfig = {
        {effect = CONST_ME_GIANTICE,
         area = createCombatArea({
                {1, 1, 1},
                {1, 3, 1},
                {1, 1, 1}})
        },
        {effect = CONST_ME_WATERSPLASH,
         area = createCombatArea({
                {0, 1, 0, 0, 0},
                {1, 0, 0, 1, 0},
                {0, 0, 3, 0, 0},
                {0, 0, 1, 0, 1},
                {1, 0, 0, 1, 0}})
        },
        {effect = CONST_ME_GIANTICE,
         area = createCombatArea({
                {0, 0, 1, 0, 1},
                {1, 0, 0, 0, 1},
                {0, 0, 3, 1, 0},
                {0, 1, 0, 0, 1},
                {1, 0, 1, 0, 0}})
        },
        {effect = CONST_ME_SMOKE,
         area = createCombatArea({
                {0, 0, 1, 0, 1},
                {1, 0, 0, 0, 1},
                {0, 0, 3, 1, 0},
                {0, 1, 0, 0, 1},
                {1, 0, 1, 0, 0}})
        },
        {effect = CONST_ME_WATERSPLASH,
         area = createCombatArea({
                {0, 0, 1, 0, 1, 0, 0},
                {0, 0, 0, 0, 0, 1, 0},
                {1, 0, 0, 0, 0, 0, 1},
                {0, 0, 1, 3, 1, 0, 0},
                {1, 0, 0, 0, 0, 0, 1},
                {0, 0, 1, 0, 0, 0, 0},
                {0, 0, 1, 0, 1, 0, 0}})
        },
        {effect = CONST_ME_SMOKE,
         area = createCombatArea({
                {0, 0, 1, 0, 1, 0, 0},
                {0, 1, 0, 1, 0, 1, 0},
                {1, 0, 1, 0, 0, 0, 1},
                {0, 0, 0, 3, 1, 0, 0},
                {0, 1, 0, 0, 0, 0, 1},
                {1, 0, 0, 1, 0, 1, 0},
                {0, 0, 1, 0, 1, 0, 0}})
        },
        {effect = CONST_ME_WATERSPLASH,
         area = createCombatArea({
                {0, 0, 1, 0, 1, 0, 0},
                {0, 1, 0, 1, 0, 1, 0},
                {1, 0, 1, 0, 0, 0, 1},
                {0, 0, 0, 3, 1, 0, 0},
                {0, 1, 0, 0, 0, 0, 1},
                {1, 0, 0, 1, 0, 1, 0},
                {0, 0, 1, 0, 1, 0, 0}})
        }
}

local combats = {}
for k, config in ipairs(spellConfig) do
        combats[k] = createCombatObject()
                onTargetTile = function(cid, pos)
                        local basePos = getThingPosition(cid)
                        local fromPos = {x=basePos.x-6, y=basePos.y-8, z=basePos.z}
                        doSendDistanceShoot(fromPos, pos, CONST_ANI_SNOWBALL)
                end
                setCombatCallback(combats[k], CALLBACK_PARAM_TARGETTILE, "onTargetTile")
                setCombatParam(combats[k], COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
                setCombatParam(combats[k], COMBAT_PARAM_EFFECT, config.effect)
                setCombatFormula(combats[k], COMBAT_FORMULA_DAMAGE, -500, -500, -500, -500)
                setCombatArea(combats[k], config.area)
end

local function castingSpellTime(p)
        if(isCreature(p[1]) == TRUE) then
                doCombat(unpack(p))
        end
end
function onCastSpell(cid, var)
        for k, combat in ipairs(combats) do
                addEvent(castingSpellTime, (250*k), {cid, combat, var})
        end        
        if isCreature(cid) then
        doCreatureSay(cid, "METEORO DE PEGASUS!", TALKTYPE_MONSTER)
    end    
    return true
end

Tenta assim

Link para o post
Compartilhar em outros sites

@Radamanthys Wov funcionou, obg... sera que poderia fazer com mais essas duas:

 

1

 

local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_GIANTICE)
setCombatFormula(combat1, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_GIANTICE)
setCombatFormula(combat2, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, CONST_ME_GIANTICE)
setCombatFormula(combat3, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat4 = createCombatObject()
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat4, COMBAT_PARAM_EFFECT, CONST_ME_GIANTICE)
setCombatFormula(combat4, COMBAT_FORMULA_DAMAGE, -250, -250, -250, -250)

local combat5 = createCombatObject()
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat5, COMBAT_PARAM_EFFECT, CONST_ME_GIANTICE)
setCombatFormula(combat5, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat6 = createCombatObject()
setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat6, COMBAT_PARAM_EFFECT, CONST_ME_GIANTICE)
setCombatFormula(combat6, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat7 = createCombatObject()
setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat7, COMBAT_PARAM_EFFECT, CONST_ME_GIANTICE)
setCombatFormula(combat7, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat8 = createCombatObject()
setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat8, COMBAT_PARAM_EFFECT, CONST_ME_GIANTICE)
setCombatFormula(combat8, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat9 = createCombatObject()
setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat9, COMBAT_PARAM_EFFECT, CONST_ME_GIANTICE)
setCombatFormula(combat9, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat10 = createCombatObject()
setCombatParam(combat10, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat10, COMBAT_PARAM_EFFECT, CONST_ME_GIANTICE)
setCombatFormula(combat10, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat11 = createCombatObject()
setCombatParam(combat11, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat11, COMBAT_PARAM_EFFECT, CONST_ME_GIANTICE)
setCombatFormula(combat11, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat12 = createCombatObject()
setCombatParam(combat12, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat12, COMBAT_PARAM_EFFECT, CONST_ME_GIANTICE)
setCombatFormula(combat12, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat13 = createCombatObject()
setCombatParam(combat13, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat13, COMBAT_PARAM_EFFECT, CONST_ME_GIANTICE)
setCombatFormula(combat13, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat14 = createCombatObject()
setCombatParam(combat14, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat14, COMBAT_PARAM_EFFECT, CONST_ME_GIANTICE)
setCombatFormula(combat14, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat15 = createCombatObject()
setCombatParam(combat15, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat15, COMBAT_PARAM_EFFECT, CONST_ME_GIANTICE)
setCombatFormula(combat15, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat16 = createCombatObject()
setCombatParam(combat16, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat16, COMBAT_PARAM_EFFECT, CONST_ME_GIANTICE)
setCombatFormula(combat16, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat17 = createCombatObject()
setCombatParam(combat17, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat17, COMBAT_PARAM_EFFECT, CONST_ME_GIANTICE)
setCombatFormula(combat17, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat18 = createCombatObject()
setCombatParam(combat18, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat18, COMBAT_PARAM_EFFECT, CONST_ME_GIANTICE)
setCombatFormula(combat18, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat19 = createCombatObject()
setCombatParam(combat19, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat19, COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA)
setCombatFormula(combat19, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat20 = createCombatObject()
setCombatParam(combat20, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat20, COMBAT_PARAM_EFFECT, CONST_ME_GIANTICE)
setCombatFormula(combat20, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

arr1 = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 3, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
}

arr2 = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
}

local area1 = createCombatArea(arr1)
local area2 = createCombatArea(arr2)
local area3 = createCombatArea(arr3)
local area4 = createCombatArea(arr4)
local area5 = createCombatArea(arr5)
local area6 = createCombatArea(arr6)
local area7 = createCombatArea(arr7)
local area8 = createCombatArea(arr8)
local area9 = createCombatArea(arr9)
local area10 = createCombatArea(arr10)
local area11 = createCombatArea(arr11)
local area12 = createCombatArea(arr12)
local area13 = createCombatArea(arr13)
local area14 = createCombatArea(arr14)
local area15 = createCombatArea(arr15)
local area16 = createCombatArea(arr16)
local area17 = createCombatArea(arr17)
local area18 = createCombatArea(arr18)
local area19 = createCombatArea(arr19)
local area20 = createCombatArea(arr20)

setCombatArea(combat1, area1)
setCombatArea(combat2, area2)
setCombatArea(combat3, area3)
setCombatArea(combat4, area4)
setCombatArea(combat5, area5)
setCombatArea(combat6, area6)
setCombatArea(combat7, area7)
setCombatArea(combat8, area8)
setCombatArea(combat9, area9)
setCombatArea(combat10, area10)
setCombatArea(combat11, area11)
setCombatArea(combat12, area12)
setCombatArea(combat13, area13)
setCombatArea(combat14, area14)
setCombatArea(combat15, area15)
setCombatArea(combat16, area16)
setCombatArea(combat17, area17)
setCombatArea(combat18, area18)
setCombatArea(combat19, area19)
setCombatArea(combat20, area20)

local function onCastSpell1(parameters)
doCombat(parameters.cid, parameters.combat1, parameters.var)
end

local function onCastSpell2(parameters)
doCombat(parameters.cid, parameters.combat2, parameters.var)
end

local function onCastSpell3(parameters)
doCombat(parameters.cid, parameters.combat3, parameters.var)
end

local function onCastSpell4(parameters)
doCombat(parameters.cid, parameters.combat4, parameters.var)
end

local function onCastSpell5(parameters)
doCombat(parameters.cid, parameters.combat5, parameters.var)
end

local function onCastSpell6(parameters)
doCombat(parameters.cid, parameters.combat6, parameters.var)
end

local function onCastSpell7(parameters)
doCombat(parameters.cid, parameters.combat7, parameters.var)
end

local function onCastSpell8(parameters)
doCombat(parameters.cid, parameters.combat8, parameters.var)
end

local function onCastSpell9(parameters)
doCombat(parameters.cid, parameters.combat9, parameters.var)
end

local function onCastSpell10(parameters)
doCombat(parameters.cid, parameters.combat10, parameters.var)
end

local function onCastSpell11(parameters)
doCombat(parameters.cid, parameters.combat11, parameters.var)
end

local function onCastSpell12(parameters)
doCombat(parameters.cid, parameters.combat12, parameters.var)
end

local function onCastSpell13(parameters)
doCombat(parameters.cid, parameters.combat13, parameters.var)
end

local function onCastSpell14(parameters)
doCombat(parameters.cid, parameters.combat14, parameters.var)
end

local function onCastSpell15(parameters)
doCombat(parameters.cid, parameters.combat15, parameters.var)
end

local function onCastSpell16(parameters)
doCombat(parameters.cid, parameters.combat16, parameters.var)
end

local function onCastSpell17(parameters)
doCombat(parameters.cid, parameters.combat17, parameters.var)
end

local function onCastSpell18(parameters)
doCombat(parameters.cid, parameters.combat18, parameters.var)
end

local function onCastSpell19(parameters)
doCombat(parameters.cid, parameters.combat19, parameters.var)
end

local function onCastSpell20(parameters)
doCombat(parameters.cid, parameters.combat20, parameters.var)
end

function onCastSpell(cid, var)
local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5, combat6 = combat6, combat7 = combat7, combat8 = combat8, combat9 = combat9, combat10 = combat10, combat11 = combat11, combat12 = combat12, combat13 = combat13, combat14 = combat14, combat15 = combat15, combat16 = combat16, combat17 = combat17, combat18 = combat18, combat19 = combat19, combat20 = combat20 }
addEvent(onCastSpell1, 100, parameters)
addEvent(onCastSpell2, 300, parameters)
addEvent(onCastSpell3, 500, parameters)
addEvent(onCastSpell4, 700, parameters)
addEvent(onCastSpell5, 900, parameters)
addEvent(onCastSpell6, 1100, parameters)
addEvent(onCastSpell7, 1300, parameters)
addEvent(onCastSpell8, 1500, parameters)
addEvent(onCastSpell9, 1700, parameters)
addEvent(onCastSpell10, 1900, parameters)
addEvent(onCastSpell11, 2100, parameters)
addEvent(onCastSpell12, 2300, parameters)
addEvent(onCastSpell13, 2500, parameters)
addEvent(onCastSpell14, 2700, parameters)
addEvent(onCastSpell15, 2900, parameters)
addEvent(onCastSpell16, 3100, parameters)
addEvent(onCastSpell17, 3300, parameters)
addEvent(onCastSpell18, 3500, parameters)
addEvent(onCastSpell19, 3700, parameters)
addEvent(onCastSpell20, 3900, parameters)

end

 

2

 

 

local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_FIREATTACK)
setCombatFormula(combat1, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_FIREATTACK)
setCombatFormula(combat2, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, CONST_ME_FIREATTACK)
setCombatFormula(combat3, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat4 = createCombatObject()
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat4, COMBAT_PARAM_EFFECT, CONST_ME_FIREATTACK)
setCombatFormula(combat4, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat5 = createCombatObject()
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat5, COMBAT_PARAM_EFFECT, CONST_ME_FIREATTACK)
setCombatFormula(combat5, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat6 = createCombatObject()
setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat6, COMBAT_PARAM_EFFECT, CONST_ME_FIREATTACK)
setCombatFormula(combat6, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat7 = createCombatObject()
setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat7, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYAREA)
setCombatFormula(combat7, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat8 = createCombatObject()
setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_EARTHDAMAGE)
setCombatParam(combat8, COMBAT_PARAM_EFFECT, CONST_ME_PLANTATTACK)
setCombatFormula(combat8, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat9 = createCombatObject()
setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat9, COMBAT_PARAM_EFFECT, CONST_ME_GIANTICE)
setCombatFormula(combat9, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat10 = createCombatObject()
setCombatParam(combat10, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat10, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
setCombatFormula(combat10, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat11 = createCombatObject()
setCombatParam(combat11, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat11, COMBAT_PARAM_EFFECT, CONST_ME_FIREATTACK)
setCombatFormula(combat11, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat12 = createCombatObject()
setCombatParam(combat12, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat12, COMBAT_PARAM_EFFECT, CONST_ME_FIREATTACK)
setCombatFormula(combat12, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat13 = createCombatObject()
setCombatParam(combat13, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat13, COMBAT_PARAM_EFFECT, CONST_ME_FIREATTACK)
setCombatFormula(combat13, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat14 = createCombatObject()
setCombatParam(combat14, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat14, COMBAT_PARAM_EFFECT, CONST_ME_FIREATTACK)
setCombatFormula(combat14, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat15 = createCombatObject()
setCombatParam(combat15, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat15, COMBAT_PARAM_EFFECT, CONST_ME_FIREATTACK)
setCombatFormula(combat15, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat16 = createCombatObject()
setCombatParam(combat16, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat16, COMBAT_PARAM_EFFECT, CONST_ME_FIREATTACK)
setCombatFormula(combat16, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat17 = createCombatObject()
setCombatParam(combat17, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat17, COMBAT_PARAM_EFFECT, CONST_ME_FIREATTACK)
setCombatFormula(combat17, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat18 = createCombatObject()
setCombatParam(combat18, COMBAT_PARAM_TYPE, COMBAT_POISONDAMAGE)
setCombatParam(combat18, COMBAT_PARAM_EFFECT, CONST_ME_POISONAREA)
setCombatFormula(combat18, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat19 = createCombatObject()
setCombatParam(combat19, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat19, COMBAT_PARAM_EFFECT, CONST_ME_FIREATTACK)
setCombatFormula(combat19, COMBAT_FORMULA_DAMAGE , -250, -250, -250, -250)

local combat20 = createCombatObject()
setCombatParam(combat20, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat20, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatFormula(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 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
}

arr20 = {
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
}

local area1 = createCombatArea(arr1)
local area2 = createCombatArea(arr2)
local area3 = createCombatArea(arr3)
local area4 = createCombatArea(arr4)
local area5 = createCombatArea(arr5)
local area6 = createCombatArea(arr6)
local area7 = createCombatArea(arr7)
local area8 = createCombatArea(arr8)
local area9 = createCombatArea(arr9)
local area10 = createCombatArea(arr10)
local area11 = createCombatArea(arr11)
local area12 = createCombatArea(arr12)
local area13 = createCombatArea(arr13)
local area14 = createCombatArea(arr14)
local area15 = createCombatArea(arr15)
local area16 = createCombatArea(arr16)
local area17 = createCombatArea(arr17)
local area18 = createCombatArea(arr18)
local area19 = createCombatArea(arr19)
local area20 = createCombatArea(arr20)

setCombatArea(combat1, area1)
setCombatArea(combat2, area2)
setCombatArea(combat3, area3)
setCombatArea(combat4, area4)
setCombatArea(combat5, area5)
setCombatArea(combat6, area6)
setCombatArea(combat7, area7)
setCombatArea(combat8, area8)
setCombatArea(combat9, area9)
setCombatArea(combat10, area10)
setCombatArea(combat11, area11)
setCombatArea(combat12, area12)
setCombatArea(combat13, area13)
setCombatArea(combat14, area14)
setCombatArea(combat15, area15)
setCombatArea(combat16, area16)
setCombatArea(combat17, area17)
setCombatArea(combat18, area18)
setCombatArea(combat19, area19)
setCombatArea(combat20, area20)

local function onCastSpell1(parameters)
doCombat(parameters.cid, parameters.combat1, parameters.var)
end

local function onCastSpell2(parameters)
doCombat(parameters.cid, parameters.combat2, parameters.var)
end

local function onCastSpell3(parameters)
doCombat(parameters.cid, parameters.combat3, parameters.var)
end

local function onCastSpell4(parameters)
doCombat(parameters.cid, parameters.combat4, parameters.var)
end

local function onCastSpell5(parameters)
doCombat(parameters.cid, parameters.combat5, parameters.var)
end

local function onCastSpell6(parameters)
doCombat(parameters.cid, parameters.combat6, parameters.var)
end

local function onCastSpell7(parameters)
doCombat(parameters.cid, parameters.combat7, parameters.var)
end

local function onCastSpell8(parameters)
doCombat(parameters.cid, parameters.combat8, parameters.var)
end

local function onCastSpell9(parameters)
doCombat(parameters.cid, parameters.combat9, parameters.var)
end

local function onCastSpell10(parameters)
doCombat(parameters.cid, parameters.combat10, parameters.var)
end

local function onCastSpell11(parameters)
doCombat(parameters.cid, parameters.combat11, parameters.var)
end

local function onCastSpell12(parameters)
doCombat(parameters.cid, parameters.combat12, parameters.var)
end

local function onCastSpell13(parameters)
doCombat(parameters.cid, parameters.combat13, parameters.var)
end

local function onCastSpell14(parameters)
doCombat(parameters.cid, parameters.combat14, parameters.var)
end

local function onCastSpell15(parameters)
doCombat(parameters.cid, parameters.combat15, parameters.var)
end

local function onCastSpell16(parameters)
doCombat(parameters.cid, parameters.combat16, parameters.var)
end

local function onCastSpell17(parameters)
doCombat(parameters.cid, parameters.combat17, parameters.var)
end

local function onCastSpell18(parameters)
doCombat(parameters.cid, parameters.combat18, parameters.var)
end

local function onCastSpell19(parameters)
doCombat(parameters.cid, parameters.combat19, parameters.var)
end

local function onCastSpell20(parameters)
doCombat(parameters.cid, parameters.combat20, parameters.var)
end

function onCastSpell(cid, var)
local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5, combat6 = combat6, combat7 = combat7, combat8 = combat8, combat9 = combat9, combat10 = combat10, combat11 = combat11, combat12 = combat12, combat13 = combat13, combat14 = combat14, combat15 = combat15, combat16 = combat16, combat17 = combat17, combat18 = combat18, combat19 = combat19, combat20 = combat20 }
addEvent(onCastSpell1, 100, parameters)
addEvent(onCastSpell2, 300, parameters)
addEvent(onCastSpell3, 500, parameters)
addEvent(onCastSpell4, 700, parameters)
addEvent(onCastSpell5, 900, parameters)
addEvent(onCastSpell6, 1100, parameters)
addEvent(onCastSpell7, 1300, parameters)
addEvent(onCastSpell8, 1500, parameters)
addEvent(onCastSpell9, 1700, parameters)
addEvent(onCastSpell10, 1900, parameters)
addEvent(onCastSpell11, 2100, parameters)
addEvent(onCastSpell12, 2300, parameters)
addEvent(onCastSpell13, 2500, parameters)
addEvent(onCastSpell14, 2700, parameters)
addEvent(onCastSpell15, 2900, parameters)
addEvent(onCastSpell16, 3100, parameters)
addEvent(onCastSpell17, 3300, parameters)
addEvent(onCastSpell18, 3500, parameters)
addEvent(onCastSpell19, 3700, parameters)
addEvent(onCastSpell20, 3900, parameters)
if isMonster(cid) then
        doCreatureSay(cid, "BREATH OF DEATH!", TALKTYPE_MONSTER)
    end    
end

 

3

 

 

local combatx = createCombatObject()
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 255)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 37)
setCombatFormula(combat1, COMBAT_FORMULA_DAMAGE, -1000, -1000, -1000, -1000)
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 48)
setCombatFormula(combat2, COMBAT_FORMULA_DAMAGE, -1000, -1000, -1000, 1000)
local combat3 = createCombatObject()
setCombatParam(combat3, COMB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0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 1, 1, 3, 1, 1, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
}
local area1 = createCombatArea(arr1)
local area2 = createCombatArea(arr2)
local area3 = createCombatArea(arr3)
local areax = createCombatArea(arr1)
setCombatArea(combatx, area1)
setCombatArea(combat1, area1)
setCombatArea(combat2, area2)
setCombatArea(combat3, area3)
function onTargetTile(cid, pos)
                                                                                                                                doCombat(cid,combat1,positionToVariant(pos))
end
setCombatCallback(combatx, CALLBACK_PARAM_TARGETTILE, "onTargetTile")
local function onCastSpell1(parameters)
                                                                                                                                doCombat(parameters.cid, combatx, parameters.var)
end
local function onCastSpell2(parameters)
                                                                                                                                doCombat(parameters.cid, combat2, parameters.var)
end
local function onCastSpell3(parameters)
                                                                                                                                doCombat(parameters.cid, combat3, parameters.var)
end
function onCastSpell(cid, var)
local parameters = { cid = cid, var = var}
addEvent(onCastSpell1, 300, parameters)
addEvent(onCastSpell2, 100, parameters)
addEvent(onCastSpell3, 80, parameters)
end

Link para o post
Compartilhar em outros sites

Não saia atropelando o tópico assim, isso dificulta pra qualquer um.  E outra que vão ler  o seu topíco e desanimar, poste sempre cada script em um spoiler diferente.

Outra coisa, você verificou se os ids das Vocations está correta no spell ?

 

 

Link para o post
Compartilhar em outros sites
3 minutos atrás, Demonio007 disse:

@Radamanthys Wov desculpe... sim verifiquei diversas vezes

Provavelmente esses spells, são para os monster do seu serv, sugiro que crie novos spells.

Acho que sempre que você alterar essa linha -- doCreatureSay(cid, "BREATH OF DEATH!", TALKTYPE_MONSTER) -- deixando assim doCreatureSay(cid, "BREATH OF DEATH!", TALKTYPE_CREATURE), vai funcionar mas não tenho certeza.

 

Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

  • Conteúdo Similar

    • Por Nogard
      Não deixe seu evento de Natal para última hora, faltam apenas 4 dias. 

      Aproveite as sprites com desconto no site: https://otsprites.com
       
       
       

       

       
       
       
    • Por otpokesalense
      🧿Base Tibia Solebran totalmente otimizada!  
       
       ✔️ OTClient (Version Old);
      ✔️ Update 2.2;
      ✔️ Site Póprio;
      ✔️ Map Global
      ✔️ Bugs, Minimo (2x) talvez;
      ✔️ PVP 💯 Funcional.
       
       
      Get Servidor: https://files.fm/f/7qumr8943e 💸 Buy! otimo projeto para vc utilizá-lo.
      Lembrando:: ao comprar o download será disponibilizado automaticamente.
       
      🧑‍💻System Operacional: Windows (VPS)
      👨‍💻Programador (27) 998931903 - - - O Valor já inclui o serviço de programação! 🤗
       

       
       

       
       
    • Por Arkanjo39
      CUIDA, CUIDA E VEM CONHECER NOSSO SERVER. KING BAIAK ACABOU DE SER LANÇADO!!! VEM SER O TOP 1 Site com Otclient: https://kingbaiak.com/ PARA NOVOS JOGARES ADM TA DANDO AQUELA FORCINHA! SERVIDOR 8.60 COM RESETS, MONTARIAS E GOLDEN OUTFIT! INFORMAÇÕES BÁSICAS DO SERVIDOR: [+] MAPA BAIAK [+] HIGH EXP [+] RESETS COM + DAMAGE [+] AUTOLOOT AUTOMÁTICO [+] CITY DONATE [+] ROSHAMUUL, ORAMOND E NETHER [+] MONTARIAS E GOLDEN OUTFIT [+] INVASÃO DE MONSTROS AUTOMÁTICAS [+] DAILY MONSTER QUE APARECE AO LOGAR [+] MONTARIAS COM COMANDO !MOUNT [+] SISTEMA DE ROLETA ATUAL [+] CAST WATCH [+] FAST ATTACK [+] CAST ARROWS [+] PUSH CRUZADO [+] REWARD CHEST [+] WARSQUARE [+] COMBO EXP DE POTIONS [+] MINERAÇÃO COM LOJA [+] SISTEMA DE BOSS [+] CRITICAL/DODGE [500/500] [+] LIFE E MANA EM PORCENTAGEM* [+] VARIAS QUESTS [+] EVENTO DTT (AUTOMÁTICO) [+] EVENTO BATLEFIELD (AUTOMÁTICO) [+] EVENTO SNOWBALLWAR (AUTOMÁTICO) [+] EVENTO DESERT WAR (AUTOMÁTICO) [+] EVENTO ZOMBIE (AUTOMÁTICO) [+] EVENTO CAMPO MINADO (AUTOMÁTICO) [+] EVENTO TEAM BATLE (AUTOMÁTICO) [+] EVENTO CAPTURE THE FLAG (AUTOMÁTICO)
    • Por Asnan
      Fusion Games Studio, com orgulho, apresenta um servidor que o levará de volta aos dias de ouro dos jogos, onde a habilidade fazia a diferença, jogar sem bots era o padrão, cada derrota doía e cada vitória trazia uma satisfação genuína.
      Nosso servidor revive o espírito dos jogos clássicos — sem atalhos, sem trapaças, apenas pura estratégia e habilidade.
      Data de lançamento oficial: 18.10.24 15:00
      Junte-se ao Shinobi Legacy hoje!
      Site: https://www.shinobilegacy.pl
      Discord: https://discord.com/invite/ervPpDqjQt
       
      Vídeo promocional
      https://www.youtube.com/watch?v=3Z_HzIdfVjg
       
      Jogue como um dos 16 personagens do universo de Naruto.

       
      Um dos sistemas disponíveis no jogo

       
       
      Aproximamo-nos do Shinobi Legacy com total comprometimento e paixão, cuidando até dos menores detalhes. Nossos esforços e abordagem única nos diferenciam de outros servidores — isso é perceptível desde o primeiro momento em que você experimenta nosso jogo.
      Nosso mapa personalizado em Shinobi Legacy é cuidadosamente elaborado para imergir os jogadores no mundo de Naruto como nunca antes. Cada zona é projetada com detalhes, oferecendo tanto uma experiência nostálgica quanto novos desafios para jogadores de todos os níveis. Masmorras ocultas, caminhos secretos e zonas de guerra perigosas aguardam aqueles que ousam explorar!
      No Shinobi Legacy, o PvP está no coração da experiência. Nossos sistemas, como as habilidades baseadas em guildas, o sistema de adrenalina e a encantação, garantem que nenhuma batalha seja a mesma.
       
      Capturas de tela do jogo

       
       
       
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo