Jump to content

Recommended Posts

Posted

This command removes your PvP Flag, When you have the color of the PvP Flag i mean  :P. You just type .noflag and done :D

Credits: ŚyśţęmƒяәдҚς


Here is a simple Patch: V2

Index: trunk/Eclipse-Game/java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/flag.java
===================================================================
--- trunk/Eclipse-Game/java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/flag.java	(revision 0)
+++ trunk/Eclipse-Game/java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/flag.java	(revision 0)
@@ -0,0 +1,48 @@
+package net.sf.l2j.gameserver.handler.voicedcommandhandlers;
+
+import net.sf.l2j.gameserver.handler.IVoicedCommandHandler;
+import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
+import net.sf.l2j.gameserver.network.serverpackets.ActionFailed;
+
+/** 
+ * @Author s
+ */
+
+public class flag implements IVoicedCommandHandler
+{
+	private static final String[]	VOICED_COMMANDS	= 
+	{
+	"noflag"	
+	};
+
+	public boolean useVoicedCommand(String command, L2PcInstance activeChar,
+			String target) 
+	{
+		if (command.equalsIgnoreCase("noflag"))
+		{
+			if (activeChar.getPvpFlag() == 0)
+			{
+				activeChar.sendMessage("You cannot use this command at this moment.");
+				activeChar.sendPacket(new ActionFailed());
+				return false;
+			}
+			else if (activeChar.isDead() || activeChar.isFakeDeath() || activeChar.isAlikeDead() || activeChar.isFestivalParticipant() || activeChar.isInJail() || activeChar.atEvent || activeChar.isInOlympiadMode() || activeChar.inObserverMode() || activeChar.isFlying() || activeChar.isInDuel())
+			{
+				activeChar.sendMessage("You cannot use this command at this moment.");
+				activeChar.sendPacket(new ActionFailed());
+				return false;
+			}
+			else if (activeChar.getPvpFlag() != 0)
+		   {
+			activeChar.setPvpFlag(0);
+			activeChar.sendMessage("You are not flagged anymore.");
+		   }
+		}
+		return true;
+	}
+
+	public String[] getVoicedCommandList()
+	{
+		return VOICED_COMMANDS;
+	}
+}
Index: trunk/Eclipse-Game/java/net/sf/l2j/gameserver/GameServer.java
===================================================================
--- trunk/Eclipse-Game/java/net/sf/l2j/gameserver/GameServer.java	(revision 237)
+++ trunk/Eclipse-Game/java/net/sf/l2j/gameserver/GameServer.java	(working copy)
@@ -200,6 +200,7 @@
import net.sf.l2j.gameserver.handler.voicedcommandhandlers.trade;
import net.sf.l2j.gameserver.handler.voicedcommandhandlers.pm;
import net.sf.l2j.gameserver.handler.voicedcommandhandlers.Info;
+import net.sf.l2j.gameserver.handler.voicedcommandhandlers.flag;
import net.sf.l2j.gameserver.handler.voicedcommandhandlers.Cl;
import net.sf.l2j.gameserver.handler.voicedcommandhandlers.karma;
import net.sf.l2j.gameserver.handler.voicedcommandhandlers.stat;
@@ -615,6 +616,8 @@
           _voicedCommandHandler.registerVoicedCommandHandler(new Info());
       
       _voicedCommandHandler.registerVoicedCommandHandler(new karma());
+       
+       _voicedCommandHandler.registerVoicedCommandHandler(new flag());

                
		_log.config("VoicedCommandHandler: Loaded " + _voicedCommandHandler.size() + " handlers.");

 

Posted

Loooooooool xD so if i put it in my server and a player is flag, he write .noflag and the flag disapear???.

 

SO crazy but ty for the share

 

Can i have more info system??

Posted

I already shared by revenger, if you can post the topic. And i will ask a mod to junk it.

http://www.maxcheaters.com/forum/index.php?topic=89890.0

here it is..

 

Thanks for typo

np

Posted

Tell us how to use it..u just give a code and u say that it removes flag..

This command removes your PvP Flag, When you have the color of the PvP Flag i mean  :P. You just type .noflag and done :D

It's rather simple to use.
Posted

Is not needed. when you type this command your pvp flag is removed.

uh i mean... Let's say i'm in a fight. We are both purple. And i am about to lose (i have very low hp) so i type the command, i become white (unflagged), my opponent finishes casting, he hits me and gets red? Awesome

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

    • Don’t miss the new Telegram gifts with our Telegram Stars purchasing bot! A great opportunity to invest in a stable digital asset at an early stage while the market is still forming. Buy other existing gifts in the official store using Telegram Stars, pay for subscriptions, donate to games and projects, pay for Premium subscriptions, and react to messages in channels! Low prices, multiple payment options, and other cool unique features! ⚡ Try it today — SOCNET STARS BOT ⚡ Active links to SOCNET stores: Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store via Telegram messenger. ⭐ Telegram Stars Purchase Bot: Go – fast and profitable way to buy stars in Telegram. SMM Panel: Go – promote your social media accounts. We present to you the current list of promotions and special offers for purchasing our products and services: 1️⃣ Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, bot) in October! You can also use the promo code SOCNET (15% discount) for your first purchase. 2️⃣ Get $1 on your store balance or a 10–20% discount — just write your username after registration on our website using the template: "SEND ME BONUS, MY USERNAME IS..." — post it in our forum thread! 3️⃣ Get $1 for your first SMM Panel trial — simply open a ticket titled “Get Trial Bonus” on our website (Support). 4️⃣ Weekly ⭐ Telegram Stars giveaways in our Telegram channel and in our Telegram Stars bot! News: ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp Channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord Server: https://discord.gg/y9AStFFsrh Contacts and Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • Yes, just keep this post=)
    • When something’s inconvenient, people always find a way to make life easier.   It’s dark? Turn on a lamp — no more tripping around. The socket’s hiding under the bed? Boom, extension cord. Noisy neighbor? Headphones and soundproof walls. Too lazy to move? Just have a kid, problem solved. Lost one sock? Humanity just gave up on that one.   And for everything else — there’s VibeSMS. Because getting your verification codes should be as simple as flipping a switch 💡⚡   Website: https://vibe-sms.net/ 📱 Telegram channel: https://t.me/vibe_sms  
    • We still bumping posts?
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock