ScriptUO
Official ScriptUO EasyUO Scripts => Script Library => Misc. Scripts => Topic started by: TrailMyx on June 18, 2013, 03:22:36 AM
-
;=================================================================
; Script Name: TrailMyx's Drag(and Drop) Queen
; Author: TrailMyx
; Version: 0.7
; Shard OSI / FS: OSI / FS OK
; Revision Date: 9/29/2007
; Purpose: Simplify the act of moving items from container to container
; Globals:
; Special Thanks:
; Cerveza the UO master!
;
;=================================================================
(http://scriptuo.com/Pictures/drag_drop_queen.png)
This is one of those helper scripts I've had laying around for a while. I posted another version of this, but there was no UI so I slapped one on. I use this contantly as I'm clearing my bank box of MIBs, special nets and tmaps.
Now you can control what gets transferred and what doesn't. You can manage your transfer lists and the script will give you status about how many items are left to transfer.
This script basically monitors what you are doing, and notes the source and destination containers for items you are dragging around. Instead of having to do each item by hand, the item will ask to take over the dragging process for the remaining items. This particular item will be remembered in the "Keep" list so you won't be queried to drag/drop again - the script will just do it for you. For items that you don't want the script to handle, these will go in the "Ignore" list. You will not be asked again to drag/drop, and these items will be ignored for future queries.
The script isn't perfect and will sometimes miss sampling the source or destination container. If this happens, you may have to pause/unpause the script using the Enable/Disable button.
This script doesn't save anything; each time you run it the script will learn from your drag requests.
Note on stackables
I haven't figured out a way to get the stackable sampling for it's source container yet. So this script will only handle single items automatically.
Note on Ignore Text
Checking this checkmark will filter each item that you are dragging looking for text separated by "_". Please note that this text string MUST end with a "_". So if you are looking to ignore items with 2 different text values, the string must be like this "string1_string2_"
Ex. Don't drag expert or ingenious maps: expert_ingenious_
-
(for Q/A)
-
This sounds FABULOUS. ;D
-
Nice!! I will try this out with my miner. I save the blackrock chunks to sell at auctions. They usually sell well for people wanting to make keys for Exodus. This should make unloading my backpack a lot easier!
-
Nice!! I will try this out with my miner. I save the blackrock chunks to sell at auctions. They usually sell well for people wanting to make keys for Exodus. This should make unloading my backpack a lot easier!
Hopefully soon I'll figure out how to make the stackables detect correctly. Feedback and additional ideas always welcome!
-
Anyone play with this? Or I it just useful to me? Heh
-
I have used it 3 times, I felt in love with it. So simple to use and fast too. I haven't play with it yet.
-
I use it regularly. :)
-
Well awesome guys. I couldn't imagine that I'd be the only customer for a script like this one.
-
It's much quicker and cleaner to use than the other "move/sort" scripts. Does the job it was intended for flawlessly.
-
That's always my problem; I just never really try other scripts so I'm unsure what's out there to compare against.
-
what our their is not as fast as this.
I'm intrigue to see if I can get those stack items to move. Here my work so far. Lot of fog ahead I tell you Not sure if I'm the right track.
add this
sub TM_DragCheck
set %type #LLIFTEDTYPE
set %findid #LLIFTEDID
set %findstack #findstack ; add this to locate stack.
gosub TM_AddToList IgnoreList #RESULT %type %findstack ; add %findstack
gosub TM_AddToList KeepList #RESULT %type %findstack ; add %findstack
gosub DragAll %type %last_cont %dest_cont All ; add All
sub DragAll
set !item %1
set !source %2
set !dest %3
Set !ItemCount %4 ; ************ Add this to drag all *************
finditem !item C_ , !source
set !drag_cnt 0
set !ignore_cnt 0
; --------------------------------------------- Add this to drag all
G_Drag:
Set !DragTimeout #sCnt + 5
Wait 5
If !ItemCount = ALL
Exevent Drag #findid #findstack
Wait 5
If #sCnt > !DragTimeout
goto G_Drag
; -----------------------------------------------
if #FINDCNT > 0
-
Ya, I'm testing something similar. Just working on reliability now. Should have something this weekend.
-
Ok, I posted version 8. It was just a timing thing to get the source/destination values sampled correctly. Seems to work ok now with stacked items.
-
Very nice, it worked well for me. I will be trying out the new version that moves stacks.
-
Awesome. I almost had it before. I just had to add a wait for the stack gump to transfer to the drag gump.
-
Work great so far. You fix was better then mine :)
I have notice that it fail to drop item on vendor and close bag/chest. This Drag queen on drop item into open container correct.
-
I guess this script can evolve. I would have been surprised if it could drop into a closed container. I'd have to think about that one because I don't want to break the "magic" that makes it automagic. Heh
-
TM,
Just found a little problem with it. Seen some item have the same ID ( ie. Blackrock, Diamand) it will drag all of them. Care full, I just trash all my diamond ( 400) from the bank while cleaning my Blackrock :(
-
I guess I can put in a property check as well as an ID check. I have a new version to post that has the ability to drag only a certain number of items and also drag items into closed containers.
-
Version 11 posted!
- Checkmark added to limit the number of items moved
- Checkmark to switch drag/drop so that items can be dropped *ON TO* closed containers
- Added additional safeguard to make sure item being moved matches the #PROPERTY of the first item (Thanks Ghost!)
-
Thx TM, glad I can help. Just happy it something I can replace. BTW I love it,
-
Good day TM
Was using Ver 11 and notice that the Snake Charmer Flute are not moving, but with ver 8 their were. Not sure what happen.
Just FYI :)
-
No idea why that wouldn't move. Probably has to do with the differences with the property. Those have uses don't they? If one is used or has a different number of max uses, it won't match the previous one that you requested a move for. Maybe instead of looking at the whole property, I should just look at the 1st or 2nd line of the property and not all the other number that might be different from item to item.