Jump to content

Recommended Posts

Posted

.menu command based on elfo's /menu

i still cant get the difference between .command and /command but ppl prefer commands with .

### Eclipse Workspace Patch 1.0
#P L2jFrozen_GameServer
Index: head-src/com/l2jfrozen/gameserver/handler/itemhandlers/BeastSoulShot.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/handler/itemhandlers/BeastSoulShot.java	(revision 986)
+++ head-src/com/l2jfrozen/gameserver/handler/itemhandlers/BeastSoulShot.java	(working copy)
@@ -156,7 +156,8 @@
 
 		// Pet uses the power of spirit.
 		activeOwner.sendPacket(new SystemMessage(SystemMessageId.PET_USE_THE_POWER_OF_SPIRIT));
-		Broadcast.toSelfAndKnownPlayersInRadius(activeOwner, new MagicSkillUser(activePet, activePet, 2033, 1, 0, 0), 360000/*600*/);
+		if (!activeOwner.isSSDisabled())
+			Broadcast.toSelfAndKnownPlayersInRadius(activeOwner, new MagicSkillUser(activePet, activePet, 2033, 1, 0, 0), 360000/*600*/);
 
 		activeOwner = null;
 		activePet = null;
Index: head-src/com/l2jfrozen/gameserver/handler/itemhandlers/FishShots.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/handler/itemhandlers/FishShots.java	(revision 986)
+++ head-src/com/l2jfrozen/gameserver/handler/itemhandlers/FishShots.java	(working copy)
@@ -92,7 +92,8 @@
 		//activeChar.sendPacket(new SystemMessage(SystemMessage.ENABLED_SPIRITSHOT));
 
 		MagicSkillUser MSU = new MagicSkillUser(activeChar, SKILL_IDS[grade], 1, 0, 0);
-		Broadcast.toSelfAndKnownPlayers(activeChar, MSU);
+		if (!activeChar.isSSDisabled())
+			Broadcast.toSelfAndKnownPlayers(activeChar, MSU);
 		MSU = null;
 		activeChar.setTarget(oldTarget);
 
Index: head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java	(revision 986)
+++ head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java	(working copy)
@@ -20222,4 +20222,60 @@
 		}
 		sendSkillList();
 	}
+	
+	private boolean _cantGainXP = false;
+	private boolean _isPartyInvProt = false;
+	private boolean _isInTradeProt = false;
+	private boolean _isSSDisabled = false;
+	private boolean _isInRefusal = false;
+	
+	public boolean isInTradeProt()
+	{
+		return _isInTradeProt;
+	}
+	
+	public void setIsInTradeProt(boolean value)
+	{
+		_isInTradeProt = value;
+	}
+	
+	public boolean isSSDisabled()
+	{
+		return _isSSDisabled;
+	}
+	
+	public void setIsSSDisabled(boolean value)
+	{
+		_isSSDisabled = value;
+	}
+	
+	public boolean isPartyInvProt()
+	{
+		return _isPartyInvProt;
+	}
+	
+	public void setIsPartyInvProt(boolean value)
+	{
+		_isPartyInvProt = value;
+	}
+	
+	public void cantGainXP(boolean b)
+	{
+		_cantGainXP = b;
+	}
+	
+	public boolean cantGainXP()
+	{
+		return _cantGainXP;
+	}
+	
+	public void setInRefusalMode(boolean b)
+	{
+		_isInRefusal = b;
+	}
+	
+	public boolean isInRefusalMode()
+	{
+		return _isInRefusal;
+	}
 }
\ No newline at end of file
Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestJoinParty.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestJoinParty.java	(revision 986)
+++ head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestJoinParty.java	(working copy)
@@ -78,6 +78,12 @@
 			return;
 		}
 		
+		if (target.isPartyInvProt())
+		{
+			requestor.sendMessage("You can't invite that player because he is in party protection.");
+			return;
+		}
+		
 		if (target.isInParty())
 		{
 			SystemMessage msg = new SystemMessage(SystemMessageId.S1_IS_ALREADY_IN_PARTY);
Index: head-src/com/l2jfrozen/gameserver/handler/itemhandlers/BlessedSpiritShot.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/handler/itemhandlers/BlessedSpiritShot.java	(revision 986)
+++ head-src/com/l2jfrozen/gameserver/handler/itemhandlers/BlessedSpiritShot.java	(working copy)
@@ -137,7 +137,8 @@
 
 		// Send message to client
 		activeChar.sendPacket(new SystemMessage(SystemMessageId.ENABLED_SPIRITSHOT));
-		Broadcast.toSelfAndKnownPlayersInRadius(activeChar, new MagicSkillUser(activeChar, activeChar, SKILL_IDS[weaponGrade], 1, 0, 0), 360000/*600*/);
+		if (!activeChar.isSSDisabled())
+			Broadcast.toSelfAndKnownPlayersInRadius(activeChar, new MagicSkillUser(activeChar, activeChar, SKILL_IDS[weaponGrade], 1, 0, 0), 360000/*600*/);
 
 		activeChar = null;
 		weaponInst = null;
Index: head-src/com/l2jfrozen/gameserver/handler/VoicedCommandHandler.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/handler/VoicedCommandHandler.java	(revision 986)
+++ head-src/com/l2jfrozen/gameserver/handler/VoicedCommandHandler.java	(working copy)
import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.Wedding;
+import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.Menu;


+registerVoicedCommandHandler( new Menu());

if (Config.BANKING_SYSTEM_ENABLED)
Index: head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/Menu.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/Menu.java	(revision 0)
+++ head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/Menu.java	(revision 0)
@@ -0,0 +1,173 @@
/*
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see <http://www.gnu.org/licenses/>.
 */
package com.l2jfrozen.gameserver.handler.voicedcommandhandlers;

import javolution.text.TextBuilder;

import com.l2jfrozen.gameserver.handler.IVoicedCommandHandler;
import com.l2jfrozen.gameserver.model.L2World;
import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
import com.l2jfrozen.gameserver.network.serverpackets.NpcHtmlMessage;

public class Menu implements IVoicedCommandHandler
{
	               private final String[] _voicedCommands =
	               {
	                       "menu"
	               };
      
       @Override
       public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
       {
               mainHtml(activeChar);
               return true;
       }
      
       public static void mainHtml(L2PcInstance activeChar)
       {
               NpcHtmlMessage nhm = new NpcHtmlMessage(5);
               TextBuilder tb = new TextBuilder("");
              
               tb.append("<html><head><title>Personal Menu</title></head><body>");
               tb.append("<center>");
               tb.append("<table width=\"250\" cellpadding=\"5\" bgcolor=\"000000\">");
               tb.append("<tr>");
               tb.append("<td width=\"45\" valign=\"top\" align=\"center\"><img src=\"L2ui_ch3.menubutton4\" width=\"38\" height=\"38\"></td>");
               tb.append("<td valign=\"top\">Players online <font color=\"FF6600\"> "+L2World.getInstance().getAllPlayers().size()+"</font>");  
               tb.append("<br1><font color=\"00FF00\">"+activeChar.getName()+"</font>, use this menu for everything related to your gameplay.<br1></td>");
               tb.append("</tr>");
               tb.append("</table>");
               tb.append("</center>");
               tb.append("<center>");
               tb.append("<table border=\"1\" width=\"100\" height=\"12\" bgcolor=\"000000\">");
               tb.append("<tr>");
               tb.append("<td width=\"52\">ON</td>");
               tb.append("<td width=\"16\"><button width=16 height=12 back=\"L2UI_CH3.br_bar1_hp\" fore=\"L2UI_CH3.br_bar1_hp\"></td>");
               tb.append("<td><button width=32 height=12 back=\"L2UI_CH3.tutorial_pointer1\" fore=\"L2UI_CH3.tutorial_pointer1\"></td>");
               tb.append("</tr>");
               tb.append("<tr>");
               tb.append("<td width=\"52\">OFF</td>");
               tb.append("<td width=\"16\"><button width=16 height=12 back=\"L2UI_CH3.br_bar1_mp\" fore=\"L2UI_CH3.br_bar1_mp\"></td>");
               tb.append("<td><button width=32 height=12 back=\"L2UI_CH3.tutorial_pointer1\" fore=\"L2UI_CH3.tutorial_pointer1\"></td>");
               tb.append("</tr>");
               tb.append("</table><br>");
               tb.append("<table border=\"1\" width=\"250\" height=\"12\" bgcolor=\"000000\">");
               tb.append("<tr>");
               tb.append("<td align=\"center\" width=\"52\">Buff Protection</td>");
               if(activeChar.isBuffProtected())
               tb.append("<td width=\"16\"><button action=\"bypass -h buffprot\" width=24 height=12 back=\"L2UI_CH3.br_bar1_hp\" fore=\"L2UI_CH3.br_bar1_hp\"></td>");
               if(!activeChar.isBuffProtected())
               tb.append("<td width=\"16\"><button action=\"bypass -h buffprot\" width=24 height=12 back=\"L2UI_CH3.br_bar1_mp\" fore=\"L2UI_CH3.br_bar1_mp\"></td>");
               tb.append("</tr>");
               tb.append("<tr><td width=\"250\"><font color=\"00FF00\">By enabling that you won't be able to recieve ANY buff from another character.</font></td></tr>");
               tb.append("</table>");
                              tb.append("<table border=\"1\" width=\"250\" height=\"12\" bgcolor=\"000000\">");
                              tb.append("<tr>");
                              tb.append("<td align=\"center\" width=\"52\">Personal Message Refusal</td>");
                              if(activeChar.getMessageRefusal())
                              tb.append("<td width=\"16\"><button action=\"bypass -h pmref\" width=24 height=12 back=\"L2UI_CH3.br_bar1_hp\" fore=\"L2UI_CH3.br_bar1_hp\"></td>");
                              if(!activeChar.getMessageRefusal())
                              tb.append("<td width=\"16\"><button action=\"bypass -h pmref\" width=24 height=12 back=\"L2UI_CH3.br_bar1_mp\" fore=\"L2UI_CH3.br_bar1_mp\"></td>");
                              tb.append("</tr>");
                              tb.append("<tr><td width=\"250\"><font color=\"00FF00\">By enabling that you won't be able to recieve ANY pm from another character.</font></td></tr>");
                              tb.append("</table>");
                              tb.append("<table border=\"1\" width=\"250\" height=\"12\" bgcolor=\"000000\">");
                              tb.append("<tr>");
               tb.append("<table border=\"1\" width=\"250\" height=\"12\" bgcolor=\"000000\">");
               tb.append("<tr>");
               tb.append("<td align=\"center\" width=\"52\">Trade Request Protection</td>");
               if(activeChar.isInTradeProt())
               tb.append("<td width=\"16\"><button action=\"bypass -h tradeprot\" width=24 height=12 back=\"L2UI_CH3.br_bar1_hp\" fore=\"L2UI_CH3.br_bar1_hp\"></td>");
               if(!activeChar.isInTradeProt())
               tb.append("<td width=\"16\"><button action=\"bypass -h tradeprot\" width=24 height=12 back=\"L2UI_CH3.br_bar1_mp\" fore=\"L2UI_CH3.br_bar1_mp\"></td>");
               tb.append("</tr>");
               tb.append("<tr><td width=\"250\"><font color=\"00FF00\">By enabling that you won't be able to recieve ANY trade request from another character.</font></td></tr>");
               tb.append("</table>");
               tb.append("<table border=\"1\" width=\"250\" height=\"12\" bgcolor=\"000000\">");
               tb.append("<tr>");
               tb.append("<td align=\"center\" width=\"52\">Soulshot/Spiritshot Effect</td>");
               if(activeChar.isSSDisabled())
               tb.append("<td width=\"16\"><button action=\"bypass -h ssprot\" width=24 height=12 back=\"L2UI_CH3.br_bar1_hp\" fore=\"L2UI_CH3.br_bar1_hp\"></td>");
               if(!activeChar.isSSDisabled())
               tb.append("<td width=\"16\"><button action=\"bypass -h ssprot\" width=24 height=12 back=\"L2UI_CH3.br_bar1_mp\" fore=\"L2UI_CH3.br_bar1_mp\"></td>");
               tb.append("</tr>");
               tb.append("<tr><td width=\"250\"><font color=\"00FF00\">By enabling that you will enchance your pc's performance by disabling your ss effects.</font></td><td align=\"center\" valign=\"middle\"><button action=\"bypass -h page2\" width=16 height=16 back=\"L2UI_CH3.next1\" fore=\"L2UI_CH3.next1\"></td></tr>");
               tb.append("</table>");
              
               tb.append("</center>");
               tb.append("</body></html>");
              
               nhm.setHtml(tb.toString());
               activeChar.sendPacket(nhm);
       }
      
       public static void mainHtml2(L2PcInstance activeChar)
       {
               NpcHtmlMessage nhm = new NpcHtmlMessage(5);
               TextBuilder tb = new TextBuilder("");
              
               tb.append("<html><head><title>Personal Menu</title></head><body>");
               tb.append("<center>");
               tb.append("<table width=\"250\" cellpadding=\"5\" bgcolor=\"000000\">");
               tb.append("<tr>");
               tb.append("<td width=\"45\" valign=\"top\" align=\"center\"><img src=\"L2ui_ch3.menubutton4\" width=\"38\" height=\"38\"></td>");
               tb.append("<td valign=\"top\">Players online <font color=\"FF6600\"> "+L2World.getInstance().getAllPlayers().size()+"</font>"); 
               tb.append("<br1><font color=\"00FF00\">"+activeChar.getName()+"</font>, use this menu for everything related to your gameplay.<br1></td>");
               tb.append("</tr>");
               tb.append("</table>");
               tb.append("</center>");
               tb.append("<center>");
               tb.append("<table border=\"1\" width=\"100\" height=\"12\" bgcolor=\"000000\">");
               tb.append("<tr>");
               tb.append("<td width=\"52\">ON</td>");
               tb.append("<td width=\"16\"><button width=16 height=12 back=\"L2UI_CH3.br_bar1_hp\" fore=\"L2UI_CH3.br_bar1_hp\"></td>");
               tb.append("<td><button width=32 height=12 back=\"L2UI_CH3.tutorial_pointer1\" fore=\"L2UI_CH3.tutorial_pointer1\"></td>");
               tb.append("</tr>");
               tb.append("<tr>");
               tb.append("<td width=\"52\">OFF</td>");
               tb.append("<td width=\"16\"><button width=16 height=12 back=\"L2UI_CH3.br_bar1_mp\" fore=\"L2UI_CH3.br_bar1_mp\"></td>");
               tb.append("<td><button width=32 height=12 back=\"L2UI_CH3.tutorial_pointer1\" fore=\"L2UI_CH3.tutorial_pointer1\"></td>");
               tb.append("</tr>");
               tb.append("</table><br>");
               tb.append("<table border=\"1\" width=\"250\" height=\"12\" bgcolor=\"000000\">");
               tb.append("<tr>");
               tb.append("<td align=\"center\" width=\"52\">Party Invite Protection</td>");
               if(activeChar.isPartyInvProt())
               tb.append("<td width=\"16\"><button action=\"bypass -h partyin\" width=24 height=12 back=\"L2UI_CH3.br_bar1_hp\" fore=\"L2UI_CH3.br_bar1_hp\"></td>");
               if(!activeChar.isPartyInvProt())
               tb.append("<td width=\"16\"><button action=\"bypass -h partyin\" width=24 height=12 back=\"L2UI_CH3.br_bar1_mp\" fore=\"L2UI_CH3.br_bar1_mp\"></td>");
               tb.append("</tr>");
               tb.append("<tr><td width=\"250\"><font color=\"00FF00\">By enabling that you won't be able to recieve ANY party invite from another character.</font></td></tr>");
               tb.append("</table>"); 
               tb.append("<table border=\"1\" width=\"250\" height=\"12\" bgcolor=\"000000\">");
               tb.append("<tr>");
               tb.append("<td align=\"center\" width=\"52\">Exp Gain Protection</td>");
               if(activeChar.cantGainXP())
               tb.append("<td width=\"16\"><button action=\"bypass -h xpnot\" width=24 height=12 back=\"L2UI_CH3.br_bar1_hp\" fore=\"L2UI_CH3.br_bar1_hp\"></td>");
               if(!activeChar.cantGainXP())
               tb.append("<td width=\"16\"><button action=\"bypass -h xpnot\" width=24 height=12 back=\"L2UI_CH3.br_bar1_mp\" fore=\"L2UI_CH3.br_bar1_mp\"></td>");
               tb.append("</tr>");
               tb.append("<tr><td width=\"250\"><font color=\"00FF00\">By enabling that you won't be able to recieve expirience from killing monsters.</font></td><td align=\"center\" valign=\"middle\"><button action=\"bypass -h page1\" width=16 height=16 back=\"L2UI_CH3.back1\" fore=\"L2UI_CH3.next1\"></td></tr>");
               tb.append("</table>"); 
               tb.append("</center>");
               tb.append("</body></html>");
              
               nhm.setHtml(tb.toString());
               activeChar.sendPacket(nhm);
       }
      
       @Override
       public String[] getVoicedCommandList()
       {
               return _voicedCommands;
       }
}
\ No newline at end of file
Index: head-src/com/l2jfrozen/gameserver/handler/itemhandlers/SpiritShot.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/handler/itemhandlers/SpiritShot.java	(revision 986)
+++ head-src/com/l2jfrozen/gameserver/handler/itemhandlers/SpiritShot.java	(working copy)
@@ -128,7 +128,8 @@
 
 		// Send message to client
 		activeChar.sendPacket(new SystemMessage(SystemMessageId.ENABLED_SPIRITSHOT));
-		Broadcast.toSelfAndKnownPlayersInRadius(activeChar, new MagicSkillUser(activeChar, activeChar, SKILL_IDS[weaponGrade], 1, 0, 0), 360000/*600*/);
+		if (!activeChar.isSSDisabled())
+			Broadcast.toSelfAndKnownPlayersInRadius(activeChar, new MagicSkillUser(activeChar, activeChar, SKILL_IDS[weaponGrade], 1, 0, 0), 360000/*600*/);
 
 		activeChar = null;
 	}
Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/TradeRequest.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/network/clientpackets/TradeRequest.java	(revision 986)
+++ head-src/com/l2jfrozen/gameserver/network/clientpackets/TradeRequest.java	(working copy)
@@ -202,7 +202,13 @@
 			player.sendPacket(new SystemMessage(SystemMessageId.TARGET_TOO_FAR));
 			return;
 		}
-
+		
+		if (partner.isInTradeProt())
+		{
+			player.sendMessage(partner.getName() + " is in Trade Protection Mode");
+			return;
+		}
+		
 		// Alt game - Karma punishment
 		if(!Config.ALT_GAME_KARMA_PLAYER_CAN_TRADE && (player.getKarma() > 0 || partner.getKarma() > 0))
 		{
Index: head-src/com/l2jfrozen/gameserver/handler/itemhandlers/SoulShots.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/handler/itemhandlers/SoulShots.java	(revision 986)
+++ head-src/com/l2jfrozen/gameserver/handler/itemhandlers/SoulShots.java	(working copy)
@@ -142,7 +142,8 @@
 
 		// Send message to client
 		activeChar.sendPacket(new SystemMessage(SystemMessageId.ENABLED_SOULSHOT));
-		Broadcast.toSelfAndKnownPlayersInRadius(activeChar, new MagicSkillUser(activeChar, activeChar, SKILL_IDS[weaponGrade], 1, 0, 0), 360000/*600*/);
+		if (!activeChar.isSSDisabled())
+			Broadcast.toSelfAndKnownPlayersInRadius(activeChar, new MagicSkillUser(activeChar, activeChar, SKILL_IDS[weaponGrade], 1, 0, 0), 360000/*600*/);
 
 		activeChar = null;
 	}
Index: head-src/com/l2jfrozen/gameserver/model/actor/stat/PcStat.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/model/actor/stat/PcStat.java	(revision 986)
+++ head-src/com/l2jfrozen/gameserver/model/actor/stat/PcStat.java	(working copy)
@@ -58,6 +58,9 @@
 		//Player is Gm and access level is below or equal to canGainExp and is in party, don't give Xp
 		if(!getActiveChar().getAccessLevel().canGainExp() && getActiveChar().isInParty())
 			return false;
+		
+		if (activeChar.cantGainXP())
+			return false;
 
 		if(!super.addExp(value))
 			return false;
@@ -111,6 +114,9 @@
 		L2PcInstance activeChar = getActiveChar();
 		if(!activeChar.getAccessLevel().canGainExp() && activeChar.isInParty())
 			return false;
+		
+		if (activeChar.cantGainXP())
+			return false;
 
 		// if this player has a pet that takes from the owner's Exp, give the pet Exp now
 
Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestBypassToServer.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestBypassToServer.java	(revision 986)
+++ head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestBypassToServer.java	(working copy)
@@ -28,6 +28,7 @@
 import com.l2jfrozen.gameserver.handler.AdminCommandHandler;
 import com.l2jfrozen.gameserver.handler.IAdminCommandHandler;
 import com.l2jfrozen.gameserver.handler.custom.CustomBypassHandler;
+import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.Menu;
 import com.l2jfrozen.gameserver.model.L2Object;
 import com.l2jfrozen.gameserver.model.L2World;
 import com.l2jfrozen.gameserver.model.actor.instance.L2ClassMasterInstance;
@@ -41,8 +42,10 @@
 import com.l2jfrozen.gameserver.model.entity.event.TvT;
 import com.l2jfrozen.gameserver.model.entity.event.VIP;
 import com.l2jfrozen.gameserver.model.entity.olympiad.Olympiad;
+import com.l2jfrozen.gameserver.network.SystemMessageId;
 import com.l2jfrozen.gameserver.network.serverpackets.ActionFailed;
 import com.l2jfrozen.gameserver.network.serverpackets.NpcHtmlMessage;
+import com.l2jfrozen.gameserver.network.serverpackets.SystemMessage;
 import com.l2jfrozen.gameserver.util.GMAudit;
 
 public final class RequestBypassToServer extends L2GameClientPacket
@@ -308,7 +311,90 @@
 					player.processQuestEvent(p.substring(0, idx), p.substring(idx).trim());
 				}
 			}
-
                    +     else if (_command.startsWith("page1"))
					+			Menu.mainHtml(activeChar);
					+		else if (_command.startsWith("buffprot"))
					+		{
					+			if (activeChar.isBuffProtected())
					+			{
					+				+activeChar.setIsBuffProtected(false);
					+				+activeChar.sendMessage("Buff protection is disabled.");
					+				+Menu.mainHtml(activeChar);
					+			}
					+			else
					+			{
					+				activeChar.setIsBuffProtected(true);
					+				activeChar.sendMessage("Buff protection is enabled.");
					+				Menu.mainHtml(activeChar);
					+			}
					+		}
					+		else if (_command.startsWith("tradeprot"))
					+		{
					+			if (activeChar.isInTradeProt())
					+			{
					+				+activeChar.setIsInTradeProt(false);
					+				+activeChar.sendMessage("Trade acceptance mode is enabled.");
					+				+Menu.mainHtml(activeChar);
					+			}
					+			else
					+			{
					+				activeChar.setIsInTradeProt(true);
					+				activeChar.sendMessage("Trade refusal mode is enabled.");
					+				Menu.mainHtml(activeChar);
					+			}
					+		}
					+		else if (_command.startsWith("ssprot"))
					+		{
					+			if (activeChar.isSSDisabled())
					+			{
					+				activeChar.setIsSSDisabled(false);
					+				activeChar.sendMessage("Soulshots effects are enabled.");
					+				Menu.mainHtml(activeChar);
					+			}
					+			else
					+			{
					+				activeChar.setIsSSDisabled(true);
					+				activeChar.sendMessage("Soulshots effects are disabled.");
					+				Menu.mainHtml(activeChar);
					+			}
					+		}
					+		else if (_command.startsWith("xpnot"))
					+		{
					+			if (activeChar.cantGainXP())
					+			{
					+				activeChar.cantGainXP(false);
					+				activeChar.sendMessage("Enable Xp");
					+				Menu.mainHtml2(activeChar);
					+			}
					+			else
					+			{
					+				activeChar.cantGainXP(true);
					+				activeChar.sendMessage("Disable Xp");
					+				Menu.mainHtml2(activeChar);
					+			}
					+		}
					+		else if (_command.startsWith("pmref"))
		+	{
		+						if (activeChar.getMessageRefusal())	
		+						{
		+		activeChar.setMessageRefusal(false);
		+		activeChar.sendPacket(new SystemMessage(SystemMessageId.MESSAGE_ACCEPTANCE_MODE));
		+		Menu.mainHtml(activeChar);
		+	}
		+	else
		+	{
		+		activeChar.setMessageRefusal(true);
		+		activeChar.sendPacket(new SystemMessage(SystemMessageId.MESSAGE_REFUSAL_MODE));
		+		Menu.mainHtml(activeChar);
		+	}
		+	}
		+					else if (_command.startsWith("partyin"))
		+					{
		+						if (activeChar.isPartyInvProt())
		+						{
		+							activeChar.setIsPartyInvProt(false);
		+							activeChar.sendMessage("Party acceptance mode is enabled.");
		+							Menu.mainHtml2(activeChar);
		+						}
		+						else
		+						{
		+							activeChar.setIsPartyInvProt(true);
		+							activeChar.sendMessage("Party refusal mode is enabled.");
		+							Menu.mainHtml2(activeChar);
		+						}
		+					}
		+					else if (_command.startsWith("page2"))
		+						Menu.mainHtml2(activeChar);
 			// Jstar's Custom Bypass Caller!
 			else if(_command.startsWith("custom_"))
 			{
Index: head-src/com/l2jfrozen/gameserver/handler/itemhandlers/BeastSpiritShot.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/handler/itemhandlers/BeastSpiritShot.java	(revision 986)
+++ head-src/com/l2jfrozen/gameserver/handler/itemhandlers/BeastSpiritShot.java	(working copy)
@@ -169,7 +169,8 @@
 
 		// Pet uses the power of spirit.
 		activeOwner.sendPacket(new SystemMessage(SystemMessageId.PET_USE_THE_POWER_OF_SPIRIT));
-		Broadcast.toSelfAndKnownPlayersInRadius(activeOwner, new MagicSkillUser(activePet, activePet, isBlessed ? 2009 : 2008, 1, 0, 0), 360000/*600*/);
+		if (!activeOwner.isSSDisabled())
+			Broadcast.toSelfAndKnownPlayersInRadius(activeOwner, new MagicSkillUser(activePet, activePet, isBlessed ? 2009 : 2008, 1, 0, 0), 360000/*600*/);
 
 		activeOwner = null;
 		activePet = null;
Index: head-src/com/l2jfrozen/gameserver/handler/skillhandlers/Continuous.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/handler/skillhandlers/Continuous.java	(revision 986)
+++ head-src/com/l2jfrozen/gameserver/handler/skillhandlers/Continuous.java	(working copy)
@@ -143,7 +143,16 @@
 					|| skill.getSkillType() == L2Skill.SkillType.MANAHEAL_PERCENT
 					|| skill.getSkillType() == L2Skill.SkillType.COMBATPOINTHEAL
 					|| skill.getSkillType() == L2Skill.SkillType.REFLECT))
-					continue;
+				continue;
+			
+			if (activeChar instanceof L2PcInstance && target != activeChar && target.isBuffProtected() && !skill.isHeroSkill()
+				&& (skill.getSkillType() == L2Skill.SkillType.BUFF
+				|| skill.getSkillType() == L2Skill.SkillType.HEAL_PERCENT
+				|| skill.getSkillType() == L2Skill.SkillType.FORCE_BUFF
+				|| skill.getSkillType() == L2Skill.SkillType.MANAHEAL_PERCENT
+				|| skill.getSkillType() == L2Skill.SkillType.COMBATPOINTHEAL
+				|| skill.getSkillType() == L2Skill.SkillType.REFLECT))
+				continue;
 			
 			// Player holding a cursed weapon can't be buffed and can't buff
 			if(skill.getSkillType() == L2Skill.SkillType.BUFF)

Posted

/ commands need client sided support, since they come to the server as command packets, whereas .commands don't need client support cause they are using say2 packet

Posted

/ commands need client sided support, since they come to the server as command packets, whereas .commands don't need client support cause they are using say2 packet

thats why ppl dont want /commands?;D for 1 more line in system? hehe

anyway thanks for ur answer :)

Posted (edited)

Yes.. They are unable to edit client file and most likely they dont know how to make new user command - newbies. Thats why they "prefer" with a dot.

 

Anyway, you just reshared it since its not based on head rev or?

 

Cuz its shared, or at least its @Download tab :D

Edited by SweeTs
Posted

Yes.. They are unable to edit client file and most likely they dont know how to make new user command - newbies. Thats why they "prefer" with a dot.

 

Anyway, you just reshared it since its not based on head rev or?

 

Cuz its shared, or at least its @Download tab :D

well i guess now its reshared ;D

in .menu due to some ppl that coudn't change it from the /menu ;p

also fixed the button that enable disable pm's cauze it didnt worked also it shows online people on the top

Posted

Only refusal & buff protection is working properly..

 

The other ones are not working... They cant be set on [ON] they are just on OFF

well for me it works just fine.. maybe u have done something wrong dunno..

  • 2 weeks later...
Posted (edited)

thousands of hardcoded checks in core everywhere to ruin the code ~~

anyway you should use StringBuilder instead of TextBuilder and no need "" inside the brackets

Edited by lord_rex
  • 6 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • ⚔️ WELCOME TO L2EPICFAIL ⚔️ Server developed by gamers, for gamers! ❄️ WINTER SEASON #8 ❄️ OPEN BETA — 15 NOVEMBER 2026 GRAND OPENING — 20 NOVEMBER 2026, 18:30 GMT+0 Website: https://l2epic.fail/ Discord: https://discord.gg/6hwhrkrHBG ━━━━━━━━━━━━━━━━━━━━━━━━━━ ⚔️ SERVER FEATURES & RATES EXP — 10x SP — 9x Adena — 6x Drop — 3x Spoil — 3x Seal Stones — 3x Epic Raid Boss Drop — 1x Regular Raid Boss — EXP 5x / SP 5x / Drop 4x Quest Drop — 1x (selected quests 2–3x) Quest Rewards — 1x (Adena / EXP / SP 3x) ━━━━━━━━━━━━━━━━━━━━━━━━━━ ★ PREMIUM ACCOUNT EXP +20% SP +20% Adena +20% Drop +20% Spoil +20% Quest Rewards +20% Available through voting, Epic Coins or donations. World Chat — 60 messages per day using "&" Buff Book usable outside towns. Premium applies to all characters on the account. ━━━━━━━━━━━━━━━━━━━━━━━━━━ ✨ SPECIAL FEATURES Classic Interface Active Anticheat Vote System Daily Missions Attendance Rewards Masterwork Items Brooches & Diamonds Kamaloka Autofarm Epic Auctioneer Epic Market Price Search No Carrier Protection Raid Rank System PvP Events ━━━━━━━━━━━━━━━━━━━━━━━━━━ 🐉 EPIC BOSSES & RESPAWNS All times GMT+0. Spawn windows visible through .epic. QUEEN ANT — LVL 80 Every day except Wednesday and Sunday 18:00–18:30 Maximum C-grade equipment Boosted HP / Drop Chance 49% CORE — LVL 80 Monday and Friday 20:00–20:15 Maximum B-grade equipment Boosted HP / Drop Chance 60% Core Ring: +1 STR, +1 DEX ORFEN — LVL 80 Tuesday, Thursday and Saturday 20:00–20:15 Maximum B-grade equipment Boosted HP / Drop Chance 60% Orfen Earring: +1 WIT, +1 INT ZAKEN — LVL 80 Monday and Friday 19:00–19:30 Maximum A-grade equipment Automatic PvP Zone BAIUM Every Sunday 18:00–19:00 Automatic PvP Zone / Regular HP FRINTEZZA Tuesday and Thursday 19:00–20:00 Minimum 2 parties / Maximum 5 parties Minimum character level 74 Automatic PvP Zone ANTHARAS Every two weeks on Saturday 19:00–19:30 Automatic PvP Zone VALAKAS Every two weeks on Saturday 19:00–19:30 Automatic PvP Zone Antharas and Valakas spawn on alternating weeks. Epic Bosses drop Epic Medals equal to their level × 10. ━━━━━━━━━━━━━━━━━━━━━━━━━━ 🏆 RAID RANK Clans earn Raid Rank points by killing Raid Bosses level 30+. Raid Bosses level 75+ award 150 points. Rankings reset every Monday morning. Weekly Rewards: 1st Place — 50 RRR Coins 2nd Place — 40 RRR Coins 3rd Place — 30 RRR Coins 4th Place — 20 RRR Coins 5th Place — 13 RRR Coins RRR Coins can be exchanged for Epic Jewelry. ━━━━━━━━━━━━━━━━━━━━━━━━━━ ⚒️ ENCHANT SYSTEM Safe Enchant — +3 Maximum Enchant — +16 Regular Enchant Chance — 60% Blessed Enchant Chance — 66% Enchant chances progressively decrease after +10. ━━━━━━━━━━━━━━━━━━━━━━━━━━ 💎 BROOCHES & DIAMONDS Maximum Level — +10 Brooch Compound Chance — 25% Diamond Compound Chance — 35% Requires two items of the same type and level. On failure, one item remains in inventory. Disabled during Olympiad. ━━━━━━━━━━━━━━━━━━━━━━━━━━ ✨ MASTERWORK ITEMS Masterwork Crafting Chance — 2% A-grade — Armors & Jewelry S-grade — Weapons, Armors & Jewelry ━━━━━━━━━━━━━━━━━━━━━━━━━━ ⚔️ REGULAR RAID BOSSES All regular Raid Bosses have boosted HP. Slightly increased M.Def to give fighters an advantage. Respawn — 24–30 hours Epic Medal Drops — Equal to Raid Boss level Raid Boss status can be checked on the map. ━━━━━━━━━━━━━━━━━━━━━━━━━━ 🏅 OLYMPIAD Weekly Period Thursday–Saturday, 16:00–22:00 GMT+0 Maximum Equipment Enchant — +7 (progressive) Minimum Non-Class Participants — 5 Minimum Class-Based Participants — 10 ━━━━━━━━━━━━━━━━━━━━━━━━━━ 📜 CLASS TRANSFER 1st Class — 50k Adena 2nd Class — 500k Adena 3rd Class — 25kk Adena + 700 Halisha Marks Halisha Marks are tradeable and drop in Shrine of Loyalty. ━━━━━━━━━━━━━━━━━━━━━━━━━━ 👑 NOBLESSE QUEST Retail-style Noblesse Quest with boosted quest drops. Alternative Method — No Barakiel Kill Required Collect 100 Noble Ants Feeler from Wailing of Splendor in Valley of Saints. Drop Chance — 4% Barakiel Respawn — 10–14 hours Barakiel's Chest provides 10 Noble Ants Feeler when the relevant quest is active. ━━━━━━━━━━━━━━━━━━━━━━━━━━ 📖 SUBCLASS QUEST Minimum Main Class Level — 75 Start the Reorin Quest in Giran. Obtain the required item from Cabrio's Chest first. Collect items from Hallate, Kernon and Golkonda. Return to Reorin and complete the remaining quest requirements. Maximum Subclasses — 5 Cabrio Respawn — 6–8 hours Tower of Insolence Raid Bosses — 8–10 hours ━━━━━━━━━━━━━━━━━━━━━━━━━━ 🔮 SKILLS & AUGMENTS Mass Sweep — All Bounty Hunters level 40+ Block Buff — All characters, toggle Escape — 20 seconds, no Scroll of Escape required Automatic Skill Learning Skill Loss After 16 Levels of Delevel Maximum Buffs — 24 + 4 with books Augmentation Skill Chances: Normal Life Stone — 4% Mid-grade Life Stone — 5% High-grade Life Stone — 7% Top-grade Life Stone — 6% Fast Augmentation by double-clicking Life Stones. ━━━━━━━━━━━━━━━━━━━━━━━━━━ 🛒 GM SHOP Weapons, Armors and Jewelry — Up to C-grade Soulshots / Spiritshots — Up to C-grade Mana Potions — 500 MP / 5 seconds ━━━━━━━━━━━━━━━━━━━━━━━━━━ ✨ NPC BUFFER All Buffs, Songs and Dances Third Class Buffs and Resists Buff Duration — 1 Hour Buff Book available to every character. ━━━━━━━━━━━━━━━━━━━━━━━━━━ 🌍 GLOBAL GATEKEEPER All Towns Catacombs and Necropolises Tower of Insolence — Floors 3 / 5 / 7 / 10 ━━━━━━━━━━━━━━━━━━━━━━━━━━ 🛡️ CLANS & PVP Maximum Main Clan Members — 80 Maximum Alliance Clans — 3 Clan Leave / Dismiss Penalty — 12 Hours Epic PvP Zone Limit — 4 CPs / 36 Players Clan skills apply to all members without requiring titles. ━━━━━━━━━━━━━━━━━━━━━━━━━━ ⚙️ AUTOFARM Available to Everyone After the First Week Maximum 1 Active Window per HWID Maximum 1 Hour at a Time Requires Autofarm Tickets purchased with Epic Coins and Adena. Activate using .autofarm Disabled While PvP Flagged Third-Party Bot Software Is Prohibited ━━━━━━━━━━━━━━━━━━━━━━━━━━ 📌 ADDITIONAL FEATURES Maximum 3 Windows per HWID Only 1 Window Allowed in PvP Zones Teleport Protection — 20 Seconds Weight Limit — 10x Stackable Enchant Scrolls and Life Stones Blue Champions — 5x HP Minimum Trade Level — 40 Minimum Chat Level — 20 Arrows and Spellbook Drops Disabled Blacksmith of Mammon and Merchant of Mammon in Towns Alt+Click Buff Removal 19-Level Party EXP Difference No Carrier Disconnect Protection Payback System ━━━━━━━━━━━━━━━━━━━━━━━━━━
    • They're just jealous because I'm better at prompting than all of them combined. There's all working on L2jPromptius and can't even manage to open a single private server with it in like 10 years, and now they're nervous because I'm sharing tools they've been gatekeeping from the community so they can't profit anymore. Truly shameless behavior from them  They're losing business opportunities with every free share, they literally live from the game, just a bunch of unemployed dudes 
    • I don't understand the hate at all? Why are people getting mad at 911reg for sharing an already free tool but improved? Right now the competition is not in dev ability but in creativity and vision. 
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..