player aggro protection

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
ThyraRexx
Posts: 19
Joined: Tue Nov 06, 2007 8:16 am

player aggro protection

Post by ThyraRexx »

Hi people.

My revisions:
L2J Revision 4380:
L2JDP Revision 7626:

I have a minor question. I think it may be a bug, but I'm surprise because nobody has written the same... I know that from Gracia Epilogue, there is a change that provides players with inmunity from mob's aggresivity (http://l2101.gtm.lineage2.com/news/grac ... ue_13.html): 10 minutes of agro protection.
However, after the first ten minutes, players still have the agro protection. Is this a bug or a wrong configuration?

Thanks a lot
User avatar
ThePhoenixBird
L2j Inner Circle
L2j Inner Circle
Posts: 1857
Joined: Fri May 27, 2005 5:11 pm

Re: player aggro protection

Post by ThePhoenixBird »

---changed tittle to something that makes sense...
Probe
Posts: 915
Joined: Thu Sep 03, 2009 6:36 pm
Location: Israel
Contact:

Re: player aggro protection

Post by Probe »

it's a bug but because that's the way it's made on l2j atm - there is no cancellation after 10 minutes
ThyraRexx
Posts: 19
Joined: Tue Nov 06, 2007 8:16 am

Re: player aggro protection

Post by ThyraRexx »

But, can we do anything? I don't have a global view about the server code, but I supose that something will be to do...

P.D. Sorry ThePhoenixBird, about the tittle. The next time will be better...
User avatar
BiggBoss
L2j Veteran
L2j Veteran
Posts: 1104
Joined: Wed Apr 15, 2009 3:11 pm
Location: Spain

Re: player aggro protection

Post by BiggBoss »

theres no cancellation at 10 minutes, but player is vulnerable: if any mob try to attack the player, the protection is removed and the player attacked.
The way to remove it within the 10 minutes is to schedule the removal

Code: Select all

ThreadPoolManager.getInstance().scheduleGeneral(new Runnable(){	@Override	public void run()	{		if(activeChar.isSpawnProtected() || activeChar.isInvul())			activeChar.onActionRequest();	}}, 600000);
Image
ThyraRexx
Posts: 19
Joined: Tue Nov 06, 2007 8:16 am

Re: player aggro protection

Post by ThyraRexx »

BiggBoss wrote:theres no cancellation at 10 minutes, but player is vulnerable: if any mob try to attack the player, the protection is removed and the player attacked.
The way to remove it within the 10 minutes is to schedule the removal

Code: Select all

ThreadPoolManager.getInstance().scheduleGeneral(new Runnable(){	@Override	public void run()	{		if(activeChar.isSpawnProtected() || activeChar.isInvul())			activeChar.onActionRequest();	}}, 600000);
Two possiblilities: I don't understand you or you are wrong.
First of all, i don't see what the aggresivity will work fine. If I removed the protection time, the aggro mobs still don't attack. I think the problem may be the aggresivity, not the protection time.

About your code... whre can we put it to probe? Not the whole world has the domain of the code as you, neither we are a teacher fortune-tellers, I'm afraid... :wink:
User avatar
BiggBoss
L2j Veteran
L2j Veteran
Posts: 1104
Joined: Wed Apr 15, 2009 3:11 pm
Location: Spain

Re: player aggro protection

Post by BiggBoss »

yes, you are right, surrounder mobs wont attack player (the protection is removed, but the player aint added into the mobs knowlist). To make him attack, change his ai intention or add into his knowlist (first method preferred, many devs has told me that mess with knowlist isnt a good idea)

Code: Select all

ThreadPoolManager.getInstance().scheduleGeneral(new Runnable(){	@Override	public void run()	{		if(activeChar.isSpawnProtected() || activeChar.isInvul())		{			activeChar.onActionRequest();			onProtectionEnd(activeChar);		}	}}, 600000); private void onProtectionEnd(L2PcInstance activeChar){	for(L2Character cha : activeChar.getKnownList().getKnownCharacters())	{		if(cha instanceof L2MonsterInstance)			((L2MonsterInstance)cha).getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);	}} 
You can schedule it at EnterWorld
Image
ThyraRexx
Posts: 19
Joined: Tue Nov 06, 2007 8:16 am

Re: player aggro protection

Post by ThyraRexx »

Pefect, BiggBoss. I will try it. I tell the results... Thanks. 8)
User avatar
kotkot90
Posts: 30
Joined: Sat Jun 19, 2010 2:01 pm

Re: player aggro protection

Post by kotkot90 »

ThyraRexx wrote:Hi people.

My revisions:
L2J Revision 4380:
L2JDP Revision 7626:

I have a minor question. I think it may be a bug, but I'm surprise because nobody has written the same... I know that from Gracia Epilogue, there is a change that provides players with inmunity from mob's aggresivity (http://l2101.gtm.lineage2.com/news/grac ... ue_13.html): 10 minutes of agro protection.
However, after the first ten minutes, players still have the agro protection. Is this a bug or a wrong configuration?

Thanks a lot
its a bug, we already discussed about this at this thread:
viewtopic.php?f=81&t=18481
The problem is that when a player comes in the area a monster can see him, it should add him into its knownlist and become active. However that does not happen.
Probe
Posts: 915
Joined: Thu Sep 03, 2009 6:36 pm
Location: Israel
Contact:

Re: player aggro protection

Post by Probe »

the monster should not see him until he performs an action (any action other than soe)
ThyraRexx
Posts: 19
Joined: Tue Nov 06, 2007 8:16 am

Re: player aggro protection

Post by ThyraRexx »

kotkot90 wrote:
ThyraRexx wrote:Hi people.

My revisions:
L2J Revision 4380:
L2JDP Revision 7626:

I have a minor question. I think it may be a bug, but I'm surprise because nobody has written the same... I know that from Gracia Epilogue, there is a change that provides players with inmunity from mob's aggresivity (http://l2101.gtm.lineage2.com/news/grac ... ue_13.html): 10 minutes of agro protection.
However, after the first ten minutes, players still have the agro protection. Is this a bug or a wrong configuration?

Thanks a lot
its a bug, we already discussed about this at this thread:
viewtopic.php?f=81&t=18481
The problem is that when a player comes in the area a monster can see him, it should add him into its knownlist and become active. However that does not happen.
OK... Later that my question, but better to find a solution. Thanks for all.
Post Reply