Пример #1
0
def run(client):
    PrintMessages(client)
    Guards(client)

    tc = TileCache(gemuo.config.require_data_path())
    m = CacheMap(WorldMap(BridgeMap(tc.get_map(0)), client.world))

    return StrollWestBritain(client, m)
Пример #2
0
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)
Пример #3
0
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)
Пример #4
0
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)
Пример #5
0
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)
Пример #6
0
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)
Пример #7
0
def run(client):
    tc = TileCache(gemuo.config.require_data_path())
    m = CacheMap(WorldMap(BridgeMap(tc.get_map(0)), client.world))

    return AutoResurrect(client, m)
Пример #8
0
from gemuo.simple import simple_run, simple_later
from gemuo.engine.player import QuerySkills, QueryStats
from gemuo.data import TileCache
from gemuo.entity import Item, Mobile

COLOR_TREE = 1
COLOR_WALL = 2
COLOR_INNOCENT = 3
COLOR_CRIMINAL = 4
COLOR_MURDERER = 5
COLOR_ALLY = 6
COLOR_ENEMY = 7
COLOR_INVULNERABLE = 8
COLOR_WATER = 9

tc = TileCache(gemuo.config.require_data_path())
m = tc.get_map(0)


def restorescreen():
    curses.nocbreak()
    curses.echo()
    curses.endwin()


class GameWindow:
    def __init__(self, window, world):
        self.window = window
        self.world = world

    def draw_land(self, origin_x, origin_y, width, height):
Пример #9
0
from gemuo.simple import simple_run, simple_later
from gemuo.engine.player import QuerySkills, QueryStats
from gemuo.data import TileCache
from gemuo.entity import Item, Mobile

COLOR_TREE = 1
COLOR_WALL = 2
COLOR_INNOCENT = 3
COLOR_CRIMINAL = 4
COLOR_MURDERER = 5
COLOR_ALLY = 6
COLOR_ENEMY = 7
COLOR_INVULNERABLE = 8
COLOR_WATER = 9

tc = TileCache('/home/max/.wine/drive_c/uo')
m = tc.get_map(0)

def restorescreen():
    curses.nocbreak()
    curses.echo()
    curses.endwin()

class GameWindow:
    def __init__(self, window, world):
        self.window = window
        self.world = world

    def draw_land(self, origin_x, origin_y, width, height):
        window = self.window
Пример #10
0
from gemuo.simple import simple_run, simple_later
from gemuo.engine.player import QuerySkills, QueryStats
from gemuo.data import TileCache
from gemuo.entity import Item, Mobile

COLOR_TREE = 1
COLOR_WALL = 2
COLOR_INNOCENT = 3
COLOR_CRIMINAL = 4
COLOR_MURDERER = 5
COLOR_ALLY = 6
COLOR_ENEMY = 7
COLOR_INVULNERABLE = 8
COLOR_WATER = 9

tc = TileCache('/home/max/.wine/drive_c/uo')
m = tc.get_map(0)


def restorescreen():
    curses.nocbreak()
    curses.echo()
    curses.endwin()


class GameWindow:
    def __init__(self, window, world):
        self.window = window
        self.world = world

    def draw_land(self, origin_x, origin_y, width, height):