Ir para conteúdo

Santuario


Ththt

Posts Recomendados

Estou eu aqui de novo para mostrar minha nova spell.

Para quem ja jogou Ragnarok, ja deve ter visto a magia santuario para sacerdote. Ela cria uma area que cura, mas para usa-la, gasta uma gema azul.

Agora abra data/spells/scripts pegue algum arquivo copie ele e coloque dentro:

ABRA↓

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_HEALING)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)

setCombatParam(combat1, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)

setCombatParam(combat1, COMBAT_PARAM_AGGRESSIVE, 0)

setCombatParam(combat1, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, 0.6, -30, 1.2, 0)

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_HEALING)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)

setCombatParam(combat2, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)

setCombatParam(combat2, COMBAT_PARAM_AGGRESSIVE, 0)

setCombatParam(combat2, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, 0.6, -30, 1.2, 0)

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_HEALING)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)

setCombatParam(combat3, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)

setCombatParam(combat3, COMBAT_PARAM_AGGRESSIVE, 0)

setCombatParam(combat3, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, 0.6, -30, 1.2, 0)

 

local combat4 = createCombatObject()

setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_HEALING)

setCombatParam(combat4, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)

setCombatParam(combat4, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)

setCombatParam(combat4, COMBAT_PARAM_AGGRESSIVE, 0)

setCombatParam(combat4, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, 0.6, -30, 1.2, 0)

 

local combat5 = createCombatObject()

setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_HEALING)

setCombatParam(combat5, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)

setCombatParam(combat5, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)

setCombatParam(combat5, COMBAT_PARAM_AGGRESSIVE, 0)

setCombatParam(combat5, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, 0.6, -30, 1.2, 0)

 

local combat6 = createCombatObject()

setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_HEALING)

setCombatParam(combat6, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)

setCombatParam(combat6, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)

setCombatParam(combat6, COMBAT_PARAM_AGGRESSIVE, 0)

setCombatParam(combat6, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, 0.6, -30, 1.2, 0)

 

local combat7 = createCombatObject()

setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_HEALING)

setCombatParam(combat7, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)

setCombatParam(combat7, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)

setCombatParam(combat7, COMBAT_PARAM_AGGRESSIVE, 0)

setCombatParam(combat7, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, 0.6, -30, 1.2, 0)

 

local combat8 = createCombatObject()

setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_HEALING)

setCombatParam(combat8, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)

setCombatParam(combat8, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)

setCombatParam(combat8, COMBAT_PARAM_AGGRESSIVE, 0)

setCombatParam(combat8, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

setCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, 0.6, -30, 1.2, 0)

 

local combat9 = createCombatObject()

setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_HEALING)

setCombatParam(combat9, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)

setCombatParam(combat9, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)

setCombatParam(combat9, COMBAT_PARAM_AGGRESSIVE, 0)

setCombatParam(combat9, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

setCombatFormula(combat9, COMBAT_FORMULA_LEVELMAGIC, 0.6, -30, 1.2, 0)

 

local combat10 = createCombatObject()

setCombatParam(combat10, COMBAT_PARAM_TYPE, COMBAT_HEALING)

setCombatParam(combat10, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)

setCombatParam(combat10, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)

setCombatParam(combat10, COMBAT_PARAM_AGGRESSIVE, 0)

setCombatParam(combat10, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

setCombatFormula(combat10, COMBAT_FORMULA_LEVELMAGIC, 0.6, -30, 1.2, 0)

 

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

{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},

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

}

arr10 = {

{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, 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, 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 area4 = createCombatArea(arr4)

local area5 = createCombatArea(arr5)

local area6 = createCombatArea(arr5)

local area7 = createCombatArea(arr5)

local area8 = createCombatArea(arr5)

local area9 = createCombatArea(arr5)

local area10 = createCombatArea(arr5)

 

setCombatArea(combat1, area1)

setCombatArea(combat2, area2)

setCombatArea(combat3, area3)

setCombatArea(combat4, area4)

setCombatArea(combat5, area5)

setCombatArea(combat6, area5)

setCombatArea(combat7, area5)

setCombatArea(combat8, area5)

setCombatArea(combat9, area5)

setCombatArea(combat10, area5)

 

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

 

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 }

addEvent(onCastSpell1, 0, parameters)

addEvent(onCastSpell2, 150, parameters)

addEvent(onCastSpell3, 300, parameters)

addEvent(onCastSpell4, 450, parameters)

addEvent(onCastSpell5, 600, parameters)

addEvent(onCastSpell6, 750, parameters)

addEvent(onCastSpell7, 900, parameters)

addEvent(onCastSpell8, 1050, parameters)

addEvent(onCastSpell9, 1200, parameters)

addEvent(onCastSpell10, 1350, parameters)

 

 

 

end

 

Feito isso, abra spells.xml e coloque dentro:

 

<rune name="Santuario" id="2275" aggressive="0" charges="1" needtarget="0" maglv="4" exhaustion="1" enabled="1" allowfaruse="1" script="santuario.lua"></rune>

 

E:

 

<conjure name="Santuario" words="adevo gran sant" reagentId="2158" conjureId="2275" aggressive="0" conjureCount="1" maglv="40" mana="1500" soul="0" prem="0" enabled="1" function="conjureRune"><vocation id="7"/></conjure>

 

Em azul é o id da gema azul, necessaria para fazer a runa.

 

sant1ff6.th.jpg

 

sant2fb4.th.jpg

 

sant3sr3.th.jpg

 

Se tiverem duvidas postem.

Comentem plx! :icon1:

E se forem copiar deixem creditos

 

By GOD TH

Editado por THH
Link para o comentário
Compartilhar em outros sites

  • 2 weeks later...

Eu jogo RagnaröK e gosto muito. Essa spell é muito boa. Mas se não me engano, a área certa do Santuário é

 

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

{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},

 

Sem mais,

Denilson

Link para o comentário
Compartilhar em outros sites

Mas se não me engano, a área certa do Santuário é

 

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

{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},

Eu nao lebrava direito como era mas acho que do seu jeito é o certo

Link para o comentário
Compartilhar em outros sites

  • 2 weeks later...
  • 4 weeks later...
×
×
  • Criar Novo...