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

    • Add some share links, would be nice for people that still looking for them!
    • Please do not insult anybody and respect other works. Do not have hateful behaviour, last warning.
    • You cant add cloaks on interlude packs, is possible to find ones but will never work correct on character.
    • Hello everyone, want to sell some of my custom features in my server, someone might be interested. Collections: (50euro) - you need ingredients (min/max) - can you choose enchant level  - reward : custom skills Enemy Inventory and stats checker: (25euro) - you can check what is your enemy wearing - how much is it enchanted - you can see his detailed info about stats - pvp/pk/rebirth/pve dmg etc anything can be added Gamble (random craft item) - (50 euro)  - by using command .gamble - windown will pop up  - name of the item / chances / % of your points / maximum you can have shows  - you can buy instantly points / or item can be made for that  - each pack can have different prices/items  - refresh give another 5 random items. Custom Enchant System: (20euro)  - target all grades - one scroll can be used for any grade  - increaseEnchantby / decreaseEnchantBy Custom Rotated Farm Zone: (50euro)  - players will be automaticly flagged when enter / unflagged when leave  - you can make any zone like that  - you can add any restriction you want or dont.  - Rotation will be announced in Global  Chat  - in zone drop will be increased by 30% - or you can modify by config  - maybe you want zone where they need lets say 10x Enter to enter can be done - i can give you code, or i can also implement for you - if you want some other custom code, and im able to do it you can ask me discord:expllo#8222 or just expllo - if you won't find, message me here.  
  • 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..