andrei23 Posted August 20, 2012 Posted August 20, 2012 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.
0 Fanky Posted August 21, 2012 Posted August 21, 2012 what you mean 'you can't talk'..? you mean don't take buffs?
0 Fanky Posted August 21, 2012 Posted August 21, 2012 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 Lioy Posted August 21, 2012 Posted August 21, 2012 ### 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.
0 andrei23 Posted August 22, 2012 Author Posted August 22, 2012 Fixed.ty.btw i add few lines in buffer script but ty vm for help
0 andrei23 Posted August 22, 2012 Author Posted August 22, 2012 Fixed.ty.btw i add few lines in buffer script but ty vm for help
Question
andrei23
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