Ir para conteúdo

Featured Replies

Postado

.Qual servidor ou website você utiliza como base? 

8.6

Qual o motivo deste tópico? 

magias de cura nao funcionam

Está surgindo algum erro? Se sim coloque-o aqui. 

Em meu ot server 8.6 as magias de cura funcionam mas nao da heal! alguem me ajuda pfvr

Citar

 

 

Você tem o código disponível? Se tiver publique-o aqui: 

 

 

Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. 

 

  • Respostas 18
  • Visualizações 1.1k
  • Created
  • Última resposta

Top Posters In This Topic

Postado
  • Autor

Exemplo de uma das magias Intense Healing!!

 

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 12)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 5, 6)

function onCastSpell(cid, var)
    return doCombat(cid, combat, var)
end
 

 

 spells.xml

 

 

<!-- Healing Spells -->
    <instant name="Light Healing" words="exura" lvl="9" mana="20" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" event="script" value="healing/light healing.lua">
        <vocation id="1"/>
        <vocation id="2"/>
        <vocation id="3"/>
        <vocation id="4"/>
        <vocation id="5"/>
        <vocation id="6"/>
        <vocation id="7"/>
        <vocation id="8"/>
    </instant>
    <instant name="Antidote" words="exana pox" lvl="10" mana="30" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" event="script" value="healing/antidote.lua">
        <vocation id="1"/>
        <vocation id="2"/>
        <vocation id="3"/>
        <vocation id="4"/>
        <vocation id="5"/>
        <vocation id="6"/>
        <vocation id="7"/>
        <vocation id="8"/>
    </instant>
    <instant name="Antiflame" words="exana flam" lvl="15" mana="35" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" event="script" value="healing/antiflame.lua">
        <vocation id="1"/>
        <vocation id="2"/>
        <vocation id="3"/>
        <vocation id="4"/>
        <vocation id="5"/>
        <vocation id="6"/>
        <vocation id="7"/>
        <vocation id="8"/>
    </instant>
    <instant name="Intense Healing" words="exura gran" lvl="11" mana="70" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" event="script" value="healing/intense healing.lua">
        <vocation id="1"/>
        <vocation id="2"/>
        <vocation id="3"/>
        <vocation id="5"/>
        <vocation id="6"/>
        <vocation id="7"/>
    </instant>
    <instant name="Heal Friend" words="exura sio" lvl="18" mana="140" prem="1" aggressive="0" needtarget="1" params="1" exhaustion="1500" needlearn="0" event="script" value="healing/heal friend.lua">
        <vocation id="2"/>
        <vocation id="6"/>
    </instant>
    <instant name="Ultimate Healing" words="exura vita" lvl="20" mana="160" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" event="script" value="healing/ultimate healing.lua">
        <vocation id="1"/>
        <vocation id="2"/>
        <vocation id="3"/>
        <vocation id="5"/>
        <vocation id="6"/>
        <vocation id="7"/>
    </instant>
    <instant name="Mass Healing" words="exura gran mas res" lvl="36" mana="350" prem="1" aggressive="0" exhaustion="1500" needlearn="0" event="script" value="healing/mass healing.lua">
        <vocation id="2"/>
        <vocation id="6"/>
    </instant>
    <instant name="Divine Healing" words="exura san" lvl="35" mana="200" prem="1" selftarget="1" aggressive="0" exhaustion="1000" needlearn="0" event="script" value="healing/divine healing.lua">
        <vocation id="3"/>
        <vocation id="7"/>
    </instant>
    <instant name="Wound Cleansing" words="exana mort" lvl="30" mana="65" prem="1" selftarget="1" aggressive="0" exhaustion="1200" needlearn="0" event="script" value="healing/wound cleasing.lua">
        <vocation id="4"/>
        <vocation id="8"/>
    </instant>

        <instant name="exuraico" words="exura ico" lvl="50" mana="90" prem="1" selftarget="1" aggressive="0" exhaustion="1000" needlearn="0" event="script" value="healing/exuraico.lua">
        <vocation id="4"/>
        <vocation id="8"/>
    </instant>

Editado por bellatrikz93 (veja o histórico de edições)

Postado

Tenta dessa forma:

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 5, 6)

function onCastSpell(cid, var)
doRemoveCondition(cid, CONDITION_PARALYZE)
return doCombat(cid, combat, var)
end

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.6k

Informação Importante

Confirmação de Termo