Examples of EtcStatusUpdate


Examples of com.l2jfrozen.gameserver.network.serverpackets.EtcStatusUpdate

        getEffects(activeChar, (L2Character) target,false,false,false);
      }
    }
    if(activeChar instanceof L2PcInstance)
    {
      activeChar.sendPacket(new EtcStatusUpdate((L2PcInstance) activeChar));
    }
  }
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.EtcStatusUpdate

  {
    super(env, template);
    numCharges = 1;
    if(env.target instanceof L2PcInstance)
    {
      env.target.sendPacket(new EtcStatusUpdate((L2PcInstance) env.target));
      SystemMessage sm = new SystemMessage(SystemMessageId.FORCE_INCREASED_TO_S1);
      sm.addNumber(numCharges);
      getEffected().sendPacket(sm);
    }
  }
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.EtcStatusUpdate

    else if(_dietMode)
    {
      setIsOverloaded(false);
      _curWeightPenalty = 0;
      super.removeSkill(getKnownSkill(4270));
      sendPacket(new EtcStatusUpdate(this));
      Broadcast.toKnownPlayers(this, new CharInfo(this));
    }
    else
    {
      int maxLoad = getMaxLoad();
      if(maxLoad > 0)
      {
        //setIsOverloaded(getCurrentLoad() > maxLoad);
        //int weightproc = getCurrentLoad() * 1000 / maxLoad;
        long weightproc = (long) ((getCurrentLoad() - calcStat(Stats.WEIGHT_PENALTY, 1, this, null)) * 1000 / maxLoad);
        int newWeightPenalty;

        if(weightproc < 500)
        {
          newWeightPenalty = 0;
        }
        else if(weightproc < 666)
        {
          newWeightPenalty = 1;
        }
        else if(weightproc < 800)
        {
          newWeightPenalty = 2;
        }
        else if(weightproc < 1000)
        {
          newWeightPenalty = 3;
        }
        else
        {
          newWeightPenalty = 4;
        }

        if(_curWeightPenalty != newWeightPenalty)
        {
          _curWeightPenalty = newWeightPenalty;
          if(newWeightPenalty > 0)
          {
            super.addSkill(SkillTable.getInstance().getInfo(4270, newWeightPenalty));
            sendSkillList(); // Fix visual bug
          }
          else
          {
            super.removeSkill(getKnownSkill(4270));
            sendSkillList(); // Fix visual bug
          }

          sendPacket(new EtcStatusUpdate(this));
          Broadcast.toKnownPlayers(this, new CharInfo(this));
        }
      }
    }
   
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.EtcStatusUpdate

      else
      {
        super.removeSkill(getKnownSkill(4267));
      }
     
      sendPacket(new EtcStatusUpdate(this));
      _masteryPenalty = newMasteryPenalty;
    }
  }
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.EtcStatusUpdate

      else
      {
        super.removeSkill(getKnownSkill(4267));
      }
     
      sendPacket(new EtcStatusUpdate(this));
      _masteryWeapPenalty = newMasteryPenalty;
    }
  }
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.EtcStatusUpdate

      {
        super.removeSkill(getKnownSkill(4267));
        sendSkillList(); // Update skill list
      }
     
      sendPacket(new EtcStatusUpdate(this));
     
    }
  }
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.EtcStatusUpdate

      setHeroAura(false);
      this.sendMessage("You leaved War Legend State");
    }
   
    // Refresh focus force like L2OFF
    sendPacket(new EtcStatusUpdate(this));
   
    return true;
  }
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.EtcStatusUpdate

        sendPacket(new SystemMessage(SystemMessageId.SKILL_NOT_AVAILABLE));
        return;
      }
     
      effect.numCharges -= skill.getNumCharges();
      sendPacket(new EtcStatusUpdate(this));

      if(effect.numCharges == 0)
      {
        effect.exit(false);
      }
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.EtcStatusUpdate

   * @param mode the new message refusal
   */
  public void setMessageRefusal(boolean mode)
  {
    _messageRefusal = mode;
    sendPacket(new EtcStatusUpdate(this));
  }
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.EtcStatusUpdate

     
    }   
   
    checkAllowedSkills();

    sendPacket(new EtcStatusUpdate(this));

    //if player has quest 422: Repent Your Sins, remove it
    QuestState st = getQuestState("422_RepentYourSins");

    if(st != null)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.