Ir para conteúdo
Faça parte da equipe! (2024) ×
Conheça nossa Beta Zone! Novas áreas a caminho! ×
  • Quem está por aqui   0 membros estão online

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

Armas Elementais


Acezinhw
 Compartilhar

Posts Recomendados

O que faremos?

-Vamos colocar para que uma arma elemental dê um hit normal + um hit do elemento X

Problemas:

-Não será possível utilizar esse metodo nas armas do elemento "gelo"

-O dano elemental será fixo.[/b]

 

Bom, primeiro vá em data/weapons/weapons.xml e coloque isso antes da tag </weapons>:

 

 

<melee id="7854" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>

<melee id="2409" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>

<melee id="7855" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>

<melee id="7856" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>

<melee id="7857" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>

<melee id="7858" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>

<melee id="7859" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>

<melee id="7860" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>

<melee id="7861" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>

<melee id="7862" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>

<melee id="7863" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>

<melee id="7864" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>

<melee id="7865" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>

<melee id="7866" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>

<melee id="7867" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>

<melee id="7868" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>

 

<melee id="7869" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>

<melee id="7870" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>

<melee id="7871" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>

<melee id="7872" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>

<melee id="7873" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>

<melee id="7874" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>

<melee id="7875" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>

<melee id="7876" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>

<melee id="7877" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>

<melee id="7878" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>

<melee id="7879" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>

<melee id="7880" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>

<melee id="7881" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>

<melee id="7882" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>

<melee id="7883" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>

 

<melee id="7744" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>

<melee id="2432" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>

<melee id="2392" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>

<melee id="7745" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>

<melee id="7746" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>

<melee id="7747" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>

<melee id="7748" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>

<melee id="7749" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>

<melee id="7750" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>

<melee id="7751" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>

<melee id="7752" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>

<melee id="7753" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>

<melee id="7754" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>

<melee id="7755" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>

<melee id="7756" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>

<melee id="7757" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>

<melee id="7758" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>

 

<melee id="7763" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>

<melee id="7764" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>

<melee id="7765" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>

<melee id="7766" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>

<melee id="7767" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>

<melee id="7768" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>

<melee id="7769" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>

<melee id="7770" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>

<melee id="7771" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>

<melee id="7772" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>

<melee id="7773" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>

<melee id="7774" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>

<melee id="7775" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>

<melee id="7776" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>

<melee id="7777" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>[/b]

 

Agora vá em data/weapons/script e crie um novo arquivo lua, com o nome "en weapons"

E nele vc coloca:

local combat = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)

setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 0, 0)

local condition = createConditionObject(CONDITION_ENERGY)

setConditionParam(condition, CONDITION_PARAM_DELAYED, 0)

addDamageCondition(condition, 1, 0, -25)

setCombatCondition(combat, condition)

 

 

function onUseWeapon(cid, var)

return doCombat(cid, combat, var)

end[/b]

 

Agora, crie outro arquivo lua chamado "fire weapons" e coloque isso:

local combat = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)

setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 0, 0)

local condition = createConditionObject(CONDITION_FIRE)

setConditionParam(condition, CONDITION_PARAM_DELAYED, 0)

addDamageCondition(condition, 1, 0, -25)

setCombatCondition(combat, condition)

 

 

function onUseWeapon(cid, var)

return doCombat(cid, combat, var)

end

Agora vc cria outro arquivo lua chamado "terra weapons" e coloca isso:

Citação:

local combat = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)

setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 0, 0)

local condition = createConditionObject(CONDITION_POISON)

setConditionParam(condition, CONDITION_PARAM_DELAYED, 0)

addDamageCondition(condition, 1, 0, -25)

setCombatCondition(combat, condition)

 

 

function onUseWeapon(cid, var)

return doCombat(cid, combat, var)

end

E, por último, ice weapons.

Note que não será possível colocar dano físico nas armas de gelo.

Citação:

local combat = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)

setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)

setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 0, 0)

 

function onUseWeapon(cid, var)

return doCombat(cid, combat, var)

end[/b]

 

 

Pronto! Armas encantadas com danos elementais!

Créditos:

O criador do script original(Mikiubi)80%

Eu, por ter colocado dano elemental+físico. 20%

Link para o comentário
Compartilhar em outros sites

  • 1 mês depois...
Este tópico está impedido de receber novos posts.
 Compartilhar

×
×
  • Criar Novo...

Informação Importante

Nós fazemos uso de cookies no seu dispositivo para ajudar a tornar este site melhor. Você pode ajustar suas configurações de cookies , caso contrário, vamos supor que você está bem para continuar.