48 while below.Floor == 0:
52 me.Say(
'taking %s'%take.Name)
55 if me.X == grab_to_x
and me.Y == grab_to_y:
56 me.WriteKey(
'grab_state',
'final', 1)
59 me.Move(Crossfire.Direction.SOUTH)
65 me.Move(Crossfire.Direction.NORTH)
67 if me.X == to_final_x
and me.Y == to_final_y:
68 me.WriteKey(
'grab_state',
'finished', 1)
73 me = Crossfire.WhoAmI()
74 state = me.ReadKey(
'grab_state')
75 if state ==
'finished':
79 if me.X != start_x
or me.Y != start_y:
81 me.Say(
'not at place')
84 me.WriteKey(
'grab_state',
'grabbing', 1)
88 Crossfire.SetReturnValue(1)
90 if state ==
'grabbing':