# Lua files # No more cset = cloud : 0 autofight_stop = 0 show_travel_trail = false ############## # Autopickup # ############## autopickup += $?!:"/%| pickup_mode += multi default_friendly_pickup += none ae := autopickup_exceptions ae = ae += useless_item, dangerous_item, evil_item #ae += (amulet|ring|staff|rod) of #elliptics autopickup script { local function autopickup(it, name) if it.artefact then return true end local class = it.class(true) if class == "armour" then local good_slots = {cloak="Cloak", helmet="Helmet", gloves="Gloves", boots="Boots"} st, _ = it.subtype() if good_slots[st] ~= nil and items.equipped_at(good_slots[st]) == nil then return true end if name:find("dragon") or name:find("crystal") then return true end end if class == "weapon" then if name:find("demon") or name:find("quick") or name:find("double") or name:find("eveningstar") or name:find("lajatang") or name:find("triple") or name:find("executioner") or name:find("distortion") then return true end end if class == "missile" then if name:find("curare") then return true end end return false end add_autopickup_func(autopickup) } : if you.god() == "Nemelex Xobeh" then ae += Cast which spell?') crawl.flush_prev_message() crawl.process_keys(cmd) end function cast_spell() generic_cast_spell('z') end function force_cast_spell() generic_cast_spell('Z') end } ################### # Message colours # ################### $inedible := darkgrey $evil := red $preferred := yellow $rot-inducing := lightred $mutagenic := magenta $dangerous := magenta $poisonous := lightgreen $contaminated := brown ### standard colours to be used for message highlighting $danger := lightred $warning := yellow $boring := darkgrey $item_dmg := $danger msc := message_colour msc = menu := menu_colour menu = # Multi-turn channel.multiturn = mute # Allies msc += mute:returns to your side msc += mute:A demon appears msc += mute:puff of smoke msc += mute:carefully avoids msc += mute:is recalled msc += mute:wall.*burn.*your msc += mute:dissolves? into (sparkling lights|shadows) msc += mute:You swap places msc += mute:Your.*(looks stronger|shudders|resist) msc += mute:(stumbles backwards|holds.*ground) msc += mute:(Something|Your).*(misses|does no damage) msc += mute:Your.*(blinks|safely over|gestures) msc += mute:(phases out.*|misses) (your|something).* msc += mute:your.*but does no damage msc += mute:Your.*(picks up|drops) # Prayer channel.pray = mute # Jiyva : if you.god() == "Jiyva" then msc += mute:slurping|squelching msc += mute:a little less hungry msc += mute:splits in two : end # Interface msc += mute:Cast which spell\? \( msc += mute:Casting.* msc += mute:Confirm with \. or Enter, or press \? or \* to list all spells\. msc += mute:Press\: \? - help, Shift-Dir - straight line, f - you msc += mute:for a list of commands and other information # Other msc += mute:This raw flesh tastes terrible msc += mute:There is something wrong with this meat msc += mute:melds into your body msc += mute:begins to bleed from.*wounds msc += mute:writhes in agony as.*flesh msc += mute:An air elemental.*itself.*the air # Item colouring # Default colours msc += $danger:drains you msc += $danger:feel drained msc += $danger:strangely unstable msc += $danger:curare-tipped.*hits you msc += $danger:Space warps.* around you msc += $danger:Space bends around you msc += $danger:sense of stasis msc += $danger:clumsily bash msc += $danger:goes berserk msc += $danger:Forgetting.* will destroy the book msc += $danger:The blast of calcifying dust hits you msc += $danger:You are engulfed in calcifying dust msc += $danger:is moving more slowly msc += $danger:^It .* you msc += $danger:You block its attack msc += $danger:constricts you msc += $danger:you convulse msc += $item_dmg:acid corrodes msc += $item_dmg:catch(es)? fire msc += $item_dmg:freezes? and shatters? msc += $item_dmg:covered with spores msc += $item_dmg:devours some of your food msc += $item_dmg:rots? away msc += $warning:ticking.*clock msc += $warning:dying ticks msc += $warning:distant snort msc += $warning:odd grinding sound msc += $warning:creaking of ancient gears msc += $warning:floor suddenly vibrates msc += $warning:a sudden draft msc += $warning:coins.*counted msc += $warning:tolling.*bell msc += $warning:fails to return msc += $warning:no longer ripe msc += $boring:You start (resting|waiting) msc += $boring:Unknown command msc += $boring:but (do no|doesn't do any) damage msc += $boring:(prevent|prevents) you from hitting menu += inventory:white:\w \+\s menu += inventory:white:\w \#\s menu += darkgrey:(melded) menu += darkgrey:.*useless_item.* menu += red:.*evil_item.* menu += lightred: cursed menu += inventory:lightgreen:.*equipped.* menu += lightmagenta:.*misc.*rune( of Zot)? menu += lightmagenta:.*orb.*Zot menu += white:.*artefact.* menu += lightblue:^unidentified .*(potion|scroll|wand|jewellery).* menu += lightblue:^unidentified .*weapon.*(runed|glowing) menu += lightblue:^unidentified .*armour.*(runed|glowing) menu += lightblue:^unidentified .*armour.*(embroidered|shiny|dyed) menu += yellow:heal wounds # Food menu += $inedible:.*inedible.* menu += $evil:.*evil_eating.* menu += $rot-inducing:.*rot-inducing.* menu += $mutagenic:.*mutagenic.* menu += $poisonous:.*poisonous.* menu += $contaminated:.*contaminated.* #################### # Autoinscriptions # #################### autoinscribe += (distortion):!w autoinscribe += (bad|dangerous)_item.*potion:!q autoinscribe += (bad|dangerous)_item.*scroll:!r autoinscribe += of faith:!P autoinscribe += rod of:!a autoinscribe += chunks? of:@w1 : if you.god() == "Fedhas" then autoinscribe += fruit:!e : end ######### # Notes # ######### dump_message_count = 40 dump_order += turns_by_place,kills_by_place,vaults dump_order += action_counts note_all_skill_levels = true note_hp_percent = 10 note_messages += protects you from harm note_messages += You fall through a shaft ################# # Miscellaneous # ################# char_set = ascii show_player_species = true skill_focus = toggle feature = explore horizon {.,,green} ##show player interface stuff # Player glyphs based on skills by N78291 : best = you.skill("Fighting") : skill_name = "Fighting" : melee = true : casting = false : if you.skill("Short Blades") > best then : best = you.skill("Short Blades") : skill_name = "Short Blades" : end : if you.skill("Long Blades") > best then : best = you.skill("Long Blades") : skill_name = "Long Blades" : end : if you.skill("Axes") > best then : best = you.skill("Axes") : skill_name = "Axes" : end : if you.skill("Maces & Flails") > best then : best = you.skill("Maces & Flails") : skill_name = "Maces & Flails" : end : if you.skill("Polearms") > best then : best = you.skill("Polearms") : skill_name = "Polearms" : end : if you.skill("Staves") > best then : best = you.skill("Staves") : skill_name = "Staves" : end : if you.skill("Slings") > best then : best = you.skill("Slings") : skill_name = "Slings" : end : if you.skill("Bows") > best then : best = you.skill("Bows") : skill_name = "Bows" : end : if you.skill("Crossbows") > best then : best = you.skill("Crossbows") : skill_name = "Crossbows" : end : if you.skill("Throwing") > best then : best = you.skill("Throwing") : skill_name = "Throwing" : end : if you.skill("Armour") > best then : best = you.skill("Armour") : skill_name = "Armour" : end : if you.skill("Dodging") > best then : best = you.skill("Dodging") : skill_name = "Dodging" : end : if you.skill("Stealth") > best then : best = you.skill("Stealth") : skill_name = "Stealth" : melee = false : end : if you.skill("Stabbing") > best then : best = you.skill("Stabbing") : skill_name = "Stabbing" : melee = false : end : if you.skill("Shields") > best then : best = you.skill("Shields") : skill_name = "Shields" : end : if you.skill("Traps & Doors") > best then : best = you.skill("Traps & Doors") : skill_name = "Traps & Doors" : melee = false : end : if you.skill("Unarmed Combat") > best then : best = you.skill("Unarmed Combat") : skill_name = "Unarmed Combat" : end : if you.skill("Spellcasting") > best then : best = you.skill("Spellcasting") : skill_name = "Spellcasting" : melee = false : casting = true : end : if you.skill("Conjurations") > best then : best = you.skill("Conjurations") : skill_name = "Conjurations" : melee = false : casting = true : end : if you.skill("Enchantments") > best then : best = you.skill("Enchantments") : skill_name = "Enchantments" : melee = false : casting = true : end : if you.skill("Summonings") > best then : best = you.skill("Summonings") : skill_name = "Summonings" : melee = false : casting = true : end : if you.skill("Necromancy") > best then : best = you.skill("Necromancy") : skill_name = "Necromancy" : melee = false : casting = true : end : if you.skill("Translocations") > best then : best = you.skill("Translocations") : skill_name = "Translocations" : melee = false : casting = true : end : if you.skill("Transmutations") > best then : best = you.skill("Transmutations") : skill_name = "Transmutations" : melee = false : casting = true : end : if you.skill("Fire Magic") > best then : best = you.skill("Fire Magic") : skill_name = "Fire Magic" : melee = false : casting = true : end : if you.skill("Ice Magic") > best then : best = you.skill("Ice Magic") : skill_name = "Ice Magic" : melee = false : casting = true : end : if you.skill("Air Magic") > best then : best = you.skill("Air Magic") : skill_name = "Air Magic" : melee = false : casting = true : end : if you.skill("Earth Magic") > best then : best = you.skill("Earth Magic") : skill_name = "Earth Magic" : melee = false : casting = true : end : if you.skill("Poison Magic") > best then : best = you.skill("Poison Magic") : skill_name = "Poison Magic" : melee = false : casting = true : end : if you.skill("Invocations") > best then : best = you.skill("Invocations") : skill_name = "Invocations" : melee = false : end : if you.skill("Evocations") > best then : best = you.skill("Evocations") : skill_name = "Evocations" : melee = false : end : if you.race() == "Deep Elf" or you.race() == "High Elf" : or you.race() == "Sludge Elf" then show_player_species = false : if skill_name == "Summonings" then : if best >= 8 and best < 21 then mon_glyph = player:brown e : elseif best >= 21 then mon_glyph = player:yellow e : end : elseif skill_name == "Invocations" then : if best < 15 then mon_glyph = player:green e : else mon_glyph = player:lightgreen e : end : elseif skill_name == "Conjurations" then : if best >= 8 and best < 27 then mon_glyph = player:blue e : else mon_glyph = player:lightblue e : end : elseif skill_name == "Necromancy" then mon_glyph = player:white e : elseif casting == true then : if best < 21 then mon_glyph = player:magenta e : else mon_glyph = player:lightmagenta e : end : elseif skill_name == "Bows" then mon_glyph = player:lightgrey e : elseif skill_name == "Short Blades" then mon_glyph = player:lightcyan e : elseif melee == true then : if best < 10 then mon_glyph = player:lightred e : else mon_glyph = player:cyan e : end : else mon_glyph = player:red e : end : end : if you.race() == "Merfolk" then show_player_species = false : if skill_name == "Throwing" then mon_glyph = player:lightgrey m : elseif skill_name == "Ice Magic" then mon_glyph = player:green m : elseif skill_name == "Polearms" and best >= 15 then mon_glyph = player:lightblue m : else mon_glyph = player:blue m : end : end : if you.race() == "Hill Orc" then show_player_species = false : if you.god == "Beogh" then show_player_species = true : elseif melee == true then : if best >= 10 and best < 15 then mon_glyph = player:yellow o : elseif best >= 15 and best < 20 then mon_glyph = player:cyan o : elseif best >= 20 then mon_glyph = player:lightcyan o : end : elseif casting == true then : if best >= 15 then mon_glyph = player:lightmagenta o : else mon_glyph = player:magenta o : end : else mon_glyph = player:lightred o : end : end : if you.race() == "Deep Dwarf" then show_player_species = false : if you.god() == "Yredelemnul" then mon_glyph = player:green q : elseif you.god() == "Trog" then mon_glyph = player:lightred q : elseif skill_name == "Evocations" then mon_glyph = player:blue q : elseif skill_name == "Necromancy" then mon_glyph = player:magenta q : else mon_glyph = player:brown q : end : end : if you.race() == "Naga" then show_player_species = false : if melee == true and best >= 15 then mon_glyph = player:blue N : elseif casting == true then : if best >= 15 then mon_glyph = player:lightmagenta N : else mon_glyph = player:red N : end : else mon_glyph = player:green N : end : end : if you.race() == "Centaur" then show_player_species = false : if melee == true and best >= 15 then mon_glyph = player:yellow c : else mon_glyph = player:brown c : end : end : if you.race() == "Spriggan" then show_player_species = false : if you.god() == "Trog" then mon_glyph = player:lightred i : else mon_glyph = player:lightgrey i : end : end : if you.race() == "Kobold" then show_player_species = false : if skill_name == "Summonings" then mon_glyph = player:magenta K : else mon_glyph = player:brown K : end : end : if you.race() == "Mummy" then show_player_species = false : if skill_name == "Invocations" then mon_glyph = player:red M : elseif best >= 25 then mon_glyph = player:white M : else mon_glyph = player:lightgrey M : end : end : if you.race() == "Vampire" then show_player_species = false : if melee == true and best >= 15 then mon_glyph = player:lightcyan V : elseif casting == true and best >= 15 then mon_glyph = player:magenta V : else mon_glyph = player:red V : end : end : if you.race() == "Octopode" then show_player_species = false mon_glyph = player:cyan X :end # Demonspawn added by st_ : if you.race() == "Demonspawn" then show_player_species = false : if melee == true then : if best < 27 then mon_glyph = player:lightgrey 1 : else mon_glyph = player:lightgrey & : end : elseif skill_name == "Armour" then : if best < 27 then mon_glyph = player:cyan 1 : else mon_glyph = player:cyan & : end : elseif skill_name == "Stealth" then : if best < 27 then mon_glyph = player:darkgrey 1 : else mon_glyph = player:darkgrey & : end : elseif skill_name == "Stabbing" then : if best < 27 then mon_glyph = player:darkgrey 1 : else mon_glyph = player:darkgrey & : end : elseif skill_name == "Spellcasting" then : if best < 27 then mon_glyph = player:lightmagenta 1 : else mon_glyph = player:lightmagenta & : end : elseif skill_name == "Conjurations" then : if best < 27 then mon_glyph = player:lightblue 1 : else mon_glyph = player:lightblue & : end : elseif skill_name == "Enchantments" then : if best < 27 then mon_glyph = player:yellow 1 : else mon_glyph = player:yellow & : end : elseif skill_name == "Summonings" then : if best < 27 then mon_glyph = player:blue 1 : else mon_glyph = player:blue & : end : elseif skill_name == "Translocations" then : if best < 27 then mon_glyph = player:lightcyan 1 : else mon_glyph = player:lightcyan & : end : elseif skill_name == "Transmutations" then : if best < 27 then mon_glyph = player:yellow 1 : else mon_glyph = player:yellow & : end : elseif skill_name == "Fire Magic" then : if best < 27 then mon_glyph = player:red 1 : else mon_glyph = player:red & : end : elseif skill_name == "Ice Magic" then : if best < 27 then mon_glyph = player:white 1 : else mon_glyph = player:white & : end : elseif skill_name == "Air Magic" then : if best < 27 then mon_glyph = player:blue 1 : else mon_glyph = player:blue & : end : elseif skill_name == "Earth Magic" then : if best < 27 then mon_glyph = player:brown 1 : else mon_glyph = player:brown & : end : elseif skill_name == "Necromancy" then : if best < 27 then mon_glyph = player:magenta 1 : else mon_glyph = player:magenta & : end : elseif skill_name == "Poison Magic" then : if best < 27 then mon_glyph = player:green 1 : else mon_glyph = player:green & : end : elseif skill_name == "Invocations" then : if best < 27 then mon_glyph = player:lightgreen 1 : else mon_glyph = player:lightgreen & : end : else mon_glyph = player:lightred & : end : end