예제 #1
0
 public static void QuestButton(NetState state, IEntity e, EncodedReader reader)
 {
     if (state.Mobile is PlayerMobile from)
     {
         from.CloseGump(typeof(MondainQuestGump));
         from.SendGump(new MondainQuestGump(from));
     }
 }
예제 #2
0
        public static void QuestButton(GameClient state, IEntity e, EncodedReader reader)
        {
            if (state.Mobile is PlayerMobile)
            {
                PlayerMobile from = (PlayerMobile)state.Mobile;

                from.CloseGump(typeof(BaseQuestGump));
                from.SendGump(new MLQuestMainLogGump(from));
            }
        }
예제 #3
0
        public static void QuestButton(NetState state, IEntity e, EncodedReader reader)
        {
            if (state.Mobile is PlayerMobile)
            {
                PlayerMobile from = (PlayerMobile)state.Mobile;

                from.CloseGump <BaseQuestGump>();
                from.SendGump(new MLQuestMainLogGump(from));
            }
        }
예제 #4
0
        public static void SetAbility(NetState state, IEntity e, EncodedReader reader)
        {
            var m     = state.Mobile;
            var index = reader.ReadInt32();

            if (index >= 1 && index < WeaponAbility.Abilities.Length)
            {
                WeaponAbility.SetCurrentAbility(m, WeaponAbility.Abilities[index]);
            }
            else
            {
                WeaponAbility.ClearCurrentAbility(m);
            }
        }
예제 #5
0
 public static void QuestGumpRequest(NetState state, IEntity e, EncodedReader reader)
 {
     EventSink.InvokeQuestGumpRequest(state.Mobile);
 }