Ir para conteúdo

77mateus77

Membro
  • Registro em

  • Última visita

Solutions

  1. 77mateus77's post in (Resolvido)[PEDIDO] spell heal x % de vida was marked as the answer   
    Não sai a palavra do mesmo geito do outro, e não cura tambe, e aparece esse erro na distro:
     
    [27/07/2015 18:33:40] [Error - Spell Interface]  [27/07/2015 18:33:41] data/spells/scripts/curavida.lua:onCastSpell [27/07/2015 18:33:41] Description:  [27/07/2015 18:33:41] data/spells/scripts/curavida.lua:6: attempt to call global 'getPlayerMaxHealth' (a nil value) [27/07/2015 18:33:41] stack traceback: [27/07/2015 18:33:41] data/spells/scripts/curavida.lua:6: in function <data/spells/scripts/curavida.lua:5>     voce por acaso conseguiria fazer a uh heala por % do hp total? tamben serviria no caso se não conseguisse uma spell assim       ae pessoal consegui um valeu por tentarem me ajudar.   function onCastSpell(cid, item, fromPosition, itemEx, toPosition)   local hpmax = getCreatureMaxHealth(cid) local min = 15.0 -- this means 15% minimum healing local max = 15.0 -- this means 15% maximum healing local hp_add = math.random((hpmax * (min/100)), (hpmax * (max/100)))    if(hasCondition(cid, CONDITION_EXHAUST)) then doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)  doPlayerSendCancel(cid, "You are exhausted") return true end doCreatureAddHealth(cid, hp_add) doSendMagicEffect(getThingPos(cid), 32) doSendAnimatedText(getPlayerPosition(cid),"+"..hp_add.."", TEXTCOLOR_GREEN)  return true end

Informação Importante

Confirmação de Termo