Reynald0

L2jFrozen 1.5 - No abrir private store sell en zona PvP

May 16th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.17 KB | None | 0 0
  1. ### Eclipse Workspace Patch 1.0
  2. #P L2jFrozen_GameServer
  3. Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestPrivateStoreManageSell.java
  4. ===================================================================
  5. --- head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestPrivateStoreManageSell.java  (revisión: 690)
  6. +++ head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestPrivateStoreManageSell.java  (copia de trabajo)
  7. @@ -23,6 +23,7 @@
  8.  import org.apache.log4j.Logger;
  9.  
  10.  import com.l2jfrozen.Config;
  11. +import com.l2jfrozen.gameserver.model.L2Character;
  12.  import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
  13.  import com.l2jfrozen.gameserver.network.serverpackets.ActionFailed;
  14.  import com.l2jfrozen.gameserver.network.serverpackets.CreatureSay;
  15. @@ -45,6 +46,14 @@
  16.         if (player == null)
  17.             return;
  18.        
  19. +       // Si el jugador esta dentro de una zona PVP
  20. +       if (player.isInsideZone(L2Character.ZONE_PVP))
  21. +       {
  22. +           // No puede abrir el private store sell
  23. +           player.sendPacket(ActionFailed.STATIC_PACKET);
  24. +           return;
  25. +       }
  26. +      
  27.         // Fix for privatestore exploit during login
  28.         if (!player.isVisible() || player.isLocked())
  29.         {
Add Comment
Please, Sign In to add comment