Skip to content

event Drag

Sub-commandEventNeeds client
event Drag {id}
uo.dll
CliDrag

Also searchable as: event Drag · pick up · drag item

event Drag picks up the item with the given ID, as if you had started dragging it with the mouse. The item then hangs on the cursor until you drop it, for example with click and p.

  • The item has to be known to the client: on screen, or in an open container.
  • Nothing happens while you are already holding something.

To drop through the server instead, pick the item up with exevent Drag, not event Drag: mixing event Drag with the exevent Drop… commands can leave a ghost item on the cursor.

The command calls a function inside the client. On a client version where that function’s address is not known, it does nothing.

finditem DWJ_EWJ_GWJ_TVJ C_ , #BackpackID ; ore
set %ore #FindID
event Drag %ore
wait 20
click 100 100 p
halt

See also

Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.