def donateSilver(self):
     self.receiver()
     loc = self.region_npc_menu.wait('alliance__receiver__donate_silver.png', 30)
     self.region_npc_menu.click(loc)
     loc = self.region_npc_menu.wait('alliance__menu__all.png', 30)
     self.region_npc_menu.click(loc)
     time.sleep(1)
     self.region_npc_menu.click('alliance__menu__contribute.png')
     loc = self.region_npc_menu.wait('menu__confirm.png', 30)
     self.region_npc_menu.click(loc)
     time.sleep(1)
     closeMenus(self.region_npc_menu.above(50))
    def chestGet(self):
        global region
        self.enter()
        loc = region.wait('alliance__treasure_chest.png', 30)
        region.click(loc)
        #menu box
#        self.region_npc_menu = Region(loc.x - 177, loc.y - 20, 554, 223)
        self.region_npc_menu.wait('alliance__treasure_chest__welfare.png', 30)
        self.region_npc_menu.click(loc)
        reg_under = self.region_npc_menu.below(70)
        loc = reg_under.wait('quest_close.png', 30)
        reg_under.click(loc)
        loc = self.region_npc_menu.wait('alliance__treasure_chest__battle_awards.png')
        self.region_npc_menu.click(loc)
        loc = reg_under.wait('quest_close.png', 30)
        reg_under.click(loc)
        closeMenus(self.region_npc_menu)
 def questAccept(self, event=False):
     self.enter()
     self.questMenu()
     loc = self.region_npc_menu.below(100).wait('menu__accept.png', 30)
     self.region_npc_menu.click(loc)
     closeMenus(self.region_npc_menu.above(120))