Jump to content
Sign in to follow this  
DnA

After Rebirth get bonus MIN ATT, MAX ATT, and Defence

Recommended Posts

There is a skill 'Rebirth Mystic Power' (I do not remember name exactly). You can edit it in SkillEffect.lua 

  • Like 1

Share this post


Link to post
Share on other sites


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

Share this post


Link to post
Share on other sites

@DnA

 

   local mnatksa  = math.floor (  (MnatkSa (role) - rb_bonus ) * ATTR_RADIX )  -- Min Attack (percentage)


    local mxatksa  = math.floor (  (MxatkSa (role) - rb_bonus ) * ATTR_RADIX ) -- Max Attack (percentage)


    local defsa    = math.floor (  (DefSa   (role) - rb_bonus ) * ATTR_RADIX ) -- Defense (percentage)


    local ResistSa = math.floor (  (ResistSa(role) - rb_bonus ) * ATTR_RADIX )  -- Physical Resist (percentage)

 

  local rb_bonus = (-1) * ( 0.055 * statelv ) -- Currently, each level of rebirth adds 5.5% of the stats.

 

to change, u can change the value 0.055 to something else. For example, 10% per level will be 0.1

 

 

  • Like 1

Share this post


Link to post
Share on other sites

Not sure if anyone will read this, but i see this script is changing the min attack, max attack, defence and PR. Does anyone know how to add Hitrate,dodge and attack speed?

 

Share this post


Link to post
Share on other sites

  I found this allready btw...

 

  local mspdsa = math.floor (  (MspdSa(role) - mspdsa_dif ) * ATTR_RADIX ) --Movement speed i guess
        
    local aspdsa = ( AspdSa(role) - aspdsa_dif) * ATTR_RADIX --Attack speed then
    
    
    local hitsa = math.floor ( (HitSa(role) + hitsa_dif ) * ATTR_RADIX) --Hit rate

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...