[UOSteam] Alamiester's Chest Cleaner v0.9

Discussion about the technical aspects of scripting. Ask about all issues involving your freelance projects here.
Post Reply
Alamiester
Legendary Scribe
Posts: 268
Joined: Wed Jan 04, 2017 8:49 pm

[UOSteam] Alamiester's Chest Cleaner v0.9

Post by Alamiester »

Code: Select all

//Alamiester's Chest Cleaner v0.6//
//30July2017

unsetalias 'Chest'
if not @findobject 'Chest'
  promptalias 'Chest'
endif
@removelist 'Loot'
@removelist 'Ammo'
@removelist 'Gems'
@removelist 'Regs'
@removelist 'Armor'
@removelist 'Weapons'
@removelist 'Scrolls'
@removelist 'Jewelry'
@removelist 'Tools'
@removelist 'Potions'
@removelist 'Trash'
////// Select Bags //////
if not @findobject 'AmmoBag'
  headmsg 'Select a bag for Ammo'
  promptalias 'AmmoBag'
endif
if not @findobject 'GemBag'
  headmsg 'Select a bag for Gems'
  promptalias 'GemBag'
endif
if not @findobject 'RegBag'
  headmsg 'Select a bag for Reagents'
  promptalias 'RegBag'
endif
if not @findobject 'ArmorBag'
  headmsg 'Select a bag for Armor'
  promptalias 'ArmorBag'
endif
if not @findobject 'WeapBag'
  headmsg 'Select a bag for Weapons'
  promptalias 'WeapBag'
endif
if not @findobject 'ScrollBag'
  headmsg 'Select a bag for Scrolls'
  promptalias 'ScrollBag'
endif
if not @findobject 'JewBag'
  headmsg 'Select a bag for Jewelry'
  promptalias 'JewBag'
endif
if not @findobject 'ToolBag'
  headmsg 'Select a bag for Tools'
  promptalias 'ToolBag'
endif
if not @findobject 'PotBag'
  headmsg 'Select a bag for Potions'
  promptalias 'PotBag'
endif
if not @findobject 'TrashBag'
  headmsg 'Select a bag for Trash'
  promptalias 'TrashBag'
endif
/// Create item lists ///
if not listexists 'Loot'
  createlist 'Loot'
endif
if not listexists 'Ammo'
  createlist 'Ammo'
endif
if not listexists 'Gems'
  createlist 'Gems'
endif
if not listexists 'Regs'
  createlist 'Regs'
endif
if not listexists 'Armor'
  createlist 'Armor'
endif
if not listexists 'Weapons'
  createlist 'Weapons'
endif
if not listexists 'Scrolls'
  createlist 'Scrolls'
endif
if not listexists 'Jewelry'
  createlist 'Jewelry'
endif
if not listexists 'Tools'
  createlist 'Tools'
endif
if not listexists 'Potions'
  createlist 'Potions'
endif
if not listexists 'Trash'
  createlist 'Trash'
endif
pause 2500
////// Identify items in lists //////
////// Loot List //////
@pushlist 'Loot' 0x14ec // Treasure Map
@pushlist 'Loot' 0xe24  // Ointments
@pushlist 'Loot' 0xeed  // Gold
////// Ammo List //////
@pushlist 'Ammo' 0xf3f  //Arrows
@pushlist 'Ammo' 0x1bfb //Crossbow Bolt
////// Gems List //////
@pushlist 'Gems' 0xf10 // Emerald
@pushlist 'Gems' 0xf13 // Ruby
@pushlist 'Gems' 0xf15 // Citrine
@pushlist 'Gems' 0xf16 // Amethyst
@pushlist 'Gems' 0xf19 // Sapphire
@pushlist 'Gems' 0xf21 // Star Sapphire
@pushlist 'Gems' 0xf25 // Amber
@pushlist 'Gems' 0xf26 // Diamond
@pushlist 'Gems' 0xf2d // Tourmaline
////// Regs List //////
@pushlist 'Regs' 0xf7a // Black Pearl
@pushlist 'Regs' 0xf7b // Blood Moss
@pushlist 'Regs' 0xf7d // Daemon Blood
@pushlist 'Regs' 0xf78 // Batwing
@pushlist 'Regs' 0xf84 // Garlic
@pushlist 'Regs' 0xf85 // Ginseng
@pushlist 'Regs' 0xf86 // Mandrake Root
@pushlist 'Regs' 0xf88 // Nightshade
@pushlist 'Regs' 0xf8a // Pig Iron
@pushlist 'Regs' 0xf8c // Sulphurous Ash
@pushlist 'Regs' 0xf8d // Spider's Silk
@pushlist 'Regs' 0xf8f // Grave Dust
@pushlist 'Regs' 0xf8e // Nox Crystal
////// Armor Lists //////
////// Shields //////
@pushlist 'Armor' 0x1b72 // Bronze Shield
@pushlist 'Armor' 0x1b73
@pushlist 'Armor' 0x1b74 // Metal Kite Shield
@pushlist 'Armor' 0x1b76 // Heater Shield
@pushlist 'Armor' 0x1b79 // Tear Kite Shield
@pushlist 'Armor' 0x1b7a // Wooden Shield
@pushlist 'Armor' 0x1b7b  // Metal Shield
////// Platemail //////
@pushlist 'Armor' 0x140a // Helmet
@pushlist 'Armor' 0x140c // Bascinet
@pushlist 'Armor' 0x140e // Norse Helm
@pushlist 'Armor' 0x1408 // Close Helmet
@pushlist 'Armor' 0x1410 // Platemail Arms
@pushlist 'Armor' 0x1411 // Platemail Legs
@pushlist 'Armor' 0x1412 // Plate Helm
@pushlist 'Armor' 0x1413 // Plate Gorget
@pushlist 'Armor' 0x1414 // Platemail Gloves
@pushlist 'Armor' 0x1415 // Plate Chest
////// Chainmail //////
@pushlist 'Armor' 0x13bb // Chainmail Coif
@pushlist 'Armor' 0x13be // Chainmail Leggins
@pushlist 'Armor' 0x13bf // Chainmail Tunic
////// Ringmail //////
@pushlist 'Armor' 0x13eb // Ringmail Gloves
@pushlist 'Armor' 0x13ec // Ringmail Tunic
@pushlist 'Armor' 0x13ee // Ringmail Sleeves
@pushlist 'Armor' 0x13f0 // Ringmail Leggins
////// Studded //////
@pushlist 'Armor' 0x13d5 // Studded Gloves
@pushlist 'Armor' 0x13d6 // Studded Gorget
@pushlist 'Armor' 0x13da // Studded Leggings
@pushlist 'Armor' 0x13db // Studded Tunic
@pushlist 'Armor' 0x13dc // Studded Sleeves
////// Leather //////
@pushlist 'Armor' 0x13c6 // Leather Gloves
@pushlist 'Armor' 0x13c7 // Leather Gorget
@pushlist 'Armor' 0x13cb // Leather Pants
@pushlist 'Armor' 0x13cc // Leather Tunic
@pushlist 'Armor' 0x13cd // Leather Sleeves
@pushlist 'Armor' 0x1db9 // Leather Cap
///// Female Armor /////
@pushlist 'Armor' 0x1c00 // Female Leather Shorts
@pushlist 'Armor' 0x1c0a // Female Leather Bustier
@pushlist 'Armor' 0x1c0c // Female Studded Bustier
@pushlist 'Armor' 0x1c02 // Female Studded Armor
@pushlist 'Armor' 0x1c04 // Female Plate
@pushlist 'Armor' 0x1c06 // Female Leather Armor
@pushlist 'Armor' 0x1c08 // Female Leather Skirt
////// Bone //////
@pushlist 'Armor' 0x144e // Bone Sleeves
@pushlist 'Armor' 0x144f // Bone Tunic
@pushlist 'Armor' 0x1450 // Bone Glove
@pushlist 'Armor' 0x1451 // Bone Helmet
@pushlist 'Armor' 0x1452 // Bone Legs
///// Weapons Lists /////
@pushlist 'Weapons' 0xf43
@pushlist 'Weapons' 0xec4 // Skinning Knife
///// Swordsmanship /////
@pushlist 'Weapons' 0xf4b // Double Axe
@pushlist 'Weapons' 0xf4d // Bardiche
@pushlist 'Weapons' 0xf5e  // Broadsword
@pushlist 'Weapons' 0xf61
@pushlist 'Weapons' 0xec3  //Cleaver
@pushlist 'Weapons' 0x13b6 // Scimitar
@pushlist 'Weapons' 0x13b9 // Viking Sword
@pushlist 'Weapons' 0x13fb // Large Battle Axe
@pushlist 'Weapons' 0x13ff
@pushlist 'Weapons' 0x143e // Halbred
@pushlist 'Weapons' 0x1441 // Cutlass
@pushlist 'Weapons' 0x1443 // Two Handed Axe
@pushlist 'Weapons' 0x26ba // Scythe
@pushlist 'Weapons' 0x26bb // Bone Harvester
@pushlist 'Weapons' 0x26bd // Bladed Staff
@pushlist 'Weapons' 0x26c1 // Crescent Blade
////// Fencing //////
@pushlist 'Weapons' 0xe87  //Pitchfork
@pushlist 'Weapons' 0xf52 // Dagger
@pushlist 'Weapons' 0xf62
@pushlist 'Weapons' 0x1401
@pushlist 'Weapons' 0x1403 // Short Spear
@pushlist 'Weapons' 0x1405 // War Fork
@pushlist 'Weapons' 0x26be // Pike
@pushlist 'Weapons' 0x26bf // Double Bladed Staff
@pushlist 'Weapons' 0x26c0 // Lance
////// Archery //////
@pushlist 'Weapons' 0xf50  // Crossbow
@pushlist 'Weapons' 0x13b2 // Bow
@pushlist 'Weapons' 0x13fd // Heavy Crossbow
@pushlist 'Weapons' 0x26c2 // Composite Bow
@pushlist 'Weapons' 0x26c3 // Repeating Crossbow
////// Maces //////
@pushlist 'Weapons' 0xdf0  // Black Staff
@pushlist 'Weapons' 0xe81  // Shepherd's Crook
@pushlist 'Weapons' 0xe89  // Quarter Staff
@pushlist 'Weapons' 0xf5c  // Mace
@pushlist 'Weapons' 0x13b0 // War Axe
@pushlist 'Weapons' 0x13b4
@pushlist 'Weapons' 0x13f8 // Gnarled Staff
@pushlist 'Weapons' 0x1407 // War Mace
@pushlist 'Weapons' 0x1439 // War Hammer
@pushlist 'Weapons' 0x143b // Maul
@pushlist 'Weapons' 0x143d // Hammer Pick
@pushlist 'Weapons' 0x26bc // Scepter
///// Scrolls List /////
@pushlist 'Scrolls' 0x1f2d // Reactive Armor
@pushlist 'Scrolls' 0x1f2e // Clumsy
@pushlist 'Scrolls' 0x1f2f // Create Food
@pushlist 'Scrolls' 0x1f30 // Feeblemind
@pushlist 'Scrolls' 0x1f31 // Heal
@pushlist 'Scrolls' 0x1f32 // Magic Arrow
@pushlist 'Scrolls' 0x1f33 // Night Sight
@pushlist 'Scrolls' 0x1f34 // Weaken
@pushlist 'Scrolls' 0x1f35 // Agility
@pushlist 'Scrolls' 0x1f36 // Cunning
@pushlist 'Scrolls' 0x1f37 // Cure
@pushlist 'Scrolls' 0x1f38 // Harm
@pushlist 'Scrolls' 0x1f39 // Magic Trap
@pushlist 'Scrolls' 0x1f3a // Magic Untrap
@pushlist 'Scrolls' 0x1f3b // Protection
@pushlist 'Scrolls' 0x1f3c // Strength
@pushlist 'Scrolls' 0x1f3d // Bless
@pushlist 'Scrolls' 0x1f3e // Fireball
@pushlist 'Scrolls' 0x1f3f // Magic Lock
@pushlist 'Scrolls' 0x1f40 // Poison
@pushlist 'Scrolls' 0x1f41 // Telekinesis
@pushlist 'Scrolls' 0x1f42 // Teleport
@pushlist 'Scrolls' 0x1f43 // Unlock
@pushlist 'Scrolls' 0x1f44 // Wall of Stone
@pushlist 'Scrolls' 0x1f45 // Arch Cure
@pushlist 'Scrolls' 0x1f46 // Arch Protection
@pushlist 'Scrolls' 0x1f47 // Curse
@pushlist 'Scrolls' 0x1f48 // Fire Field
@pushlist 'Scrolls' 0x1f49 // Greater Heal
@pushlist 'Scrolls' 0x1f4a // Lightning
@pushlist 'Scrolls' 0x1f4b // Mana Drain
@pushlist 'Scrolls' 0x1f4c // Recall
@pushlist 'Scrolls' 0x1f4d // Blade Spirit
@pushlist 'Scrolls' 0x1f4e // Dispel Field
@pushlist 'Scrolls' 0x1f4f // Incognito
@pushlist 'Scrolls' 0x1f50 // Magic Reflection
@pushlist 'Scrolls' 0x1f51 // Mind Blast
@pushlist 'Scrolls' 0x1f52 // Paralyze
@pushlist 'Scrolls' 0x1f53 // Poison Field
@pushlist 'Scrolls' 0x1f54 // Summon Creature
@pushlist 'Scrolls' 0x1f55 // Dispel
@pushlist 'Scrolls' 0x1f56 // Energy Bolt
@pushlist 'Scrolls' 0x1f57 // Explosion
@pushlist 'Scrolls' 0x1f58 // Invisibility
@pushlist 'Scrolls' 0x1f59 // Mark
@pushlist 'Scrolls' 0x1f5a // Mass Curse
@pushlist 'Scrolls' 0x1f5b // Paralyze Field
@pushlist 'Scrolls' 0x1f5c // Reveal
@pushlist 'Scrolls' 0x1f5d // Chain Lightning
@pushlist 'Scrolls' 0x1f5e // Energy Field
@pushlist 'Scrolls' 0x1f5f // Flamestrike
@pushlist 'Scrolls' 0x1f60 // Gate Travel
@pushlist 'Scrolls' 0x1f61 // Mana Vampire
@pushlist 'Scrolls' 0x1f62 // Mass Dispel
@pushlist 'Scrolls' 0x1f63 // Meteor Swarm
@pushlist 'Scrolls' 0x1f64 // Polymorph
@pushlist 'Scrolls' 0x1f65 // Earthquake
@pushlist 'Scrolls' 0x1f66 // Energy Vortex
@pushlist 'Scrolls' 0x1f67 // Ressurrection
@pushlist 'Scrolls' 0x1f68 // Summon Air Elemental
@pushlist 'Scrolls' 0x1f69 // Summon Daemon
@pushlist 'Scrolls' 0x1f6a // Summon Earth Elemental
@pushlist 'Scrolls' 0x1f6b // Summon Fire Elemental
@pushlist 'Scrolls' 0x1f6c // Summon Water Elemental
@pushlist 'Scrolls' 0xef3 // Blank Scrolls
////// Jewelry List /////
@pushlist 'Jewelry' 0x1086
@pushlist 'Jewelry' 0x108a
@pushlist 'Jewelry' 0x1f06
@pushlist 'Jewelry' 0x1f09
////// Tool List //////
@pushlist 'Tools' 0xe86  // A Gargoyle's Pickaxe/Pickaxe/Executioner's Axe
@pushlist 'Tools' 0xf39  // Shovel
@pushlist 'Tools' 0xf43  // Hatchet
@pushlist 'Tools' 0xf45  // Gargoyles Axe
@pushlist 'Tools' 0xf47  // Battle Axe
@pushlist 'Tools' 0xf49  // A Sturdy Hatchet/Axe
@pushlist 'Tools' 0x13f6 // Gargoyles Knife
////// Potion List /////
@pushlist 'Potions' 0xf0a // A Lesser Poison Potion
@pushlist 'Potions' 0xf0b // A Refresh Potion
@pushlist 'Potions' 0xf0c // A Lesser Heal Potion
@pushlist 'Potions' 0xf07 // A Lesser Cure Potion
@pushlist 'Potions' 0xf08 // An Agility Potion
@pushlist 'Potions' 0xf09 // A Strength Potion
////// Trash List //////
@pushlist 'Trash' 0x1010
@pushlist 'Trash' 0x1f01 // Plain Dress
@pushlist 'Trash' 0x1f0b // Orc Helm
@pushlist 'Trash' 0x1f9f // Jester Suit
@pushlist 'Trash' 0x1515
@pushlist 'Trash' 0x1516 // Skirt
@pushlist 'Trash' 0x153b // Half Apron
@pushlist 'Trash' 0x1540
@pushlist 'Trash' 0x1544
@pushlist 'Trash' 0x1713
@pushlist 'Trash' 0x1714
@pushlist 'Trash' 0x1715
@pushlist 'Trash' 0x1716
@pushlist 'Trash' 0x1717
@pushlist 'Trash' 0x1718 // Wizard's Hat
@pushlist 'Trash' 0x1719
@pushlist 'Trash' 0x171a
@pushlist 'Trash' 0x171b
@pushlist 'Trash' 0x171c // Jester Hat
@pushlist 'Trash' 0x2306
@pushlist 'Trash' 0x2310 // Formal Shirt
//Start grabbing items from chest, walking away from chest will stop the script
useobject 'Chest'
pause 1000
////// Loot //////
for 0 to Loot
  if @inrange 'Chest' 2
    if @movetype Loot[] 'Chest' 'backpack' 'any' 'any' 'any'
      pause 1300
    endif
  endif
  if not @inrange 'Chest' '2'
    headmsg 'Stopping...'
    stop
  endif
endfor
////// Ammo //////
for 0 to Ammo
  if @inrange 'Chest' 2
    if @movetype Ammo[] 'Chest' 'AmmoBag' 'any' 'any' 'any'
      pause 500
      continue
    endif
  endif
  if not @inrange 'Chest' '2'
    headmsg 'Stopping...'
    stop
  endif
endfor
////// Gems //////
for 0 to Gems
  if @inrange 'Chest' 2
    if @movetype Gems[] 'Chest' 'GemBag' 'any' 'any' 'any'
      pause 1500
    endif
  endif
  if not @inrange 'Chest' '2'
    headmsg 'Stopping...'
    stop
  endif
endfor
////// Reagents //////
for 0 to Regs
  if @inrange 'Chest' 2
    if @movetype Regs[] 'Chest' 'RegBag'  'any' 'any' 'any'
      pause 1500
    endif
  endif
  if not @inrange 'Chest' '2'
    headmsg 'Stopping...'
    stop
  endif
endfor
////// Armor //////
for 0 to Armor
  if @inrange 'Chest' 2
    if @movetype Armor[] 'Chest' 'ArmorBag'
      pause 1500
    endif
  endif
  if not @inrange 'Chest' '2'
    headmsg 'Stopping...'
    stop
  endif
endfor
////// Weapons //////
for 0 to Weapons
  if @inrange 'Chest' 2
    if @movetype Weapons[] 'Chest' 'WeapBag'
      pause 1500
    endif
  endif
  if not @inrange 'Chest' '2'
    headmsg 'Stopping...'
    stop
  endif
endfor
////// Scrolls //////
for 0 to Scrolls
  if @inrange 'Chest' 2
    if @movetype Scrolls[] 'Chest' 'ScrollBag'  'any' 'any' 'any'
      pause 1500
      continue
    endif
  endif
  if not @inrange 'Chest' '2'
    headmsg 'Stopping...'
    stop
  endif
endfor
////// Jewelry //////
for 0 to Jewelry
  if @inrange 'Chest' 2
    if @movetype Jewelry[] 'Chest' 'JewBag'
      pause 500
      continue
    endif
  endif
  if not @inrange 'Chest' '2'
    headmsg 'Stopping...'
    stop
  endif
endfor
////// Tools //////
for 0 to Tools
  if @inrange 'Chest' 2
    if @movetype Tools[] 'Chest' 'ToolBag'
      pause 700
    endif
  endif
  if not @inrange 'Chest' '2'
    headmsg 'Stopping...'
    stop
  endif
endfor
////// Potions //////
for 0 to Potions
  if @inrange 'Chest' 2
    if @movetype Potions[] 'Chest' 'PotBag' 'any' 'any' 'any'
      pause 700
    endif
  endif
  if not @inrange 'Chest' '2'
    headmsg 'Stopping...'
    stop
  endif
endfor
////// Trash //////
for 0 to Trash
  if @inrange 'Chest' 2
    if @movetype Trash[] 'Chest' 'TrashBag'
      pause 800
    endif
  endif
  if not @inrange 'Chest' '2'
    headmsg 'Stopping...'
    stop
  endif
  unsetalias 'Chest'
endfor
msg 'Finished Cleaning Chest!'

Code: Select all

//Alamiester's Chest Cleaner v0.9//
//13DEC2017//
//i added in gargoyle tools,  and seperated them from the basic tools, that go into tool houses.  just in case someone doesnt want to collect the basic tools.//

unsetalias 'Chest'
if not @findobject 'Chest'
  promptalias 'Chest'
endif
pause 500
@removelist 'Loot'
@removelist 'Ammo'
@removelist 'Gems'
@removelist 'Regs'
@removelist 'Armor'
@removelist 'Weapons'
@removelist 'Scrolls'
@removelist 'Jewelry'
@removelist 'Tools'
@removelist 'GargTools'
@removelist 'Potions'
@removelist 'Trash'
////// Select Bags //////
if not @findobject 'AmmoBag'
  headmsg 'Select a bag for Ammo'
  promptalias 'AmmoBag'
endif
if not @findobject 'GemBag'
  headmsg 'Select a bag for Gems'
  promptalias 'GemBag'
endif
if not @findobject 'RegBag'
  headmsg 'Select a bag for Reagents'
  promptalias 'RegBag'
endif
if not @findobject 'ArmorBag'
  headmsg 'Select a bag for Armor'
  promptalias 'ArmorBag'
endif
if not @findobject 'WeapBag'
  headmsg 'Select a bag for Weapons'
  promptalias 'WeapBag'
endif
if not @findobject 'ScrollBag'
  headmsg 'Select a bag for Scrolls'
  promptalias 'ScrollBag'
endif
if not @findobject 'JewBag'
  headmsg 'Select a bag for Jewelry'
  promptalias 'JewBag'
endif
if not @findobject 'ToolBag'
  headmsg 'Select a bag for Tools'
  promptalias 'ToolBag'
endif
if not @findobject 'GargBag'
  headmsg 'Select a bag for Gargoyle Tools'
  promptalias 'GargBag'
endif
if not @findobject 'PotBag'
  headmsg 'Select a bag for Potions'
  promptalias 'PotBag'
endif
if not @findobject 'TrashBag'
  headmsg 'Select a bag for Trash'
  promptalias 'TrashBag'
endif
/// Create item lists ///
if not listexists 'Loot'
  createlist 'Loot'
endif
if not listexists 'Ammo'
  createlist 'Ammo'
endif
if not listexists 'Gems'
  createlist 'Gems'
endif
if not listexists 'Regs'
  createlist 'Regs'
endif
if not listexists 'Armor'
  createlist 'Armor'
endif
if not listexists 'Weapons'
  createlist 'Weapons'
endif
if not listexists 'Scrolls'
  createlist 'Scrolls'
endif
if not listexists 'Jewelry'
  createlist 'Jewelry'
endif
if not listexists 'Tools'
  createlist 'Tools'
endif
if not listexists 'GargTools'
  createlist 'GargTools'
endif
if not listexists 'Potions'
  createlist 'Potions'
endif
if not listexists 'Trash'
  createlist 'Trash'
endif
pause 200
////// Identify items in lists //////
////// Loot List //////
@pushlist 'Loot' 0x14ec // Treasure Map
@pushlist 'Loot' 0x1724 // Coconut
@pushlist 'Loot' 0x1725 // Coconut
@pushlist 'Loot' 0x1726 // Coconut
@pushlist 'Loot' 0xa25  // Lantern Of Souls
@pushlist 'Loot' 0xdca  // A Special Fishing Net
@pushlist 'Loot' 0xeed  // Gold
@pushlist 'Loot' 0xe24  // Ointments
////// Ammo List //////
@pushlist 'Ammo' 0xf3f  //Arrows
@pushlist 'Ammo' 0x1bfb //Crossbow Bolt
////// Gems List //////
@pushlist 'Gems' 0xf10 // Emerald
@pushlist 'Gems' 0xf13 // Ruby
@pushlist 'Gems' 0xf15 // Citrine
@pushlist 'Gems' 0xf16 // Amethyst
@pushlist 'Gems' 0xf19 // Sapphire
@pushlist 'Gems' 0xf21 // Star Sapphire
@pushlist 'Gems' 0xf25 // Amber
@pushlist 'Gems' 0xf26 // Diamond
@pushlist 'Gems' 0xf2d // Tourmaline
////// Regs List //////
@pushlist 'Regs' 0xef3 // Blank Scrolls
@pushlist 'Regs' 0xf7a // Black Pearl
@pushlist 'Regs' 0xf7b // Blood Moss
@pushlist 'Regs' 0xf7d // Daemon Blood
@pushlist 'Regs' 0xf78 // Batwing
@pushlist 'Regs' 0xf84 // Garlic
@pushlist 'Regs' 0xf85 // Ginseng
@pushlist 'Regs' 0xf86 // Mandrake Root
@pushlist 'Regs' 0xf88 // Nightshade
@pushlist 'Regs' 0xf8a // Pig Iron
@pushlist 'Regs' 0xf8c // Sulphurous Ash
@pushlist 'Regs' 0xf8d // Spider's Silk
@pushlist 'Regs' 0xf8e // Nox Crystal
@pushlist 'Regs' 0xf8f // Grave Dust
////// Armor Lists //////
////// Shields //////
@pushlist 'Armor' 0x1b72 // Bronze Shield
@pushlist 'Armor' 0x1b73 // Buckler
@pushlist 'Armor' 0x1b74 // Metal Kite Shield
@pushlist 'Armor' 0x1b76 // Heater Shield
@pushlist 'Armor' 0x1b79 // Tear Kite Shield
@pushlist 'Armor' 0x1b7a // Wooden Shield
@pushlist 'Armor' 0x1b7b // Metal Shield
////// Platemail //////
@pushlist 'Armor' 0x140a // Helmet
@pushlist 'Armor' 0x140c // Bascinet
@pushlist 'Armor' 0x140e // Norse Helm
@pushlist 'Armor' 0x1408 // Close Helmet
@pushlist 'Armor' 0x1410 // Platemail Arms
@pushlist 'Armor' 0x1411 // Platemail Legs
@pushlist 'Armor' 0x1412 // Plate Helm
@pushlist 'Armor' 0x1413 // Plate Gorget
@pushlist 'Armor' 0x1414 // Platemail Gloves
@pushlist 'Armor' 0x1415 // Plate Chest
////// Chainmail //////
@pushlist 'Armor' 0x13bb // Chainmail Coif
@pushlist 'Armor' 0x13be // Chainmail Leggins
@pushlist 'Armor' 0x13bf // Chainmail Tunic
////// Ringmail //////
@pushlist 'Armor' 0x13eb // Ringmail Gloves
@pushlist 'Armor' 0x13ec // Ringmail Tunic
@pushlist 'Armor' 0x13ee // Ringmail Sleeves
@pushlist 'Armor' 0x13f0 // Ringmail Leggins
////// Studded //////
@pushlist 'Armor' 0x13d5 // Studded Gloves
@pushlist 'Armor' 0x13d6 // Studded Gorget
@pushlist 'Armor' 0x13da // Studded Leggings
@pushlist 'Armor' 0x13db // Studded Tunic
@pushlist 'Armor' 0x13dc // Studded Sleeves
////// Leather //////
@pushlist 'Armor' 0x13c6 // Leather Gloves
@pushlist 'Armor' 0x13c7 // Leather Gorget
@pushlist 'Armor' 0x13cb // Leather Pants
@pushlist 'Armor' 0x13cc // Leather Tunic
@pushlist 'Armor' 0x13cd // Leather Sleeves
@pushlist 'Armor' 0x1db9 // Leather Cap
///// Female Armor /////
@pushlist 'Armor' 0x1c00 // Female Leather Shorts
@pushlist 'Armor' 0x1c0a // Female Leather Bustier
@pushlist 'Armor' 0x1c0c // Female Studded Bustier
@pushlist 'Armor' 0x1c02 // Female Studded Armor
@pushlist 'Armor' 0x1c04 // Female Plate
@pushlist 'Armor' 0x1c06 // Female Leather Armor
@pushlist 'Armor' 0x1c08 // Female Leather Skirt
////// Bone //////
@pushlist 'Armor' 0x144e // Bone Sleeves
@pushlist 'Armor' 0x144f // Bone Tunic
@pushlist 'Armor' 0x1450 // Bone Glove
@pushlist 'Armor' 0x1451 // Bone Helmet
@pushlist 'Armor' 0x1452 // Bone Legs
@pushlist 'Armor' 0x1f0b // Orc Helm
@pushlist 'Armor' 0x41cc1c1e // Orc Helm
@pushlist 'Armor' 0x41def200 // Orc Helm
///// Weapons Lists /////
//@pushlist 'Weapons' 0xf43
///// Swordsmanship /////
@pushlist 'Weapons' 0xf4b  // Double Axe
@pushlist 'Weapons' 0xf4d  // Bardiche
@pushlist 'Weapons' 0xf5e  // Broadsword
@pushlist 'Weapons' 0xf61  // Longsword
@pushlist 'Weapons' 0xec3  // Cleaver
@pushlist 'Weapons' 0xec4  // Skinning Knife
@pushlist 'Weapons' 0x13b6 // Scimitar
@pushlist 'Weapons' 0x13b9 // Viking Sword
@pushlist 'Weapons' 0x13f6 // Butcher Knife
@pushlist 'Weapons' 0x13fb // Large Battle Axe
@pushlist 'Weapons' 0x13ff // Katana
@pushlist 'Weapons' 0x143e // Halbred
@pushlist 'Weapons' 0x1441 // Cutlass
@pushlist 'Weapons' 0x26ba // Scythe
@pushlist 'Weapons' 0x26bb // Bone Harvester
@pushlist 'Weapons' 0x26bd // Bladed Staff
@pushlist 'Weapons' 0x26c1 // Crescent Blade
////// Fencing //////
@pushlist 'Weapons' 0xf52  // Dagger
@pushlist 'Weapons' 0xf62  // Spear
@pushlist 'Weapons' 0xe87  // Pitchfork
@pushlist 'Weapons' 0x1401 // Kryss
@pushlist 'Weapons' 0x1403 // Short Spear
@pushlist 'Weapons' 0x1405 // War Fork
@pushlist 'Weapons' 0x26be // Pike
@pushlist 'Weapons' 0x26bf // Double Bladed Staff
@pushlist 'Weapons' 0x26c0 // Lance
////// Archery //////
@pushlist 'Weapons' 0xf50  // Crossbow
@pushlist 'Weapons' 0x13b2 // Bow
@pushlist 'Weapons' 0x13fd // Heavy Crossbow
@pushlist 'Weapons' 0x26c2 // Composite Bow
@pushlist 'Weapons' 0x26c3 // Repeating Crossbow
////// Maces //////
@pushlist 'Weapons' 0xdf0  // Black Staff
@pushlist 'Weapons' 0xe81  // Shepherd's Crook
@pushlist 'Weapons' 0xe89  // Quarter Staff
@pushlist 'Weapons' 0xf5c  // Mace
@pushlist 'Weapons' 0x13b0 // War Axe
@pushlist 'Weapons' 0x13b4 // Club
@pushlist 'Weapons' 0x13f8 // Gnarled Staff
@pushlist 'Weapons' 0x1407 // War Mace
@pushlist 'Weapons' 0x1439 // War Hammer
@pushlist 'Weapons' 0x143b // Maul
@pushlist 'Weapons' 0x143d // Hammer Pick
@pushlist 'Weapons' 0x26bc // Scepter
///// Scrolls List /////
@pushlist 'Scrolls' 0x1f2d // Reactive Armor
@pushlist 'Scrolls' 0x1f2e // Clumsy
@pushlist 'Scrolls' 0x1f2f // Create Food
@pushlist 'Scrolls' 0x1f30 // Feeblemind
@pushlist 'Scrolls' 0x1f31 // Heal
@pushlist 'Scrolls' 0x1f32 // Magic Arrow
@pushlist 'Scrolls' 0x1f33 // Night Sight
@pushlist 'Scrolls' 0x1f34 // Weaken
@pushlist 'Scrolls' 0x1f35 // Agility
@pushlist 'Scrolls' 0x1f36 // Cunning
@pushlist 'Scrolls' 0x1f37 // Cure
@pushlist 'Scrolls' 0x1f38 // Harm
@pushlist 'Scrolls' 0x1f39 // Magic Trap
@pushlist 'Scrolls' 0x1f3a // Magic Untrap
@pushlist 'Scrolls' 0x1f3b // Protection
@pushlist 'Scrolls' 0x1f3c // Strength
@pushlist 'Scrolls' 0x1f3d // Bless
@pushlist 'Scrolls' 0x1f3e // Fireball
@pushlist 'Scrolls' 0x1f3f // Magic Lock
@pushlist 'Scrolls' 0x1f40 // Poison
@pushlist 'Scrolls' 0x1f41 // Telekinesis
@pushlist 'Scrolls' 0x1f42 // Teleport
@pushlist 'Scrolls' 0x1f43 // Unlock
@pushlist 'Scrolls' 0x1f44 // Wall of Stone
@pushlist 'Scrolls' 0x1f45 // Arch Cure
@pushlist 'Scrolls' 0x1f46 // Arch Protection
@pushlist 'Scrolls' 0x1f47 // Curse
@pushlist 'Scrolls' 0x1f48 // Fire Field
@pushlist 'Scrolls' 0x1f49 // Greater Heal
@pushlist 'Scrolls' 0x1f4a // Lightning
@pushlist 'Scrolls' 0x1f4b // Mana Drain
@pushlist 'Scrolls' 0x1f4c // Recall
@pushlist 'Scrolls' 0x1f4d // Blade Spirit
@pushlist 'Scrolls' 0x1f4e // Dispel Field
@pushlist 'Scrolls' 0x1f4f // Incognito
@pushlist 'Scrolls' 0x1f50 // Magic Reflection
@pushlist 'Scrolls' 0x1f51 // Mind Blast
@pushlist 'Scrolls' 0x1f52 // Paralyze
@pushlist 'Scrolls' 0x1f53 // Poison Field
@pushlist 'Scrolls' 0x1f54 // Summon Creature
@pushlist 'Scrolls' 0x1f55 // Dispel
@pushlist 'Scrolls' 0x1f56 // Energy Bolt
@pushlist 'Scrolls' 0x1f57 // Explosion
@pushlist 'Scrolls' 0x1f58 // Invisibility
@pushlist 'Scrolls' 0x1f59 // Mark
@pushlist 'Scrolls' 0x1f5a // Mass Curse
@pushlist 'Scrolls' 0x1f5b // Paralyze Field
@pushlist 'Scrolls' 0x1f5c // Reveal
@pushlist 'Scrolls' 0x1f5d // Chain Lightning
@pushlist 'Scrolls' 0x1f5e // Energy Field
@pushlist 'Scrolls' 0x1f5f // Flamestrike
@pushlist 'Scrolls' 0x1f60 // Gate Travel
@pushlist 'Scrolls' 0x1f61 // Mana Vampire
@pushlist 'Scrolls' 0x1f62 // Mass Dispel
@pushlist 'Scrolls' 0x1f63 // Meteor Swarm
@pushlist 'Scrolls' 0x1f64 // Polymorph
@pushlist 'Scrolls' 0x1f65 // Earthquake
@pushlist 'Scrolls' 0x1f66 // Energy Vortex
@pushlist 'Scrolls' 0x1f67 // Ressurrection
@pushlist 'Scrolls' 0x1f68 // Summon Air Elemental
@pushlist 'Scrolls' 0x1f69 // Summon Daemon
@pushlist 'Scrolls' 0x1f6a // Summon Earth Elemental
@pushlist 'Scrolls' 0x1f6b // Summon Fire Elemental
@pushlist 'Scrolls' 0x1f6c // Summon Water Elemental
////// Jewelry List /////
@pushlist 'Jewelry' 0x1086
@pushlist 'Jewelry' 0x108a
@pushlist 'Jewelry' 0x1f06
@pushlist 'Jewelry' 0x1f09
////// Tool List //////
@pushlist 'Tools' 0xe86  // Pickaxe (Mining)
@pushlist 'Tools' 0xf39  // Shovel (Mining)
@pushlist 'Tools' 0xf43  // Hatchet (Lumberjacking)
@pushlist 'Tools' 0xf45  // An Executioners Axe (Lumberjacking)
@pushlist 'Tools' 0xf47  // Battle Axe (Lumberjacking)
@pushlist 'Tools' 0xf49  // Axe (Lumberjacking)
@pushlist 'Tools' 0x1443 // Two Handed Axe (Lumberjacking)
////// Gargoyles Tool List //////
@pushlist 'GargTools' 0xe86  // A Gargoyle's Pickaxe (Mining)
@pushlist 'GargTools' 0xf45  // Gargoyles Axe (Lumberjacking)
@pushlist 'GargTools' 0xf49  // A Sturdy Hatchet (Lumberjacking)
@pushlist 'GargTools' 0x13f6 // Gargoyles Knife (Tailoring)
////// Potion List /////
@pushlist 'Potions' 0xf0a // A Lesser Poison Potion
@pushlist 'Potions' 0xf0b // A Refresh Potion
@pushlist 'Potions' 0xf0c // A Lesser Heal Potion
@pushlist 'Potions' 0xf07 // A Lesser Cure Potion
@pushlist 'Potions' 0xf08 // An Agility Potion
@pushlist 'Potions' 0xf09 // A Strength Potion
////// Trash List //////
//@pushlist 'Trash' 0x1010
@pushlist 'Trash' 0x1efd // Fancy Shirt
@pushlist 'Trash' 0x1f00 // Fancy Dress
@pushlist 'Trash' 0x1f01 // Plain Dress
@pushlist 'Trash' 0x1f9f // Jester Suit
@pushlist 'Trash' 0x1f03 // Robe
@pushlist 'Trash' 0x1515 // Cloak
@pushlist 'Trash' 0x1516 // Skirt
@pushlist 'Trash' 0x1517 // Shirt
@pushlist 'Trash' 0x152e // Short Pants
@pushlist 'Trash' 0x153b // Half Apron
@pushlist 'Trash' 0x1537 // Kilt
@pushlist 'Trash' 0x1539 // Long Pants
//@pushlist 'Trash' 0x1540
@pushlist 'Trash' 0x1544 // Skullcap
@pushlist 'Trash' 0x170b // Boots
@pushlist 'Trash' 0x170f // Shoes
@pushlist 'Trash' 0x170d // Sandals
@pushlist 'Trash' 0x1711 // Thigh Boots
//@pushlist 'Trash' 0x1713
//@pushlist 'Trash' 0x1714
@pushlist 'Trash' 0x1715 // Cap
//@pushlist 'Trash' 0x1716
//@pushlist 'Trash' 0x1717
@pushlist 'Trash' 0x1718 // Wizard's Hat
//@pushlist 'Trash' 0x1719
//@pushlist 'Trash' 0x171a
@pushlist 'Trash' 0x171b // Tricorne hat
@pushlist 'Trash' 0x171c // Jester Hat
@pushlist 'Trash' 0x2306 // Flower Garland
@pushlist 'Trash' 0x2310 // Formal Shirt
//Start grabbing items from chest, walking away from chest will stop the script
useobject 'Chest'
pause 500
////// Loot //////
for 0 to Loot
  if @inrange 'Chest' 2
    if @movetype Loot[] 'Chest' 'backpack' 'Any' 'Any' 'Any'
      pause 100
    endif
  endif
  if not @inrange 'Chest' '2'
    headmsg 'Stopping...'
    stop
  endif
  sysmsg 'Cleaning Loot' 12
  pause 100
endfor
pause 100
////// Ammo //////
for 0 to Ammo
  if @inrange 'Chest' 2
    if @movetype Ammo[] 'Chest' 'AmmoBag' 'Any' 'Any' 'Any'
      //      pause 500
      continue
    endif
  endif
  if not @inrange 'Chest' '2'
    headmsg 'Stopping...'
    stop
  endif
  sysmsg 'Cleaning Ammo' 12
  pause 100
endfor
pause 100
////// Gems //////
for 2 to Gems
  if @inrange 'Chest' 2
    if @movetype! Gems[] 'Chest' 'GemBag' 'Any' 'Any' 'Any'
      pause 100
    endif
  endif
  if not @inrange 'Chest' '2'
    headmsg 'Stopping...'
    stop
  endif
  sysmsg 'Cleaning Gems' 12
  pause 100
endfor
pause 100
////// Reagents //////
for 2 to Regs
  if @inrange 'Chest' 2
    if @movetype! Regs[] 'Chest' 'RegBag'  'Any' 'Any' 'Any'
      pause 100
    endif
  endif
  if not @inrange 'Chest' '2'
    headmsg 'Stopping...'
    stop
  endif
  sysmsg 'Cleaning Reagents' 12
  pause 100
endfor
pause 100
////// Armor //////
for 2 to Armor
  if @inrange 'Chest' 2
    if @movetype Armor[] 'Chest' 'ArmorBag' 'Any' 'Any' 'Any'
      //      pause 1000
    endif
  endif
  if not @inrange 'Chest' '2'
    headmsg 'Stopping...'
    stop
  endif
  sysmsg 'Cleaning Armor' 12
  pause 100
endfor
pause 100
////// Weapons //////
for 2 to Weapons
  if @inrange 'Chest' 2
    if @movetype Weapons[] 'Chest' 'WeapBag' 'Any' '0' 'Any'
      //      pause 1000
    endif
  endif
  if not @inrange 'Chest' '2'
    headmsg 'Stopping...'
    stop
  endif
  sysmsg 'Cleaning Weapons' 12
  pause 100
endfor
pause 100
////// Scrolls //////
for 2 to Scrolls
  if @inrange 'Chest' 2
    if @movetype! Scrolls[] 'Chest' 'ScrollBag'  '0' '999' '0'
      pause 100
    endif
  endif
  if not @inrange 'Chest' '2'
    headmsg 'Stopping...'
    stop
  endif
  sysmsg 'Cleaning Scrolls' 12
  pause 100
endfor
pause 100
////// Jewelry //////
for 2 to Jewelry
  if @inrange 'Chest' 2
    if @movetype Jewelry[] 'Chest' 'JewBag' 'Any' 'Any' 'Any'
      //      pause 1000
    endif
  endif
  if not @inrange 'Chest' '2'
    headmsg 'Stopping...'
    stop
  endif
  sysmsg 'Cleaning Jewelry' 12
  pause 100
endfor
pause 100
////// Tools //////
for 1 to Tools
  if @inrange 'Chest' 2
    if @movetype Tools[] 'Chest' 'ToolBag' 'Any' '0' 'Any'
      //      pause 700
    endif
  endif
  if not @inrange 'Chest' '2'
    headmsg 'Stopping...'
    stop
  endif
  sysmsg 'Cleaning Tools' 12
  pause 100
endfor
pause 100
////// Gargoyle Tools //////
for 1 to GargTools
  if @inrange 'Chest' 2
    if @movetype GargTools[] 'Chest' 'GargBag' 'Any' '2419' 'Any'
      //      pause 700
    endif
  endif
  if not @inrange 'Chest' '2'
    headmsg 'Stopping...'
    stop
  endif
  sysmsg 'Cleaning Gargoyle Tools' 12
  pause 100
endfor
pause 100
////// Potions //////
for 2 to Potions
  if @inrange 'Chest' 2
    if @movetype Potions[] 'Chest' 'PotBag' 'Any' 'Any' 'Any'
      //      pause 700
    endif
  endif
  if not @inrange 'Chest' '2'
    headmsg 'Stopping...'
    stop
  endif
  sysmsg 'Cleaning Potions' 12
  pause 100
endfor
pause 100
////// Trash //////
for 1 to Trash
  if @inrange 'Chest' 2
    if @movetype Trash[] 'Chest' 'TrashBag' 'Any' '0' 'Any'
      //      pause 700
    endif
  endif
  if not @inrange 'Chest' '2'
    headmsg 'Stopping...'
    stop
  endif
  sysmsg 'Cleaning Trash' 12
  pause 100
endfor
pause 100
msg 'Finished Cleaning Chest!'
Last edited by Alamiester on Wed Jan 16, 2019 7:46 pm, edited 5 times in total.
BobS
Passer by
Posts: 2
Joined: Fri Jan 11, 2019 3:42 pm

Re: [UOSteam] Alamiester's Chest Cleaner v0.7

Post by BobS »

Hi, Is there a link I can use to get the script? I have been using it and it works well, had some PC issues and lost it.

Thansk
BobS
Passer by
Posts: 2
Joined: Fri Jan 11, 2019 3:42 pm

Re: [UOSteam] Alamiester's Chest Cleaner v0.7

Post by BobS »

Found a link
User avatar
Xavian
Legendary Scribe
Posts: 485
Joined: Sun Dec 25, 2011 4:09 pm

Re: [UOSteam] Alamiester's Chest Cleaner v0.7

Post by Xavian »

Going to share with the rest of us?
Luna
Journeyman Scribe
Posts: 29
Joined: Tue Dec 05, 2017 6:32 am

Re: [UOSteam] Alamiester's Chest Cleaner v0.7

Post by Luna »

I can help out with an EasyUO one only. If you only want to clean ONE chest per run you have to replace the line that says "goto start" with "halt"

Code: Select all

display ok Click bag to empty
start:
set #TargCurs 1
gs_waitforclick:
if #targcurs = 1
  goto gs_waitforclick

set %bag #lTargetID
gosub OpenBagAt 1024 768 %bag
finditem * C_ , %bag
while #FINDCNT > 0
{
  for #FINDINDEX 1 #FINDCNT
  {
    exevent drag #FINDID #FINDSTACK
    wait 7
    exevent dropc #BACKPACKID
    wait 3
  }
  finditem * C_ , %bag
}
event sysmessage next bag!
goto start

sub OpenBagAt
{
  set %temp %3
  gosub OpenAt %1 %2
  gosub OpenBag %temp
  return
}

sub OpenAt
{
  set #NEXTCPOSX %1
  set #NEXTCPOSY %2
  return
}

sub OpenBag
{
  set #lObjectID %1
  event macro 17
  wait 16
  return
}
Quick and dirty
Alamiester
Legendary Scribe
Posts: 268
Joined: Wed Jan 04, 2017 8:49 pm

Re: [UOSteam] Alamiester's Chest Cleaner v0.7

Post by Alamiester »

ahh, fergot, i Stopped updating it. i can repost it, but i wont be updating anymore. i dont have access to the newest version. but this ones pretty close.
Alamiester
Legendary Scribe
Posts: 268
Joined: Wed Jan 04, 2017 8:49 pm

Re: [UOSteam] Alamiester's Chest Cleaner v0.9

Post by Alamiester »

heres the latest one i was messing with, i included output text so i could see what its looking for while waiting since it takes awhile to clean out a big chest. you can point gems to your gem bag when it asks where to put them. i usually put the armor and weapons in the trash for tokens bag. make sure you can hold all the items and weight. works on every type of chest i could find.
Post Reply