def run(client): PrintMessages(client) Guards(client) tc = TileCache(gemuo.config.require_data_path()) m = tc.get_map(0) exhaust_db = ExhaustDatabase('/tmp/trees.db') return AutoKindling(client, m, exhaust_db)
def run(client): PrintMessages(client) Guards(client) tc = TileCache('/home/max/.wine/drive_c/uo') m = tc.get_map(0) exhaust_db = ExhaustDatabase('/tmp/trees.db') return AutoKindling(client, m, exhaust_db)
def begin(client): tc = TileCache(gemuo.config.require_data_path()) m = CacheMap(WorldMap(BridgeMap(tc.get_map(0)), client.world)) exhaust_db = ExhaustDatabase('/tmp/trees.db') global BANK BANK = nearest_bank(client.world, client.world.player.position) AutoResurrect(client, m) #return Bank(client, m) return AutoHarvest(client, m, exhaust_db)
def begin(client): from os import environ tc = TileCache('%s/.wine/drive_c/uo' % environ['HOME']) m = BridgeMap(tc.get_map(0), client) exhaust_db = ExhaustDatabase('/tmp/trees.db') global BANK if client.world.player.position.x < 1500: #BANK = BRITAIN_WEST_BANK # XXX implement pass elif client.world.player.position.x < 2000: BANK = BRITAIN_EAST_BANK elif client.world.player.position.x > 3500: BANK = MOONGLOW_BANK else: BANK = MINOC_BANK print client.world.player.position, BANK #return Bank(client, m) return AutoHarvest(client, m, exhaust_db)