player aggro protection
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 19
- Joined: Tue Nov 06, 2007 8:16 am
player aggro protection
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
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
- ThePhoenixBird
- L2j Inner Circle
- Posts: 1857
- Joined: Fri May 27, 2005 5:11 pm
Re: player aggro protection
---changed tittle to something that makes sense...
-
- Posts: 915
- Joined: Thu Sep 03, 2009 6:36 pm
- Location: Israel
- Contact:
Re: player aggro protection
it's a bug but because that's the way it's made on l2j atm - there is no cancellation after 10 minutes
-
- Posts: 19
- Joined: Tue Nov 06, 2007 8:16 am
Re: player aggro protection
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...
P.D. Sorry ThePhoenixBird, about the tittle. The next time will be better...
- BiggBoss
- L2j Veteran
- Posts: 1104
- Joined: Wed Apr 15, 2009 3:11 pm
- Location: Spain
Re: player aggro protection
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
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);
-
- Posts: 19
- Joined: Tue Nov 06, 2007 8:16 am
Re: player aggro protection
Two possiblilities: I don't understand you or you are wrong.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 removalCode: Select all
ThreadPoolManager.getInstance().scheduleGeneral(new Runnable(){ @Override public void run() { if(activeChar.isSpawnProtected() || activeChar.isInvul()) activeChar.onActionRequest(); }}, 600000);
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...

- BiggBoss
- L2j Veteran
- Posts: 1104
- Joined: Wed Apr 15, 2009 3:11 pm
- Location: Spain
Re: player aggro protection
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)
You can schedule it at EnterWorld
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); }}
-
- Posts: 19
- Joined: Tue Nov 06, 2007 8:16 am
Re: player aggro protection
Pefect, BiggBoss. I will try it. I tell the results... Thanks. 

- kotkot90
- Posts: 30
- Joined: Sat Jun 19, 2010 2:01 pm
Re: player aggro protection
its a bug, we already discussed about this at this thread: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
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.
-
- Posts: 915
- Joined: Thu Sep 03, 2009 6:36 pm
- Location: Israel
- Contact:
Re: player aggro protection
the monster should not see him until he performs an action (any action other than soe)
-
- Posts: 19
- Joined: Tue Nov 06, 2007 8:16 am
Re: player aggro protection
OK... Later that my question, but better to find a solution. Thanks for all.kotkot90 wrote:its a bug, we already discussed about this at this thread: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
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.