Aura.Channel.World.Entities.Creature.TalkToNpc C# (CSharp) Метод

TalkToNpc() публичный Метод

Starts dialog with NPC, returns false if NPC couldn't be found.
public TalkToNpc ( string npcName, string npcNameLocal = null ) : bool
npcName string The ident for the NPC, e.g. _duncan.
npcNameLocal string Defaults to npcName if null.
Результат bool
		public bool TalkToNpc(string npcName, string npcNameLocal = null)
		{
			npcNameLocal = npcNameLocal ?? npcName;

			var target = ChannelServer.Instance.World.GetNpc(npcName);
			if (target == null)
				return false;

			Send.NpcInitiateDialog(this, target.EntityId, npcName, npcNameLocal);
			this.Client.NpcSession.StartTalk(target, this);

			return true;
		}