Package com.l2jfrozen.gameserver.network.serverpackets

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


    /* Aborts any attacks/casts if fake dead */
    abortAttack();
    abortCast();
    stopMove(null);
    getAI().notifyEvent(CtrlEvent.EVT_FAKE_DEATH, null);
    broadcastPacket(new ChangeWaitType(this, ChangeWaitType.WT_START_FAKEDEATH));
  }
View Full Code Here


    if(this instanceof L2PcInstance)
    {
      ((L2PcInstance) this).setRecentFakeDeath(true);
    }

    ChangeWaitType revive = new ChangeWaitType(this, ChangeWaitType.WT_STOP_FAKEDEATH);
    broadcastPacket(revive);
    broadcastPacket(new Revive(this));
    getAI().notifyEvent(CtrlEvent.EVT_THINK, null);

    revive = null;
View Full Code Here

    if(!_waitTypeSitting && !isAttackingDisabled() && !isOutOfControl() && !isImobilised())
    {
      breakAttack();
      setIsSitting(true);
      broadcastPacket(new ChangeWaitType(this, ChangeWaitType.WT_SITTING));
      sittingTaskLaunched = true;
      // Schedule a sit down task to wait for the animation to finish
      ThreadPoolManager.getInstance().scheduleGeneral(new SitDownTask(this), 2500);
      setIsParalyzed(true);
    }
View Full Code Here

   */
  public void standUp()
  {
    if(isFakeDeath())
    {
      broadcastPacket(new ChangeWaitType(this, ChangeWaitType.WT_STANDING));
      // Schedule a stand up task to wait for the animation to finish
      setIsImobilised(true);
      ThreadPoolManager.getInstance().scheduleGeneral(new StandUpTask(this), 2000);
      stopFakeDeath(null);
    }
   
    if(sittingTaskLaunched){
      return;
    }
   
    if(L2Event.active && eventSitForced)
    {
      sendMessage("A dark force beyond your mortal understanding makes your knees to shake when you try to stand up ...");
    }
    else if((TvT.is_sitForced() && _inEventTvT) || (CTF.is_sitForced() && _inEventCTF) || (DM.is_sitForced() && _inEventDM))
    {
      sendMessage("The Admin/GM handle if you sit or stand in this match!");
    }
    else if (Raid._sitForced && _inEventRaid)
    {
          sendMessage("A dark force beyond your mortal understanding makes your knees shake when you try to stand up ...");
    }
    else if(VIP._sitForced && _inEventVIP)
    {
      sendMessage("The Admin/GM handle if you sit or stand in this match!");
    }
    else if(isAway())
    {
      sendMessage("You can't stand up if your Status is Away.");
    }
    else if(_waitTypeSitting && !isInStoreMode() && !isAlikeDead())
    {
      if(_relax)
      {
        setRelax(false);
        stopEffects(L2Effect.EffectType.RELAXING);
      }

      broadcastPacket(new ChangeWaitType(this, ChangeWaitType.WT_STANDING));
      // Schedule a stand up task to wait for the animation to finish
      setIsImobilised(true);
      ThreadPoolManager.getInstance().scheduleGeneral(new StandUpTask(this), 2500);
     
    }
View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.network.serverpackets.ChangeWaitType

Copyright © 2018 www.massapicom. 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.