Esempio n. 1
0
def questHasThisAchievementAsBonus(name, block):
    from gui.server_events import g_eventsCache
    for records in g_eventsCache.getQuestsDossierBonuses().itervalues():
        if (block, name) in records:
            return True

    return False
Esempio n. 2
0
def questHasThisAchievementAsBonus(name, block):
    from gui.server_events import g_eventsCache
    for records in g_eventsCache.getQuestsDossierBonuses().itervalues():
        if (block, name) in records:
            return True

    return False
    def __getQuestByDossierRecord(cls, name):
        from gui.server_events import g_eventsCache
        for qID, records in g_eventsCache.getQuestsDossierBonuses().iteritems():
            if (_AB.UNIQUE, name) in records:
                return g_eventsCache.getQuests().get(qID)

        return None
Esempio n. 4
0
 def __getQuestByDossierRecord(cls, name):
     from gui.server_events import g_eventsCache
     for qID, records in g_eventsCache.getQuestsDossierBonuses().iteritems(
     ):
         if (_AB.UNIQUE, name) in records:
             return g_eventsCache.getQuests().get(qID)