示例#1
0
        public static HabboHelper AddHelper(GameClient Session, bool IsHelper, bool IsGard, bool IsGuide)
        {
            var h = GetHelper(Session);

            if (h != null)
            {
                return(h);
            }
            h = new HabboHelper(Session, IsGuide, IsHelper, IsGard);
            Helpers.Add(h);

            return(h);
        }
示例#2
0
        public void OnDecline(HabboHelper Helper)
        {
            DeclinedHelpers.Add(Helper);

            var newhelper = HelperToolsManager.GetHelpersToCase(this).FirstOrDefault();

            if (newhelper != null)
            {
                HelperToolsManager.InvinteHelpCall(newhelper, this);
            }
            else
            {
                Session.SendMessage(new CallForHelperErrorComposer(1));
                HelperToolsManager.RemoveCall(this);
            }
        }
示例#3
0
 public static void InvinteHelpCall(HabboHelper Helper, HelperCase hcase)
 {
     Helper.InvinteCase = hcase;
     Helper.Session.SendMessage(new CallForHelperWindowComposer(true, hcase));
     hcase.Helper = Helper;
 }
示例#4
0
 public static void RemoveHelper(HabboHelper client)
 {
     Helpers.Remove(client);
 }