Official ScriptUO EasyUO Scripts > Scripting Tutorials

Movement & Dragging

(1/1)

declo:
I know I have read somewhere that you can do an IF Than to check if your dragging something to avoid moving while dragging.  Could someone enlighten me please.

Tidus:
Well if you are talking about going between two EUO scripts, you would want to make yourself a global variable. (Atleast this is what i have done).

So in your drag drop

Finditem XXX G_5
  set *dragging #true
  for #findindex 1 #findcnt
  {
    Exevent drag #findid
    wait 10
    Exevent dropc %box2
    wait 20
  }
  set *dragging #false

Now all you need to do is make a check for whether *dragging is #true in your movement sub

Navigation

[0] Message Index

Go to full version