Sin
2012-05-08 10:26:24
function DragItemTo(FromSlot,ToSlot:Integer):Boolean;
var
x,y:Integer;
begin
Result := False;
if not LoggedIn then
exit;
if ExistsItem(FromSlot) then
begin
MouseItem(FromSlot,3);
Wait(50 + random(50));
GetMousePos(x,y);
HoldMouse(x,y,mouse_Left);
MouseItem(ToSlot,3);
GetMousePos(x,y);
ReleaseMouse(x,y,mouse_Left);
Wait(50 + random(50));
if ExistsItem(ToSlot) then
Result := True;
end else exit;
end;