Ir para conteúdo

Featured Replies

Postado

Olá amigos,

Recentemente adquiri o serviço do OTPanel, e estou usando uma versão do Global 8.6, que está com alguns bugs.

Segue informação da versão:

	[TFS] Revisado por Chaitosoft.com - a sua loja de otserv 0.3.7_SVN

 

De toda forma, os players me reportaram que a magia "exiva" não funciona.

 

Testei e ela e todas as outras magias de recuperação de vida, nenhuma funciona.

Ele usa a mana necessária, mas não recupera a vida.

 

Já tentei diversas versões diferente do script de heal, porém nenhuma funciona.

 

Segue meu Light Healing.lua

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 1.5, 2)

function onCastSpell(cid, var)
    if isPlayer(cid) == TRUE then
        if exhaustion.check(cid, 30030) then
            return FALSE
        else
            return doRemoveCondition(cid, CONDITION_PARALYZE), doCombat(cid, combat, var)
        end
    else
        return doRemoveCondition(cid, CONDITION_PARALYZE), doCombat(cid, combat, var)
    end
end  

Notei também que no console não apresenta erros.

 

Alguém saberia me ajudar?

Grato!

Draferia Online:

http://draferia.com.br

draferia-468x60.jpg

Postado

@Drafenous Tente dessa forma

 

Spoiler

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 1.5, 2)

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

 

 

em spells.xmp substitua seu light healing por esse

Spoiler

<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>

 

 

 

 

Postado
  • Autor
11 horas atrás, Everson Miranda disse:

@Drafenous Tente dessa forma

 

  Ocultar conteúdo


local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 1.5, 2)

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

 

 

em spells.xmp substitua seu light healing por esse

  Ocultar conteúdo


<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>

 

 

 

 

not working :/

Estou achando que é na distro, vou tentar compilar uma nova...

 

Qualquer coisa eu comento aqui, valeu pela tentativa! :)

Draferia Online:

http://draferia.com.br

draferia-468x60.jpg

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