I'm experiencing the following problem while trying to move items via Python:
Code: Select all
for ore in [0x19B7, 0x19B8, 0x19B9, 0x19BA]:
MoveItems(Backpack(), ore, -1, 0x4015AC5D, 0, 0, 0, 1000)
Code: Select all
[21:39:45:540] System: System You must wait to perform another action.
[21:39:45:540] System: Some inspecific error when moving item! Code 5
[21:39:46:266] System: System You must wait to perform another action.
[21:39:46:266] System: Some inspecific error when moving item! Code 5
Code: Select all
def find_ore_items():
found = []
for ore in [0x19B7, 0x19B8, 0x19B9, 0x19BA]:
FindType(ore, Backpack())
found += GetFindedList()
return found
for ore in find_ore_items():
DragItem(ore, 0)
Wait(2000)
DropItem(0x4015AC5D, 0, 0, 0)
Wait(2000)
Code: Select all
[21:42:24:703] System: System You must wait to perform another action.
[21:42:24:703] System: Some inspecific error when moving item! Code 5
[21:42:25:447] System: System You must wait to perform another action.
[21:42:25:447] System: Some inspecific error when moving item! Code 5
Code: Select all
Program New;
var ore: Array of Cardinal;
var i: Integer;
begin
ore := [$19B7, $19B8, $19B9, $19BA];
for i := 0 to Length(ore) - 1 do
begin
MoveItems(Backpack, ore[i], -1, $4015AC5D, 0, 0, 0, 800);
end;
end.
I find this really weird, the Python API doesn't really do anything beyond invoking the native function via ctypes.
Any ideas?