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.


×
×
  • Create New...