Ir para conteúdo

Posts Recomendados

Eae gente, minha primeira spell q posto, xD

Vai data/spells/copie qualquer arquivo e renomei-e para spoff, depois abra-o apague tudo que tiver la dentro e cole:

 

local combat = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA)

setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat, COMBAT_PARAM_EFFECT, 2)

setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.3, -150, -1.7, -150)

 

arr = {

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

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

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

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

}

 

local area = createCombatArea(arr)

setCombatArea(combat, area)

 

function onCastSpell(cid, var)

return doCombat(cid, combat, var)

end

 

depois vá data/spells.xml e adicione:

<instant name="Spoff Attack" words="spoff" lvl="120" maglv="8" mana="850" soul="0" exhaustion="1" prem="1" enabled="1" script="spoff.lua"><vocation id="4"/><vocation id="8"/></instant>

 

Se usar minha spell posta ae plx xD

sugestoes e críticas, flw

Editado por Movack
Link para o comentário
https://xtibia.com/forum/topic/101095-spoff/
Compartilhar em outros sites

×
×
  • Criar Novo...