show_more = false explore_auto_rest = false more += Training target more += Transformation is almost over { local need_skills_opened = true function ready() if you.race() ~= "Gnoll" and you.turns() == 0 and need_skills_opened then need_skills_opened = false crawl.sendkeys("m") end end local aft = false function toggle_autothrow() if aft then crawl.setopt("autofight_throw = false") crawl.mpr("Autofight_throw is off.") else crawl.setopt("autofight_throw = true") crawl.mpr("Autofight_throw is on.") end aft = not aft end add_autopickup_func(function(it, name) local class = it.class(true) local armour_slots = {cloak="Cloak", helmet="Helmet", gloves="Gloves", boots="Boots", body="Armour", shield="Shield"} if it.is_useless then return false end if class == "armour" then sub_type = it.subtype() equipped_item = items.equipped_at(armour_slots[sub_type]) if (sub_type == "cloak") or (sub_type == "helmet") or (sub_type == "gloves") or (sub_type == "boots") then return not equipped_item or it.artefact or it.branded or it.ego end if sub_type == "body" then if equipped_item then local armourname = equipped_item.name() if equipped_item.artefact or equipped_item.branded or equipped_item.ego or (equipped_item.plus > 2) or armourname:find("dragon") then return it.artefact else return it.artefact or it.branded or it.ego end end return true end if sub_type == "shield" then if equipped_item then return it.artefact or it.branded or it.ego end end return false end if class == "weaponX" then local weapon = items.equipped_at("Weapon") if weapon then if (weapon.branded or weapon.artefact or weapon.name():find("staff of")) then return false else local name = weapon.name() local sb = you.skill("Short Blades") local lb = you.skill("Long Blades") local axe = you.skill("Axes") local mf = you.skill("Maces & Flails") local pole = you.skill("Polearms") local staff = you.skill("Staves") if sb > 6 then if name:find("quick blade") then return true end end if lb > 8 then if name:find("demon blade") then return true end if name:find("double sword") then return true end end if lb > 14 then if name:find("triple sword") then return true end end if axe > 8 and mf <= 8 then if name:find("battleaxe") then return true end if name:find("broad axe") then return true end if name:find("executioner") then return true end end if axe > 18 then if name:find("executioner") then return true end end if mf > 8 and staff <= 8 and axe <= 8 then if name:find("eveningstar") then return true end if name:find("demon whip") then return true end if name:find("sacred scourge") then return true end end if mf > 14 and staff <= 14 and axe <= 14 then if name:find("great mace") then return true end end if pole > 8 and staff <= 8 then if name:find("trident") then return true end if name:find("demon trident") then return true end if name:find("trishula") then return true end end if pole > 14 and staff <= 14 then if name:find("glaive") then return true end if name:find("bardiche") then return true end end if staff > 8 then if name:find("lajatang") then return true end end end elseif (you.skill("Unarmed Combat") < 3) then return true end end end) } include += gammafunk.rc include += HDAForceMore.rc include += HDamage.rc include += HDAColors.rc