Ir para conteúdo

Featured Replies

Postado

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

Spoiler

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

 

Postado
  • Autor
7 horas atrás, Wakon disse:

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

  Mostrar conteúdo oculto

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

 

A area antes estava correta, pois eu estou pedindo SPELLS.

 

  • 4 months later...
Postado

data/spell/spell.xml   tag

 

                  <!-- obito -->

 

<instant name="katon bakufu ranbu" words="katon bakufu ranbu" lvl="200" mana="9500" aggressive="1" needtarget="1" range="5" exhaustion="1500" needlearn="0" blockwalls="1" event="script" value="obito/spell 200.lua">
<vocation id="170"/>
</instant>

 

<instant name="tsukuyomi trap" words="tsukuyomi trap" lvl="250" mana="9000" aggressive="1" needtarget="1" range="2" exhaustion="1500" needlearn="0" blockwalls="1" event="script" value="obito/spell 250.lua">
<vocation id="170"/>
</instant>

 

<instant name="fissury" words="fissury" lvl="300" mana="9500" aggressive="1" needtarget="1" range="5" exhaustion="1500" needlearn="0" blockwalls="1" event="script" value="obito/spell 300.lua">
<vocation id="170"/>
</instant>

 

<instant name="kamui sharingan" words="kamui sharingan" lvl="500" mana="8500" aggressive="1" direction="1" exhaustion="1500" needlearn="0" blockwalls="1" event="script" value="obito/area 500.lua">
<vocation id="170"/>
</instant>

 

 

 

data/spell/script     

 

spell 200 

 

local combat = createCombatObject()
local combat = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z}
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 0)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -30.3, 1, -44.3, 1)

function onCastSpell(cid, var)
local position1 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z}
doSendMagicEffect(position1, 84)
return doCombat(cid, combat, var)
end

 

 


spell 250

 

local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 5000)
setConditionParam(condition, CONDITION_PARAM_SPEED, -5000)

function onCastSpell(cid, var)

local target = getCreatureTarget(cid)
local targetpos = getCreaturePosition(target)
local efepos = {x=targetpos.x+1, y=targetpos.y+1, z=targetpos.z}
local time = 5 -- tempo paralyzado

if isPlayer(cid) and exhaustion.check(cid, 12000) == TRUE then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, 12000) .. " segundos para usar novamente.")
return FALSE
end

local function No_Move_Target()
if isCreature(target) then
doCreatureSetNoMove(target, 0)
end
return TRUE
end

exhaustion.set(cid, 12000, 8)
doCreatureSetNoMove(target, 1)
doAddCondition(target, condition)
doSendMagicEffect(efepos, 192)
addEvent(No_Move_Target, time*1000)
return TRUE
end

 

 

spell 300

 

 

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 43)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -20.3, 1, -23.3, 1)

arr = {
{3}
}


local area = createCombatArea(arr)
setCombatArea(combat, area)
 
local function onCastSpell1(parameters)
return isCreature(parameters.cid) and doCombat(parameters.cid, combat, parameters.var)
end


function onCastSpell(cid, var)
if isPlayer(cid) and exhaustion.check(cid, 13133) == TRUE then
doPlayerSendCancel(cid, "Você esta exausto.")
doSendMagicEffect(getCreaturePosition(cid), 2)
return false
end

local position = getPlayerPosition(cid)
local parameters = { cid = cid, var = var}
exhaustion.set(cid, 13133, 1)
addEvent(onCastSpell1, 100, parameters)
addEvent(onCastSpell1, 300, parameters)
addEvent(onCastSpell1, 500, parameters)
addEvent(onCastSpell1, 700, parameters)
addEvent(onCastSpell1, 900, parameters)
addEvent(onCastSpell1, 1200, parameters)
addEvent(onCastSpell1, 1500, parameters)
addEvent(onCastSpell1, 1700, parameters)
addEvent(onCastSpell1, 1900, parameters)
addEvent(onCastSpell1, 2200, parameters)
addEvent(onCastSpell1, 2500, parameters)
addEvent(onCastSpell1, 2800, parameters)
return TRUE
end
 

 

 

spell 500

 

 

local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 235)

local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -75.3, 1, -95.3, 1)

local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, 30)

local combat4 = createCombatObject()
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat4, COMBAT_PARAM_EFFECT, 235)

local combat5 = createCombatObject()
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat5, COMBAT_PARAM_EFFECT, 30)

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


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

local area = createCombatArea(arr1)
local area2 = createCombatArea(arr2)
local area3 = createCombatArea(arr3)
local area4 = createCombatArea(arr4)
local area5 = createCombatArea(arr5)
setCombatArea(combat1, area)
setCombatArea(combat2, area2)
setCombatArea(combat3, area3)
setCombatArea(combat4, area4)
setCombatArea(combat5, area5)

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

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

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

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

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


function onCastSpell(cid, var)
local parameters = {cid = cid, var = var}
local position = getCreaturePosition(cid)


if isPlayer(cid) and exhaustion.check(cid, 13114) == TRUE then
doPlayerSendCancel(cid, "Você esta exausto.")
doSendMagicEffect(getCreaturePosition(cid), 2)
return FALSE
end

exhaustion.set(cid, 13114, 1)
addEvent(onCastSpell1, 200, parameters)
addEvent(onCastSpell2, 100, parameters)
addEvent(onCastSpell3, 200, parameters)
addEvent(onCastSpell4, 1000, parameters)
addEvent(onCastSpell5, 1000, parameters)
addEvent(onCastSpell2, 1000, parameters)
for i = 1, 40 do
doSendDistanceShoot(position, {x=position.x+math.random(-5,5), y=position.y+math.random(-5,5), z=position.z}, 99)
end
return TRUE
end

 

 

 

 

 

sequencia da tag e a msm das spell abaixo 

 

 

 

 

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

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo