ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Rose Tyler on October 07, 2012, 06:15:04 PM

Title: How do I?
Post by: Rose Tyler on October 07, 2012, 06:15:04 PM
So I am not even sure if this is where I should post this... BUT I want to learn how to write basic scripts... like one project I am working on is cataloging my roses... I want a script that will open a container and put them into alphabetical order and pull out anything that is not supposed to be there.... semi automated... see what I mean? Maybe... help...
Title: Re: How do I?
Post by: TrailMyx on October 07, 2012, 06:28:29 PM
You might be able to use my Miffy's Item Finder.  You should be able to search all surrounding containers and it'll create a list of everything you found. 

http://www.scriptuo.com/index.php?topic=24.0;highlight=miffy
Title: Re: How do I?
Post by: Rose Tyler on October 07, 2012, 06:38:28 PM
thanks! ill give it a whirl! 8)
Title: Re: How do I?
Post by: TrailMyx on October 07, 2012, 07:10:52 PM
It'll work if the roses have some text in common because the script uses event property.  Hopefully "rose" is in there somewhere in each one.. ;)
Title: Re: How do I?
Post by: Canuker on October 07, 2012, 08:59:51 PM
There is also a SoT scroll sorting script that you might want to look at somewhere here.  That "names" a seclection of bags to drop scrolls into and works like a charm.  I'm far from as classy a scripter as the real writers here but that might give you a few good ideas.
Title: Re: How do I?
Post by: Endless Night on October 08, 2012, 07:38:39 AM
Below script will remove all items that do not have the word rose in thier property and place into a selected bag.

Before starting script open all bags you want to remove non rose stuff out of and have a container/bag placed to put that stuff into.  The script will ignore your backpack even if opened.

have fun.

Code: [Select]
display ok Open all the bags to search $ if you have not done so already $ You Have 10seconds
for %x 1 10
 {
 event sysmessage %x
 wait 10
 }

display  Target non-rose item Box
set #targcurs 1
while #targcurs = 1
  {
  wait 1
  }
set %JunkBox #ltargetID

finditem * C
if #findcnt > 0
  {
   For #findindex 1 #findcnt
     {
      if #Findbagid <> #charid && #Findbagid <> %JunkBOx && #Findbagid <> #Backpackid
         {
         event property #findid
         if rose notin #property
           gosub ENs_Movetocontainor #findid %Junkbox
         }
     }
  }
halt

Sub ENs_MoveToContainor ; 3/31/08 - %1 Item %2 Containor %3 stack %4 Wait
  if %0 < 4
    set !DragDropWait 12
  wait !DragDropWait
  ExEvent drag %1 %3
  ExEvent DropC %2
  wait !DragDropWait
Return
Title: Re: How do I?
Post by: Rose Tyler on October 23, 2012, 02:03:39 AM
hehe I finally found this! I am so trying it right now! I have umm ALOT of Roses to catalouge
Title: Re: How do I?
Post by: Endless Night on October 25, 2012, 08:03:47 AM
hehe I finally found this! I am so trying it right now! I have umm ALOT of Roses to catalouge

I hope it worked out for you Rose
Title: Re: How do I?
Post by: Masscre on October 26, 2012, 08:05:42 AM
hehe I finally found this! I am so trying it right now! I have umm ALOT of Roses to catalouge

Wow Rose I just noticed where you live. I am only maybe an hour north of you on I-85.