Jump to content

DnA

Advanced members
  • Content Count

    41
  • Joined

  • Last visited

Posts posted by DnA



  1. --Rebirth Mystic Power (Passive)
    function Skill_Rbmp_Use( role , sklv ) 
        local statelv  = sklv  
        local rb_bonus = (-1) * ( 0.055 * statelv ) -- Increases by 5.5%
        local mnatksa  = math.floor (  (MnatkSa (role) - rb_bonus ) * ATTR_RADIX ) 
        local mxatksa  = math.floor (  (MxatkSa (role) - rb_bonus ) * ATTR_RADIX )
        local defsa    = math.floor (  (DefSa   (role) - rb_bonus ) * ATTR_RADIX ) 
        local ResistSa = math.floor (  (ResistSa(role) - rb_bonus ) * ATTR_RADIX ) 
        SetCharaAttr( mnatksa  , role , ATTR_STATEC_MNATK )
        SetCharaAttr( mxatksa  , role , ATTR_STATEC_MXATK )
        SetCharaAttr( defsa    , role , ATTR_STATEC_DEF   )
        SetCharaAttr( ResistSa , role , ATTR_STATEC_PDEF  )
        ALLExAttrSet(role)    
    end 

    function Skill_Rbmp_Unuse( role , sklv ) 
        local statelv  = sklv  
        local rb_bonus = (-1) * ( 0.055 * statelv ) -- Increases by 5.5%
        local mnatksa  = math.floor (  (MnatkSa (role) + rb_bonus ) * ATTR_RADIX ) 
        local mxatksa  = math.floor (  (MxatkSa (role) + rb_bonus ) * ATTR_RADIX )
        local defsa    = math.floor (  (DefSa   (role) + rb_bonus ) * ATTR_RADIX ) 
        local ResistSa = math.floor (  (ResistSa(role) + rb_bonus ) * ATTR_RADIX ) 
        SetCharaAttr( mnatksa  , role , ATTR_STATEC_MNATK )
        SetCharaAttr( mxatksa  , role , ATTR_STATEC_MXATK )
        SetCharaAttr( defsa    , role , ATTR_STATEC_DEF   ) 
        SetCharaAttr( ResistSa , role , ATTR_STATEC_PDEF  )
        ALLExAttrSet(role)             
    end 
    Can you help me?

×
×
  • Create New...