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)); } }
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)); } }
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)); } }
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); } }
public static void QuestGumpRequest(NetState state, IEntity e, EncodedReader reader) { EventSink.InvokeQuestGumpRequest(state.Mobile); }