public static NpcInitiateDialog ( Creature creature, long npcEntityId, string npcName, string npcLocalName ) : void | ||
creature | Creature | |
npcEntityId | long | |
npcName | string | The ident for the NPC, e.g. _duncan. |
npcLocalName | string | The actual NPC name displayed. |
return | void |
public static void NpcInitiateDialog(Creature creature, long npcEntityId, string npcName, string npcLocalName)
{
npcLocalName = npcLocalName ?? npcName;
var packet = new Packet(Op.NpcInitiateDialog, creature.EntityId);
packet.PutByte(1);
packet.PutLong(npcEntityId);
packet.PutString(npcName);
packet.PutString(npcLocalName);
creature.Client.Send(packet);
}
}