Official ScriptUO EasyUO Scripts > Misc. Scripts

Scroll Binder

(1/7) > >>

slyone:
So I love my power scrolls.  I keep every 110 I get.  I always just did the scroll binding by hand.  I've been meaning to tackle a scroll binding script for a long while now and here it is.

I did my best to describe the setup you need at top of the script.


--- Code: ---;==========================================================
; Script Name: Scroll Binder
; Author: slyone
; Version: 1.3
; Public Release: 09-22-2011
; Revision Data:  02-18-2012
; Purpose:  Scroll bind a bag of scrolls
; Instructions: -Bag up a bunch of power scrolls to bind
;                (note: You can have a mix of 10s, 15s,
;                       and 20s in your scroll bag; even
;                       if you plan on just binding 10s.
;                       If you have a mix in your scroll
;                       bag and want to bind the 10s
;                       then do not select a bag for 15s
;                       or 20s)
;               -This script will ask for another bag
;                of scrolls when the first is done
;               -Set up a resource container with EMPTY
;                scroll binders
;               -This script does not currently support
;                crafting your own scroll binders
;               -Be close enough to all of your secures
;                to drag and drop the scrolls on them
;               -Start the script
;               -Use the menu to target each of your
;                containers
;               -The minimum containers you need are:
;                1) resource, 2) scroll, and
;                3) 10s, 15s or 20s bag
;               -The script currently does not support:
;                1) SOT scroll binding
;                2) Scroll binding other scroll binders
;
; Acknowledgements:  Thanks to TM for the split screen
;                      option in the ScriptUO!
;                    Thanks to C2 for the menu tutorial!
;                    Thanks to Cerveza and EN for testing!
;                    Thanks to Neo for the dragndrop sub!
;                    Thanks to TM for the GumpWait sub!
;                    Thanks to Thimotty for his  strreplace
;                      sub!
;                    Thanks to TM and manwinc for help with
;                      my variables!
;==========================================================
; Version 1.3  - Made the script a whole lot FASTER
;              - Reduced number of finditem calls
;              - Reduced the number of loops
;              - Overhauled the entire script
;              - Added a %lagwait in a couple spots
; Version 1.2  - Added Neo's drag and drop sub to help
;                with ghosting problems
;              - Added a version of TM's GumpWait sub
;              - Added initiallization of binding flags
;              - Now ignores 105s in scroll bag
; Version 1.1  - Fixed bug to move completed binder
;              - Increased LPC to 3000
;              - Added status GUI
;              - Fixed name of Twenty's Bag
;              - Changed dragndropwait time from 20 to 10
; Version 1.01 - added "Fishing" to list of scrolls
; Version 1.00 - Initial Release
;==========================================================

--- End code ---

Things to note:
1)  This script currently does not craft new scroll binders
2)  I put an SOT button on the menu because I hope to tackle binding SOTs but this feature is not written yet.
3)  I had trouble with the wait times.  So I put in pretty long wait times.  So currently the script is not optimized for speed.  I'd love to get this thing going fast.  So if anyone has some feedback on making it faster please let me know.
4)  Version 1.3 was written to address bullet point 3.  Let me know what you think.

Please let me know what you think, reply with any comments or questions.

Edit:  Uploaded version 1.3, overhauled the whole script!  From my testing it runs 2x faster than v1.2!!
        Uploaded version 1.2, added Neo's dragndrop sub to help with ghosting items, code cleanup
        Uploaded version 1.1, added a status menu and fixed a couple bugs
        Added for version 1.01 I added "Fishing" to the scroll list.

Cerveza:
Doesn't fishing have powerscrolls?

slyone:

--- Quote from: Cerveza on September 22, 2011, 04:54:35 AM ---Doesn't fishing have powerscrolls?

--- End quote ---
I forgot about fishing!  Thanks for the find Cerveza.

I added Fishing to the scroll list and uploaded the new version. 

Endless Night:
works but is very slow and had the issue below.

I tried binding 25 115imbuing scrolls... it successfully pulled a blank binder scroll from resource bag and bound the first 10 scrolls.  It failed to move the second empty bind scroll and failed from that point forward in the binding process. It kept moving scrolls to be bound to my backpack but didnt bind them.

To make faster... you could do 2 things
(1) increase the lpc so processing text is faster   set Lpc ??? default is 10. setting to 3000 will make it process text 300x faster.
(2) reduce the number of finditems performed.

It would also be nice to have a status menu while it is doing actions .. at first i wasnt sure if the script was running or not. The initial menu was very nice.


Nice script, I'll check it again after when you update.



slyone:
Thanks for the feedback.  I'll work on incorporating your recommendations.

Navigation

[0] Message Index

[#] Next page

Go to full version