Page 1 of 1
player aggro protection
Posted: Fri Aug 06, 2010 4:38 pm
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
Re: player aggro protection
Posted: Fri Aug 06, 2010 7:28 pm
by ThePhoenixBird
---changed tittle to something that makes sense...
Re: player aggro protection
Posted: Fri Aug 06, 2010 7:29 pm
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
Re: player aggro protection
Posted: Sat Aug 07, 2010 5:32 pm
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...
Re: player aggro protection
Posted: Sat Aug 07, 2010 7:14 pm
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);
Re: player aggro protection
Posted: Mon Aug 09, 2010 11:39 am
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...

Re: player aggro protection
Posted: Mon Aug 09, 2010 11:46 am
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
Re: player aggro protection
Posted: Fri Aug 13, 2010 9:54 am
by ThyraRexx
Pefect, BiggBoss. I will try it. I tell the results... Thanks.

Re: player aggro protection
Posted: Fri Aug 13, 2010 11:25 am
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.
Re: player aggro protection
Posted: Fri Aug 13, 2010 1:05 pm
by Probe
the monster should not see him until he performs an action (any action other than soe)
Re: player aggro protection
Posted: Fri Aug 13, 2010 2:56 pm
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.