예제 #1
0
    def activate(self, sector):
        self.travian.load_cookie()
        user_db = db.users.find_one({"name": self.travian.user_name})
        action.action_activate(self, worldId, user_db['activation_code'])

        self.travian.login()
        self.travian.save_cookie()

        action.action_select_spawn(self.travian, self.travian.nation, sector)
        
        self.travian.request_village()
        quest.skip_tutorial(self)
        action.action_tutorial(self, "next", "Tutorial_15a")
예제 #2
0
    def perform_activation(self, sector):
        self.load_cookie()
        user_db = self.get_db()
        action.action_activate(self, self.server[0], user_db['activation_code'])

        self.login()
        self.save_cookie()

        action.action_select_spawn(self, self.nation, sector)
        
        self.loadup() # requests 1 village
        quest.skip_tutorial(self)
        action.action_quest(self, "next", "Tutorial_15a")
        
        user_db['activated'] = True
        db.users.save(user_db)