Jump to content
  • 0

Bsoe disable mode pvp


Question

2 answers to this question

Recommended Posts

  • 0
Posted

java/net/sf/l2j/gameserver/handler/itemhandlers/ScrollOfEscape.java

 

if (activeChar.isInDuel())
                {
                        activeChar.sendPacket(SystemMessage.sendString("You cannot use escape skills during a duel."));
                        return;
                }
+               if (activeChar.getPvpFlag() != 0 && !Config.PVP_NO_ESCAPE)
+               {
+                       if (item.getItemId() == 1538 || item.getItemId() == 5859 || item.getItemId() == 5858)
+                       {
+                           activeChar.sendMessage("Sorry, You cannot use this in PvP mode!");
+                           return;
+                       }
+               }

 

l2jmods.properties

+# ------------------------------------------
+# Not Use in PvP Mode Blessed Scroll of Escape
+# ------------------------------------------
+# Note: True = Use Escape In PvP, False = No Use Escape In PvP
+UseEscapeInPvP = False

 

 

java/net/sf/l2j/Config.java

+        /** Pvp No Escape **/
+       public static boolean PVP_NO_ESCAPE;


+                       /** No escape in PvP **/
+                       PVP_NO_ESCAPE = Boolean.parseBoolean(L2JTeonCustom.getProperty("UseEscapeInPvP", "False"));

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...