Sometimes raids don't give exp
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- Pere
- Posts: 400
- Joined: Sat Jan 05, 2008 11:09 am
- Location: Catalunya, Berguedà
Sometimes raids don't give exp
This only happens on my retail server (1x), as far as I know.
I was very clueless, so I didn't say anything here until now that a phantom summoner told me that this happened to him ALWAYS, until he tried to unsummon his shadow just before the raid dies. Then, the raid gave him exp ALWAYS, so this is due to summons for sure!
I've been looking into the code but didn't find anything...
Ah, and it doesn't give 0 or low values, it doesn't give anything (the sysmsg doesn't appear neither).
Core Revision: 4048
I was very clueless, so I didn't say anything here until now that a phantom summoner told me that this happened to him ALWAYS, until he tried to unsummon his shadow just before the raid dies. Then, the raid gave him exp ALWAYS, so this is due to summons for sure!
I've been looking into the code but didn't find anything...
Ah, and it doesn't give 0 or low values, it doesn't give anything (the sysmsg doesn't appear neither).
Core Revision: 4048
Bones tardes amics meus tots!
- qwerty13
- Posts: 640
- Joined: Mon Feb 02, 2009 9:57 am
- Location: Europe
- Contact:
Re: Sometimes raids don't give exp
Maybe that player during raid far away from raid?
- Pere
- Posts: 400
- Joined: Sat Jan 05, 2008 11:09 am
- Location: Catalunya, Berguedà
Re: Sometimes raids don't give exp
No, full parties don't get exp because of a summon 

Bones tardes amics meus tots!
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: Sometimes raids don't give exp
say, you don't happen to have my delevel manager installed?
without the core mod applied, it has the same symptoms, if (!player.canGainExp() && player.isInParty()), exp is disabled
without the patch, it only works if player is in party, otherwise exp gain is normal
without the core mod applied, it has the same symptoms, if (!player.canGainExp() && player.isInParty()), exp is disabled
without the patch, it only works if player is in party, otherwise exp gain is normal
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
- Pere
- Posts: 400
- Joined: Sat Jan 05, 2008 11:09 am
- Location: Catalunya, Berguedà
Re: Sometimes raids don't give exp
I don't have any patch like that 
Yes, it happens on parties...
So this is a known bug? We should fix it...

Yes, it happens on parties...
So this is a known bug? We should fix it...
Bones tardes amics meus tots!
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: Sometimes raids don't give exp
no, i know that such a symptom is possible if the player has an accesslevel with gainExp=false, currently the experience is only disabled when in party, if not, normal gain
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
- Pere
- Posts: 400
- Joined: Sat Jan 05, 2008 11:09 am
- Location: Catalunya, Berguedà
Re: Sometimes raids don't give exp
I've just found that!!! (context: this iterates over all the damage dealers of the monster)
And if there's a cubic?? Shouldn't this return be a continue?
Thank you
Code: Select all
// If the attacker is a Pet, get the party of the ownerif (attacker instanceof L2PetInstance) attackerParty = ((L2PetInstance)attacker).getParty();else if (attacker instanceof L2PcInstance) attackerParty = ((L2PcInstance)attacker).getParty();else [color=#FF0000]return[/color];
Thank you
Bones tardes amics meus tots!
- Pere
- Posts: 400
- Joined: Sat Jan 05, 2008 11:09 am
- Location: Catalunya, Berguedà
Re: Sometimes raids don't give exp
Ok, now I've seen that a cubic cannot be in an aggro list.. but then why is that "else" here? What else than a char or summon can be here?Migi wrote:And if there's a cubic??
Bones tardes amics meus tots!
-
- Posts: 915
- Joined: Thu Sep 03, 2009 6:36 pm
- Location: Israel
- Contact:
Re: Sometimes raids don't give exp
a Summon (not a pet), notice it's checking for L2PetInstance and not L2Summon
- Pere
- Posts: 400
- Joined: Sat Jan 05, 2008 11:09 am
- Location: Catalunya, Berguedà
Re: Sometimes raids don't give exp
L2Summon is inherited by L2PetInstance and L2SummonInstance 

Bones tardes amics meus tots!
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: Sometimes raids don't give exp
Pere, could you reproduce the problem with the summon somehow by yourself? i could not.. if yes, please write here a complete testing scenario, thanks. what about your party xp cutoff method config ?
i am wondering why sometimes damage done is not added to the attacker.
is this patch ok or the existing logic in the code is fine - why is the addDamageHate in the else statement?
another problem is maybe, that damage dealt not with skill (just fighting) is not added to the damage dealt.
i am wondering why sometimes damage done is not added to the attacker.
is this patch ok or the existing logic in the code is fine - why is the addDamageHate in the else statement?
Code: Select all
Index: java/com/l2jserver/gameserver/model/actor/L2Attackable.java===================================================================--- java/com/l2jserver/gameserver/model/actor/L2Attackable.java (revision 4060)+++ java/com/l2jserver/gameserver/model/actor/L2Attackable.java (working copy)@@ -881,12 +881,8 @@ for (Quest quest: getTemplate().getEventQuests(Quest.QuestEventType.ON_ATTACK)) quest.notifyAttack(this, player, damage, attacker instanceof L2Summon, skill); }- // for now hard code damage hate caused by an L2Attackable- else- {- getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, attacker);- addDamageHate(attacker, damage, (damage*100)/(getLevel()+7));- }+ getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, attacker);+ addDamageHate(attacker, damage, (damage*100)/(getLevel()+7)); } catch (Exception e) { _log.log(Level.SEVERE, "", e); } }
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
-
- L2j Veteran
- Posts: 3437
- Joined: Wed Apr 30, 2008 8:53 am
- Location: Russia
Re: Sometimes raids don't give exp
Cant help without reproduction scenario. And no such reports on my live server.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
public static final int PI = 3.1415926535897932384626433832795;
- gigiikun
- L2j Veteran
- Posts: 637
- Joined: Wed Jan 24, 2007 10:00 am
- Location: Hungary
Re: Sometimes raids don't give exp
Janiii, that is because we have a DP script(L2AttackableAIScript.java) which handles aggro, but only when a L2Playable attacks the mob.
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: Sometimes raids don't give exp
but what about the damage dealt? is it added?gigiikun wrote:Janiii, that is because we have a DP script(L2AttackableAIScript.java) which handles aggro, but only when a L2Playable attacks the mob.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
- gigiikun
- L2j Veteran
- Posts: 637
- Joined: Wed Jan 24, 2007 10:00 am
- Location: Hungary
Re: Sometimes raids don't give exp
I hope yes. Only exp problem happens with raids, so I do not think that the problem is here.