Used talk interaction distance in L2PcInstance as well.
This commit is contained in:
parent
0796247376
commit
7d24436cfa
@ -1444,7 +1444,7 @@ public final class L2PcInstance extends L2Playable
|
|||||||
|
|
||||||
final L2Npc target = getLastFolkNPC();
|
final L2Npc target = getLastFolkNPC();
|
||||||
|
|
||||||
if ((target != null) && isInsideRadius(target, L2Npc.INTERACTION_DISTANCE, false, false))
|
if ((target != null) && isInsideRadius(target, L2Npc.INTERACTION_DISTANCE_TALK, false, false))
|
||||||
{
|
{
|
||||||
quest.notifyEvent(event, target, this);
|
quest.notifyEvent(event, target, this);
|
||||||
}
|
}
|
||||||
@ -1452,7 +1452,7 @@ public final class L2PcInstance extends L2Playable
|
|||||||
{
|
{
|
||||||
final L2Object object = L2World.getInstance().findObject(getLastQuestNpcObject());
|
final L2Object object = L2World.getInstance().findObject(getLastQuestNpcObject());
|
||||||
|
|
||||||
if (object.isNpc() && isInsideRadius(object, L2Npc.INTERACTION_DISTANCE, false, false))
|
if (object.isNpc() && isInsideRadius(object, L2Npc.INTERACTION_DISTANCE_TALK, false, false))
|
||||||
{
|
{
|
||||||
final L2Npc npc = (L2Npc) object;
|
final L2Npc npc = (L2Npc) object;
|
||||||
quest.notifyEvent(event, npc, this);
|
quest.notifyEvent(event, npc, this);
|
||||||
|
Loading…
Reference in New Issue
Block a user