Examples of ExRotation


Examples of lineage2.gameserver.network.serverpackets.ExRotation

    }
    else if (((lastSayTime + SAY_INTERVAL) < System.currentTimeMillis()) && (actor.getDestination() == null))
    {
      final int heading = actor.calcHeading(target.getX(), target.getY());
      actor.setHeading(heading);
      actor.broadcastPacket(new ExRotation(actor.getObjectId(), heading));
      lastSayTime = System.currentTimeMillis();
      Functions.npcSay(actor, string, ChatType.NPC_SAY, 800, target.getName());
    }
    return true;
  }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.ExRotation

      }
      else if (((lastSayTime + SAY_INTERVAL) < System.currentTimeMillis()) && (actor.getDestination() == null))
      {
        final int heading = actor.calcHeading(target.getX(), target.getY());
        actor.setHeading(heading);
        actor.broadcastPacket(new ExRotation(actor.getObjectId(), heading));
        lastSayTime = System.currentTimeMillis();
        target.sendPacket(new ExShowScreenMessage(NpcString.CATCH_UP_TO_KING_HES_WAITING, 1500, ExShowScreenMessage.ScreenMessageAlign.TOP_CENTER));
        st.set("saytimes", ++saytimes);
      }
    }
    else if (zone == 2)
    {
      if ((actor.getDistance(target) >= 100) && ((lastSayTime + SAY_INTERVAL) < System.currentTimeMillis()))
      {
        lastSayTime = System.currentTimeMillis();
        target.sendPacket(new ExShowScreenMessage(NpcString.YOU_MUST_MOVE_TO_EXPLORATION_AREA_5_IN_ORDER_TO_CONTINUE, 2000, ExShowScreenMessage.ScreenMessageAlign.TOP_CENTER));
        st.set("saytimes", ++saytimes);
      }
      else if (actor.getDistance(target) < 100)
      {
        st.set("zone", 3);
      }
      st.unset("saytimes");
    }
    else if (zone == 3)
    {
      coords = SMP_COORDS2;
      if ((actor.getDistance(target) < 100) || (currentState1 >= coords.length))
      {
        if (currentState1 < coords.length)
        {
          st.unset("saytimes");
          actor.moveToLocation(coords[currentState1][0], coords[currentState1][1], coords[currentState1][2], Rnd.get(0, 50), true);
          if (actor.getDestination() == null)
          {
            ++currentState1;
          }
        }
        else
        {
          actor.deleteMe();
          st.set("seeksp", 0);
          st.set("zone", 1);
          st.setCond(2);
        }
      }
      else if (((lastSayTime + SAY_INTERVAL) < System.currentTimeMillis()) && (actor.getDestination() == null))
      {
        final int heading = actor.calcHeading(target.getX(), target.getY());
        actor.setHeading(heading);
        actor.broadcastPacket(new ExRotation(actor.getObjectId(), heading));
        lastSayTime = System.currentTimeMillis();
        target.sendPacket(new ExShowScreenMessage(NpcString.CATCH_UP_TO_KING_HES_WAITING, 1500, ExShowScreenMessage.ScreenMessageAlign.TOP_CENTER));
        st.set("saytimes", ++saytimes);
      }
    }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.ExRotation

    {
      target.getAI().setIntention(CtrlIntention.AI_INTENTION_COUPLE_ACTION, actor, socialId);
    }
    int heading = actor.calcHeading(target.getX(), target.getY());
    actor.setHeading(heading);
    actor.broadcastPacket(new ExRotation(actor.getObjectId(), heading));
    actor.broadcastPacket(new SocialAction(actor.getObjectId(), socialId));
  }
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.