[UOSteam] All Key Subs (New and Improved)
Posted: Thu Mar 29, 2018 5:09 pm
i realise the menu gumps may change again, but i was looking at the old keys made by dramoor and realized how slow they where. so i made them alot faster. i was halfway through modifying them when the restart happened and i had to redo the menu gump codes, so hopefully they will work for awhile. enjoy!
was playing around with the key subs and tried slappin these all together. it doesnt seem to slow them down much by combining them. works well for those manual miners, where you just wanna hit one spot, but want granite also.
Smelting/Metal/Granite Keys Sub:
Granite Keys Sub:
Metal Keys Sub:
Wood Keys Sub:
Tailor Keys Sub:
SpellCaster Keys Sub:

was playing around with the key subs and tried slappin these all together. it doesnt seem to slow them down much by combining them. works well for those manual miners, where you just wanna hit one spot, but want granite also.
Smelting/Metal/Granite Keys Sub:
Code: Select all
//===========================================================
//--------------Auto Add Metal/Granite to Keys--------------=
//----------------------By: Alamiester----------------------=
//-----------------------------V0.1-------------------------=
//----------------------------------------------------------=
//----------------------------------------------------------=
//===========================================================
//
//===========================================================
//=----------------------Smelts all Ore---------------------=
//===========================================================
while @targettype! '0x19b9' 'Any' '2'
if not @findtype! '0xe32' '1161' 'backpack' 'any' '2'
pause 200
sysmsg '*****No Mobile Forge*****' '20'
break
else
@setalias 'Forge' 'found'
@usetype! '0x19b9' 'Any' 'backpack' '1161'
waitfortarget '500'
@target! 'found'
endif
pause 500
@canceltarget!
endwhile
pause 500
//===========================================================
//=-----------Opens Metal Keys and adds all Metal-----------=
//===========================================================
if not @findtype! '0x176b' '20' 'backpack'
sysmsg '*****No Metals Keys*****' '20'
@canceltarget
stop
else
@usetype! '0x176b' '20' 'backpack'
waitforgump 4213074123 500
@replygump 0xfb1e68cb 60015
waitforgump 4213074123 500
pause 200
while @findtype! '0x1bf2' 'any' 'backpack' 'any' '2'
if not @findtype! '0x1bf2' 'any' 'backpack' 'any' '2'
pause 200
sysmsg '*****No Metal found.*****' '255'
@canceltarget
stop
else
@targettype! '0x1bf2' 'any' '2'
waitforgump 4213074123 500
pause 300
endif
endwhile
@replygump 0xfb1e68cb 0
@canceltarget
endif
//===========================================================
//=---------Opens Granite Keys and adds all Granite---------=
//===========================================================
if not @findtype! '0x176b' '1161' 'backpack'
sysmsg '*****No Granite Keys found.*****' '255'
@canceltarget
stop
else
@usetype! '0x176b' '1161' 'backpack'
waitforgump 2633467501 500
@replygump 0x9cf7866d 60015
waitforgump 2633467501 500
pause 200
while @findtype! '0x1779' 'any' 'backpack' 'any' '2'
if not @findtype! '0x1779' 'any' 'backpack' 'any' '2'
pause 200
sysmsg '*****No Granite found.*****' '255'
@canceltarget
stop
else
@targettype! '0x1779' 'any' '2'
waitforgump 2633467501 500
pause 300
endif
endwhile
@replygump 0x9cf7866d 0
@canceltarget
endif
pause 500
Code: Select all
//===========================================================
//-----------------Auto Add Granite to Keys-----------------=
//------------------------By:Dramoor------------------------=
//---------------------Adapted By:Locke---------------------=
//-----------------Streamlined By:Alamiester----------------=
//----------------------------V0.2--------------------------=
//===========================================================
//
//===========================================================
//=---------Opens Granite Keys and adds all Granite---------=
//===========================================================
if not @findtype! '0x176b' '1161' 'backpack'
sysmsg '*****No Granite Keys found.*****' '255'
@canceltarget
stop
else
@usetype! '0x176b' '1161' 'backpack'
waitforgump 2633467501 500
replygump 0x9cf7866d 60015
waitforgump 2633467501 500
pause 200
while @findtype! '0x1779' 'any' 'backpack' 'any' '2'
if not @findtype! '0x1779' 'any' 'backpack' 'any' '2'
pause 200
sysmsg '*****No Granite found.*****' '255'
@canceltarget
stop
else
@targettype! '0x1779' 'any' '2'
waitforgump 2633467501 500
pause 300
endif
endwhile
replygump 0x9cf7866d 0
@canceltarget
endif
Code: Select all
//===========================================================
//------------------Auto Add Metal to Keys------------------=
//------------------------By:Dramoor------------------------=
//---------------------Adapted By:Locke---------------------=
//-----------------Streamlined By:Alamiester----------------=
//-----------------------------V0.2-------------------------=
//===========================================================
//
//===========================================================
//=-----------Opens Metal Keys and adds all Metal-----------=
//===========================================================
if not @findtype! '0x176b' '20' 'backpack'
sysmsg '*****No Metals Keys*****' '20'
@canceltarget
stop
else
@usetype! '0x176b' '20' 'backpack'
waitforgump 4213074123 500
replygump 0xfb1e68cb 60015
waitforgump 4213074123 500
pause 200
while @findtype! '0x1bf2' 'any' 'backpack' 'any' '2'
if not @findtype! '0x1bf2' 'any' 'backpack' 'any' '2'
pause 200
sysmsg '*****No Metal found.*****' '255'
@canceltarget
stop
else
@targettype! '0x1bf2' 'any' '2'
waitforgump 4213074123 500
pause 300
endif
endwhile
@replygump 0xfb1e68cb 0
@canceltarget
endif
Code: Select all
//===========================================================
//----------------Auto Add Wood items to Keys---------------=
//------------------------By:Dramoor------------------------=
//---------------------Adapted By:Locke---------------------=
//-----------------Streamlined By:Alamiester----------------=
//-----------------------------V0.3-------------------------=
//===========================================================
//
@clearjournal
//
//===========================================================
//-----------Checks for Wood and puts in Keys---------------=
//===========================================================
if not @findtype! '0x176b' '88' 'backpack'
sysmsg '*****No Wood Keys found.*****' '255'
@canceltarget
stop
else
@usetype! '0x176b' '88' 'backpack'
waitforgump 173511501 500
@replygump 0xa57934d 60023
waitforgump 173511501 500
waitfortarget '5000'
pause 300
while @findtype '0x1bd7' 'any' 'backpack' 'any' 'any'
pause 200
@targettype! '0x1bd7' 'any' 'any'
waitforgump 173511501 500
pause 300
endwhile
//===========================================================
//-----------Checks for Arrows and puts in Keys-------------=
//===========================================================
while @findtype! '0xf3f' 'any' 'backpack' 'any' 'any'
pause 200
@targettype! '0xf3f' 'any' 'any'
waitforgump 173511501 500
pause 300
endwhile
//===========================================================
//-------------Checks for Bolt and puts in Keys-------------=
//===========================================================
while @findtype! '0x1bfb' 'any' 'backpack' 'any' 'any'
pause 200
@targettype! '0x1bfb' 'any' 'any'
waitforgump 173511501 500
pause 300
endwhile
//===========================================================
//-----------Checks for Feathers and puts in Keys-----------=
//===========================================================
while @findtype! '0x1bd1' 'any' 'backpack' 'any' 'any'
pause 200
@targettype! '0x1bd1' 'any' 'any'
waitforgump 173511501 500
pause 300
endwhile
//===========================================================
//-------------Checks for Shaft and Puts in Keys------------=
//===========================================================
while @findtype! '0x1bd4' 'any' 'backpack' 'any' 'any'
pause 200
@targettype! '0x1bd4' 'any' 'any'
waitforgump 173511501 500
pause 300
endwhile
//===========================================================
//---------Checks for Bark Fragment and Puts in Keys--------=
//===========================================================
while @findtype! '0x318f' '0' 'backpack' 'any' 'any'
pause 200
@targettype! '0x318f' 'any' 'any'
waitforgump 173511501 500
pause 300
endwhile
//===========================================================
//-------Checks for Luminescent Fungi and Puts in Keys------=
//===========================================================
while @findtype! '0x3191' '0' 'backpack' 'any' 'any'
pause 200
@targettype! '0x3191' 'any' 'any'
waitforgump 173511501 500
pause 300
endwhile
//===========================================================
//-------------Checks for Switch and Puts in Keys-----------=
//===========================================================
while @findtype! '0x2f5f' '0' 'backpack' 'any' 'any'
pause 200
@targettype! '0x2f5f' 'any' 'any'
waitforgump 173511501 500
pause 300
endwhile
//===========================================================
//--------Checks for Parasitic Plant and Puts in Keys-------=
//===========================================================
while @findtype! '0x3190' '0' 'backpack' 'any' 'any'
pause 200
@targettype! '0x3190' 'any' 'any'
waitforgump 173511501 500
pause 300
endwhile
//===========================================================
//-----------Checks for Kindling and puts in Keys-------------=
//===========================================================
while @findtype! '0xde1' 'any' 'backpack' 'any' 'any'
pause 200
@targettype! '0xde1' 'any' 'any'
waitforgump 173511501 500
pause 300
endwhile
endif
pause 600
@replygump 0xa57934d 0
sysmsg 'All Done!'
@canceltarget
Code: Select all
//===========================================================
//--------------Auto add Tailor items to Keys---------------=
//------------------------By:Dramoor------------------------=
//---------------------Adapted By:Locke---------------------=
//-----------------Streamlined By:Alamiester----------------=
//-----------------------------V0.2-------------------------=
//----------------------------------------------------------=
//===========================================================
//
@clearjournal
//
//===========================================================
//=-----Checks for any kind of leather and Puts in Keys-----=
//===========================================================
if not @findtype! '0x176b' '69' 'backpack'
sysmsg '*****No Tailors Keys found.*****' '69'
@canceltarget
stop
else
@usetype! '0x176b' '69' 'backpack'
waitforgump 1106836505 500
@replygump 0x41f8fc19 60029
waitforgump 1106836505 500
waitfortarget '5000'
pause 300
while @findtype! '0x1081' 'any' 'backpack' 'any' 'any'
pause 200
@targettype! '0x1081' 'any' 'backpack'
waitforgump 1106836505 500
pause 300
endwhile
//===========================================================
//=----------Checks for scales and Puts in Keys-------------=
//===========================================================
while @findtype! '0x26b4' 'any' 'backpack' 'any' 'any'
pause 200
@targettype! '0x26b4' 'any' 'backpack'
waitforgump 1106836505 500
pause 300
endwhile
//===========================================================
//=----------Checks for cloth and Puts in Keys--------------=
//===========================================================
while @findtype! '0x1766' 'any' 'backpack' 'any' 'any'
pause 200
@targettype! '0x1766' 'any' 'backpack'
waitforgump 1106836505 500
pause 300
endwhile
//===========================================================
//=----------Checks for Bolt of cloth and Puts in Keys------=
//===========================================================
while @findtype! '0xf95' 'any' 'backpack' 'any' 'any'
pause 200
@targettype! '0xf95' 'any' 'backpack'
waitforgump 1106836505 500
pause 300
endwhile
//===========================================================
//=----------Checks for Ball of Yarn and Puts in Keys-------=
//===========================================================
while @findtype! '0xe1e' 'any' 'backpack' 'any' 'any'
pause 200
@targettype! '0xe1e' 'any' 'backpack'
waitforgump 1106836505 500
pause 300
endwhile
//===========================================================
//=-------Checks for Spool of Thread and Puts in Keys-------=
//===========================================================
while @findtype! '0xfa0' 'any' 'backpack' 'any' 'any'
pause 200
@targettype! '0xfa0' 'any' 'backpack'
waitforgump 1106836505 500
pause 300
endwhile
//===========================================================
//=----------Checks for Pile of Wool and Puts in Keys-------=
//===========================================================
while @findtype! '0xdf8' 'any' 'backpack' 'any' 'any'
pause 200
@targettype! '0xdf8' 'any' 'backpack'
waitforgump 1106836505 500
pause 300
endwhile
//===========================================================
//=--------Checks for Bale of Cotton and Puts in Keys-------=
//===========================================================
while @findtype! '0xdf9' 'any' 'backpack' 'any' 'any'
pause 200
@targettype! '0xdf9' 'any' 'backpack'
waitforgump 1106836505 500
pause 300
endwhile
//===========================================================
//=-------------Checks for Flax and Puts in Keys------------=
//===========================================================
while @findtype! '0x1a9c' 'any' 'backpack' 'any' 'any'
pause 200
@targettype! '0x1a9c' 'any' 'backpack'
waitforgump 1106836505 500
pause 300
endwhile
endif
pause 600
@replygump 0x41f8fc19 0
sysmsg 'All Done!'
@canceltarget
Code: Select all
//============================================================
//=------------------Auto Add Regs to Keys-------------------=
//=----------------------By:Dramoor--------------------------=
//----------------Streamlined By: Alamiester-----------------=
//=---------------------------V0.3---------------------------=
//=----------------------------------------------------------=
//============================================================
//
@clearjournal
//
//============================================================
//=------------------Opens SpellCaster's Keys----------------=
//============================================================
if not @findtype! '0x176b' '33' 'backpack'
sysmsg '*****No Keys*****' '33'
stop
else
@usetype! '0x176b' '33' 'backpack'
waitforgump 247257139 500
@replygump 0xebcd833 60030
waitforgump 247257139 500
waitfortarget '5000'
pause 300
endif
//==============================================================
//=------------Checks for Black Pearl and Puts in Keys---------=
//==============================================================
if not @targettype! '0xf7a' '0'
else
@targettype! '0xf7a' '0'
waitfortarget '5000'
pause 300
@replygump 0xebcd833 0
endif
//==============================================================
//=------------Checks for Blood Moss and Puts in Keys----------=
//==============================================================
if not @targettype! '0xf7b' '0'
else
@targettype! '0xf7b' '0'
waitfortarget '5000'
pause 300
@replygump 0xebcd833 0
endif
//==============================================================
//=--------------Checks for Garlic and Puts in Keys------------=
//==============================================================
if not @targettype! '0xf84' '0'
else
@targettype! '0xf84' '0'
waitfortarget '5000'
pause 300
@replygump 0xebcd833 0
endif
//==============================================================
//=--------------Checks for Ginseng and Puts in Keys-----------=
//==============================================================
if not @targettype! '0xf85' '0'
else
@targettype! '0xf85' '0'
waitfortarget '5000'
pause 300
@replygump 0xebcd833 0
endif
//==============================================================
//=-----------Checks for Mandrake Root and Puts in Keys--------=
//==============================================================
if not @targettype! '0xf86' '0'
else
@targettype! '0xf86' '0'
waitfortarget '5000'
pause 300
@replygump 0xebcd833 0
endif
//==============================================================
//=------------Checks for NightShade and Puts in Keys----------=
//==============================================================
if not @targettype! '0xf88' '0'
else
@targettype! '0xf88' '0'
waitfortarget '5000'
pause 300
@replygump 0xebcd833 0
endif
//==============================================================
//=-----------Checks for Sulfurous Ash and Puts in Keys--------=
//==============================================================
if not @targettype! '0xf8c' '0'
else
@targettype! '0xf8c' '0'
waitfortarget '5000'
pause 300
@replygump 0xebcd833 0
endif
//==============================================================
//=-----------Checks for Spiders Silk and Puts in Keys---------=
//==============================================================
if not @targettype! '0xf8d' '0'
else
@targettype! '0xf8d' '0'
waitfortarget '5000'
pause 300
@replygump 0xebcd833 0
endif
//==============================================================
//=-------------Checks for Batwing and Puts in Keys------------=
//==============================================================
if not @targettype! '0xf78' '0'
else
@targettype! '0xf78' '0'
waitfortarget '5000'
pause 300
@replygump 0xebcd833 0
endif
//==============================================================
//=-----------Checks for Grave Dust and Puts in Keys-----------=
//==============================================================
if not @targettype! '0xf8f' '0'
else
@targettype! '0xf8f' '0'
waitfortarget '5000'
pause 300
@replygump 0xebcd833 0
endif
//==============================================================
//=-----------Checks for Daemon Blood and Puts in Keys---------=
//==============================================================
if not @targettype! '0xf7d' '0'
else
@targettype! '0xf7d' '0'
waitfortarget '5000'
pause 300
@replygump 0xebcd833 0
endif
//==============================================================
//=-----------Checks for Nox Crystal and Puts in Keys----------=
//==============================================================
if not @targettype! '0xf8e' '0'
else
@targettype! '0xf8e' '0'
waitfortarget '5000'
pause 300
@replygump 0xebcd833 0
endif
//==============================================================
//=-------------Checks for Pig Iron and Puts in Keys-----------=
//==============================================================
if not @targettype! '0xf8a' '0'
else
@targettype! '0xf8a' '0'
waitfortarget '5000'
pause 300
@replygump 0xebcd833 0
endif
//==============================================================
//=----------Checks for Spring Water and Puts in Keys----------=
//==============================================================
if not @targettype! '0xe24' '1151'
else
@targettype! '0xe24' '1151'
waitfortarget '5000'
pause 300
@replygump 0xebcd833 0
endif
//==============================================================
//=---------Checks for Petrified Wood and Puts in Keys---------=
//==============================================================
if not @targettype! '0x97a' '1132'
else
@targettype! '0x97a' '1132'
waitfortarget '5000'
pause 300
@replygump 0xebcd833 0
endif
//==============================================================
//=--------Checks for Destroying Angel and Puts in Keys--------=
//==============================================================
if not @targettype! '0xe1f' '656'
else
@targettype! '0xe1f' '656'
waitfortarget '5000'
pause 300
@replygump 0xebcd833 0
endif
//==============================================================
//=------------Checks for Demon Bones and Puts in Keys---------=
//==============================================================
if not @targettype! '0xf80' '0'
else
@targettype! '0xf80' '0'
waitfortarget '5000'
pause 300
@replygump 0xebcd833 0
endif
//==============================================================
//=-------------Checks for BeesWax and Puts in Keys------------=
//==============================================================
if not @targettype! '0x1422' '0'
else
@targettype! '0x1422' '0'
waitfortarget '5000'
pause 300
@replygump 0xebcd833 0
endif
//==============================================================
//=-----------Checks for Blank Scrolls and Puts in Keys--------=
//==============================================================
if not @targettype! '0xef3' '0'
else
@targettype! '0xef3' '0'
waitfortarget '5000'
pause 300
@replygump 0xebcd833 0
endif
//==============================================================
//=---------------Checks for Bones and Puts in Keys------------=
//==============================================================
if not @targettype! '0xf7e' '0'
else
@targettype! '0xf7e' '0'
waitfortarget '5000'
pause 300
@replygump 0xebcd833 0
endif
//==============================================================
//=---------------Checks for Bottles and Puts in Keys----------=
//==============================================================
if not @targettype! '0xf0e' '0'
else
@targettype! '0xf0e' '0'
waitfortarget '5000'
pause 300
@replygump 0xebcd833 0
endif
//==============================================================
//=--------Checks for Ethereal Powder and Puts in Keys---------=
//==============================================================
if not @targettype! '0xf8f' '2089'
else
@targettype! '0xf8f' '2089'
waitfortarget '5000'
pause 300
@replygump 0xebcd833 0
endif
//==============================================================
//=-------------Checks for Fertile Dirt and Puts in Keys-------=
//==============================================================
if not @targettype! '0xf81' '0'
else
@targettype! '0xf81' '0'
waitfortarget '5000'
pause 300
@replygump 0xebcd833 0
endif
//==============================================================
//=-------------Checks for Key Ring and Puts in Keys-----------=
//==============================================================
if not @targettype! '0x176b' '0'
else
@targettype! '0x176b' '0'
waitfortarget '5000'
pause 300
@replygump 0xebcd833 0
endif
//==============================================================
//=---------Checks for an Empty Potion Keg and Puts in Keys----=
//==============================================================
if not @targettype! '0x1940' '0'
else
@targettype! '0x1940' '0'
waitfortarget '5000'
pause 300
@replygump 0xebcd833 0
endif
//==============================================================
//=-------------Checks for Trans Powder and Puts in Keys-------=
//==============================================================
if not @targettype! '0x26b8' '0'
else
@targettype! '0x26b8' '0'
waitfortarget '5000'
pause 300
@replygump 0xebcd833 0
endif
//==============================================================
//=----------------Checks for Sand and Puts in Keys------------=
//==============================================================
if not @targettype! '0x11ea' '0'
else
@targettype! '0x11ea' '0'
waitfortarget '5000'
pause 300
@replygump 0xebcd833 0
endif
//==============================================================
//=-------------Checks for Zoogi Fungus and Puts in Keys-------=
//==============================================================
if not @targettype! '0x26b7' '0'
else
@targettype! '0x26b7' '0'
waitfortarget '5000'
pause 300
@replygump 0xebcd833 0
endif
//==============================================================
//=--------Checks for Recall Runes and Puts in Keys------------=
//==============================================================
while @findtype '0x1f14' '0' 'backpack' 'any' '1'
if not @findtype '0x1f14' '0' 'backpack' 'any' '1'
sysmsg '*****Everything Added.*****' '255'
@canceltarget
@replygump 0xebcd833 0
stop
else
if @injournal "For safety reasons marked runes can not be added to resource keys." "system"
@canceltarget
@replygump 0xebcd833 0
sysmsg 'Move marked runes out of your backpack!' '255'
stop
else
@targettype! '0x1f14' '0' 'backpack'
waitforgump 247257139 500
pause 300
@replygump 0xebcd833 0
endif
endif
endwhile
@replygump 0xebcd833 0
@canceltarget