[UOSteam] Add to Resource Key's and Gem Pouch

If you make a Client-side script you can publish it here for other players to use
Post Reply
User avatar
Incognito
Apprentice Scribe
Posts: 18
Joined: Fri Apr 01, 2016 3:45 am

[UOSteam] Add to Resource Key's and Gem Pouch

Post by Incognito »

There are other scripts for adding resources to your keys but most are very bloated. For instance I used to use a Spellcasters key script that was 270 lines of code. The one you will find here uses 58ish lines and does the same thing. I myself use all of these in one script together but maybe not all of you have all the keys so I split them up.

I will add a Tool House and a Runic House script later.

Anyhow, here you go.

Spell Caster's Key's ***Note: Leave spring water // out because of problem with other vials. It still adds it!

Code: Select all

//Spring water work-around
if not @targettype! '0xe24' '1151'
else
@usetype! '0x176b' '33' 'backpack'
waitforgump 1750433090 15000
replygump 0x68557d42 25
waitfortarget 5000
@targettype! '0xe24' '1151'
@replygump 0x68557d42 0
pause 300
endif
//End of work-around
if not listexists 'spellcasterkeys'
createlist 'spellcasterkeys'
endif
@pushlist 'spellcasterkeys' '0xf7a' // BlackPearl
@pushlist 'spellcasterkeys' '0xf7b' // BloodMoss
@pushlist 'spellcasterkeys' '0xf84' // Garlic
@pushlist 'spellcasterkeys' '0xf85' // Ginseng
@pushlist 'spellcasterkeys' '0xf86' // MandrakeRoot
@pushlist 'spellcasterkeys' '0xf88' // NightShade
@pushlist 'spellcasterkeys' '0xf8c' // SulfurousAsh
@pushlist 'spellcasterkeys' '0xf8d' // SpidersSilk
@pushlist 'spellcasterkeys' '0xf78' // BatWing
@pushlist 'spellcasterkeys' '0xf8f' // GraveDust
@pushlist 'spellcasterkeys' '0xf7d' // DeamonBlood
@pushlist 'spellcasterkeys' '0xf8e' // NoxCrystal
@pushlist 'spellcasterkeys' '0xf8a' // PigIron
@pushlist 'spellcasterkeys' '0xf81' // FertileDirt
@pushlist 'spellcasterkeys' '0x26b7' // ZoogiFungus
@pushlist 'spellcasterkeys' '0x26b8' // TransPowder
@pushlist 'spellcasterkeys' '0xf7e' // Bones
@pushlist 'spellcasterkeys' '0xf80' // DemonBones
@pushlist 'spellcasterkeys' '0xef3' // BlankScrolls
@pushlist 'spellcasterkeys' '0xf0e' // Bottles
@pushlist 'spellcasterkeys' '0x11ea' // Sand
@pushlist 'spellcasterkeys' '0x1422' // BeesWax
//@pushlist 'spellcasterkeys' '0xe24' // SpringWater
@pushlist 'spellcasterkeys' '0xe1f' // DestroyingAngel
@pushlist 'spellcasterkeys' '0x97a' // PetrifiedWood
@pushlist 'spellcasterkeys' '0xf8f' // EtheralPowder
@pushlist 'spellcasterkeys' '0x1f14' // Runes
for 0 to spellcasterkeys
while @findtype 'spellcasterkeys[]'
@setalias 'regs' 'found'
usetype '0x176b' '33' 'backpack'
waitforgump 1750433090 15000
replygump 0x68557d42 25
waitforgump 1750433090 15000
waitfortarget 15000
@target 'regs'
waitforgump 1750433090 15000
pause 300
endwhile
endfor
@replygump 0x68557d42 0
@canceltarget
@removelist 'spellcasterkeys'
@unsetalias 'regs'
sysmsg 'Done with Spellcasters keys.'
Metal Worker's Key's

Code: Select all

if not listexists 'metalkeys'
  createlist 'metalkeys'
endif
@pushlist 'metalkeys' '0x1bf2' // All ingots share same ID
for 0 to metalkeys
  while @findtype 'metalkeys[]'
    @setalias 'ingots' 'found'
    usetype '0x176b' '20' 'backpack'
    waitforgump 4213074123 15000
    replygump 0xfb1e68cb 15
    waitforgump 4213074123 15000
    waitfortarget 15000
    @target 'ingots'
    waitforgump 4213074123 15000
  endwhile
endfor
@replygump 0xfb1e68cb 0
@canceltarget
@removelist 'metalkeys'
@unsetalias 'ingots'
sysmsg 'Done with Metalworkers keys.'
Tailor's Key's

Code: Select all

if not listexists 'tailorkeys'
  createlist 'tailorkeys'
endif
@pushlist 'tailorkeys' '0x1766' // Cloth
@pushlist 'tailorkeys' '0x26b4' // Scales
@pushlist 'tailorkeys' '0x1081' // Leather
for 0 to tailorkeys
  while @findtype 'tailorkeys[]'
    @setalias 'tailorstuff' 'found'
    usetype '0x176b' '69' 'backpack'
    waitforgump 1106836505 15000
    replygump 0x41f8fc19 999
    waitforgump 1106836505 15000
    waitfortarget 15000
    @target 'tailorstuff'
    waitforgump 1106836505 15000
  endwhile
endfor
@replygump 0x41f8fc19 0
@canceltarget
@removelist 'tailorkeys'
@unsetalias 'tailorstuff'
sysmsg 'Done with Tailors keys.'
Gem Pouch

Code: Select all

if not listexists 'gempouch'
  createlist 'gempouch'
endif
@pushlist 'gempouch' '0xf26'  // Diamond
@pushlist 'gempouch' '0xf19'  // Sapphire
@pushlist 'gempouch' '0xf13'  // Ruby
@pushlist 'gempouch' '0xf21'  // Star Sapphire
@pushlist 'gempouch' '0xf10'  // Emerald
@pushlist 'gempouch' '0xf15'  // Citrine
@pushlist 'gempouch' '0xf16'  // Amethyst
@pushlist 'gempouch' '0xf2d'  // Tourmaline
@pushlist 'gempouch' '0xf25'  // Amber
@pushlist 'gempouch' '0x3198' // Blue Diamond
@pushlist 'gempouch' '0x3199' // Brilliant Amber
@pushlist 'gempouch' '0x3192' // Dark Sapphire
@pushlist 'gempouch' '0x3195' // Ecru Citrine
@pushlist 'gempouch' '0x3197' // Fire Ruby
@pushlist 'gempouch' '0x3194' // Perfect Emerald
@pushlist 'gempouch' '0x3193' // Turquoise
@pushlist 'gempouch' '0x3196' // White Pearl
@pushlist 'gempouch' '0x1ea7' // Arcane Gem
for 0 to gempouch
  while @findtype 'gempouch[]'
    @setalias 'gems' 'found'
    usetype '0xe79' '2165' 'backpack'
    waitforgump 309845371 15000
    replygump 0x1277dd7b 30
    waitforgump 309845371 15000
    waitfortarget 15000
    @target 'gems'
    waitforgump 309845371 15000
  endwhile
endfor
@replygump 0x1277dd7b 0
@canceltarget
@removelist 'gempouch'
@unsetalias 'gems'
sysmsg 'Done with Gem pouch.'
Woodworker's Key's

Code: Select all

if not listexists 'woodkeys'
  createlist 'woodkeys'
endif
@pushlist 'woodkeys' '0x1bd4'  // Shafts
@pushlist 'woodkeys' '0x1bd1'  // Feathers
@pushlist 'woodkeys' '0x1bfb'  // Bolts
@pushlist 'woodkeys' '0xf3f'  // Arrows
@pushlist 'woodkeys' '0x1bd7'  // All types of wood
for 0 to woodkeys
  while @findtype 'woodkeys[]'
    @setalias 'woods' 'found'
    usetype '0x176b' '88' 'backpack'
    waitforgump 173511501 15000
    replygump 0xa57934d 17
    waitforgump 173511501 15000
    waitfortarget 15000
    @target 'woods'
    waitforgump 173511501 15000
  endwhile
endfor
@replygump 0xa57934d 0
@canceltarget
@removelist 'woodkeys'
@unsetalias 'woods'
sysmsg 'Done with Woodworkers keys.'
Stoneworker's Key's

Code: Select all

if not listexists 'stonekeys'
  createlist 'stonekeys'
endif
@pushlist 'stonekeys' '0x1779' // All stones share same ID
for 0 to stonekeys
  while @findtype 'stonekeys[]'
    @setalias 'stones' 'found'
    usetype '0x176b' '1161' 'backpack'
    waitforgump 2633467501 15000
    replygump 0x9cf7866d 15
    waitforgump 2633467501 15000
    waitfortarget 15000
    @target 'stones'
    waitforgump 2633467501 15000
  endwhile
endfor
@replygump 0x9cf7866d 0
@canceltarget
@removelist 'stonekeys'
@unsetalias 'stones'
sysmsg 'Done with Stoneworkers keys.'
dreamstalker
Legendary Scribe
Posts: 345
Joined: Wed Apr 16, 2014 3:39 pm
Location: North Carolina

Re: [UOSteam] Add to Resource Key's and Gem Pouch

Post by dreamstalker »

I dont use these personally but from glancing over them all looks good. 2 things though...1st the gem pouch is drag and drop so just sn organizer will do the trick... 2nd ..if u arr planning on script/macro for tool runic houses be for warned. I would not want anyone to run the script and watch it eat their lvl 100 blaze of death and turn it into a hachet. Would be a bad day... not sure what would happen to a titans or bone crusher.
I keep a gun because I'm too young to die and too old to take an ass whoopin! just cause you aint paranoid doesnt mean they aint after you
User avatar
Old Fart
Novice Scribe
Posts: 8
Joined: Fri Aug 31, 2012 7:59 pm

Re: [UOSteam] Add to Resource Key's and Gem Pouch

Post by Old Fart »

Thank you for posting this very useful and time saving macro script Incognito. I used it for about 2 weeks with no issues at all. I recently had to reset my comp to factory (crash n burn), and after reinstalling EVERYTHING UO related including UOsteam again and setting up Alllllll those macros again including this one it hangs when i activate it. Now i did try the old "clear all objects" button to no avail. Also tried setting up macros for each individual key and still they all hang separately or together no matter how i set it up. Any ideas why this might be? Yes i tried deleting and resetting up a new macro etc... no good there either.

Oh and i should mention, if i do not have any items to load in the keys IN my inventory/backpack the macro runs straight through without any issues and i get the "done with ______ keys " messages in the order in which i set them up in the macro. However if i have any item at all in my backpack it will hang at that key and not continue nor will it load the key with the item. ie casters first and woodworkers is second say i have feathers in my pack... it floats past the caster keys and i get the "done with caster keys" then it hangs when trying to load the feathers in the woodworkers keys.

banged my head against the wall till i now have a splitting headache .. Grrrr.. any suggestions?

Thanks in advance


" My actions are a testament to my awareness" teeker2 2008 :idea:
The sum of the whole is equal to the sum of it's parts ! However, if there are any parts left over after completing the whole then just through them away then shhhh... *(whisper) don't tell anybody....
dreamstalker
Legendary Scribe
Posts: 345
Joined: Wed Apr 16, 2014 3:39 pm
Location: North Carolina

Re: [UOSteam] Add to Resource Key's and Gem Pouch

Post by dreamstalker »

Just to be sure r u running steam, easyuo n uo in admin mode? Possibly compatibility mode for xp sp2 also i have one system if i put in admin mode nuttin works rest of my puters wont run unless they are ran as admin...go figure. As far as puter crashing n having to redo all macro's for steam just browse into your steam folder n i think desktop look for the file default.xml open it with notepad that shows all settings n macro's for steam. Select all and save to 2nd hdd or jump drive. I also have it available on google drive. I also, just to be sure save both default.xml and backup.xml to aforementioned hdd' and google drive. When ever u crash puter n have to redo afaik u need to actually open the .xml with notepad then select all then copy paste it into your steam folder. Hopefully u wont have a need for those files anytime soon.
I keep a gun because I'm too young to die and too old to take an ass whoopin! just cause you aint paranoid doesnt mean they aint after you
eirenna416
Apprentice Scribe
Posts: 12
Joined: Wed Jul 13, 2016 2:08 pm

Re: [UOSteam] Add to Resource Key's and Gem Pouch

Post by eirenna416 »

I LOVE the Spellcaster macro. Works wonderfully! However, it's the only one that works wonderfully. I have the same problem with it hanging and not finishing with both the Woodworker and the Metal keys. I haven't tried any others yet.
guile007
Passer by
Posts: 2
Joined: Mon Nov 14, 2016 3:18 am

Re: [UOSteam] Add to Resource Key's and Gem Pouch

Post by guile007 »

im trying to use the wood key macro and for some reasong does nothing, just says done with macro, any hint?
Tigurius
Apprentice Scribe
Posts: 15
Joined: Tue Jun 07, 2011 2:19 pm

Re: [UOSteam] Add to Resource Key's and Gem Pouch

Post by Tigurius »

Not sure why but if I use the form "@target!" instead of "@target" these scripts work flawlessly. Otherwise they don't do anything when I execute escept generate the lists. Since using "!" as the suffix in targetting commands disables the target queue - I'm guessing that's the problem.
Rhiemath
Grandmaster Scribe
Posts: 70
Joined: Mon Sep 05, 2016 1:51 pm

Re: [UOSteam] Add to Resource Key's and Gem Pouch

Post by Rhiemath »

Considering how long ago this thread was written, I'm happy to report that this addition of the ! fixed mine today when they locked up for no apparent reason. Thanks!
Rebond12
Expert Scribe
Posts: 32
Joined: Mon Sep 05, 2016 3:37 pm

Re: [UOSteam] Add to Resource Key's and Gem Pouch

Post by Rebond12 »

I have used the Gem Pouch macro from above for a while but it stopped moving the gems. I delete it and add but I still get the problem. I get a message "Target---- 'gems' dequeued, timeout. I can click on each stake of gems and they move to the pouch. It acts like it can not find the gems. What am I missing. I am knew to UOS and other maco's are working well.
Post Reply