Package org.moparscape.msc.gs.model

Examples of org.moparscape.msc.gs.model.Npc.unblock()


            }
          }

          if (go) {
            player.getActionSender().sendSound("retreat");
            npc.unblock();
            npc.resetCombat(CombatState.RUNNING);
            player.resetCombat(CombatState.WAITING);
            npc.setRan(true);
            npc.setPath(new Path(attacker.getX(), attacker.getY(),
                DataConversions.random(npc.getLoc().minX(), npc
View Full Code Here


                        owner.getActionSender()
                            .sendMessage(
                                "The sheep manages to get away from you!");
                      }
                      owner.setBusy(false);
                      affectedNpc.unblock();
                    }
                  });
              break;
            case 217:// Cow
            case 6:
View Full Code Here

                        owner.getActionSender()
                            .sendMessage(
                                "The cow runs away before you could get any milk");
                      }
                      owner.setBusy(false);
                      affectedNpc.unblock();
                    }
                  });
              break;
            case 160:// Thrander
              int newID;
View Full Code Here

                            newPlate.id,
                            newPlate.amount, false);
                        owner.getActionSender()
                            .sendInventory();
                      }
                      affectedNpc.unblock();
                    }
                  });
              affectedNpc.blockedBy(owner);
              break;
            default:
View Full Code Here

          player.resetCombat(CombatState.RUNNING);

          player.isMining(false);
          if (opponent instanceof Npc) {
            Npc n = (Npc) opponent;
            n.unblock();
            opponent.resetCombat(CombatState.WAITING);
            if (n.getDef().aggressive) {
              player.setLastNpcChasingYou(n);
              Instance.getDelayedEventHandler().add(
                  new MiniEvent(player, 2000) {
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.