PDA

View Full Version : Nice try, scro. (for scroll readers)



Das Uberdog
01-22-2010, 12:34 PM
I uploaded a script scroll.lic to the repository just now.

edit: important notes: you must either be using the Wizard FE or have "Display Inventory Boxes" checked under Options/Advanced in StormFront.

you can disable the annoying inventory boxes using the script disable_sf_inv_box as per Tillmen's post

VERY IMPORTANT: you must reindex your scrolls whenever you reconnect to GS4. the object IDs used by the script to identify the scrolls and containers change every time you log in.

you cahn't curse.



Usage:

;scroll - indexes scrolls you have on your character & saves the spells
;scroll display - displays spells you have scrolls for (from last indexing)
;scroll display verbose - displays spells you have scrolls for with the scroll object ID that each spell is on, useful if you are trying to sort your stuff out
;scroll list - displays spells you have scrolls for (from last indexing)
;scroll list verbose - displays spells you have scrolls for with the scroll object ID that each spell is on, useful if you are trying to sort your stuff out
;scroll get spell# - retrieves a scroll with spell# on it


and of course

;scroll spell# (target)

will retrieve the first scroll w/ spell #, and cast it at target (if supplied).

holla at me with any suggestions or comments.

droit
01-22-2010, 02:20 PM
It didn't upload to the repository.

Das Uberdog
01-22-2010, 02:35 PM
i guess it was rejected due to flagrant racism and the fact that i didn't have a commented description of the script as the first line. it's up now. thanks for letting me know!

cakewitharse
01-23-2010, 12:10 AM
>;scroll
--- Lich: scroll active.
[scroll: indexing scrolls]
--- Lich: scroll has exited.

Nothing's ever indexed. Is this my fault?

Das Uberdog
01-23-2010, 07:16 AM
i don't think so.

what is the container you have your scrolls in named? are you wearing it or holding it - currently it'll only work if you're wearing the container.

cakewitharse
01-23-2010, 12:56 PM
It seems to work just fine if I run it the first time with containers open. Now it knows to open 'em. Ah well.

cakewitharse
01-23-2010, 07:19 PM
Still havin' issues, it seems.


>;scroll
--- Lich: scroll active.
[scroll: indexing scrolls]
[scroll]>open #102407223
As you turn the knob on the front of your mithril scroll case, you hear a *click* and a whirring of gears as the top of the case flips open.
s>
[scroll]>close #102407223
You push the top of your mithril scroll case down, snapping it into place.
s>
--- Lich: scroll has exited.

Das Uberdog
01-23-2010, 07:29 PM
thanks, cakewitharse. i think i found the issue, the contents property on the GameObj for the container's doesn't necessarily update immediately after you open a container. it should be fixed now, i uploaded a new version to the repo. please let me know if it clowns out again.

Das Uberdog
01-23-2010, 07:47 PM
apparently this will not work if you don't have "Display Inventory Boxes" checked under Options / Advanced.

it may not work at all if you are not using StormFront.

Tillmen
01-23-2010, 11:38 PM
Actually, if you're on the Wizard FE, Lich turns inventory boxes on for you, since you won't see them pop up anyway. For Stormfront, inventory boxes need to be turned on for GameObj to get the contents of any container other than your stow container. To avoid actually having to look at the annoying inventory boxes, you can use the disable_sf_inv_box script on the repository. Just set inventory boxes on and while the script is running, they won't show up, but Lich still gets the info.

Das Uberdog
01-24-2010, 01:14 PM
thanks for clearing that up.

another issue: the object #s GS provides do not persist across logins. if you log out of GS and back in you will have to reindex your scrolls or the container and scroll object #s will be incorrect and nothing will work.

Das Uberdog
03-01-2010, 01:00 PM
i updated this:

- spells are grouped by circle in the output, can make it easier to read
- the script would stow anything in your hands but not retrieve it after casting, it puts everything back in your hands
- the script leaves everything in its original open/closed state after indexing the scrolls.. previously it would just close everything.

Murkshev
03-25-2011, 04:30 PM
I been trying to get this to go through all my scrolls. It will ready all my scrolls in regular named containers. But will not open and read the scrolls in a scroll tube that I wear. I will see about getting one of my scroll cases out of my locker later and wear that and see if it reads the scrolls in it.

phantasm
03-25-2011, 10:39 PM
# update these if necessary, i'm not a scientist

containers = ["backpack", "greatcloak", "cloak", "sack", "bag", "satchel", "case", "robes", "harness"]
scrolls = ["paper", "scroll", "parchment", "papyrus", "palimpsest", "tome", "book"]

# iterate through inventory looking for containers



add tube to this

Murkshev
03-26-2011, 10:29 PM
Thanks, got the file open and made the change. Works great! Also add pack to container and did vellum on scrolls.

The Scholar
09-10-2011, 06:29 PM
So I've recently returned after being away for a year or so, and just came across this script today. All I can say is, this is gonna be awesome! No more killing my fingers for a spell-up or scrambling for spells while I'm hunting. I'm planning on testing it out this evening when I get in, and I"m hoping it works for the hunting part of things very well, it will make my life so much easier. Great job on this script!

Teffor Magsema
Scrollwarrior of Icemule Trace

Das Uberdog
09-13-2011, 07:54 PM
No problem, I'm glad you guys seem to be getting some use out of the script. I added vellum, tube, and others to the script and re-uploaded it.

I also made ;scroll list as an alternative to ;scroll display, they both do the same thing.