コード例 #1
0
ファイル: Sob.cs プロジェクト: kenlacoste843/ProjectXV3
 /// <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);
 }
コード例 #2
0
ファイル: NPC.cs プロジェクト: kenlacoste843/ProjectXV3
 /// <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);
     }
 }