Aggressive monsters problem..:?:

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
User avatar
kotkot90
Posts: 30
Joined: Sat Jun 19, 2010 2:01 pm

Re: Aggressive monsters problem..:?:

Post by kotkot90 »

Hehe :), thx Stake, it works like a charm, but I don't understand.
In this occasion, activeChar is the monster right?

So,

Code: Select all

 if (object instanceof L2PcInstance //it checks if the object that is coming is a player     && getActiveChar().hasAI() //removed     && getActiveChar().getAI().getIntention() == CtrlIntention.AI_INTENTION_IDLE) // <-- here, some monsters have no intention at all. I mean there are some monsters that are not even IDLE. How all the monsters pass this check and become active? getActiveChar().getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE, null); //sets the monster active 
User avatar
Stake
Posts: 383
Joined: Sun Mar 23, 2008 9:33 pm
Location: Hungary
Contact:

Re: Aggressive monsters problem..:?:

Post by Stake »

kotkot90 wrote:Hehe :), thx Stake, it works like a charm, but I don't understand.
In this occasion, activeChar is the monster right?
Yep, that is the monster, "object" is the other object that is to be registered in the knownlist. In this case it's considered as a player (L2PcInstance). The script doesn't even get through the idle check, because the monster has no AI, it stops and skips at that point.

You'd better remove the detachAI() from the core, but if you don't know at how many places it occurs, and what is for what, then do nothing more.

This detachAI thing would be useful, if we used it, but until none of the mobs change their AI controller class, it's useless.
Image
Image
citruz
Posts: 4
Joined: Thu Sep 13, 2007 5:45 am

Re: Aggressive monsters problem..:?:

Post by citruz »

Will it be fixed on next revision?

Or... "it's not a bug, it's a feature"?
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Aggressive monsters problem..:?:

Post by _DS_ »

Fixed in the next release (in slightly different way).
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
citruz
Posts: 4
Joined: Thu Sep 13, 2007 5:45 am

Re: Aggressive monsters problem..:?:

Post by citruz »

Oh, that's just great! :)

Thank you.

By the way, the "temp fix" from Stake works perfectly.

Bye =D
Zumba
Posts: 58
Joined: Fri Nov 12, 2010 5:01 pm

Re: Aggressive monsters problem..:?:

Post by Zumba »

_DS_ wrote:Fixed in the next release (in slightly different way).
NOT fixed

you used Stake "Temp fix" but you messed elsewhere.

mobs now get AI_ACTIVE, but in 90% of time don't turn to ATTACK
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Aggressive monsters problem..:?:

Post by _DS_ »

lolwhat ? worksforme.
And remember what knownlist is not immediately fully updated after region activation. Topic closed.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
Zumba
Posts: 58
Joined: Fri Nov 12, 2010 5:01 pm

Re: Aggressive monsters problem..:?:

Post by Zumba »

_DS_ wrote:lolwhat ? worksforme.
And remember what knownlist is not immediately fully updated after region activation. Topic closed.
why mobs INSTANTLY turn ACTIVE (all at once) when char appears, but NEVER turn ATTACK then?

works for you? maybe, but I use fresh files which you uploaded and don't mess with them :P
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Aggressive monsters problem..:?:

Post by _DS_ »

What exactly word you does not understand ?
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
Zumba
Posts: 58
Joined: Fri Nov 12, 2010 5:01 pm

Re: Aggressive monsters problem..:?:

Post by Zumba »

_DS_ wrote:What exactly word you does not understand ?
that's question for you

I left char near "aggro" mob (group of mobs actually) with AI_ACTIVE for about 40 min and nothing happen, they still AI_ACTIVE (not AI_ATTACK or AI_IDLE), and my char is alive.

so, something is wrong, if you don't want ppl to report such things - close the forum
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Aggressive monsters problem..:?:

Post by _DS_ »

Just tested - ported to the Ant Nest on the home test server (only one my character online) and immediately attacked by guard ants.

Remember to test with non-GM character.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
Zumba
Posts: 58
Joined: Fri Nov 12, 2010 5:01 pm

Re: Aggressive monsters problem..:?:

Post by Zumba »

_DS_ wrote:Just tested - ported to the Ant Nest on the home test server (only one my character online) and immediately attacked by guard ants.

Remember to test with non-GM character.
well, I do test with non-GM (acc access o, char acces o), I just ported to Queen Ant and mobs instantly attacked me.

dunno what to say, you must of hacked me through eclipse and updated something, now all working :lol:

sorry for bother, but I was annoyed all day with it, and I use this server for personal (neighbor) usage only.

good thing is that all working now, ty for time and effort, sorry for trouble again :oops:
galagard
Posts: 28
Joined: Tue Dec 21, 2010 5:58 am

Re: Aggressive monsters problem..:?:

Post by galagard »

what the problem with GM-Character an aggro mobs? these don't attack a GM or Admin?
User avatar
goncafa
Posts: 385
Joined: Thu Aug 05, 2010 2:10 pm
Location: Santiago, Chile

Re: Aggressive monsters problem..:?:

Post by goncafa »

galagard wrote:what the problem with GM-Character an aggro mobs? these don't attack a GM or Admin?
if you are in invulnerable mode mobs not attack you.
Best Regards

PS: im sorry my bad english.
Image
galagard
Posts: 28
Joined: Tue Dec 21, 2010 5:58 am

Re: Aggressive monsters problem..:?:

Post by galagard »

sure, but in "mortal" mode mob don't attack me anymore... aggro 600, 1200, 12000 nothing happens (in monastery, not tested any other place)
Post Reply