def open_door_scummbar_kitchen(item_id, entity): cook: example.Wrap1 = example.get('cook') s = sl.walk_and_open_door(item_id, 'kitchen') if not cook.valid: s.add_action( actions.Msg(text=mopy.monkey.engine.read('$lines/32'), font='fonts.monkey', pos=(609, 78), color=mopy.monkey.engine.data.game.colors.cook_text)) s.add_action( actions.Msg(text=mopy.monkey.engine.read('$lines/33'), font='fonts.monkey', pos=(609, 78), color=mopy.monkey.engine.data.game.colors.cook_text)) s.add_action( actions.RunScript(sl.walk_and_close_door(item_id, 'kitchen'))) else: # cook is in the kitchen if cook.x > 320: cook_upset(cook, s) return s
def open_door_pier(item_id, entity): s = sl.walk_and_open_door(item_id, 'pier') s.add_action(actions.SetWall('walkarea_0', 0, False)) return s
def open_door_scummbar_village(item_id, entity): return sl.walk_and_open_door(item_id, 'scummbar')
def open_door_kitchen_scummbar(item_id, entity): return sl.walk_and_open_door(item_id, 'kitchen')
def open_door_village_voodoolady(item_id, entity): return sl.walk_and_open_door(item_id, 'voodoolady')