예제 #1
0
파일: fletching.py 프로젝트: jackuoll/GemUO
    def __init__(self, client):
        Engine.__init__(self, client)

        world = client.world

        if amount_in(world, world.backpack(), lambda x: x.item_id in (ITEMS_LOGS + ITEMS_BOARDS)) >= 20:
            self._success()
            return

        d = OpenBank(client).deferred
        d.addCallbacks(self._box_opened, self._failure)
예제 #2
0
파일: fletching.py 프로젝트: cculianu/gemuo
    def __init__(self, client):
        Engine.__init__(self, client)

        world = client.world

        if amount_in(world, world.backpack(), lambda x: x.item_id in (ITEMS_LOGS + ITEMS_BOARDS)) >= 20:
            self._success()
            return

        d = OpenBank(client).deferred
        d.addCallbacks(self._box_opened, self._failure)
예제 #3
0
파일: lumber.py 프로젝트: cculianu/gemuo
 def _walked(self, result):
     d = OpenBank(self._client).deferred
     d.addCallbacks(self._opened, self._walk_failed)
예제 #4
0
 def _walked(self, result):
     d = OpenBank(self._client).deferred
     d.addCallbacks(self._opened, self._walk_failed)
예제 #5
0
def run(client):
    d = OpenBank(client).deferred
    d.addCallback(print_contents, client.world)
    return d
예제 #6
0
파일: list_bank.py 프로젝트: cculianu/gemuo
def run(client):
    d = OpenBank(client).deferred
    d.addCallback(print_contents, client.world)
    return d