Exemplo n.º 1
0
        public Event GetEvent(EventSpecial specialGroup)
        {
            Event e = Destiny.FindEvent(this, specialGroup);

            if (e == null)
            {
                ConsoleEx.Log("ERROR: No event found in destiny. Emptying queue and retrying.");
                blockedEvents.Clear();
                e = Destiny.FindEvent(this, specialGroup);
                if (e == null)
                {
                    ConsoleEx.Log("ERROR: No suitable event. Please check event filters for special event "
                                  + Enum.GetName(typeof(EventSpecial), specialGroup) + ".");
                    return(null);
                }
            }
            return(e);
        }
Exemplo n.º 2
0
        public Event GetEvent(int eventGroup)
        {
            Event e = Destiny.FindEvent(this, eventGroup);

            if (e == null)
            {
                ConsoleEx.Log("ERROR: No event found in destiny. Emptying queue and retrying.");
                blockedEvents.Clear();
                e = Destiny.FindEvent(this, eventGroup);
                if (e == null)
                {
                    ConsoleEx.Log("ERROR: No suitable event. Please check event filters for group id "
                                  + eventGroup + ".");
                    return(null);
                }
            }
            return(e);
        }