ScriptUO

Official ScriptUO EasyUO Scripts => Script Library => Gold Farming => Topic started by: TrailMyx on June 28, 2008, 05:29:45 PM

Title: TrailMyx's Fishing Chest Loot Organizer snippet
Post by: TrailMyx on June 28, 2008, 05:29:45 PM
I use this little script when I'm unloading all the junk from the chests I fish up.  It's specialized for Alexandria where I used to play, but you can adapt/add to it really easy. 

Just stand next to a stack of containers, run the script and target the chest you want to empty.

You'll need to set 3 variables:

Quote
set %scroll_secure  XXYYZZ1
set %reagent_secure XXYYZZ2
set %gem_secure     XXYYZZ3

You can make these the same box if you want, but I recommend separate secured chests for each.

Code: [Select]
set %scroll_secure  XXYYZZ1
set %reagent_secure XXYYZZ2
set %gem_secure     XXYYZZ3

display ok Target the container you want to unload.
set #TARGCURS 1
repeat
until #TARGCURS = 0

set %fromcont #LTARGETID

set #LOBJECTID %fromcont
event macro 17 0
gosub GumpWait container_gump NULL
contpos 750 330
wait 30

; mage spells
gosub DragToSecure %fromcont %scroll_secure NXL_QXL_PXL_AYL_ZXL_CYL_BYL_WXL
gosub DragToSecure %fromcont %scroll_secure VXL_YXL_XXL_IYL_HYL_KYL_JYL_EYL
gosub DragToSecure %fromcont %scroll_secure DYL_GYL_FYL_STL_RTL_UTL_TTL_OTL
gosub DragToSecure %fromcont %scroll_secure NTL_QTL_PTL_AUL_ZTL_CUL_BUL_WTL
gosub DragToSecure %fromcont %scroll_secure VTL_YTL_XTL_IUL_HUL_KUL_JUL_EUL
gosub DragToSecure %fromcont %scroll_secure DUL_GUL_FUL_QUL_PUL_SUL_RUL_MUL
gosub DragToSecure %fromcont %scroll_secure LUL_OUL_NUL_YUL_XUL_AVL_ZUL_UUL
gosub DragToSecure %fromcont %scroll_secure TUL_WUL_VUL_GVL_FVL_IVL_HVL_CVL

; mage regs
gosub DragToSecure %fromcont %reagent_secure WZF_JZF_JUF_RZF_SZF_KZF_MZF_KUF

; necro regs
gosub DragToSecure %fromcont %reagent_secure YZF_TZF_DUF_IUF_UZF

; wire spools
gosub DragToSecure %fromcont %gem_secure XEJ_OEJ_NEJ_YEJ

; gemstones
gosub DragToSecure %fromcont %gem_secure UVF_NVF_RVF_HVF_EVF_BVF_VVF_GVF_ZVF
stop

;-------------------------------------------------
sub DragToSecure
  set %from %1
  set %secure %2
  set %items %3
 
  finditem %secure G_2
  if #FINDKIND = -1
    return N/A
  DragToSecure_loop1:
    finditem %items C_ , %from
    if #FINDKIND <> -1
    {
      exevent drag #FINDID #FINDSTACK
      wait 10
      exevent dropc %secure
      wait 10
      goto DragToSecure_loop1
    }
return
;-------------------------------------------------
; %1 = GumpWait
; %2 = Gumpname 1
; %3 = Gumpname 2
sub GumpWait
  wait 10
  set %timedelay #SCNT
  loopwait1:
    if #CONTNAME = %1 || #CONTNAME = %2
      return
    if #SCNT > %timedelay + 7
      return
    goto loopwait1
return


Title: Re: TrailMyx's Fishing Chest Loot Organizer snippet
Post by: Khameleon on December 20, 2008, 08:06:43 AM
Found some more Gems VUF_FVF_OVF, I think I'll be using this script very much in the near future. 
Title: Re: TrailMyx's Fishing Chest Loot Organizer snippet
Post by: TrailMyx on December 20, 2008, 11:03:30 AM
I have a couple other script that I started since this one that might be even more useful...  I just can't remember what state they were in.
Title: Re: TrailMyx's Fishing Chest Loot Organizer snippet
Post by: Khameleon on December 20, 2008, 11:15:45 AM
id like to see some of your unfinished projects... most of my projects are tweaking things together.
Title: Re: TrailMyx's Fishing Chest Loot Organizer snippet
Post by: TrailMyx on December 20, 2008, 11:23:08 AM
I did one in particular when I was farming the pre-cast loot for the spring cleaning.  I have to locate that one....
Title: Re: TrailMyx's Fishing Chest Loot Organizer snippet
Post by: Khameleon on December 20, 2008, 11:26:20 AM
I did one in particular when I was farming the pre-cast loot for the spring cleaning.  I have to locate that one....

I was just about to look for the item types for pre-loot items :)
Title: Re: TrailMyx's Fishing Chest Loot Organizer snippet
Post by: ladyyvonne on March 23, 2013, 01:58:19 AM
Hi I was looking at your script and Im new to this was wondering if you could tell me how to find the xx,yy,zz for my secure containers

thanks
Title: Re: TrailMyx's Fishing Chest Loot Organizer snippet
Post by: Masscre on March 23, 2013, 04:48:26 AM
You can use a skill like armslore on a chest and then look in easyuo under contid and that will be what you should place in the xxyyzz area.
Title: Re: TrailMyx's Fishing Chest Loot Organizer snippet
Post by: gimlet on March 23, 2013, 05:08:30 AM
I use this:

http://www.scriptuo.com/index.php?topic=188.0;highlight=findinfo (http://www.scriptuo.com/index.php?topic=188.0;highlight=findinfo)
Title: Re: TrailMyx's Fishing Chest Loot Organizer snippet
Post by: ladyyvonne on March 23, 2013, 02:19:11 PM
OOOO Thank You, I think you just became my hero.

Yvonne
Title: Re: TrailMyx's Fishing Chest Loot Organizer snippet
Post by: gimlet on March 23, 2013, 03:36:00 PM
OOOO Thank You, I think you just became my hero.

Yvonne

GIMLET IS EVERYBODIES HERO

jk TrailMyx is the guy to thank for that one since he wrote it!
Title: Re: TrailMyx's Fishing Chest Loot Organizer snippet
Post by: ladyyvonne on April 02, 2013, 06:34:08 PM
Got another problem im hoping you guys can help with. I put the xxyyzz ID in and it still isn't working, im on osi. is there something else I need to do
Title: Re: TrailMyx's Fishing Chest Loot Organizer snippet
Post by: TrailMyx on April 02, 2013, 06:58:38 PM
So what's happening?  You might need to single-step through the code to see what's going on.  Chances are that a #FINDID isn't quite right, or you're out of range from a container.  This script assumes that the containers are locked down on the floor within 2 spaces of your character.
Title: Re: TrailMyx's Fishing Chest Loot Organizer snippet
Post by: Ultimafreak77 on November 08, 2013, 09:56:05 AM
This still works great and in conjunction with your findinfo tool its unstoppable! Thank you very much!
Title: Re: TrailMyx's Fishing Chest Loot Organizer snippet
Post by: Ultimafreak77 on November 08, 2013, 10:07:49 AM
On a side note, I am going to try and find a way to add the ability that I can target a pack animal or container with multiple chests inside them, so that I don't have to single target each chest to sort.
Title: Re: TrailMyx's Fishing Chest Loot Organizer snippet
Post by: El_Remo on January 26, 2014, 03:39:25 AM
Got some great use out of this lastnite. Added the mentioned gems and a few necro spells that werent included and it really speeds up the process. I usually do about 30 chests at a time so it should save me tons of time. I have thrown away certain things in the past just to keep from having to deal with the small items. Thanks again TrailMyx
Title: Re: TrailMyx's Fishing Chest Loot Organizer snippet
Post by: TrailMyx on January 26, 2014, 09:33:18 AM
Glad you got some use out of it.  This was  just one of those basic scripts I never meant to give out, so it's good that its getting some use.  I have 100s of helper scripts like this just to take the repetitive clickity click out of the game.  heh
Title: Re: TrailMyx's Fishing Chest Loot Organizer snippet
Post by: El_Remo on January 26, 2014, 11:33:13 AM
Actually something small like this is a big help. I thought it might actually help me write my first snippet.
Title: Re: TrailMyx's Fishing Chest Loot Organizer snippet
Post by: TrailMyx on January 26, 2014, 06:49:47 PM
That's why I post them.  I'm always hopeful that some sample code might help inspire people to give scripting a whirl.