Automatically send NpcLogList with Quest onKill.

This commit is contained in:
MobiusDev
2018-05-30 21:05:25 +00:00
parent 592ce09803
commit aafd0051e8
265 changed files with 109 additions and 471 deletions

View File

@ -1122,6 +1122,10 @@ public class Quest extends AbstractScript implements IIdentifiable
*/
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
if (!getNpcLogList(killer).isEmpty())
{
sendNpcLogList(killer);
}
return null;
}
@ -2937,9 +2941,7 @@ public class Quest extends AbstractScript implements IIdentifiable
public void sendNpcLogList(L2PcInstance activeChar)
{
final QuestState qs = activeChar.getQuestState(getName());
if (qs != null)
if (activeChar.getQuestState(getName()) != null)
{
final ExQuestNpcLogList packet = new ExQuestNpcLogList(getId());
getNpcLogList(activeChar).forEach(packet::add);