/// <summary> /// Occurs when the shop should be opend /// </summary> /// <param name="npc">Npc who opens the shop</param> /// <param name="target">Character who should see the shop</param> protected virtual void OnShop(BaseNPC npc, Character target) { //Show dialog Common.Actions.OpenMenu(target, npc, _Shop, DialogType.EverydayConversation, new byte[] { } ); //Open shop list _shoplist.Open(target, npc); }
/// <summary> /// Occurs when pressing the shop buttong /// </summary> /// <param name="npc">Npc who calls the event</param> /// <param name="target">Character who requires interaction</param> protected virtual void OnShop(BaseNPC npc, Character target) { //Open menu Common.Actions.OpenMenu( target, npc, _Shop, DialogType.Shop, npc.GetDialogButtons(target) ); //Open shoplist _shoplist.Open(target, npc); }
/// <summary> /// Shows all a list of skillbooks. /// (uses shoppinglist object) /// </summary> /// <param name="npc">Npc who calls the event</param> /// <param name="target">Character who requires interaction</param> protected virtual void OnSkillbook(BaseNPC npc, Character target) { //Open bookstore _shoplist.Open(target, npc); //Show dialog Common.Actions.OpenMenu( target, npc, _OnSkillbook, DialogType.BookStore, npc.GetDialogButtons(target) ); }