Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
This commit is contained in:
@ -37,6 +37,8 @@ import org.l2jmobius.gameserver.model.actor.Npc;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Summon;
|
import org.l2jmobius.gameserver.model.actor.Summon;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
|
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureSee;
|
||||||
import org.l2jmobius.gameserver.network.Disconnection;
|
import org.l2jmobius.gameserver.network.Disconnection;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
||||||
|
|
||||||
@ -355,6 +357,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -568,6 +577,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,8 @@ import org.l2jmobius.gameserver.model.actor.Npc;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Summon;
|
import org.l2jmobius.gameserver.model.actor.Summon;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
|
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureSee;
|
||||||
import org.l2jmobius.gameserver.network.Disconnection;
|
import org.l2jmobius.gameserver.network.Disconnection;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
||||||
|
|
||||||
@ -355,6 +357,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -568,6 +577,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,8 @@ import org.l2jmobius.gameserver.model.actor.Npc;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Summon;
|
import org.l2jmobius.gameserver.model.actor.Summon;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
|
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureSee;
|
||||||
import org.l2jmobius.gameserver.network.Disconnection;
|
import org.l2jmobius.gameserver.network.Disconnection;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
||||||
|
|
||||||
@ -355,6 +357,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -568,6 +577,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,8 @@ import org.l2jmobius.gameserver.model.actor.Npc;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Summon;
|
import org.l2jmobius.gameserver.model.actor.Summon;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
|
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureSee;
|
||||||
import org.l2jmobius.gameserver.network.Disconnection;
|
import org.l2jmobius.gameserver.network.Disconnection;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
||||||
|
|
||||||
@ -355,6 +357,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -568,6 +577,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,8 @@ import org.l2jmobius.gameserver.model.actor.Npc;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Summon;
|
import org.l2jmobius.gameserver.model.actor.Summon;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
|
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureSee;
|
||||||
import org.l2jmobius.gameserver.network.Disconnection;
|
import org.l2jmobius.gameserver.network.Disconnection;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
||||||
|
|
||||||
@ -355,6 +357,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -568,6 +577,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,8 @@ import org.l2jmobius.gameserver.model.actor.Npc;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Summon;
|
import org.l2jmobius.gameserver.model.actor.Summon;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
|
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureSee;
|
||||||
import org.l2jmobius.gameserver.network.Disconnection;
|
import org.l2jmobius.gameserver.network.Disconnection;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
||||||
|
|
||||||
@ -355,6 +357,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -568,6 +577,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,8 @@ import org.l2jmobius.gameserver.model.actor.Npc;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Summon;
|
import org.l2jmobius.gameserver.model.actor.Summon;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
|
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureSee;
|
||||||
import org.l2jmobius.gameserver.network.Disconnection;
|
import org.l2jmobius.gameserver.network.Disconnection;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
||||||
|
|
||||||
@ -355,6 +357,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -568,6 +577,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,8 @@ import org.l2jmobius.gameserver.model.actor.Npc;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Summon;
|
import org.l2jmobius.gameserver.model.actor.Summon;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
|
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureSee;
|
||||||
import org.l2jmobius.gameserver.network.Disconnection;
|
import org.l2jmobius.gameserver.network.Disconnection;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
||||||
|
|
||||||
@ -355,6 +357,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -568,6 +577,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,6 +39,8 @@ import org.l2jmobius.gameserver.model.actor.Npc;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Summon;
|
import org.l2jmobius.gameserver.model.actor.Summon;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
|
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureSee;
|
||||||
import org.l2jmobius.gameserver.network.Disconnection;
|
import org.l2jmobius.gameserver.network.Disconnection;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
||||||
|
|
||||||
@ -360,6 +362,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -573,6 +582,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,6 +39,8 @@ import org.l2jmobius.gameserver.model.actor.Npc;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Summon;
|
import org.l2jmobius.gameserver.model.actor.Summon;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
|
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureSee;
|
||||||
import org.l2jmobius.gameserver.network.Disconnection;
|
import org.l2jmobius.gameserver.network.Disconnection;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
||||||
|
|
||||||
@ -360,6 +362,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -573,6 +582,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -36,6 +36,8 @@ import org.l2jmobius.gameserver.model.actor.Npc;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Summon;
|
import org.l2jmobius.gameserver.model.actor.Summon;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
|
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureSee;
|
||||||
import org.l2jmobius.gameserver.network.Disconnection;
|
import org.l2jmobius.gameserver.network.Disconnection;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
||||||
|
|
||||||
@ -351,6 +353,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -564,6 +573,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -36,6 +36,8 @@ import org.l2jmobius.gameserver.model.actor.Npc;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Summon;
|
import org.l2jmobius.gameserver.model.actor.Summon;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
|
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureSee;
|
||||||
import org.l2jmobius.gameserver.network.Disconnection;
|
import org.l2jmobius.gameserver.network.Disconnection;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
||||||
|
|
||||||
@ -351,6 +353,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -564,6 +573,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,8 @@ import org.l2jmobius.gameserver.model.actor.Npc;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Summon;
|
import org.l2jmobius.gameserver.model.actor.Summon;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
|
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureSee;
|
||||||
import org.l2jmobius.gameserver.network.Disconnection;
|
import org.l2jmobius.gameserver.network.Disconnection;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
||||||
|
|
||||||
@ -355,6 +357,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -568,6 +577,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,8 @@ import org.l2jmobius.gameserver.model.actor.Npc;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Summon;
|
import org.l2jmobius.gameserver.model.actor.Summon;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
|
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureSee;
|
||||||
import org.l2jmobius.gameserver.network.Disconnection;
|
import org.l2jmobius.gameserver.network.Disconnection;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
||||||
|
|
||||||
@ -355,6 +357,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -568,6 +577,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,8 @@ import org.l2jmobius.gameserver.model.actor.Npc;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Summon;
|
import org.l2jmobius.gameserver.model.actor.Summon;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
|
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureSee;
|
||||||
import org.l2jmobius.gameserver.network.Disconnection;
|
import org.l2jmobius.gameserver.network.Disconnection;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
||||||
|
|
||||||
@ -355,6 +357,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -568,6 +577,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,8 @@ import org.l2jmobius.gameserver.model.actor.Npc;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Summon;
|
import org.l2jmobius.gameserver.model.actor.Summon;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
|
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureSee;
|
||||||
import org.l2jmobius.gameserver.network.Disconnection;
|
import org.l2jmobius.gameserver.network.Disconnection;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
||||||
|
|
||||||
@ -355,6 +357,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -568,6 +577,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,8 @@ import org.l2jmobius.gameserver.model.actor.Npc;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Summon;
|
import org.l2jmobius.gameserver.model.actor.Summon;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
|
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureSee;
|
||||||
import org.l2jmobius.gameserver.network.Disconnection;
|
import org.l2jmobius.gameserver.network.Disconnection;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
||||||
|
|
||||||
@ -355,6 +357,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -568,6 +577,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,8 @@ import org.l2jmobius.gameserver.model.actor.Npc;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Summon;
|
import org.l2jmobius.gameserver.model.actor.Summon;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
|
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureSee;
|
||||||
import org.l2jmobius.gameserver.network.Disconnection;
|
import org.l2jmobius.gameserver.network.Disconnection;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
||||||
|
|
||||||
@ -355,6 +357,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -568,6 +577,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,8 @@ import org.l2jmobius.gameserver.model.actor.Npc;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Summon;
|
import org.l2jmobius.gameserver.model.actor.Summon;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
|
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureSee;
|
||||||
import org.l2jmobius.gameserver.network.Disconnection;
|
import org.l2jmobius.gameserver.network.Disconnection;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
||||||
|
|
||||||
@ -355,6 +357,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -568,6 +577,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,8 @@ import org.l2jmobius.gameserver.model.actor.Npc;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Summon;
|
import org.l2jmobius.gameserver.model.actor.Summon;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
|
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureSee;
|
||||||
import org.l2jmobius.gameserver.network.Disconnection;
|
import org.l2jmobius.gameserver.network.Disconnection;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
||||||
|
|
||||||
@ -355,6 +357,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -568,6 +577,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,8 @@ import org.l2jmobius.gameserver.model.actor.Npc;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Summon;
|
import org.l2jmobius.gameserver.model.actor.Summon;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
|
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureSee;
|
||||||
import org.l2jmobius.gameserver.network.Disconnection;
|
import org.l2jmobius.gameserver.network.Disconnection;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
||||||
|
|
||||||
@ -355,6 +357,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -568,6 +577,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,8 @@ import org.l2jmobius.gameserver.model.actor.Npc;
|
|||||||
import org.l2jmobius.gameserver.model.actor.Summon;
|
import org.l2jmobius.gameserver.model.actor.Summon;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PetInstance;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
|
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureSee;
|
||||||
import org.l2jmobius.gameserver.network.Disconnection;
|
import org.l2jmobius.gameserver.network.Disconnection;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
import org.l2jmobius.gameserver.network.serverpackets.DeleteObject;
|
||||||
|
|
||||||
@ -355,6 +357,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -568,6 +577,13 @@ public class World
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify OnCreatureSee for creatures that do not trigger EVT_THINK.
|
||||||
|
if (!wo.isAttackable() && wo.isCreature() && object.isCreature())
|
||||||
|
{
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) wo, (Creature) object), (Creature) wo);
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee((Creature) object, (Creature) wo), (Creature) object);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user