Jelajahi Sumber

Remove old draw henna bypass.
Log info on unknown npc command.

JIV 15 tahun lalu
induk
melakukan
a5399383bd

+ 2 - 7
L2_GameServer/java/com/l2jserver/gameserver/instancemanager/ZoneManager.java

@@ -44,8 +44,7 @@ import com.l2jserver.gameserver.model.zone.form.*;
 import com.l2jserver.gameserver.model.zone.type.*;
 import com.l2jserver.gameserver.model.zone.type.*;
 
 
 /**
 /**
- * This class manages the augmentation data and can also create new
- * augmentations.
+ * This class manages the zones
  * 
  * 
  * @author durgus
  * @author durgus
  */
  */
@@ -98,7 +97,6 @@ public class ZoneManager
 	{
 	{
 		_log.info("Loading zones...");
 		_log.info("Loading zones...");
 		Connection con = null;
 		Connection con = null;
-		int zoneCount = 0;
 		_zones.clear();
 		_zones.clear();
 		
 		
 		// Get the world regions
 		// Get the world regions
@@ -360,9 +358,6 @@ public class ZoneManager
 							// Special managers for granbosses...
 							// Special managers for granbosses...
 							if (temp instanceof L2BossZone)
 							if (temp instanceof L2BossZone)
 								GrandBossManager.getInstance().addZone((L2BossZone) temp);
 								GrandBossManager.getInstance().addZone((L2BossZone) temp);
-							
-							// Increase the counter
-							zoneCount++;
 						}
 						}
 					}
 					}
 				}
 				}
@@ -384,7 +379,7 @@ public class ZoneManager
 			}
 			}
 		}
 		}
 		
 		
-		_log.info("Done: loaded " + zoneCount + " zones.");
+		_log.info("Done: loaded " + _zones.size() + " zones.");
 	}
 	}
 	
 	
 	/**
 	/**

+ 4 - 0
L2_GameServer/java/com/l2jserver/gameserver/model/actor/L2Npc.java

@@ -1777,6 +1777,10 @@ public class L2Npc extends L2Character
 			{
 			{
 				player.sendPacket(new ExShowBaseAttributeCancelWindow(player));
 				player.sendPacket(new ExShowBaseAttributeCancelWindow(player));
 			}
 			}
+			else 
+			{
+				_log.info(getClass().getSimpleName()+": Unknown NPC bypass: \""+command+"\" NpcId: "+getNpcId());
+			}
 		}
 		}
 	}
 	}
 
 

+ 0 - 13
L2_GameServer/java/com/l2jserver/gameserver/network/clientpackets/RequestBypassToServer.java

@@ -156,19 +156,6 @@ public final class RequestBypassToServer extends L2GameClientPacket
 				}
 				}
 				catch (NumberFormatException nfe) {}
 				catch (NumberFormatException nfe) {}
 			}
 			}
-			//	Draw a Symbol
-			else if (_command.equals("menu_select?ask=-16&reply=1"))
-			{
-				L2Object object = activeChar.getTarget();
-				if (object instanceof L2Npc)
-					((L2Npc) object).onBypassFeedback(activeChar, _command);
-			}
-			else if (_command.equals("menu_select?ask=-16&reply=2"))
-			{
-				L2Object object = activeChar.getTarget();
-				if (object instanceof L2Npc)
-					((L2Npc) object).onBypassFeedback(activeChar, _command);
-			}
 			// Navigate through Manor windows
 			// Navigate through Manor windows
 			else if (_command.startsWith("manor_menu_select?"))
 			else if (_command.startsWith("manor_menu_select?"))
 			{
 			{