def hook_function(_self, a1):
     ans = _self.original(a1)
     recipe_id = read_ushort(a1 + 880)
     try:
         self._recipe = recipe_sheet[recipe_id] if recipe_id else None
     except Exception:
         self.logger.error("error in craft start hook:\n" + format_exc())
     return ans
Exemple #2
0
 def hook_function(_self, a1, a2):
     XivMemory.world_id = memory.read_ushort(a2 + 4)
     return _self.original(a1, a2)
Exemple #3
0
 def hook_function(_self, a1, a2):
     r = _self.original(a1, a2)
     if self.stage and read_ushort(a2 + 10) == 0x9:
         talk_finish(read_ushort(a2 + 8))
     return r