Ejemplo n.º 1
0
 /// <summary>
 /// Calls the npc dialog associated with the npc.
 /// </summary>
 /// <param name="client">The client.</param>
 /// <param name="option">The dialog option.</param>
 public void CallDialog(GameClient client, byte option)
 {
     if (associatedNPC != null)
         associatedNPC.CallDialog(client, option);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Calls the npc dialog associated with the npc.
 /// </summary>
 /// <param name="client">The client.</param>
 /// <param name="option">The dialog option.</param>
 public void CallDialog(GameClient client, byte option)
 {
     if (!Core.Kernel.ScriptEngine.Invoke(EntityUID, new object[] { client, option }))
     {
         using (var fmsg = Packets.Message.MessageCore.CreateSystem(client.Name, string.Format(Core.MessageConst.NPC_NOT_FOUND, EntityUID)))
             client.Send(fmsg);
     }
 }