public void Decline()
 {
     InvinteCase.OnDecline(this);
     InvinteCase = null;
     Case        = null;
     Session.SendMessage(new CloseHelperSessionComposer());
 }
Ejemplo n.º 2
0
        public static HelperCase AddCall(GameClient Session, string message, int category)
        {
            var c = GetCall(Session);

            if (c != null)
            {
                return(c);
            }
            var hcase = new HelperCase(Session, message, category);

            Cases.Add(hcase);
            return(hcase);
        }
 public void CancelCall()
 {
     if (InvinteCase != null)
     {
         InvinteCase.Session.SendMessage(new CloseHelperSessionComposer());
     }
     InvinteCase = null;
     if (Case != null)
     {
         Case.Session.SendMessage(new CloseHelperSessionComposer());
     }
     Case = null;
     Session.SendMessage(new CloseHelperSessionComposer());
 }
        public void Accept()
        {
            if (InvinteCase == null)
            {
                Session.SendMessage(new CloseHelperSessionComposer());
                return;
            }
            Case        = InvinteCase;
            InvinteCase = null;


            Session.SendMessage(new InitHelperSessionChatComposer(Case.Session.GetHabbo(), Session.GetHabbo()));
            Case.Session.SendMessage(new InitHelperSessionChatComposer(Case.Session.GetHabbo(), Session.GetHabbo()));
        }
Ejemplo n.º 5
0
 public static List <HabboHelper> GetHelpersToCase(HelperCase Case)
 {
     return(GetAvaliableHelpers().Where(c => !Case.DeclinedHelpers.Any(d => d == c)).Where(c => Case.Session != c.Session && ((c.IsGuide && Case.Type == HelpCaseType.MEET_HOTEL) || (c.IsHelper && Case.Type == HelpCaseType.INSTRUCTION))).ToList());
 }
Ejemplo n.º 6
0
 public static void InvinteHelpCall(HabboHelper Helper, HelperCase hcase)
 {
     Helper.InvinteCase = hcase;
     Helper.Session.SendMessage(new CallForHelperWindowComposer(true, hcase));
     hcase.Helper = Helper;
 }
Ejemplo n.º 7
0
 public static void RemoveCall(HelperCase Call)
 {
     Cases.Remove(Call);
 }
 public void Close()
 {
     Case        = null;
     InvinteCase = null;
     Session.SendMessage(new CloseHelperSessionComposer());
 }