Examples of resetAll()


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

    Player player = (Player) session.getAttachment();
    if (player.isBusy()) {
      player.resetPath();
      return;
    }
    player.resetAll();
    final int idx = (int) p.readShort();
    if (idx < 0 || idx >= player.getInventory().size()) {
      player.setSuspiciousPlayer(true);
      return;
    }
View Full Code Here

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

                  }

                  npc.resetPath();
                  player.setBusy(true);
                  player.resetPath();
                  player.resetAll();

                  player.setStatus(Action.FIGHTING_MOB);
                  player.getActionSender().sendSound(
                      "underattack");
                  player.getActionSender().sendMessage(
View Full Code Here

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

            npc.setPath(new Path(attacker.getX(), attacker.getY(),
                DataConversions.random(npc.getLoc().minX(), npc
                    .getLoc().maxX()), DataConversions
                    .random(npc.getLoc().minY(), npc
                        .getLoc().maxY())));
            player.resetAll();
            player.getActionSender().sendMessage(
                "Your opponent is retreating");
            this.stop();
            return;
          }
View Full Code Here

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

    Player player = (Player) session.getAttachment();
    if (player.isBusy()) {
      player.resetPath();
      return;
    }
    player.resetAll();
    Point location = Point.location(p.readShort(), p.readShort());
    int id = p.readShort();
    final ActiveTile tile = world.getTile(location);
    final Item item = getItem(id, tile, player);
View Full Code Here

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

      if (player.isBusy()) {
        player.resetPath();
        return;
      }
      // incExp
      player.resetAll();
      Point location = Point.location(p.readShort(), p.readShort());
      int id = p.readShort();
      final ActiveTile tile = world.getTile(location);
      if (tile == null)
        return;
View Full Code Here

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

    int pID = ((RSCPacket) p).getID();
    if (player.isBusy()) {
      player.resetPath();// sendSound
      return;
    }
    player.resetAll();
    ActiveTile tile = world.getTile(p.readShort(), p.readShort());
    if (tile == null) {
      player.setSuspiciousPlayer(true);
      player.resetPath();
      return;
View Full Code Here

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

    int pID = ((RSCPacket) p).getID();
    if (player.isBusy()) {
      player.resetPath();
      return;
    }
    player.resetAll();
    Mob affectedMob = null;
    int serverIndex = p.readShort();
    if (pID == 57) {
      affectedMob = world.getPlayer(serverIndex);
    } else if (pID == 73) {
View Full Code Here

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

              owner.resetAll();
              owner.setStatus(Action.FIGHTING_MOB);
              if (affectedMob instanceof Player) {
                Player affectedPlayer = (Player) affectedMob;
                affectedPlayer.resetAll();
                affectedPlayer.setStatus(Action.FIGHTING_MOB);
                affectedPlayer.getActionSender().sendSound(
                    "underattack");
                affectedPlayer.getActionSender().sendMessage(
                    "You are under attack!");
View Full Code Here

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

        player.getActionSender().sendMessage(
            "You cannot do that whilst fighting!");
      }
      return;
    }// sip
    player.resetAll();

    if (item.id == 1263) {
      // player.resetPath(); // This isn't how it's done in RSC
      // player.setBusy(true); // Shouldn't be here
      player.getActionSender()
View Full Code Here

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

    Player player = (Player) session.getAttachment();
    if (player.isBusy()) {
      player.resetPath();
      return;
    }
    player.resetAll();
    InvItem item1 = player.getInventory().getSlot(p.readShort());
    InvItem item2 = player.getInventory().getSlot(p.readShort());
    if (item1 == null || item2 == null) {
      player.setSuspiciousPlayer(true);
      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.