Ultimate Item Sorter by Jaseowns
# Ultimate Item Sorter by Jaseowns
# UO Outlands
# Good gear goes into these containers
@setvar! jase_Archery_Storage 0x48AF9FF3
@setvar! jase_Fencing_Storage 0x40FBC0D2
@setvar! jase_Macing_Storage 0x48AF9FF3
@setvar! jase_Mage_Storage 0x43EAD3E2
@setvar! jase_Music_Storage 0x48AF9FF3
@setvar! jase_Shield_Storage 0x452D91E1
@setvar! jase_Swords_Storage 0x452D91E1
@setvar! jase_Wrestling_Storage 0x43EAD3E2
@setvar! jase_RegularLeather_Storage 0x41E66C4D
@setvar! jase_StuddedLeather_Storage 0x41E66C4D
@setvar! jase_BoneLeather_Storage 0x41E66C4D
@setvar! jase_Ringmail_Storage 0x41E66C4D
@setvar! jase_Chainmail_Storage 0x41E66C4D
@setvar! jase_Plate_Storage 0x41E66C4D
# unidentified items
@setvar! jase_save_unidentified 0
# accuracy
@setvar! jase_save_supremely 1
@setvar! jase_save_exceedingly 1
@setvar! jase_save_eminently 0
@setvar! jase_save_surpassingly 0
@setvar! jase_save_accurate 0
# quality
@setvar! jase_save_exceptional 0
# damage
@setvar! jase_save_vanquishing 1
@setvar! jase_save_power 1
@setvar! jase_save_force 0
@setvar! jase_save_might 0
@setvar! jase_save_ruin 0
# slayers
@setvar! jase_save_slaying 1
# protection
@setvar! jase_save_invulnerability 1
@setvar! jase_save_fortification 1
@setvar! jase_save_hardening 0
@setvar! jase_save_guarding 0
@setvar! jase_save_defense 0
@setvar! messySourceContainer 1
if messySourceContainer = 1
overhead "Pick a chest, or escape to automatically target recycler"
@setvar! messySourceContainer
endif
if messySourceContainer = 0
if findtype "ornate elven chest" ground -1 -1 2 as source_container
overhead "Automatically checking recycler" 88
@setvar! messySourceContainer source_container
endif
endif
@clearignore
# Swords - puts items into jase_Swords_Storage
if jase_Swords_Storage != 0
dclick jase_Swords_Storage
wait 650
endif
while findtype 3909|3911|3913|3915|3917|3934|3937|5046|5049|5115|5119|5182|5185|5187|30988|31128|31190 messySourceContainer as item
getlabel item desc
overhead "Item: {{desc}}" 88
@setvar! saveItem 0
@setvar! ignoreItem 1
if jase_save_slaying = 1 and "slaying" in desc
@setvar! saveItem 1
elseif jase_save_supremely = 1 and "supremely" in desc
@setvar! saveItem 1
elseif jase_save_exceedingly = 1 and "exceedingly" in desc
@setvar! saveItem 1
elseif jase_save_eminently = 1 and "eminently" in desc
@setvar! saveItem 1
elseif jase_save_surpassingly = 1 and "surpassingly" in desc
@setvar! saveItem 1
elseif jase_save_accurate = 1 and "accurate" in desc
@setvar! saveItem 1
elseif jase_save_vanquishing = 1 and "vanquishing" in desc
@setvar! saveItem 1
elseif jase_save_power = 1 and "power" in desc
@setvar! saveItem 1
elseif jase_save_force = 1 and "force" in desc
@setvar! saveItem 1
elseif jase_save_might = 1 and "might" in desc
@setvar! saveItem 1
elseif jase_save_ruin = 1 and "ruin" in desc
@setvar! saveItem 1
endif
if "unidentified" in desc
if skill "Item Identification" = 120
useskill "itemId"
wft 500
target messySourceContainer
wait 2000
@setvar! ignoreItem 0
elseif skill "Item Identification" >= 30
useskill "itemId"
wft 500
target item
wait 2000
@setvar! ignoreItem 0
endif
endif
if saveItem = 1
lift item
drop jase_Swords_Storage -1 -1 -1
wait 650
endif
if ignoreItem = 1
@ignore item
endif
endwhile
# Macing - puts items into jase_Macing_Storage
if jase_Macing_Storage != 0
dclick jase_Macing_Storage
wait 650
endif
while findtype 3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31180|31182 messySourceContainer as item
getlabel item desc
overhead "Item: {{desc}}" 88
@setvar! saveItem 0
@setvar! ignoreItem 1
if jase_save_slaying = 1 and "slaying" in desc
@setvar! saveItem 1
elseif jase_save_supremely = 1 and "supremely" in desc
@setvar! saveItem 1
elseif jase_save_exceedingly = 1 and "exceedingly" in desc
@setvar! saveItem 1
elseif jase_save_eminently = 1 and "eminently" in desc
@setvar! saveItem 1
elseif jase_save_surpassingly = 1 and "surpassingly" in desc
@setvar! saveItem 1
elseif jase_save_accurate = 1 and "accurate" in desc
@setvar! saveItem 1
elseif jase_save_vanquishing = 1 and "vanquishing" in desc
@setvar! saveItem 1
elseif jase_save_power = 1 and "power" in desc
@setvar! saveItem 1
elseif jase_save_force = 1 and "force" in desc
@setvar! saveItem 1
elseif jase_save_might = 1 and "might" in desc
@setvar! saveItem 1
elseif jase_save_ruin = 1 and "ruin" in desc
@setvar! saveItem 1
endif
if "unidentified" in desc
if skill "Item Identification" = 120
useskill "itemId"
wft 500
target messySourceContainer
wait 2000
@setvar! ignoreItem 0
elseif skill "Item Identification" >= 30
useskill "itemId"
wft 500
target item
wait 2000
@setvar! ignoreItem 0
endif
endif
if saveItem = 1
lift item
drop jase_Macing_Storage -1 -1 -1
wait 650
endif
if ignoreItem = 1
@ignore item
endif
endwhile
# Fencing - puts items into jase_Fencing_Storage
if jase_Fencing_Storage != 0
dclick jase_Fencing_Storage
wait 650
endif
while findtype 3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188 messySourceContainer as item
getlabel item desc
overhead "Item: {{desc}}" 88
@setvar! saveItem 0
@setvar! ignoreItem 1
if jase_save_slaying = 1 and "slaying" in desc
@setvar! saveItem 1
elseif jase_save_supremely = 1 and "supremely" in desc
@setvar! saveItem 1
elseif jase_save_exceedingly = 1 and "exceedingly" in desc
@setvar! saveItem 1
elseif jase_save_eminently = 1 and "eminently" in desc
@setvar! saveItem 1
elseif jase_save_surpassingly = 1 and "surpassingly" in desc
@setvar! saveItem 1
elseif jase_save_accurate = 1 and "accurate" in desc
@setvar! saveItem 1
elseif jase_save_vanquishing = 1 and "vanquishing" in desc
@setvar! saveItem 1
elseif jase_save_power = 1 and "power" in desc
@setvar! saveItem 1
elseif jase_save_force = 1 and "force" in desc
@setvar! saveItem 1
elseif jase_save_might = 1 and "might" in desc
@setvar! saveItem 1
elseif jase_save_ruin = 1 and "ruin" in desc
@setvar! saveItem 1
endif
if "unidentified" in desc
if skill "Item Identification" = 120
useskill "itemId"
wft 500
target messySourceContainer
wait 2000
@setvar! ignoreItem 0
elseif skill "Item Identification" >= 30
useskill "itemId"
wft 500
target item
wait 2000
@setvar! ignoreItem 0
endif
endif
if saveItem = 1
lift item
drop jase_Fencing_Storage -1 -1 -1
wait 650
endif
if ignoreItem = 1
@ignore item
endif
endwhile
# Archery - puts items into jase_Archery_Storage
if jase_Archery_Storage != 0
dclick jase_Archery_Storage
wait 650
endif
while findtype 3920|5042|5117|30990|30993|30994|30995|31184|31186 messySourceContainer as item
getlabel item desc
overhead "Item: {{desc}}" 88
@setvar! saveItem 0
@setvar! ignoreItem 1
if jase_save_slaying = 1 and "slaying" in desc
@setvar! saveItem 1
elseif jase_save_supremely = 1 and "supremely" in desc
@setvar! saveItem 1
elseif jase_save_exceedingly = 1 and "exceedingly" in desc
@setvar! saveItem 1
elseif jase_save_eminently = 1 and "eminently" in desc
@setvar! saveItem 1
elseif jase_save_surpassingly = 1 and "surpassingly" in desc
@setvar! saveItem 1
elseif jase_save_accurate = 1 and "accurate" in desc
@setvar! saveItem 1
elseif jase_save_vanquishing = 1 and "vanquishing" in desc
@setvar! saveItem 1
elseif jase_save_power = 1 and "power" in desc
@setvar! saveItem 1
elseif jase_save_force = 1 and "force" in desc
@setvar! saveItem 1
elseif jase_save_might = 1 and "might" in desc
@setvar! saveItem 1
elseif jase_save_ruin = 1 and "ruin" in desc
@setvar! saveItem 1
endif
if "unidentified" in desc
if skill "Item Identification" = 120
useskill "itemId"
wft 500
target messySourceContainer
wait 2000
@setvar! ignoreItem 0
elseif skill "Item Identification" >= 30
useskill "itemId"
wft 500
target item
wait 2000
@setvar! ignoreItem 0
endif
endif
if saveItem = 1
lift item
drop jase_Archery_Storage -1 -1 -1
wait 650
endif
if ignoreItem = 1
@ignore item
endif
endwhile
# Shield - puts items into jase_Shield_Storage
if jase_Shield_Storage != 0
dclick jase_Shield_Storage
wait 650
endif
while findtype 7026|7027|7029|7031|7033|7034|7035|7107|7109|31002|31130 messySourceContainer as item
getlabel item desc
overhead "Item: {{desc}}" 88
@setvar! saveItem 0
@setvar! ignoreItem 1
if jase_save_invulnerability = 1 and "invulnerability" in desc
@setvar! saveItem 1
elseif jase_save_fortification = 1 and "fortification" in desc
@setvar! saveItem 1
elseif jase_save_hardening = 1 and "hardening" in desc
@setvar! saveItem 1
elseif jase_save_guarding = 1 and "guarding" in desc
@setvar! saveItem 1
elseif jase_save_defense = 1 and "defense" in desc
@setvar! saveItem 1
endif
if "unidentified" in desc
if skill "Item Identification" = 120
useskill "itemId"
wft 500
target messySourceContainer
wait 2000
@setvar! ignoreItem 0
elseif skill "Item Identification" >= 30
useskill "itemId"
wft 500
target item
wait 2000
@setvar! ignoreItem 0
endif
endif
if saveItem = 1
lift item
drop jase_Shield_Storage -1 -1 -1
wait 650
endif
if ignoreItem = 1
@ignore item
endif
endwhile
# Mage - puts items into jase_Mage_Storage
if jase_Mage_Storage != 0
dclick jase_Mage_Storage
wait 650
endif
while findtype 3570|3571|3572|3573|3834 messySourceContainer as item
getlabel item desc
overhead "Item: {{desc}}" 88
@setvar! saveItem 0
@setvar! ignoreItem 1
if jase_save_slaying = 1 and "slaying" in desc
@setvar! saveItem 1
elseif jase_save_supremely = 1 and "supremely" in desc
@setvar! saveItem 1
elseif jase_save_exceedingly = 1 and "exceedingly" in desc
@setvar! saveItem 1
elseif jase_save_eminently = 1 and "eminently" in desc
@setvar! saveItem 1
elseif jase_save_surpassingly = 1 and "surpassingly" in desc
@setvar! saveItem 1
elseif jase_save_accurate = 1 and "accurate" in desc
@setvar! saveItem 1
elseif jase_save_vanquishing = 1 and "vanquishing" in desc
@setvar! saveItem 1
elseif jase_save_power = 1 and "power" in desc
@setvar! saveItem 1
elseif jase_save_force = 1 and "force" in desc
@setvar! saveItem 1
elseif jase_save_might = 1 and "might" in desc
@setvar! saveItem 1
elseif jase_save_ruin = 1 and "ruin" in desc
@setvar! saveItem 1
endif
if "unidentified" in desc
if skill "Item Identification" = 120
useskill "itemId"
wft 500
target messySourceContainer
wait 2000
@setvar! ignoreItem 0
elseif skill "Item Identification" >= 30
useskill "itemId"
wft 500
target item
wait 2000
@setvar! ignoreItem 0
endif
endif
if saveItem = 1
lift item
drop jase_Mage_Storage -1 -1 -1
wait 650
endif
if ignoreItem = 1
@ignore item
endif
endwhile
# Wrestling - puts items into jase_Wrestling_Storage
if jase_Wrestling_Storage != 0
dclick jase_Wrestling_Storage
wait 650
endif
while findtype 22187|31141|31142 messySourceContainer as item
getlabel item desc
overhead "Item: {{desc}}" 88
@setvar! saveItem 0
@setvar! ignoreItem 1
if jase_save_slaying = 1 and "slaying" in desc
@setvar! saveItem 1
elseif jase_save_supremely = 1 and "supremely" in desc
@setvar! saveItem 1
elseif jase_save_exceedingly = 1 and "exceedingly" in desc
@setvar! saveItem 1
elseif jase_save_eminently = 1 and "eminently" in desc
@setvar! saveItem 1
elseif jase_save_surpassingly = 1 and "surpassingly" in desc
@setvar! saveItem 1
elseif jase_save_accurate = 1 and "accurate" in desc
@setvar! saveItem 1
elseif jase_save_vanquishing = 1 and "vanquishing" in desc
@setvar! saveItem 1
elseif jase_save_power = 1 and "power" in desc
@setvar! saveItem 1
elseif jase_save_force = 1 and "force" in desc
@setvar! saveItem 1
elseif jase_save_might = 1 and "might" in desc
@setvar! saveItem 1
elseif jase_save_ruin = 1 and "ruin" in desc
@setvar! saveItem 1
endif
if "unidentified" in desc
if skill "Item Identification" = 120
useskill "itemId"
wft 500
target messySourceContainer
wait 2000
@setvar! ignoreItem 0
elseif skill "Item Identification" >= 30
useskill "itemId"
wft 500
target item
wait 2000
@setvar! ignoreItem 0
endif
endif
if saveItem = 1
lift item
drop jase_Wrestling_Storage -1 -1 -1
wait 650
endif
if ignoreItem = 1
@ignore item
endif
endwhile
# Music - puts items into jase_Music_Storage
if jase_Music_Storage != 0
dclick jase_Music_Storage
wait 650
endif
while findtype 3740|3742|3762|3763|10245|20006|20008|20010|20012|20014|20016 messySourceContainer as item
getlabel item desc
overhead "Item: {{desc}}" 88
@setvar! saveItem 0
@setvar! ignoreItem 1
if jase_save_slaying = 1 and "enticement" in desc
@setvar! saveItem 1
elseif jase_save_supremely = 1 and "supremely" in desc
@setvar! saveItem 1
elseif jase_save_exceedingly = 1 and "exceedingly" in desc
@setvar! saveItem 1
elseif jase_save_eminently = 1 and "eminently" in desc
@setvar! saveItem 1
elseif jase_save_surpassingly = 1 and "surpassingly" in desc
@setvar! saveItem 1
elseif jase_save_accurate = 1 and "accurate" in desc
@setvar! saveItem 1
elseif jase_save_vanquishing = 1 and "vanquishing" in desc
@setvar! saveItem 1
elseif jase_save_power = 1 and "power" in desc
@setvar! saveItem 1
elseif jase_save_force = 1 and "force" in desc
@setvar! saveItem 1
elseif jase_save_might = 1 and "might" in desc
@setvar! saveItem 1
elseif jase_save_ruin = 1 and "ruin" in desc
@setvar! saveItem 1
endif
if "unidentified" in desc
if skill "Item Identification" = 120
useskill "itemId"
wft 500
target messySourceContainer
wait 2000
@setvar! ignoreItem 0
elseif skill "Item Identification" >= 30
useskill "itemId"
wft 500
target item
wait 2000
@setvar! ignoreItem 0
endif
endif
if saveItem = 1
lift item
drop jase_Music_Storage -1 -1 -1
wait 650
endif
if ignoreItem = 1
@ignore item
endif
endwhile
# Armor list - will sort based on item desc
while findtype 5056|5059|5060|5061|5063|5070|5074|5075|5076|5078|5085|5089|5090|5101|5103|5105|5106|5129|5131|5132|5135|5138|5139|5142|5143|5144|5146|5201|5203|5204|5205|5207|7169|7170|7173|7175|7177|7179|7181|7610|7947|31003|31004|31005|31006|31007|31008|31009|31010|31011|31012|31015|31191 messySourceContainer as item
getlabel item desc
overhead "Item: {{desc}}" 88
@setvar! saveItem 0
@setvar! ignoreItem 1
if jase_save_invulnerability = 1 and "invulnerability" in desc
@setvar! saveItem 1
elseif jase_save_fortification = 1 and "fortification" in desc
@setvar! saveItem 1
elseif jase_save_hardening = 1 and "hardening" in desc
@setvar! saveItem 1
elseif jase_save_guarding = 1 and "guarding" in desc
@setvar! saveItem 1
elseif jase_save_defense = 1 and "defense" in desc
@setvar! saveItem 1
endif
if "unidentified" in desc
if skill "Item Identification" = 120
useskill "itemId"
wft 500
target messySourceContainer
wait 2000
@setvar! ignoreItem 0
elseif skill "Item Identification" >= 30
useskill "itemId"
wft 500
target item
wait 2000
@setvar! ignoreItem 0
endif
endif
if saveItem = 1
if "plate" in desc
@setvar! saveItem jase_Plate_Storage
elseif "chain" in desc
@setvar! saveItem jase_Chainmail_Storage
elseif "ring" in desc
@setvar! saveItem jase_Ringmail_Storage
elseif "bone" in desc
@setvar! saveItem jase_BoneLeather_Storage
elseif "studded" in desc
@setvar! saveItem jase_BoneLeather_Storage
elseif "leather" in desc
@setvar! saveItem jase_RegularLeather_Storage
endif
if saveItem = 1 or saveItem = 0
overhead "Unknown save location for {{desc}}" 34
endif
lift item
drop saveItem -1 -1 -1
wait 650
endif
if ignoreItem = 1
@ignore item
endif
endwhile
@clearignore