ScriptUO
Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: cybercasper on August 17, 2017, 03:30:45 AM
-
So what i am trying to do is pathfind using rails to a spot and once i get to that spot i am trying to click and dig at my feet. i have tried using the offset generator but the spot changes eachtime so i am just looking for a little help with the sub to just click at my feet
set !x #contposx
set !y #contposy
Click !x !y
-
The offset click generator is only useful when you are trying to click a gump position and not for a world coordinate. You'll need to "click" the coordinates found by your character position and 2 spaces around.
For that you use you need to load the values of the ground position into #LTARGETX, #LTARGETY and #LTARGETZ as well as #LTARGETKIND (see EasyUO for an explanation of this value)
After that you just need to do a use last object (set to your shovel) and use last target because you've set the X,Y and Z values
I don't have a real good example. The ones I have are either WAY advanced and not obvious, or totally old and stupid.
-
Ok thank you TM and yes I was looking at the one you had made for your mother. Wasn't a bad one but didn't think it was what I was looking for. I'll check again maybe it is close and read up on easyuo
-
Actually in Mom's version, everything should be there that you need. It's just terrible. :) But it'll work for ya. Probably the biggest thing people forget about is setting #LTARGETKIND to 2 before you do the last target.