public void SendDialog(Quest quest = null, QuestReward reward = null) { new SpShowDialog(Npc, Stage, Buttons, DialogId, Special1, Special2, Page, Uid, quest, reward).Send(Player.Connection); Global.VisibleService.Send(Player, new SpCharacterEmotions(Player, PlayerEmotion.Dialog)); Global.VisibleService.Send(Npc, new SpNpcEmotion(Npc, Player, new Random().Next(1, 3))); }
public SpShowDialog(Npc npc, int stage, List<DialogButton> buttons, int dialogId, int special1, int special2, int page, int dialogUid, Quest quest = null, QuestReward reward = null) { Npc = npc; Stage = stage; Buttons = buttons; DialogUid = dialogUid; DialogId = dialogId; Special1 = special1; Special2 = special2; Page = page; Quest = quest; Reward = reward; }