A Project for Chronicle 4 based on L2JServer.


    Disable buffing characters in offline modus

    Share
    avatar
    Karakan

    Posts : 428
    Join date : 2013-10-04

    Disable buffing characters in offline modus

    Post  Karakan on 6th November 2017, 19:37


    Just a little check to stop characters in offline mode receiving buffs.


    .../model/L2Skill.java

    Code:

    +      // disable buffing characters who are in offline modus
    +      if ((effector instanceof L2PcInstance) && (effected instanceof L2PcInstance))
    +      {
    +         if ((!isOffensive() && ((L2PcInstance) effected).inOfflineMode()))
    +         {
    +            return _emptyEffectSet;
    +         }      
    +      }
          // block bad buffs with /block command
          if (Config.BLOCK_UNWANTED_BUFFS)


      Current date/time is 19th November 2017, 18:16