def __init__(self, client, mana): Engine.__init__(self, client) self.player = client.world.player self.mana = mana d = deferred_skill(client, SKILL_MEDITATION) d.addCallbacks(self._got_meditation_skill, self._failure)
def __init__(self, client): Engine.__init__(self, client) d = deferred_skill(client, SKILL_CARPENTRY) d.addCallbacks(self._got_skill, self._failure)
def _found_cloth(self, result): self.cloth = result d = deferred_skill(self._client, SKILL_TAILORING) d.addCallbacks(self._got_skill, self._failure)
def _next(self): d = deferred_skill(self._client, SKILL_MAGERY) d.addCallbacks(self._got_magery_skill, self._failure)
def _found_ingot(self, result): self.ingot = result d = deferred_skill(self._client, SKILL_TINKERING) d.addCallbacks(self._got_skill, self._failure)