Skip to content

Still Stucked...

Featured Replies

i want to add a restriction for example when a player is near class master , cannot restart ( NO XMLS PLEASE)

 

 

 
public static void toKnownPlayersInRadius(L2NpcInstance Npc, int radius)
{
 if (radius < 0)
  radius = 150;
 
 for (L2PcInstance player : Npc.getKnownList().getKnownPlayers().values()) 
 {
  if (Npc.isInsideRadius(player, radius, false, false))
   player.sendMessage("You cannot restart near a class master.");
  player.sendPacket(RestartResponse.valueOf(false));
 }
}
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.