ScriptUO
Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: declo on December 30, 2015, 05:54:45 PM
-
Is anyone familiar with a sub that will ask to target an item and then use the itemtype selected in a event drag loop?
-
OK... so I'm super nub to the forum, but I think i can address this... assuming EUO...
so it sounds like you're familiar with exevent drag...
you should read:
http://wiki.easyuo.com/index.php/FindItem
(http://wiki.easyuo.com/index.php/FindItem)http://wiki.easyuo.com/index.php?title=Exevent_Drag (http://wiki.easyuo.com/index.php?title=Exevent_Drag) ;stuff at the end about exevent drop
it sounds like you need something like:
finditem *object_type_you_want_to_drag (abc) * c_ , *containerid* ;c_ is for which container it's in...
for #findindex 1 #findcnt
{
exevent drag #findid *#findstack -or- 1 (or however many you want to drag)* ;#findstack drags everything in a stack if applicable
exevent drop(c,g) ;read up on exevent drag/drop for this at wiki.easyuo.com
wait 25
}
halt
*edit... added the wait timer...
----
*edit again... that's the best i could do with one sentance... I could try and guess what you want, but that's not worth my time.
-
The part I am struggling with is how to click on an item and then have the script move all of that item type into a container. (ie I click on a straw hat and it moves all the straw hates from the backpack to a container).
-
okay, sooo... UOSteam may be able to do something like what you're talking about, but I don't know it that well...
BUT, this is easily achievable in EUO, though not exactly what you're asking for *** edited this to make it more coherent
more stuff to read:
http://wiki.easyuo.com/index.php?title=LObjectID
(http://wiki.easyuo.com/index.php?title=LObjectID)http://wiki.easyuo.com/index.php?title=LObjectType (http://wiki.easyuo.com/index.php?title=LObjectType)
So... the easiest way to find this stuff is by having EUO open (if running multiple clients make sure its set to your current char)
then in UO, dbl click the item you want to find the objectid/objecttype of and record the value posted on the right side of the EUO interface (you can left click once on the line you want and then copy that value)
then insert the 2/3 letter object type in the finditem function like this
finditem AAA *
The sample code I gave you before before uses a for loop that will drag ALL stacks of the same objecttype... if you want it to do other things, I suggest you read: http://wiki.easyuo.com/index.php?title=Documentation#Flow_Control (http://wiki.easyuo.com/index.php?title=Documentation#Flow_Control)
and also reread the links I posted in my first reply