default_manual_training = true autofight_stop = 50 auto_butcher = true auto_eat_chunks = true equip_unequip = true confirm_butcher = never easy_eat_chunks = true easy_eat_gourmand = true autofight_throw = false autofight_throw_nomove = false show_more = false { local ForceOpenSkillScreen = true function ready() if you.turns() == 0 and ForceOpenSkillScreen then ForceOpenSkillScreen = false crawl.sendkeys("m") end end } #################### # Autoinscriptions # #################### ai := autoinscribe ai += (vampiric):!w ai += (bad|dangerous)_item.*potion:!q ai += (bad|dangerous)_item.*scroll:!r ai += of faith:!P ai += rod of:!a ai += lightning rod:!a ai += [^r]staff of (conj|energy|power|wizardry):!a ai += manual of:!d ai += dispersal:!f ai += tome of Destruction:!d ai += throwing net:!f ai += curare:!f ai += needle of (frenzy|paralysis|sleeping|confusion):!f : if you.god() ~= "Lugonu" then ai += (distortion):!w :end ai += of identify:@r1 ai += remove curse:@r2 ai += curing:@q1 ai += potions? of heal wounds:@q2 ai += potions? of haste:@q3 ai += scrolls? of teleportation:@r4 ai += potions? of blood:@q0 ################## ### Item Slots ### ################## item_slot += ration:e ----------------------------------------------------------------------------------- -- Armour/Weapon autopickup by rwbarton, enhanced by HDA with fixes from Bloaxor -- ----------------------------------------------------------------------------------- { add_autopickup_func(function(it, name) if name:find("throwing net") then return true end local class = it.class(true) local armour_slots = {cloak="Cloak", helmet="Helmet", gloves="Gloves", boots="Boots", body="Armour", shield="Shield"} if (class == "armour") then if it.is_useless then return false end 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 if not equipped_item then return true else return it.artefact or it.branded or it.ego end 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") or armourname:find("troll") 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 end end) } ### Keybindings ### bindkey = [-] CMD_REST #bindkey = [1] CMD_MOVE_DOWN_LEFT #bindkey = [2] CMD_MOVE_DOWN #bindkey = [3] CMD_MOVE_DOWN_RIGHT #bindkey = [4] CMD_MOVE_LEFT #bindkey = [5] CMD_WAIT #bindkey = [6] CMD_MOVE_RIGHT #bindkey = [7] CMD_MOVE_UP_LEFT #bindkey = [8] CMD_MOVE_UP #bindkey = [9] CMD_MOVE_UP_RIGHT #bindkey = [^1] CMD_TARGET_DOWN_LEFT #bindkey = [^2] CMD_TARGET_DOWN #bindkey = [^3] CMD_TARGET_DOWN_RIGHT #bindkey = [^4] CMD_TARGET_LEFT #bindkey = [^5] CMD_WAIT #bindkey = [^6] CMD_TARGET_RIGHT #bindkey = [^7] CMD_TARGET_UP_LEFT #bindkey = [^8] CMD_TARGET_UP #bindkey = [^9] CMD_TARGET_UP_RIGHT #bindkey = [0] CMD_REST # Unbind vi-mappings #bindkey = [h] CMD_NO_CMD_DEFAULT #bindkey = [j] CMD_NO_CMD_DEFAULT #bindkey = [k] CMD_NO_CMD_DEFAULT #bindkey = [l] CMD_NO_CMD_DEFAULT #bindkey = [H] CMD_NO_CMD_DEFAULT #bindkey = [J] CMD_NO_CMD_DEFAULT #bindkey = [K] CMD_NO_CMD_DEFAULT #bindkey = [L] CMD_NO_CMD_DEFAULT #bindkey = [^H] CMD_NO_CMD_DEFAULT #bindkey = [^J] CMD_NO_CMD_DEFAULT #bindkey = [^K] CMD_NO_CMD_DEFAULT #bindkey = [^L] CMD_NO_CMD_DEFAULT #bindkey = [y] CMD_NO_CMD_DEFAULT #bindkey = [u] CMD_NO_CMD_DEFAULT #bindkey = [b] CMD_NO_CMD_DEFAULT #bindkey = [n] CMD_NO_CMD_DEFAULT #bindkey = [Y] CMD_NO_CMD_DEFAULT #bindkey = [U] CMD_NO_CMD_DEFAULT #bindkey = [B] CMD_NO_CMD_DEFAULT #bindkey = [N] CMD_NO_CMD_DEFAULT #bindkey = [^Y] CMD_NO_CMD_DEFAULT #bindkey = [^U] CMD_NO_CMD_DEFAULT #bindkey = [^B] CMD_NO_CMD_DEFAULT #bindkey = [^N] CMD_NO_CMD_DEFAULT