Package org.moparscape.msc.gs.model

Examples of org.moparscape.msc.gs.model.Player.resetAll()


                              }
                              Player player = (Player) affectedMob;
                              player.resetPath();
                              player.setBusy(true);
                              npc.resetPath();
                              player.resetAll();
                              player.setStatus(Action.FIGHTING_MOB);
                              player.getActionSender()
                                  .sendSound(
                                      "underattack");
                              player.getActionSender()
View Full Code Here


    if (GameEngine.getTime() - player.getLastCast() < 600)
      return;

    player.isMining(false);
    player.resetAll();

    int startX = p.readShort();
    int startY = p.readShort();
    int numWaypoints = p.remaining() / 2;
    byte[] waypointXoffsets = new byte[numWaypoints];
View Full Code Here

      return;
    }
    if (GameEngine.getTime() - player.getLastNPCChat() < 1500)
      return;
    player.setLastNPCChat(GameEngine.getTime());
    player.resetAll();
    final Npc affectedNpc = world.getNpc(p.readShort());
    if (affectedNpc == null) {
      return;
    }
    world.addEntryToSnapshots(new Activity(player.getUsername(), player
View Full Code Here

      int pID = ((RSCPacket) p).getID();
      if (player.isBusy()) {
        player.resetPath();
        return;
      }
      player.resetAll();
      ActiveTile t = world.getTile(p.readShort(), p.readShort());
      final GameObject object = t.getGameObject();
      final int click = pID == 126 ? 0 : 1;
      if (object == null) {
        t.cleanItself();
View Full Code Here

    Player player = (Player) session.getAttachment();
    if (player.isBusy()) {
      player.resetPath();
      return;
    }
    player.resetAll();
    final Player affectedPlayer = world.getPlayer(p.readShort());
    final InvItem item = player.getInventory().getSlot(p.readShort());
    if (affectedPlayer == null || item == null) { // This shouldn't happen
      return;
    }
View Full Code Here

    Player player = (Player) session.getAttachment();
    if (player.isBusy()) {
      player.resetPath();
      return;
    }
    player.resetAll();
    int sh = -125534;
    try {
      sh = p.readShort();
    } catch (NullPointerException npe) {
      return;
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.