All pastes #34216 Raw Edit

Anonymous

public text v1 · immutable
#34216 ·published 2005-12-19 17:55 UTC
rendered paste body
<Fulminus> Today I came here with some questions and results regarding L2Character.getAttackByList()
<Fulminus> I've been using that trying to come up with an alternate implementation for 230_TestOfSummoner
<Fulminus> and I think that's a (major?) L2J issue...In short, here are my results:
<Fulminus> 1) getAttackByList only adds L2PcInstances! Whenever a summon attacks the mob, neither the summon instance NOR its owner is added in the list!
<Fulminus> 2) Attack lists are NOT cleared when a mob dies. Once it respawns ALL INFO in the attack list is the same as the last time the mob had spawned.
<Fulminus> Additional details of what I did and how I arrived to these 2 conclusions can be found here: http://l2j-c2datapack.sourceforge.net/bb/viewtopic.php?p=6981#6981
<Fulminus> If anybody from the L2J Team is available and has an interest in my findings (I can forsee various side-effects of those 2) please feel free to talk to me.  I'll stick around for a little while.
<Fulminus> BTW, I ran these experiments last night, after getting the latest L2J and DP from svn

<Luno_> fulimnus, you think it could be a little part of performance problem ? If there is many PCs killing the same mob during day, it's storing list of all of them

<Fulminus> yeap...I really don't think it's good.

<Luno_> and mutlipling it wit lot of mobs give quite big number

<Fulminus> Also, if I'm not mistaken, attackby list is used for rewards (not sure about that, I'll