Jump to content
  • 0

[Help]Olympiad buffer protection


Question

Posted

Hi,i want something like a protection that when u are registered at oly,u can't talk to buffer,i know that i should add lines in my buffer script.but idk what lines...couls someone help me?

I got rinia scheme buffer.

6 answers to this question

Recommended Posts

  • 0
Posted

it would be better if when they enter in stadium for a game to delete/remove all of their buffs,but whatever.

 

 if(activeChar.isInOlympiadMode() || Olympiad.getInstance().isRegistered(activeChar)){
+			activeChar.sendMessage("message here");
+			return false;

 

should do the trick.

  • 0
Posted

### Eclipse Workspace Patch 1.0
#P L2_GameServer_It
Index: java/net/sf/l2j/gameserver/model/actor/instance/L2NpcInstance.java
===================================================================
--- java/net/sf/l2j/gameserver/model/actor/instance/L2NpcInstance.java	(revision 5502)
+++ java/net/sf/l2j/gameserver/model/actor/instance/L2NpcInstance.java	(working copy)
@@ -603,6 +603,14 @@
     @Override
     public void onAction(L2PcInstance player)
     {
+    	if(getNpcId() == 5555)
+    	{
+    		if(player.isInOlympiadMode() || Olympiad.getInstance().isRegistered(player))
+    		{
+    			player.sendMessage("You cannot target buffer now");
+    			return;
+    		}
+    	}
         if (!canTarget(player)) return;

         // Check if the L2PcInstance already target the L2NpcInstance

 

With this check you won't be able even to target the buffer. Of course, you need to change the id.

Guest
This topic is now closed to further replies.


  • Posts

    • QR code recognition has been added when logging into Google services that include this request. Instructions have been added to product descriptions; this only works for items that include this information.
    • Server owners, Top.MaxCheaters.com is now live and accepting Lineage 2 server listings. There is no voting, no rankings manipulation, and no paid advantages. Visibility is clean and equal, and early listings naturally appear at the top while the platform grows. If your server is active, it should already be listed. Submit here  https://Top.MaxCheaters.com This platform is part of the MaxCheaters.com network and is being built as a long-term reference point for the Lineage 2 community. — MaxCheaters.com Team
    • Server owners, Top.MaxCheaters.com is now live and accepting Lineage 2 server listings. There is no voting, no rankings manipulation, and no paid advantages. Visibility is clean and equal, and early listings naturally appear at the top while the platform grows. If your server is active, it should already be listed. Submit here  https://Top.MaxCheaters.com This platform is part of the MaxCheaters.com network and is being built as a long-term reference point for the Lineage 2 community. — MaxCheaters.com Team
    • Server owners, Top.MaxCheaters.com is now live and accepting Lineage 2 server listings. There is no voting, no rankings manipulation, and no paid advantages. Visibility is clean and equal, and early listings naturally appear at the top while the platform grows. If your server is active, it should already be listed. Submit here  https://Top.MaxCheaters.com This platform is part of the MaxCheaters.com network and is being built as a long-term reference point for the Lineage 2 community. — MaxCheaters.com Team
    • Server owners, Top.MaxCheaters.com is now live and accepting Lineage 2 server listings. There is no voting, no rankings manipulation, and no paid advantages. Visibility is clean and equal, and early listings naturally appear at the top while the platform grows. If your server is active, it should already be listed. Submit here  https://Top.MaxCheaters.com This platform is part of the MaxCheaters.com network and is being built as a long-term reference point for the Lineage 2 community. — MaxCheaters.com Team
  • 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..