Jump to content

User-defined duration for 'bAddEff' bonuses


Recommended Posts

Posted

These bonuses are using 'default' duration from skill that associated with the Status effect (SC/Status Change)

bonus2 bAddEff,eff,n;        Adds a n/100% chance to cause status eff on the target when attacking
bonus2 bAddEff2,eff,n;       Adds a n/100% chance to cause status eff on self when attacking
bonus2 bAddEffWhenHit,eff,n; Adds a n/100% chance to cause status eff on the enemy when being hit by physical damage
 
bonus3 bAddEff,eff,n,y;        Adds a n/100% chance to cause status eff on the target when attacking
bonus3 bAddEffWhenHit,eff,n,y; Adds a n/100% chance to cause status eff on the enemy when being hit by physical damage
                               y is the trigger criteria:
                                 ATF_SELF   = trigger effect on self
                                 ATF_TARGET = trigger effect on target (default)
                                 ATF_SHORT  = trigger on melee attacks
                                 ATF_LONG   = trigger on ranged attacks (default: trigger on all attacks)
 
bonus3 bAddEffOnSkill,sk,eff,n;    Adds a n/100% chance to cause status eff on enemy when using skill sk
bonus4 bAddEffOnSkill,sk,eff,n,y; Adds a n/100% chance to cause status eff when using skill sk
                                  y is the trigger criteria:
                                    ATF_SELF   = trigger effect on self
                                    ATF_TARGET = trigger effect on target

User can't makes custom bonus with defined duration each item. Example, item that causes Stun (Eff_Stun/SC_STUN) always has duration 5000 ms from NPC_STUNATTACK skill. That skill is associated skill for SC_STUN, src/map/status.c#L212, db/re/skill_cast_db.txt#L300

If user want to change the duration, that means user has to change the duration value of that skill from that db file which will changes all durations that are used by that skill.

 

I think, those bonuses should have 1 more param as 't' (tick, in ms). If the tick is 0, it will uses the default duration.

  • bonus2 -> bonus3
  • bonus3 -> bonus4
  • bonus4 -> bonus5

Anyone agree to change this on rA or just need me make a diff (and post it on source release) section?

 

NB: I don't get it why the default time is using duration from level 7. :Psrc/map/skill.c#L856

  • 1 month later...
  • 1 year later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...