Advertisement
Guest User

Intrepid

a guest
Jan 7th, 2010
368
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 41.52 KB | None | 0 0
  1. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/network/serverpackets/ActionFailed.java
  2. ===================================================================
  3. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/network/serverpackets/ActionFailed.java (revision 173)
  4. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/network/serverpackets/ActionFailed.java (revision 230)
  5. @@ -19,13 +19,13 @@
  6.  package net.ins.gameserver.network.serverpackets;
  7.  
  8. -/**
  9. - * This class ...
  10. - *
  11. - * @version $Revision: 1.3.2.1.2.3 $ $Date: 2005/03/27 15:29:39 $
  12. - */
  13.  public final class ActionFailed extends L2GameServerPacket
  14.  {
  15.     private static final String _S__35_ACTIONFAILED = "[S] 25 ActionFailed";
  16. +   public static final ActionFailed STATIC_PACKET = new ActionFailed();
  17.  
  18. +   public ActionFailed()
  19. +   {
  20. +   }
  21. +  
  22.     @Override
  23.     protected void writeImpl()
  24. @@ -34,8 +34,4 @@
  25.     }
  26.  
  27. -   /*
  28. -    * (non-Javadoc)
  29. -    * @see net.ins.gameserver.network.serverpackets.ServerBasePacket#getType()
  30. -    */
  31.     @Override
  32.     public String getType()
  33. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/network/clientpackets/ChangeWaitType2.java
  34. ===================================================================
  35. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/network/clientpackets/ChangeWaitType2.java (revision 173)
  36. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/network/clientpackets/ChangeWaitType2.java (revision 230)
  37. @@ -51,5 +51,5 @@
  38.             if (player.isOutOfControl())
  39.             {
  40. -               player.sendPacket(new ActionFailed());
  41. +               player.sendPacket(ActionFailed.STATIC_PACKET);
  42.                 return;
  43.             }
  44. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/network/clientpackets/CharacterSelected.java
  45. ===================================================================
  46. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/network/clientpackets/CharacterSelected.java (revision 173)
  47. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/network/clientpackets/CharacterSelected.java (revision 230)
  48. @@ -86,5 +86,5 @@
  49.                     {
  50.                         _log.severe("Character could not be loaded (slot:" + _charSlot + ")");
  51. -                       sendPacket(new ActionFailed());
  52. +                       sendPacket(ActionFailed.STATIC_PACKET);
  53.                         return;
  54.                     }
  55. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/network/clientpackets/Action.java
  56. ===================================================================
  57. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/network/clientpackets/Action.java (revision 213)
  58. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/network/clientpackets/Action.java (revision 230)
  59. @@ -72,5 +72,5 @@
  60.             // pressing e.g. pickup many times quickly would get you here
  61.             // _log.warning("Character: " + activeChar.getName() + " request action with non existent ObjectID:" + _objectId);
  62. -           getClient().sendPacket(new ActionFailed());
  63. +           getClient().sendPacket(ActionFailed.STATIC_PACKET);
  64.             return;
  65.         }
  66. @@ -92,5 +92,5 @@
  67.                     // Ivalid action detected (probably client cheating), log this
  68.                     _log.warning("Character: " + activeChar.getName() + " requested invalid action: " + _actionId);
  69. -                   getClient().sendPacket(new ActionFailed());
  70. +                   getClient().sendPacket(ActionFailed.STATIC_PACKET);
  71.                     break;
  72.             }
  73. @@ -98,5 +98,5 @@
  74.         else
  75.             // Actions prohibited when in trade
  76. -           getClient().sendPacket(new ActionFailed());
  77. +           getClient().sendPacket(ActionFailed.STATIC_PACKET);
  78.     }
  79.  
  80. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/network/clientpackets/AnswerTradeRequest.java
  81. ===================================================================
  82. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/network/clientpackets/AnswerTradeRequest.java (revision 173)
  83. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/network/clientpackets/AnswerTradeRequest.java (revision 230)
  84. @@ -53,10 +53,10 @@
  85.         {
  86.             player.sendMessage("Transactions are disable for your Access Level");
  87. -           sendPacket(new ActionFailed());
  88. +           sendPacket(ActionFailed.STATIC_PACKET);
  89.             return;
  90.         }
  91.         if (player.getActiveEnchantItem() != null)
  92.         {
  93. -           player.sendPacket(new ActionFailed());
  94. +           player.sendPacket(ActionFailed.STATIC_PACKET);
  95.             player.sendMessage("You cannot Trade While Enchanting!");
  96.             return;
  97. @@ -72,5 +72,5 @@
  98.             player.setAllowTrade(true);
  99.             partner.setAllowTrade(true);
  100. -           player.sendPacket(new ActionFailed());
  101. +           player.sendPacket(ActionFailed.STATIC_PACKET);
  102.             return;
  103.         }
  104. @@ -87,5 +87,5 @@
  105.             partner.sendPacket(msg);
  106.             player.setAllowTrade(true);
  107. -           player.sendPacket(new ActionFailed());
  108. +           player.sendPacket(ActionFailed.STATIC_PACKET);
  109.         }
  110.         // Clears requesting status
  111. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/network/clientpackets/AttackRequest.java
  112. ===================================================================
  113. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/network/clientpackets/AttackRequest.java (revision 173)
  114. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/network/clientpackets/AttackRequest.java (revision 230)
  115. @@ -81,5 +81,5 @@
  116.             else
  117.             {
  118. -               sendPacket(new ActionFailed());
  119. +               sendPacket(ActionFailed.STATIC_PACKET);
  120.             }
  121.         }
  122. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/status/CharStatus.java
  123. ===================================================================
  124. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/status/CharStatus.java (revision 208)
  125. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/status/CharStatus.java (revision 230)
  126. @@ -175,5 +175,5 @@
  127.                     stopHpMpRegeneration();
  128.                     attacker.getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
  129. -                   attacker.sendPacket(new ActionFailed());
  130. +                   attacker.sendPacket(ActionFailed.STATIC_PACKET);
  131.                     // let the DuelManager know of his defeat
  132.                     DuelManager.getInstance().onPlayerDefeat((L2PcInstance) getActiveChar());
  133. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2ClassMasterInstance.java
  134. ===================================================================
  135. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2ClassMasterInstance.java (revision 226)
  136. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2ClassMasterInstance.java (revision 230)
  137. @@ -150,5 +150,5 @@
  138.             }
  139.         }
  140. -       player.sendPacket(new ActionFailed());
  141. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  142.     }
  143.  
  144. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2CastleTeleporterInstance.java
  145. ===================================================================
  146. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2CastleTeleporterInstance.java (revision 223)
  147. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2CastleTeleporterInstance.java (revision 230)
  148. @@ -145,5 +145,5 @@
  149.             _log.warning("No teleport destination with id:" + val);
  150.         }
  151. -       player.sendPacket(new ActionFailed());
  152. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  153.     }
  154.  
  155. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2BoxInstance.java
  156. ===================================================================
  157. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2BoxInstance.java (revision 223)
  158. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2BoxInstance.java (revision 230)
  159. @@ -300,5 +300,5 @@
  160.         html.setHtml(content);
  161.         player.sendPacket(html);
  162. -       player.sendPacket(new ActionFailed());
  163. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  164.     }
  165.  
  166. @@ -348,5 +348,5 @@
  167.         html.setHtml(content);
  168.         player.sendPacket(html);
  169. -       player.sendPacket(new ActionFailed());
  170. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  171.     }
  172.  
  173. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2ArtefactInstance.java
  174. ===================================================================
  175. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2ArtefactInstance.java (revision 223)
  176. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2ArtefactInstance.java (revision 230)
  177. @@ -109,5 +109,5 @@
  178.         }
  179.         // Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet
  180. -       player.sendPacket(new ActionFailed());
  181. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  182.     }
  183.  
  184. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2FestivalGuideInstance.java
  185. ===================================================================
  186. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2FestivalGuideInstance.java (revision 223)
  187. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2FestivalGuideInstance.java (revision 230)
  188. @@ -395,5 +395,5 @@
  189.         player.sendPacket(html);
  190.         // Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet
  191. -       player.sendPacket(new ActionFailed());
  192. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  193.     }
  194.  
  195. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2CastleWarehouseInstance.java
  196. ===================================================================
  197. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2CastleWarehouseInstance.java (revision 223)
  198. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2CastleWarehouseInstance.java (revision 230)
  199. @@ -29,5 +29,5 @@
  200.     private void showRetrieveWindow(L2PcInstance player)
  201.     {
  202. -       player.sendPacket(new ActionFailed());
  203. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  204.         player.setActiveWarehouse(player.getWarehouse());
  205.         if (player.getActiveWarehouse().getSize() == 0)
  206. @@ -41,5 +41,5 @@
  207.     private void showDepositWindow(L2PcInstance player)
  208.     {
  209. -       player.sendPacket(new ActionFailed());
  210. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  211.         player.setActiveWarehouse(player.getWarehouse());
  212.         player.tempInvetoryDisable();
  213. @@ -49,5 +49,5 @@
  214.     private void showDepositWindowClan(L2PcInstance player)
  215.     {
  216. -       player.sendPacket(new ActionFailed());
  217. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  218.         if (player.getClan() != null)
  219.         {
  220. @@ -72,5 +72,5 @@
  221.     private void showWithdrawWindowClan(L2PcInstance player)
  222.     {
  223. -       player.sendPacket(new ActionFailed());
  224. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  225.         if ((player.getClanPrivileges() & L2Clan.CP_CL_VIEW_WAREHOUSE) != L2Clan.CP_CL_VIEW_WAREHOUSE)
  226.         {
  227. @@ -131,5 +131,5 @@
  228.     public void showChatWindow(L2PcInstance player, int val)
  229.     {
  230. -       player.sendPacket(new ActionFailed());
  231. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  232.         String filename = "data/html/castlewarehouse/castlewarehouse-no.htm";
  233.         int condition = validateCondition(player);
  234. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2AuctioneerInstance.java
  235. ===================================================================
  236. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2AuctioneerInstance.java (revision 223)
  237. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2AuctioneerInstance.java (revision 230)
  238. @@ -83,5 +83,5 @@
  239.         }
  240.         // Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet
  241. -       player.sendPacket(new ActionFailed());
  242. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  243.     }
  244.  
  245. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2CastleDoormenInstance.java
  246. ===================================================================
  247. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2CastleDoormenInstance.java (revision 223)
  248. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2CastleDoormenInstance.java (revision 230)
  249. @@ -130,10 +130,10 @@
  250.         }
  251.         // Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet
  252. -       player.sendPacket(new ActionFailed());
  253. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  254.     }
  255.  
  256.     public void showMessageWindow(L2PcInstance player)
  257.     {
  258. -       player.sendPacket(new ActionFailed());
  259. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  260.         String filename = "data/html/doormen/" + getTemplate().npcId + "-no.htm";
  261.         int condition = validateCondition(player);
  262. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2DoorInstance.java
  263. ===================================================================
  264. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2DoorInstance.java (revision 226)
  265. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2DoorInstance.java (revision 230)
  266. @@ -433,5 +433,5 @@
  267.         }
  268.         // Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet
  269. -       player.sendPacket(new ActionFailed());
  270. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  271.     }
  272.  
  273. @@ -476,5 +476,5 @@
  274.             // ATTACK the mob without moving?
  275.         }
  276. -       player.sendPacket(new ActionFailed());
  277. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  278.     }
  279.  
  280. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2ManorManagerInstance.java
  281. ===================================================================
  282. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2ManorManagerInstance.java (revision 226)
  283. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2ManorManagerInstance.java (revision 230)
  284. @@ -105,5 +105,5 @@
  285.         }
  286.         // Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet
  287. -       player.sendPacket(new ActionFailed());
  288. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  289.     }
  290.  
  291. @@ -124,5 +124,5 @@
  292.             _log.info("buylist id:" + val);
  293.         }
  294. -       player.sendPacket(new ActionFailed());
  295. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  296.     }
  297.  
  298. @@ -139,5 +139,5 @@
  299.             if (CastleManorManager.getInstance().isUnderMaintenance())
  300.             {
  301. -               player.sendPacket(new ActionFailed());
  302. +               player.sendPacket(ActionFailed.STATIC_PACKET);
  303.                 player.sendPacket(new SystemMessage(SystemMessageId.THE_MANOR_SYSTEM_IS_CURRENTLY_UNDER_MAINTENANCE));
  304.                 return;
  305. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2ClanHallManagerInstance.java
  306. ===================================================================
  307. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2ClanHallManagerInstance.java (revision 223)
  308. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2ClanHallManagerInstance.java (revision 230)
  309. @@ -721,5 +721,5 @@
  310.         }
  311.         // Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet
  312. -       player.sendPacket(new ActionFailed());
  313. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  314.     }
  315.  
  316. @@ -734,5 +734,5 @@
  317.     private void showMessageWindow(L2PcInstance player)
  318.     {
  319. -       player.sendPacket(new ActionFailed());
  320. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  321.         String filename = "data/html/clanHallManager/chamberlain-no.htm";
  322.         int condition = validateCondition(player);
  323. @@ -779,5 +779,5 @@
  324.     private void showVaultWindowDeposit(L2PcInstance player)
  325.     {
  326. -       player.sendPacket(new ActionFailed());
  327. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  328.         player.setActiveWarehouse(player.getClan().getWarehouse());
  329.         player.sendPacket(new WareHouseDepositList(player, WareHouseDepositList.CLAN)); // Or Clan Hall??
  330. @@ -786,5 +786,5 @@
  331.     private void showVaultWindowWithdraw(L2PcInstance player)
  332.     {
  333. -       player.sendPacket(new ActionFailed());
  334. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  335.         player.setActiveWarehouse(player.getClan().getWarehouse());
  336.         player.sendPacket(new WareHouseWithdrawalList(player, WareHouseWithdrawalList.CLAN)); // Or Clan Hall ??
  337. @@ -815,5 +815,5 @@
  338.             _log.warning("No teleport destination with id:" + val);
  339.         }
  340. -       player.sendPacket(new ActionFailed());
  341. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  342.     }
  343.  
  344. @@ -837,5 +837,5 @@
  345.             _log.warning("buylist id:" + val);
  346.         }
  347. -       player.sendPacket(new ActionFailed());
  348. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  349.     }
  350.  
  351. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2FishermanInstance.java
  352. ===================================================================
  353. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2FishermanInstance.java (revision 223)
  354. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2FishermanInstance.java (revision 230)
  355. @@ -79,5 +79,5 @@
  356.             _log.warning("buylist id:" + val);
  357.         }
  358. -       player.sendPacket(new ActionFailed());
  359. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  360.     }
  361.  
  362. @@ -157,5 +157,5 @@
  363.             player.sendPacket(asl);
  364.         }
  365. -       player.sendPacket(new ActionFailed());
  366. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  367.     }
  368.  }
  369. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2CastleBlacksmithInstance.java
  370. ===================================================================
  371. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2CastleBlacksmithInstance.java (revision 223)
  372. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2CastleBlacksmithInstance.java (revision 230)
  373. @@ -64,5 +64,5 @@
  374.         }
  375.         // Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet
  376. -       player.sendPacket(new ActionFailed());
  377. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  378.     }
  379.  
  380. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2ControlTowerInstance.java
  381. ===================================================================
  382. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2ControlTowerInstance.java (revision 223)
  383. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2ControlTowerInstance.java (revision 230)
  384. @@ -90,5 +90,5 @@
  385.                 player.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, this);
  386.                 // Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet
  387. -               player.sendPacket(new ActionFailed());
  388. +               player.sendPacket(ActionFailed.STATIC_PACKET);
  389.             }
  390.         }
  391. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2CabaleBufferInstance.java
  392. ===================================================================
  393. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2CabaleBufferInstance.java (revision 223)
  394. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2CabaleBufferInstance.java (revision 230)
  395. @@ -76,5 +76,5 @@
  396.         }
  397.         // Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet
  398. -       player.sendPacket(new ActionFailed());
  399. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  400.     }
  401.  
  402. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2CastleChamberlainInstance.java
  403. ===================================================================
  404. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2CastleChamberlainInstance.java (revision 226)
  405. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2CastleChamberlainInstance.java (revision 230)
  406. @@ -97,5 +97,5 @@
  407.         }
  408.         // Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet
  409. -       player.sendPacket(new ActionFailed());
  410. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  411.     }
  412.  
  413. @@ -290,5 +290,5 @@
  414.                     _log.warning("buylist id:" + buy);
  415.                 }
  416. -               player.sendPacket(new ActionFailed());
  417. +               player.sendPacket(ActionFailed.STATIC_PACKET);
  418.             }
  419.             else if (actualCommand.equalsIgnoreCase("manage_siege_defender"))
  420. @@ -392,5 +392,5 @@
  421.                 if (CastleManorManager.getInstance().isUnderMaintenance())
  422.                 {
  423. -                   player.sendPacket(new ActionFailed());
  424. +                   player.sendPacket(ActionFailed.STATIC_PACKET);
  425.                     player.sendPacket(new SystemMessage(SystemMessageId.THE_MANOR_SYSTEM_IS_CURRENTLY_UNDER_MAINTENANCE));
  426.                     return;
  427. @@ -502,5 +502,5 @@
  428.     private void showMessageWindow(L2PcInstance player)
  429.     {
  430. -       player.sendPacket(new ActionFailed());
  431. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  432.         String filename = "data/html/chamberlain/chamberlain-no.htm";
  433.         int condition = validateCondition(player);
  434. @@ -520,8 +520,4 @@
  435.     }
  436.  
  437. -   /*
  438. -    * private void showVaultWindowDeposit(L2PcInstance player) { player.sendPacket(new ActionFailed()); player.setActiveWarehouse(player.getClan().getWarehouse()); player.sendPacket(new WareHouseDepositList(player, WareHouseDepositList.CLAN)); //Or Castle ?? } private void showVaultWindowWithdraw(L2PcInstance player) { player.sendPacket(new ActionFailed());
  439. -    * player.setActiveWarehouse(player.getClan().getWarehouse()); player.sendPacket(new WareHouseWithdrawalList(player, WareHouseWithdrawalList.CLAN)); //Or Castle ?? }
  440. -    */
  441.     protected int validateCondition(L2PcInstance player)
  442.     {
  443. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2MerchantInstance.java
  444. ===================================================================
  445. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2MerchantInstance.java (revision 223)
  446. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2MerchantInstance.java (revision 230)
  447. @@ -78,5 +78,5 @@
  448.         {
  449.             _log.warning("no buylist with id:" + val);
  450. -           player.sendPacket(new ActionFailed());
  451. +           player.sendPacket(ActionFailed.STATIC_PACKET);
  452.         }
  453.     }
  454. @@ -101,5 +101,5 @@
  455.             _log.warning("buylist id:" + val);
  456.         }
  457. -       player.sendPacket(new ActionFailed());
  458. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  459.     }
  460.  
  461. @@ -111,5 +111,5 @@
  462.         if (Config.DEBUG)
  463.             _log.fine("Showing sell window");
  464. -       player.sendPacket(new ActionFailed());
  465. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  466.     }
  467.  
  468. @@ -271,5 +271,5 @@
  469.             player.sendPacket(html);
  470.         }
  471. -       player.sendPacket(new ActionFailed());
  472. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  473.     }
  474.  }
  475. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2ClanHallDoormenInstance.java
  476. ===================================================================
  477. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2ClanHallDoormenInstance.java (revision 223)
  478. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2ClanHallDoormenInstance.java (revision 230)
  479. @@ -231,10 +231,10 @@
  480.         }
  481.         // Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet
  482. -       player.sendPacket(new ActionFailed());
  483. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  484.     }
  485.  
  486.     public void showMessageWindow(L2PcInstance player)
  487.     {
  488. -       player.sendPacket(new ActionFailed());
  489. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  490.         String filename = "data/html/doormen/" + getTemplate().npcId + "-no.htm";
  491.         int condition = validateCondition(player);
  492. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2DoormenInstance.java
  493. ===================================================================
  494. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2DoormenInstance.java (revision 223)
  495. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/instance/L2DoormenInstance.java (revision 230)
  496. @@ -163,10 +163,10 @@
  497.         }
  498.         // Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet
  499. -       player.sendPacket(new ActionFailed());
  500. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  501.     }
  502.  
  503.     public void showMessageWindow(L2PcInstance player)
  504.     {
  505. -       player.sendPacket(new ActionFailed());
  506. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  507.         String filename = "data/html/doormen/" + getTemplate().npcId + "-no.htm";
  508.         int condition = validateCondition(player);
  509. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/L2Character.java
  510. ===================================================================
  511. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/L2Character.java (revision 226)
  512. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/L2Character.java (revision 230)
  513. @@ -562,5 +562,5 @@
  514.             // If L2PcInstance is dead or the target is dead, the action is stoped
  515.             getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
  516. -           sendPacket(new ActionFailed());
  517. +           sendPacket(ActionFailed.STATIC_PACKET);
  518.             return;
  519.         }
  520. @@ -572,5 +572,5 @@
  521.             {
  522.                 sendPacket(new SystemMessage(SystemMessageId.OBSERVERS_CANNOT_PARTICIPATE));
  523. -               sendPacket(new ActionFailed());
  524. +               sendPacket(ActionFailed.STATIC_PACKET);
  525.                 return;
  526.             }
  527. @@ -580,5 +580,5 @@
  528.                 {
  529.                     ((L2PcInstance) this).sendMessage("Can't attack a cursed player when under level 21.");
  530. -                   sendPacket(new ActionFailed());
  531. +                   sendPacket(ActionFailed.STATIC_PACKET);
  532.                     return;
  533.                 }
  534. @@ -586,5 +586,5 @@
  535.                 {
  536.                     ((L2PcInstance) this).sendMessage("Can't attack a newbie player using a cursed weapon.");
  537. -                   sendPacket(new ActionFailed());
  538. +                   sendPacket(ActionFailed.STATIC_PACKET);
  539.                     return;
  540.                 }
  541. @@ -600,6 +600,5 @@
  542.             ((L2PcInstance) this).sendPacket(new SystemMessage(SystemMessageId.CANNOT_ATTACK_WITH_FISHING_POLE));
  543.             getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
  544. -           ActionFailed af = new ActionFailed();
  545. -           sendPacket(af);
  546. +           sendPacket(ActionFailed.STATIC_PACKET);
  547.             return;
  548.         }
  549. @@ -609,5 +608,5 @@
  550.             sendPacket(new SystemMessage(SystemMessageId.CANT_SEE_TARGET));
  551.             getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
  552. -           sendPacket(new ActionFailed());
  553. +           sendPacket(ActionFailed.STATIC_PACKET);
  554.             return;
  555.         }
  556. @@ -623,5 +622,5 @@
  557.                 {
  558.                     getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
  559. -                   sendPacket(new ActionFailed());
  560. +                   sendPacket(ActionFailed.STATIC_PACKET);
  561.                     return;
  562.                 }
  563. @@ -637,5 +636,5 @@
  564.                         ThreadPoolManager.getInstance().scheduleAi(new NotifyAITask(CtrlEvent.EVT_READY_TO_ACT), 1000);
  565.                         sendPacket(new SystemMessage(SystemMessageId.NOT_ENOUGH_MP));
  566. -                       sendPacket(new ActionFailed());
  567. +                       sendPacket(ActionFailed.STATIC_PACKET);
  568.                         return;
  569.                     }
  570. @@ -649,5 +648,5 @@
  571.                     // Cancel the action because the bow can't be re-use at this moment
  572.                     ThreadPoolManager.getInstance().scheduleAi(new NotifyAITask(CtrlEvent.EVT_READY_TO_ACT), 1000);
  573. -                   sendPacket(new ActionFailed());
  574. +                   sendPacket(ActionFailed.STATIC_PACKET);
  575.                     return;
  576.                 }
  577. @@ -657,5 +656,5 @@
  578.                     // Cancel the action because the L2PcInstance have no arrow
  579.                     getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
  580. -                   sendPacket(new ActionFailed());
  581. +                   sendPacket(ActionFailed.STATIC_PACKET);
  582.                     sendPacket(new SystemMessage(SystemMessageId.NOT_ENOUGH_ARROWS));
  583.                     return;
  584. @@ -3606,5 +3605,5 @@
  585.         {
  586.             _attacking = 0;
  587. -           sendPacket(new ActionFailed());
  588. +           sendPacket(ActionFailed.STATIC_PACKET);
  589.         }
  590.     }
  591. @@ -3640,5 +3639,5 @@
  592.                 getAI().notifyEvent(CtrlEvent.EVT_FINISH_CASTING); // setting back previous intention
  593.             broadcastPacket(new MagicSkillCanceld(getObjectId())); // broadcast packet to stop animations client-side
  594. -           sendPacket(new ActionFailed()); // send an "action failed" packet to the caster
  595. +           sendPacket(ActionFailed.STATIC_PACKET); // send an "action failed" packet to the caster
  596.         }
  597.     }
  598. @@ -3795,6 +3794,6 @@
  599.             }
  600.             /*
  601. -            * if (isAttackingNow() && getAI().getAttackTarget() == _target) { abortAttack(); getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE); if (this instanceof L2PcInstance) { sendPacket(new ActionFailed()); SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2); sm.addString("Attack is aborted"); sendPacket(sm); } } if (isCastingNow() && canAbortCast() && getAI().getCastTarget()
  602. -            * == _target) { abortCast(); getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE); if (this instanceof L2PcInstance) { sendPacket(new ActionFailed()); SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2); sm.addString("Casting is aborted"); sendPacket(sm); } }
  603. +            * if (isAttackingNow() && getAI().getAttackTarget() == _target) { abortAttack(); getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE); if (this instanceof L2PcInstance) { sendPacket(ActionFailed.STATIC_PACKET); SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2); sm.addString("Attack is aborted"); sendPacket(sm); } } if (isCastingNow() && canAbortCast() && getAI().getCastTarget()
  604. +            * == _target) { abortCast(); getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE); if (this instanceof L2PcInstance) { sendPacket(ActionFailed.STATIC_PACKET); SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2); sm.addString("Casting is aborted"); sendPacket(sm); } }
  605.              */
  606.         }
  607. @@ -4560,5 +4559,5 @@
  608.             // getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE, null);
  609.             getAI().notifyEvent(CtrlEvent.EVT_CANCEL);
  610. -           sendPacket(new ActionFailed());
  611. +           sendPacket(ActionFailed.STATIC_PACKET);
  612.             return;
  613.         }
  614. @@ -4702,5 +4701,5 @@
  615.             {
  616.                 // TODO Remove sendPacket because it's always done in abortAttack
  617. -               sendPacket(new ActionFailed());
  618. +               sendPacket(ActionFailed.STATIC_PACKET);
  619.                 // Send a system message
  620.                 sendPacket(new SystemMessage(SystemMessageId.ATTACK_FAILED));
  621. @@ -4760,5 +4759,5 @@
  622.             // If L2Character or target is in a peace zone, send a system message TARGET_IN_PEACEZONE a Server->Client packet ActionFailed
  623.             player.sendPacket(new SystemMessage(SystemMessageId.TARGET_IN_PEACEZONE));
  624. -           player.sendPacket(new ActionFailed());
  625. +           player.sendPacket(ActionFailed.STATIC_PACKET);
  626.         }
  627.         else if (player.isInOlympiadMode() && player.getTarget() != null)
  628. @@ -4772,5 +4771,5 @@
  629.             {
  630.                 // if L2PcInstance is in Olympia and the match isn't already start, send a Server->Client packet ActionFailed
  631. -               player.sendPacket(new ActionFailed());
  632. +               player.sendPacket(ActionFailed.STATIC_PACKET);
  633.             }
  634.         }
  635. @@ -4778,15 +4777,15 @@
  636.         {
  637.             // If target is not attackable, send a Server->Client packet ActionFailed
  638. -           player.sendPacket(new ActionFailed());
  639. +           player.sendPacket(ActionFailed.STATIC_PACKET);
  640.         }
  641.         else if (player.isConfused())
  642.         {
  643.             // If target is confused, send a Server->Client packet ActionFailed
  644. -           player.sendPacket(new ActionFailed());
  645. +           player.sendPacket(ActionFailed.STATIC_PACKET);
  646.         }
  647.         else if (this instanceof L2ArtefactInstance)
  648.         {
  649.             // If L2Character is a L2ArtefactInstance, send a Server->Client packet ActionFailed
  650. -           player.sendPacket(new ActionFailed());
  651. +           player.sendPacket(ActionFailed.STATIC_PACKET);
  652.         }
  653.         else
  654. @@ -4796,5 +4795,5 @@
  655.             {
  656.                 player.sendPacket(new SystemMessage(SystemMessageId.CANT_SEE_TARGET));
  657. -               player.sendPacket(new ActionFailed());
  658. +               player.sendPacket(ActionFailed.STATIC_PACKET);
  659.                 return;
  660.             }
  661. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/L2Npc.java
  662. ===================================================================
  663. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/L2Npc.java (revision 226)
  664. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/actor/L2Npc.java (revision 230)
  665. @@ -543,5 +543,5 @@
  666.         if (player.isOutOfControl())
  667.         {
  668. -           player.sendPacket(new ActionFailed());
  669. +           player.sendPacket(ActionFailed.STATIC_PACKET);
  670.             return false;
  671.         }
  672. @@ -638,5 +638,5 @@
  673.                 {
  674.                     // Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet
  675. -                   player.sendPacket(new ActionFailed());
  676. +                   player.sendPacket(ActionFailed.STATIC_PACKET);
  677.                 }
  678.             }
  679. @@ -671,5 +671,5 @@
  680.             }
  681.             else
  682. -               player.sendPacket(new ActionFailed());
  683. +               player.sendPacket(ActionFailed.STATIC_PACKET);
  684.         }
  685.     }
  686. @@ -811,5 +811,5 @@
  687.         }
  688.         // Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet
  689. -       player.sendPacket(new ActionFailed());
  690. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  691.     }
  692.  
  693. @@ -859,5 +859,5 @@
  694.             if (isBusy() && getBusyMessage().length() > 0)
  695.             {
  696. -               player.sendPacket(new ActionFailed());
  697. +               player.sendPacket(ActionFailed.STATIC_PACKET);
  698.                 NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
  699.                 html.setFile("data/html/npcbusy.htm");
  700. @@ -1281,5 +1281,5 @@
  701.             insertObjectIdAndShowChatWindow(player, content);
  702.         // Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet
  703. -       player.sendPacket(new ActionFailed());
  704. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  705.     }
  706.  
  707. @@ -1555,5 +1555,5 @@
  708.         player.sendPacket(html);
  709.         // Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet
  710. -       player.sendPacket(new ActionFailed());
  711. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  712.     }
  713.  
  714. @@ -1666,5 +1666,5 @@
  715.             pkDenyMsg.setHtml(html);
  716.             player.sendPacket(pkDenyMsg);
  717. -           player.sendPacket(new ActionFailed());
  718. +           player.sendPacket(ActionFailed.STATIC_PACKET);
  719.             return true;
  720.         }
  721. @@ -2011,5 +2011,5 @@
  722.         player.sendPacket(html);
  723.         // Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet
  724. -       player.sendPacket(new ActionFailed());
  725. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  726.     }
  727.  
  728. @@ -2033,5 +2033,5 @@
  729.         player.sendPacket(html);
  730.         // Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet
  731. -       player.sendPacket(new ActionFailed());
  732. +       player.sendPacket(ActionFailed.STATIC_PACKET);
  733.     }
  734.  
  735. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/entity/Duel.java
  736. ===================================================================
  737. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/entity/Duel.java (revision 226)
  738. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/model/entity/Duel.java (revision 230)
  739. @@ -263,5 +263,4 @@
  740.     private void stopFighting()
  741.     {
  742. -       ActionFailed af = new ActionFailed();
  743.         if (_partyDuel)
  744.         {
  745. @@ -271,5 +270,5 @@
  746.                 temp.getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
  747.                 temp.setTarget(null);
  748. -               temp.sendPacket(af);
  749. +               temp.sendPacket(ActionFailed.STATIC_PACKET);
  750.             }
  751.             for (L2PcInstance temp : _playerB.getParty().getPartyMembers())
  752. @@ -278,5 +277,5 @@
  753.                 temp.getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
  754.                 temp.setTarget(null);
  755. -               temp.sendPacket(af);
  756. +               temp.sendPacket(ActionFailed.STATIC_PACKET);
  757.             }
  758.         }
  759. @@ -289,6 +288,6 @@
  760.             _playerB.getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
  761.             _playerB.setTarget(null);
  762. -           _playerA.sendPacket(af);
  763. -           _playerB.sendPacket(af);
  764. +           _playerA.sendPacket(ActionFailed.STATIC_PACKET);
  765. +           _playerB.sendPacket(ActionFailed.STATIC_PACKET);
  766.         }
  767.     }
  768. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/handler/itemhandlers/EnergyStone.java
  769. ===================================================================
  770. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/handler/itemhandlers/EnergyStone.java (revision 207)
  771. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/handler/itemhandlers/EnergyStone.java (revision 230)
  772. @@ -60,6 +60,5 @@
  773.             if (activeChar.isAllSkillsDisabled())
  774.             {
  775. -               ActionFailed af = new ActionFailed();
  776. -               activeChar.sendPacket(af);
  777. +               activeChar.sendPacket(ActionFailed.STATIC_PACKET);
  778.                 return;
  779.             }
  780. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/handler/itemhandlers/ChestKey.java
  781. ===================================================================
  782. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/handler/itemhandlers/ChestKey.java (revision 207)
  783. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/handler/itemhandlers/ChestKey.java (revision 230)
  784. @@ -48,5 +48,5 @@
  785.         {
  786.             activeChar.sendPacket(new SystemMessage(SystemMessageId.INCORRECT_TARGET));
  787. -           activeChar.sendPacket(new ActionFailed());
  788. +           activeChar.sendPacket(ActionFailed.STATIC_PACKET);
  789.         }
  790.         else
  791. @@ -56,5 +56,5 @@
  792.             {
  793.                 activeChar.sendMessage("The chest Is empty.");
  794. -               activeChar.sendPacket(new ActionFailed());
  795. +               activeChar.sendPacket(ActionFailed.STATIC_PACKET);
  796.                 return;
  797.             }
  798. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/handler/itemhandlers/Book.java
  799. ===================================================================
  800. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/handler/itemhandlers/Book.java (revision 207)
  801. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/handler/itemhandlers/Book.java (revision 230)
  802. @@ -59,5 +59,5 @@
  803.             activeChar.sendPacket(itemReply);
  804.         }
  805. -       activeChar.sendPacket(new ActionFailed());
  806. +       activeChar.sendPacket(ActionFailed.STATIC_PACKET);
  807.     }
  808.  
  809. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/handler/itemhandlers/CharChangePotions.java
  810. ===================================================================
  811. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/handler/itemhandlers/CharChangePotions.java (revision 226)
  812. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/handler/itemhandlers/CharChangePotions.java (revision 230)
  813. @@ -52,6 +52,5 @@
  814.         if (activeChar.isAllSkillsDisabled())
  815.         {
  816. -           ActionFailed af = new ActionFailed();
  817. -           activeChar.sendPacket(af);
  818. +           activeChar.sendPacket(ActionFailed.STATIC_PACKET);
  819.             return;
  820.         }
  821. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/handler/itemhandlers/Harvester.java
  822. ===================================================================
  823. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/handler/itemhandlers/Harvester.java (revision 207)
  824. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/handler/itemhandlers/Harvester.java (revision 230)
  825. @@ -50,5 +50,5 @@
  826.         {
  827.             _activeChar.sendPacket(new SystemMessage(SystemMessageId.TARGET_IS_INCORRECT));
  828. -           _activeChar.sendPacket(new ActionFailed());
  829. +           _activeChar.sendPacket(ActionFailed.STATIC_PACKET);
  830.             return;
  831.         }
  832. @@ -56,5 +56,5 @@
  833.         if (_target == null || !_target.isDead())
  834.         {
  835. -           _activeChar.sendPacket(new ActionFailed());
  836. +           _activeChar.sendPacket(ActionFailed.STATIC_PACKET);
  837.             return;
  838.         }
  839. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/handler/skillhandlers/FishingSkill.java
  840. ===================================================================
  841. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/handler/skillhandlers/FishingSkill.java (revision 226)
  842. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/handler/skillhandlers/FishingSkill.java (revision 230)
  843. @@ -55,5 +55,5 @@
  844.                 player.sendPacket(new SystemMessage(SystemMessageId.CAN_USE_REELING_ONLY_WHILE_FISHING));
  845.             }
  846. -           player.sendPacket(new ActionFailed());
  847. +           player.sendPacket(ActionFailed.STATIC_PACKET);
  848.             return;
  849.         }
  850. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/handler/admincommandhandlers/AdminShop.java
  851. ===================================================================
  852. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/handler/admincommandhandlers/AdminShop.java (revision 173)
  853. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/handler/admincommandhandlers/AdminShop.java (revision 230)
  854. @@ -98,5 +98,5 @@
  855.             _log.warning("no buylist with id:" + val);
  856.         }
  857. -       activeChar.sendPacket(new ActionFailed());
  858. +       activeChar.sendPacket(ActionFailed.STATIC_PACKET);
  859.     }
  860.  }
  861. Index: /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/ai/AbstractAI.java
  862. ===================================================================
  863. --- /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/ai/AbstractAI.java (revision 213)
  864. +++ /Interlude_C6/Interlude_C6_GameServer/java/net/ins/gameserver/ai/AbstractAI.java (revision 230)
  865. @@ -464,5 +464,5 @@
  866.     {
  867.         if (_actor instanceof L2PcInstance)
  868. -           _actor.sendPacket(new ActionFailed());
  869. +           _actor.sendPacket(ActionFailed.STATIC_PACKET);
  870.     }
  871.  
  872. @@ -510,5 +510,5 @@
  873.             if (!_actor.isMoving())
  874.             {
  875. -               _actor.sendPacket(new ActionFailed());
  876. +               _actor.sendPacket(ActionFailed.STATIC_PACKET);
  877.                 return;
  878.             }
  879. @@ -528,5 +528,5 @@
  880.         }
  881.         else
  882. -           _actor.sendPacket(new ActionFailed());
  883. +           _actor.sendPacket(ActionFailed.STATIC_PACKET);
  884.     }
  885.  
  886. @@ -552,5 +552,5 @@
  887.         }
  888.         else
  889. -           _actor.sendPacket(new ActionFailed());
  890. +           _actor.sendPacket(ActionFailed.STATIC_PACKET);
  891.     }
  892.  
  893. @@ -569,5 +569,5 @@
  894.         }
  895.         else
  896. -           _actor.sendPacket(new ActionFailed());
  897. +           _actor.sendPacket(ActionFailed.STATIC_PACKET);
  898.     }
  899.  
  900.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement