Example #1
0
def restock_box_opened(client, restock_box):
    backpack = client.world.backpack()
    if backpack is None:
        return defer.fail('No backpack')

    d = OpenContainer(client, backpack).deferred
    d.addCallback(backpack_opened0, client, restock_box)
    return d
Example #2
0
def restock_box_opened(client, restock_box):
    backpack = client.world.backpack()
    if backpack is None:
        return defer.fail('No backpack')

    d = OpenContainer(client, backpack).deferred
    d.addCallback(backpack_opened0, client, restock_box)
    return d
Example #3
0
    def open_backpack(self):
        backpack = self._client.world.backpack()
        if backpack is None:
            return defer.fail('No backpack')

        d = OpenContainer(self._client, backpack).deferred
        d.addCallback(self.get_runes, self._client.world, backpack)
        return d
Example #4
0
    def open_backpack(self):
        backpack = self._client.world.backpack()
        if backpack is None:
            return defer.fail("No backpack")

        d = OpenContainer(self._client, backpack).deferred
        d.addCallback(self.get_runes, self._client.world, backpack)
        return d
Example #5
0
def run(client):
    backpack = client.world.backpack()
    if backpack is None:
        return defer.fail('No backpack')

    d = OpenContainer(client, backpack).deferred
    d.addCallback(print_contents, client.world, backpack)
    return d
Example #6
0
def run(client):
    backpack = client.world.backpack()
    if backpack is None:
        return defer.fail('No backpack')

    d = OpenContainer(client, backpack).deferred
    d.addCallback(print_contents, client.world, backpack)
    return d
Example #7
0
File: wool.py Project: shyba/gemuo
def harvested(result, client):
    chest = find_chest_at(client.world, client.world.player.position.x - 2,
                          client.world.player.position.y)
    if chest is None:
        return defer.fail('No chest')

    d = OpenContainer(client, chest).deferred
    d.addCallback(chest_opened0, client, chest)
    return d
Example #8
0
def harvested(result, client):
    chest = find_chest_at(client.world, client.world.player.position.x - 2,
                          client.world.player.position.y)
    if chest is None:
        return defer.fail('No chest')

    d = OpenContainer(client, chest).deferred
    d.addCallback(chest_opened0, client, chest)
    return d
Example #9
0
def run(client):
    PrintMessages(client)

    restock_box = find_restock_box(client.world)
    if restock_box is None:
        return defer.fail('No box')

    d = OpenContainer(client, restock_box).deferred
    d.addCallback(restock_box_opened0, client, restock_box)
    return d
Example #10
0
def run(client):
    PrintMessages(client)

    restock_box = find_restock_box(client.world)
    if restock_box is None:
        return defer.fail('No box')

    d = OpenContainer(client, restock_box).deferred
    d.addCallback(restock_box_opened0, client, restock_box)
    return d
Example #11
0
def run(client):
    PrintMessages(client)

    backpack = client.world.backpack()
    if backpack is None:
        return defer.fail('No backpack')

    d = OpenContainer(client, backpack).deferred
    d.addCallback(backpack_opened, client)
    return d
Example #12
0
def run(client):
    PrintMessages(client)

    backpack = client.world.backpack()
    if backpack is None:
        return defer.fail("No backpack")

    d = OpenContainer(client, backpack).deferred
    d.addCallback(backpack_opened, client)
    return d