ScriptUO
Official ScriptUO EasyUO Scripts => Script Library => Gold Farming => Topic started 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:
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.
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
-
Found some more Gems VUF_FVF_OVF, I think I'll be using this script very much in the near future.
-
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.
-
id like to see some of your unfinished projects... most of my projects are tweaking things together.
-
I did one in particular when I was farming the pre-cast loot for the spring cleaning. I have to locate that one....
-
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 :)
-
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
-
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.
-
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)
-
OOOO Thank You, I think you just became my hero.
Yvonne
-
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!
-
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
-
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.
-
This still works great and in conjunction with your findinfo tool its unstoppable! Thank you very much!
-
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.
-
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
-
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
-
Actually something small like this is a big help. I thought it might actually help me write my first snippet.
-
That's why I post them. I'm always hopeful that some sample code might help inspire people to give scripting a whirl.