Jump to content
  • 0

Still Stucked...


Question

Posted

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));
 }
}
  • Upvote 1

2 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.


×
×
  • Create New...