Reworked quest Request of the Seeker (10363).

Contributed by gyo.
This commit is contained in:
MobiusDev
2016-02-14 14:55:13 +00:00
parent 3f76e7c7bd
commit 1ca1dc52a9
18 changed files with 169 additions and 94 deletions

View File

@ -6655,17 +6655,10 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
return;
}
final Collection<L2Object> objs = getKnownList().getKnownObjects().values();
for (L2Object npc : objs)
L2Object target = getTarget();
if ((target != null) && target.isNpc())
{
if ((npc != null) && npc.isNpc())
{
final L2Npc npcMob = (L2Npc) npc;
if (npcMob.isInsideRadius(this, 150, true, true)) // 150 radius?
{
EventDispatcher.getInstance().notifyEventAsync(new OnNpcSocialActionSee(npcMob, getActingPlayer(), id), npcMob);
}
}
EventDispatcher.getInstance().notifyEventAsync(new OnNpcSocialActionSee((L2Npc) target, getActingPlayer(), id), (L2Npc) target);
}
}

View File

@ -4372,17 +4372,10 @@ public final class L2PcInstance extends L2Playable
public final void broadcastPacket(SocialAction sa)
{
final Collection<L2Object> objs = getKnownList().getKnownObjects().values();
for (L2Object npc : objs)
L2Object target = getTarget();
if ((target != null) && target.isNpc())
{
if ((npc != null) && npc.isNpc())
{
final L2Npc npcMob = (L2Npc) npc;
if (npcMob.isInsideRadius(this, 100, true, true)) // 150 radius?
{
EventDispatcher.getInstance().notifyEventAsync(new OnNpcSocialActionSee(npcMob, getActingPlayer(), sa.getId()), npcMob);
}
}
EventDispatcher.getInstance().notifyEventAsync(new OnNpcSocialActionSee((L2Npc) target, getActingPlayer(), sa.getId()), (L2Npc) target);
}
broadcastPacket((L2GameServerPacket) sa);
}