ScriptUO

Official ScriptUO EasyUO Scripts => Script Library => Misc. Scripts => Topic started by: slyone on October 23, 2009, 01:04:14 PM

Title: SOT sorter
Post by: slyone on October 23, 2009, 01:04:14 PM
Here's a go at the first time I've submitted a script.

The script's purpose is to sort all those SOT scrolls you've been collecting.

Setup is pretty easy:
1) Buy 10 backpacks or pouches and secure them in your house.  
2) Bag up a bunch of SOT's to sort.
3) Stand near the 10 backpacks and the bag full of SOT's.
4) Press Play.

The script will sort your SOT's in alphabetical order into the 10 backpacks.

I just sorted 200 SOT's at my house.  I hope you all find it useful!

Thanks!
Title: Re: SOT sorter
Post by: gen2000 on October 23, 2009, 04:38:25 PM
I've been out of the loop for a while, wtf are SOTs? Ha! ::)
Title: Re: SOT sorter
Post by: cgeorgemo on October 23, 2009, 10:27:21 PM
I've been out of the loop for a while, wtf are SOTs? Ha! ::)
Scroll of Transcendence
Title: Re: SOT sorter
Post by: slyone on October 24, 2009, 06:00:38 AM
SOT's are scrolls that drop in your pack while you are doing a champ spawn, similar to 105 powerscrolls.  Each SOT has a value of skill on it from .1 to 1 point.
Title: Re: SOT sorter
Post by: gen2000 on October 24, 2009, 06:09:24 AM
ah ok, thanks for the update..  ;)
Title: Re: SOT sorter
Post by: NObama on November 24, 2009, 06:25:34 AM
Logical next step would be to code in subs to combine scrolls in a scroll binder... Any takers?
Title: Re: SOT sorter
Post by: Scrripty on November 24, 2009, 08:49:22 AM
Logical next step would be to code in subs to combine scrolls in a scroll binder... Any takers?

Yea PLEASE.  I don't want to write this, so someone PLEASE do it.  I need the help so we can have 120's. haha
Title: Re: SOT sorter
Post by: Masscre on November 24, 2009, 10:02:47 AM
Ill do it for a scooby snack :)
Title: Re: SOT sorter
Post by: slyone on November 26, 2009, 06:49:01 AM
Agreed, I'd definitely like to add in scroll binding.  Alas, at the moment midterms have run away with my scripting time...
Title: Re: SOT sorter
Post by: NObama on November 26, 2009, 10:12:23 AM
*tosses Mass a scooby snack*

:)
Title: Re: SOT sorter
Post by: Oracle on November 26, 2009, 11:24:44 AM
WOW --- is that all it takes is a "Scooby Snack"? 

*Tossing Massacre a 'Scooby Snack' along with NObama's!*
Title: Re: SOT sorter
Post by: TrailMyx on November 26, 2009, 04:17:26 PM
Don't give him too many Scoobie snacks; you know what happens!

"Rrroobie, Rroobie, Rrrooooooooooooooooooo!"
Title: Re: SOT sorter
Post by: Canuker on April 04, 2010, 06:34:18 PM
There is no option for R?

I just went through and did my bags for 115's and semi-filled 15 binders....worked like a charm...great script.
Title: Re: SOT sorter
Post by: NObama on April 05, 2010, 09:14:22 AM
Found an error:  Script does not differentiate between Arms Lore and Animal Lore.
Title: Re: SOT sorter
Post by: slyone on April 07, 2010, 04:33:03 PM
Thank you for the feedback!  I uploaded the revised version.  I'm glad it works for 115s and 110s also! Sorry no scroll binding yet...
Title: Re: SOT sorter
Post by: slyone on June 13, 2010, 05:53:13 AM
Version 1.1 Updates: -Updated Instructions
                             -Updated R bag;                      
                             -Fixed placement of Animal
                             Lore and Arms Lore
                             -Fixes Evaluating to Evaluat
Title: Re: SOT sorter
Post by: Ultima on July 15, 2010, 11:20:47 PM
Finally got around to using this script this afternoon. I used wooden containers I already had secured and it worked no problem. Ended up with 15 or so 5.0 point SOT's and opened up about 250 extra storage spaces.

Now everything is tucked away nice and neat in alphabetized containers.  Organizing scrolls from future Champion Spawn Hunting will be a snap as everything is ready to go.

Very handy! Great tool for organizing and consolidating the homestead.  8)
Title: Re: SOT sorter
Post by: 12TimesOver on May 15, 2011, 04:10:20 AM
Moved to the Script Library, thanks Slyone!

X

Title: Re: SOT sorter
Post by: mardybm on February 29, 2012, 02:02:20 AM
Thanks, slyone
Your script really helped me!
Still no SoT books on my freeshard :(
Title: Re: SOT sorter
Post by: slyone on February 29, 2012, 04:23:15 AM
Glad to hear it helped!
Title: Re: SOT sorter
Post by: Gemviper on November 29, 2015, 08:12:13 AM
Just a bug report - It doesn't seem to detect eval intel pinks, otherwise still works great.

A quick look at the code shows that it's searching for "evaluat" but pinks are named "eval intelligence", simple fix.

It's also missing Fletching
Title: Re: SOT sorter
Post by: slyone on December 26, 2015, 07:31:40 PM
Just a bug report - It doesn't seem to detect eval intel pinks, otherwise still works great.

A quick look at the code shows that it's searching for "evaluat" but pinks are named "eval intelligence", simple fix.

It's also missing Fletching

Thanks for the feedback.  I made the updates you mentioned and posted version 1.2.  I don't have the SOT's to test this version so I apologize in advance if I introduced a bug into version 1.2 .  I'm leaving version 1.1 up until I have time to more fully test the update.
Title: Re: SOT sorter
Post by: Ketchup on December 28, 2015, 03:41:16 AM
Thought its about time I did something around here, anyway here is an update for the eval and fletching, this fully works on OSI, add this to your main post if you like.
Code: [Select]
;===================================================
; Script Name: SOT/PS Sorter
; Author: slyone
; Version: 1.1
; Public Release: 10-23-2009
; Revision Date: 4-7-2010
; Purpose:  Sort your SOT's/PS's in Alphabetical Order
; Instructions: -Bag up a bunch of SOT's OR PS's to sort
;               Note: The script doesn't differentiate
;                b/w SOT's and PS's.
;               -This script supports multiple bags
;               of scrolls
;               -Secure 10 empty BACKPACKS or POUCHES
;               -Be close enough to all of your secures
;               to drag and drop the scrolls on them
;               -Press Play!
; Acknowledgements:  Thanks to C2 and Mystre for the
;                    help on the routines and subs!
;===================================================
; Version 1.1 Updates: -Updated Instructions
;                      -Updated R bag
;                      -Fixed placement of Animal
;                      Lore and Arms Lore
;===================================================
;;;;;;;;;;;;;;setup procedure;;;;;;;;;;;;;;;;;;;;;;;
;sot scroll id
set %sotscroll TVH
;position for sot bag
set %sotbagposx 10
set %sotbagposy 10
;x positions for scrolls within backpacks
set %scrollposx1 50
set %scrollposx2 80
set %scrollposx3 110
set %scrollposx4 140
;y positions for scrolls within backpacks
set %scrollposy1 60
set %scrollposy2 100

;setup the backpacks
gosub bag_setup

sotsort:
;setup sot bag
set %sotbag DQQTGOD
wait 20
set #lobjectid %sotbag
event macro 17
wait 20
contpos %sotbagposx %sotbagposy
wait 10

;;;;;;;;;;;;;;sorting code;;;;;;;;;;;;;;;;;;;;;;;;;;
repeat
  finditem %sotscroll C_ , %sotbag
  wait 20
  for #findindex 1 #findcnt
    {
      event property #findid
      ;seperate scrolls into 10 bags
      ;bag 1
      if animal in #property
        {
          gosub checkif lore %bag1 %scrollposx3 %scrollposy1
          gosub checkif taming %bag1 %scrollposx4 %scrollposy1
        }
      gosub checkif alch %bag1 %scrollposx1 %scrollposy1
      gosub checkif anat %bag1 %scrollposx2 %scrollposy1
      ; moved animal lore to if statement
      ; moved animal taming to if statement
      gosub checkif arms %bag1 %scrollposx1 %scrollposy2
      gosub checkif archer %bag1 %scrollposx2 %scrollposy2
      ;bag 2
      gosub checkif begging %bag2 %scrollposx1 %scrollposy1
      gosub checkif black %bag2 %scrollposx2 %scrollposy1
      gosub checkif fletching %bag2 %scrollposx3 %scrollposy1
      gosub checkif bushido %bag2 %scrollposx4 %scrollposy1
      ;bag 3
      gosub checkif camp %bag3 %scrollposx1 %scrollposy1
      gosub checkif carpentry %bag3 %scrollposx2 %scrollposy1
      gosub checkif carto %bag3 %scrollposx3 %scrollposy1
      gosub checkif chiv %bag3 %scrollposx4 %scrollposy1
      gosub checkif cook %bag3 %scrollposx1 %scrollposy2
      ;bag 4
      gosub checkif detect %bag4 %scrollposx1 %scrollposy1
      gosub checkif disco %bag4 %scrollposx2 %scrollposy1
      gosub checkif intelligence %bag4 %scrollposx3 %scrollposy1
      ;bag 5
      gosub checkif fencing %bag5 %scrollposx1 %scrollposy1
      gosub checkif fishing %bag5 %scrollposx2 %scrollposy1
      gosub checkif focus %bag5 %scrollposx3 %scrollposy1
      gosub checkif foren %bag5 %scrollposx4 %scrollposy1
      gosub checkif glass %bag6 %scrollposx1 %scrollposy2
      ;bag 6
      gosub checkif healing %bag6 %scrollposx1 %scrollposy1
      gosub checkif herd %bag6 %scrollposx2 %scrollposy1
      gosub checkif hiding %bag6 %scrollposx3 %scrollposy1
      gosub checkif imbuing %bag6 %scrollposx4 %scrollposy1
      gosub checkif inscription %bag6 %scrollposx1 %scrollposy2
      gosub checkif item %bag6 %scrollposx2 %scrollposy2
      gosub checkif lock %bag6 %scrollposx3 %scrollposy2
      gosub checkif lumber %bag6 %scrollposx4 %scrollposy2
      ;bag 7
      gosub checkif mace %bag7 %scrollposx1 %scrollposy1
      gosub checkif mage %bag7 %scrollposx2 %scrollposy1
      gosub checkif mason %bag7 %scrollposx3 %scrollposy1
      gosub checkif meditat %bag7 %scrollposx4 %scrollposy1
      gosub checkif mining %bag7 %scrollposx1 %scrollposy2
      gosub checkif music %bag7 %scrollposx2 %scrollposy2
      gosub checkif myst %bag7 %scrollposx3 %scrollposy2
      ;bag 8
      gosub checkif necro %bag8 %scrollposx1 %scrollposy1
      gosub checkif ninji %bag8 %scrollposx2 %scrollposy1
      gosub checkif parry %bag8 %scrollposx3 %scrollposy1
      gosub checkif peace %bag8 %scrollposx4 %scrollposy1
      gosub checkif poison %bag8 %scrollposx1 %scrollposy2
      gosub checkif provo %bag8 %scrollposx2 %scrollposy2
      gosub checkif remove %bag8 %scrollposx3 %scrollposy2
      gosub checkif resist %bag8 %scrollposx4 %scrollposy2
      ;bag 9
      gosub checkif snoop %bag9 %scrollposx1 %scrollposy1
      gosub checkif spellweav %bag9 %scrollposx2 %scrollposy1
      gosub checkif spirit %bag9 %scrollposx3 %scrollposy1
      gosub checkif stealing %bag9 %scrollposx4 %scrollposy1
      gosub checkif stealth %bag9 %scrollposx1 %scrollposy2
      gosub checkif sword %bag9 %scrollposx2 %scrollposy2
      ;bag 10
      gosub checkif tact %bag10 %scrollposx1 %scrollposy1
      gosub checkif tailor %bag10 %scrollposx2 %scrollposy1
      gosub checkif taste %bag10 %scrollposx3 %scrollposy1
      gosub checkif throw %bag10 %scrollposx4 %scrollposy1
      gosub checkif tinker %bag10 %scrollposx1 %scrollposy2
      gosub checkif track %bag10 %scrollposx2 %scrollposy2
      gosub checkif veter %bag10 %scrollposx3 %scrollposy2
      gosub checkif wrest %bag10 %scrollposx4 %scrollposy2
    }
  until #charghost = yes || #findkind = -1
display yesno Are You Sorting Another Bag?
if #dispRes = yes
 goto sotsort
display All Finished!
halt

;;;;;;;;;;;;;;subs;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

sub bag_setup
  ;setup bag 1
  set %bag1 NFOLEOD
  wait 20
  gosub openandmove 70 300 %bag1
  ;setup bag 2
  set %bag2 OFOLEOD
  wait 20
  gosub openandmove 70 550 %bag2
  ;setup bag 3
  set %bag3 YBULEOD
  wait 20
  gosub openandmove 250 300 %bag3
  ;setup bag 4
  set %bag4 BCULEOD
  wait 20
  gosub openandmove 250 550 %bag4
  ;setup bag 5
  set %bag5 SXTLEOD
  wait 20
  gosub openandmove 430 300 %bag5
  ;setup bag 6
  set %bag6 GFOLEOD
  wait 20
  gosub openandmove 430 550 %bag6
  ;setup bag 7
  set %bag7 NXTLEOD
  wait 20
  gosub openandmove 610 300 %bag7
  ;setup bag 8
  set %bag8 OXTLEOD
  wait 20
  gosub openandmove 610 550 %bag8
  ;setup bag 9
  set %bag9 DCULEOD
  wait 20
  gosub openandmove 790 300 %bag9
  ;setup bag 10
  set %bag10 TXTLEOD
  wait 20
  gosub openandmove 790 550 %bag10
  return

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

sub targets
  set #targcurs 1
  target
  while #targcurs = 1
    wait 0
  return

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

sub dragndrop ;%1 = %dragid, %2 = %dropcontid, %3 = contposx_skill, %4 = contposy_skill
  set %dragid %1
  set %dropcontid %2
  set %contposx_skill %3
  set %contposy_skill %4
  exevent drag %dragid
  wait 15
  exevent dropc %dropcontid %contposx_skill %contposy_skill
  wait 10
  return

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

sub checkif ;%1 = skill, %2 = bag for skill, %3 = contposx_skill, %4 = contposy_skill
  if %1 in #property
    {
      gosub dragndrop #findid %2 %3 %4
    }
  return

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

sub openandmove ;%1 = contposx, %2 = contposy, %3 = secure
  ;open container
  set #lobjectid %3
  event macro 17
  wait 20
  ;move
  contpos %1 %2
  wait 10
  return

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


Title: Re: SOT sorter
Post by: Hordeboy1903 on December 02, 2016, 09:05:44 PM
nice