Package games.stendhal.server.entity.player

Examples of games.stendhal.server.entity.player.Player.teleport()


      final StendhalRPZone zone = player2.getZone();
      final int x = player2.getX();
      final int y = player2.getY();

      player1.teleport(zone, x, y, null, admin);

      /*
       * StendhalRPRuleProcessor.get().addGameEvent(admin.getName(),
       * "teleportsend", action.get("target") + " -> " +
       * action.get("args"), zone.getName(), Integer.toString(x),
View Full Code Here


      final StendhalRPZone zone = (StendhalRPZone) SingletonRepository.getRPWorld().getRPZone(
          zoneid);
      final int x = action.getInt(X);
      final int y = action.getInt(Y);
      new GameEvent(player.getName(), TELEPORT, action.get(TARGET), zone.getName(), Integer.toString(x), Integer.toString(y)).raise();
      teleported.teleport(zone, x, y, null, player);
     
      SingletonRepository.getJail().grantParoleIfPlayerWasAPrisoner(teleported);
    }
  }
View Full Code Here

              invite2.setInfoString("honeymoon," + husband.getTitle());
              if (wife.equipToInventoryOnly(invite1) &&  husband.equipToInventoryOnly(invite2)) {
                npc.say("Great choice! I will arrange that now.");
                husband.setQuest(marriage.getQuestSlot(), "done");
                wife.setQuest(marriage.getQuestSlot(), "done");
                wife.teleport(zone, 5, 5, Direction.DOWN, player);
                husband.teleport(zone, 6, 5, Direction.DOWN, player);
                final String scrollmessage = "Linda tells you: Use the scroll in your bag to return to the hotel, our special honeymoon suites are so private that they don't use normal entrances and exits!";
                wife.sendPrivateText(scrollmessage);
                                husband.sendPrivateText(scrollmessage);
                wife.notifyWorldAboutChanges();
View Full Code Here

        KeepFreeArea keepFreeArea = entry.getKeepFreeArea();
        Player player = entry.getPlayer();
        if (player == null) {
          continue;
        }
        player.teleport(keepFreeArea.getZone(), keepFreeArea.getX(), keepFreeArea.getY(), Direction.DOWN, player);
      }
    }
  }

  /**
 
View Full Code Here

    int x = Integer.parseInt(args.get(1));
    int y = Integer.parseInt(args.get(2));

    for (PlayerEntry entry : PlayerEntryContainer.getContainer()) {
      Player player = (Player) entry.object;
      player.teleport(targetZone, x, y, null, player);
    }
  }

}
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.