Ir para conteúdo

Mat123282

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Gostei
    Mat123282 deu reputação a gobr em (Resolvido)[AJUDA] Script de spell   
    testa esse
     
    function onCastSpell(cid)
        local formula = getPlayerLevel(cid) * getPlayerMagLevel(cid)
        local target = getCreatureTarget(cid)
        
        if target < 1 then
            
            doPlayerSendCancel(cid, "You need a target.")
            return false
        end
        
        if isPlayer(target) then
            
            formula = formula / getPlayerLevel(target)
        else
            
            formula = formula / 15
        end
        
        local stealPercent = formula / 100 * 20
        
        doCreatureAddHealth(cid, stealPercent)
        doSendAnimatedText(getThingPos(cid), "+" .. stealPercent, 25)
        
        doSendDistanceShoot(getThingPos(cid), getThingPos(target), 15)
        doAreaCombatHealth(cid, COMBAT_PHYSICALDAMAGE, getThingPos(target), 0, - formula, - formula * 0.5, CONST_ME_MAGIC_RED)
        return true
    end
  2. Gostei
    Mat123282 deu reputação a Sociopata em (Resolvido)bug do account manager 8.60   
    Duvida sanada
    Tag Adicionada

Informação Importante

Confirmação de Termo