Skip to content
Snippets Groups Projects
Commit f2dc3a85 authored by Zoey76's avatar Zoey76
Browse files

BETA: Retail-like NPC turn to player on interact.

Patch by: Tryskell
Reviewed by: UnAfraid, VlLight, Zoey76, daemon
Tested by: VlLight
parent a071dec7
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,7 @@ import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.entity.L2Event;
import com.l2jserver.gameserver.model.quest.Quest;
import com.l2jserver.gameserver.network.serverpackets.ActionFailed;
import com.l2jserver.gameserver.network.serverpackets.MoveToPawn;
import com.l2jserver.util.Rnd;
public class L2NpcAction implements IActionHandler
......@@ -104,7 +105,9 @@ public class L2NpcAction implements IActionHandler
}
else
{
L2Npc npc = (L2Npc) target;
final L2Npc npc = (L2Npc) target;
// Turn NPC to the player.
activeChar.sendPacket(new MoveToPawn(activeChar, npc, 100));
if (npc.hasRandomAnimation())
{
npc.onRandomAnimation(Rnd.get(8));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment