Oh, appreciate that. I finally got the script working for specific items on the floor, but hadn't tried tables, shelves, or altars. One thing I was attempting to do was to cover ALL items, but I've already run into issues with memory, heh.
Code: Select all
function getAllItems()
local allItems = {
-- Armor
"leather_cap", "leather_vest", "leather_pants", "leather_boots", "heavy_shield",
"light_shield", "tower_shield", "wooden_shield", "round_shield", "loincloth",
"loincloth_rags", "doublet", "peasant_tunic", "peasant_breeches", "peasant_shoes",
"plate_cuirass", "plate_gauntlets", "plate_greaves", "plate_boots", "ring_greaves",
"ring_cuirass", "ring_gauntlets", "ring_boots", "chitin_mail", "chitin_mask",
"chitin_greaves", "chitin_boots", "chitin_gauntlets", "chitin_cuirass", "meteor_greaves",
"meteor_cuirass", "meteor_gauntlets", "meteor_boots", "herder_cap", "herder_vest",
"assassin_dagger", "assassin_cloak", "assassin_hood", "assassin_pants", "assassin_shoes",
-- Consumables
"healing_potion", "energy_potion", "poison_potion", "firebomb", "frostbomb",
"shockbomb", "antivenom", "resurrection_potion", "speed_potion", "willpower_potion",
"vitality_potion", "protection_potion", "strength_potion", "shield_potion", "mana_potion",
"poison_bomb", "fire_bomb", "ice_bomb", "shock_bomb", "boiled_egg", "bread", "baked_bread",
"fish", "grilled_fish", "meat", "grilled_meat", "salted_sausage", "mole_jerky", "cheese",
"apple", "pear", "turtle_steak", "herder_cap", "herder_vest", "herder_breeches",
"herder_gloves", "herder_hood", "herder_cloak",
-- Miscellaneous
"torch", "rock", "scroll_fireburst", "scroll_fireball", "scroll_shock", "scroll_frostbolt",
"scroll_poison_cloud", "scroll_frostburst", "scroll_invisibility", "scroll_lightning_bolt",
"scroll_light", "scroll_darkness", "scroll_protection", "scroll_shield", "scroll_vitality",
"scroll_energy", "scroll_healing", "scroll_mirror", "scroll_poison_shield", "scroll_fire_shield",
"scroll_shock_shield", "scroll_frost_shield", "scroll_open", "scroll_teleport", "scroll_rejuvenation",
"scroll_regen", "scroll_resurrect", "scroll_disintegrate", "scroll_summon", "scroll_cure", "scroll_fear",
"scroll_stone", "scroll_air", "scroll_earth", "scroll_metal", "scroll_mind", "scroll_poison",
"scroll_spirit", "scroll_strength", "scroll_time", "scroll_water", "scroll_spellbook",
"scroll_magic_missile", "scroll_protection", "scroll_mirror", "scroll_spell_healing",
"scroll_spell_protection", "scroll_spell_strength", "scroll_spell_energy", "scroll_spell_light",
"scroll_spell_invisibility", "scroll_spell_lightning", "scroll_spell_fireball", "scroll_spell_frostbolt",
"scroll_spell_shock", "scroll_spell_ice", "scroll_spell_earth", "scroll_spell_air", "scroll_spell_water",
"scroll_spell_mind", "scroll_spell_metal", "scroll_spell_spirit", "scroll_spell_poison",
"scroll_spell_stone", "scroll_spell_strength", "scroll_spell_protection", "scroll_spell_energy",
"scroll_spell_shield", "scroll_spell_poison_shield", "scroll_spell_fire_shield", "scroll_spell_shock_shield",
"scroll_spell_frost_shield", "scroll_spell_invisibility", "scroll_spell_teleport", "scroll_spell_fear",
"scroll_spell_cure", "scroll_spell_regen", "scroll_spell_rejuvenation", "scroll_spell_resurrect",
"scroll_spell_disintegrate", "scroll_spell_summon", "scroll_spell_open", "scroll_spell_mirror",
"scroll_spell_air", "scroll_spell_earth", "scroll_spell_energy", "scroll_spell_fire", "scroll_spell_frost",
"scroll_spell_light", "scroll_spell_lightning", "scroll_spell_poison", "scroll_spell_shock",
"scroll_spell_stone", "scroll_spell_time", "scroll_spell_water", "crystal_shard_healing",
"crystal_shard_recharging", "crystal_shard_protection", "golden_orb", "blue_gem", "green_gem",
"red_gem", "key_iron", "key_bronze", "key_silver", "key_gold", "key_brass", "key_copper",
"key_skeleton", "compass", "shovel", "lock_pick", "rope", "map", "mortar_and_pestle",
"flute", "lyre", "crystal_flask", "tar_bead", "blooddrop_cap", "blackmoss", "mudwort", "slime_bell",
"crystal_flask", "potion_healing", "potion_energy", "potion_poison", "potion_speed", "potion_shield",
"potion_fire_shield", "potion_frost_shield", "potion_shock_shield", "potion_poison_shield",
"broadhead_arrow", "crossbow_quarrel",
-- Weapons
"dagger", "knife", "fist_dagger", "rapier", "short_sword", "cutlass", "serpent_blade",
"scimitar", "long_sword", "great_sword", "battle_axe", "hand_axe", "two_handed_axe",
"machete", "cleaver", "shuriken", "throwing_knife", "throwing_axe", "spear", "icefall_hammer",
"mace", "flail", "morning_star", "quarterstaff", "staff", "mage_staff", "necromancer_staff",
"fire_blade", "lightning_blade", "venom_edge", "bone_blade", "sky_pillar", "ancient_shuriken",
"lightning_bow", "longbow", "composite_bow", "crossbow", "hand_cannon", "musket"
}
return allItems
end