Skip to content

Instantly share code, notes, and snippets.

@qrush
Created March 21, 2016 01:46

Revisions

  1. qrush created this gist Mar 21, 2016.
    228 changes: 228 additions & 0 deletions .nethackrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,228 @@
    # http://sartak.katron.org/misc/pbf/images/088.jpg
    OPTIONS=catname:Mittens
    # http://sartak.katron.org/misc/pbf/images/146.jpg
    OPTIONS=horsename:Silver Bullet
    # http://sartak.katron.org/misc/pbf/images/127.jpg
    OPTIONS=dogname:Barf

    OPTIONS=hilite_pet
    OPTIONS=fruit:milkshake
    OPTIONS=autopickup,pickup_types:$!/="+?
    OPTIONS=disclose:+iagcv
    OPTIONS=!cmdassist,!help,!legacy,!news,suppress_alert:3.4.3
    OPTIONS=autodig,!prayconfirm,lootabc

    OPTIONS=msg_window:reverse,msghistory:1000
    OPTIONS=lit_corridor,color
    OPTIONS=showrace
    OPTIONS=!sparkle
    OPTIONS=showexp,time
    OPTIONS=runmode:teleport,!rest_on_space
    #OPTIONS=number_pad:1
    OPTIONS=boulder:0
    OPTIONS=scores:10 top/3 around/own
    OPTIONS=pickup_burden:unencumbered

    # turn ghosts and shades into 'X' - great with telepathy for bones detection
    OPTIONS=monsters:abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@X'&;:~]

    # stuff not in vanilla follows
    OPTIONS=showscore
    OPTIONS=sortloot:full
    OPTIONS=showborn

    # I encourage people to use my menucolors! It's why I have a version and date.

    # eidocolors 1.11.0, 13:09 21 Mar 08
    # last minor: compatibility with the new nethack.alt.org's GNU (not POSIX)
    # regex library

    OPTIONS=menucolors
    #########
    # B/U/C #
    #########
    #MENUCOLOR="^[a-zA-Z$] - "=white #may want to enable this if regularly playing priest.. (priests don't see the 'uncursed')
    MENUCOLOR=" !C"=white
    MENUCOLOR=" !B"=white
    MENUCOLOR=" !UC"=white
    MENUCOLOR=" uncursed| UC?($| )"=white
    MENUCOLOR=" \([-0-9]+:[-0-9]+\)"=white #nethack doesn't display "uncursed" if charges are known
    MENUCOLOR=" [+-][0-9]"=white

    MENUCOLOR=" blessed| B($| )"=cyan
    MENUCOLOR=" cursed| C($| )"=red

    ################
    # WATER SPORTS #
    ################
    MENUCOLOR=" holy water"=cyan&bold
    MENUCOLOR=" blessed clear potion"=cyan&bold
    MENUCOLOR=" blessed potions? called water"=cyan&bold
    MENUCOLOR=" clear potions? named (holy|blessed|B)($| )"=cyan&bold
    MENUCOLOR=" potions? of water named (holy|blessed|B)($| )"=cyan&bold
    MENUCOLOR=" potions? called water named (holy|blessed|B)($| )"=cyan&bold
    MENUCOLOR=" unholy water"=orange
    MENUCOLOR=" cursed clear potion"=orange
    MENUCOLOR=" cursed potions? called water"=orange
    MENUCOLOR=" potions? called water named (unholy|cursed|C)($| )"=orange

    #################
    # FOOD CONDUCTS # thanks, teabing!
    #################
    # vegan
    MENUCOLOR="(food |cram |K-|C-)ration|gunyoki"=green&bold
    MENUCOLOR="lembas wafer|melon|carrot|tin .* spinach"=green&bold
    MENUCOLOR=" oranges?( named.*)?$"=green&bold # avoid coloring orange DSM
    MENUCOLOR=" pears?( named.*)?$"=green&bold # avoid coloring pearl rings
    MENUCOLOR=" apple|banana|kelp|eucalyptus|garlic|wolfsbane"=green&bold
    MENUCOLOR=" slime mold| brain"=green&bold ## YOUR FRUIT HERE
    MENUCOLOR="(tin of )?(gelatinous cube|acid blob|quivering blob)( corpse)?"=green&bold
    MENUCOLOR="(tin of )?(blue|spotted|ochre) jelly( corpse)?"=green&bold
    MENUCOLOR="(tin of )?lichen|shrieker|violet fungus|(brown|yellow|green|red) mold( corpse)?"=green&bold

    # vegetarian
    MENUCOLOR="egg|pancake|fortune cookie|candy bar|royal jelly|cream pie|candle"=green
    MENUCOLOR="(tin of )?brown pudding|gray ooze( corpse)?"=green

    ###########
    # GOODIES #
    ###########
    MENUCOLOR=" bag .* holding"=magenta
    MENUCOLOR=" luck(stone)?($| )"=magenta
    MENUCOLOR=" wand .* wish(ing)?($| )"= magenta
    MENUCOLOR=" magic marker"=magenta
    MENUCOLOR=" magic lamp|lamp .* magic"=magenta
    MENUCOLOR=" unicorn horn[^[]*$"=magenta #this doesn't color the #enhance unicorn horn skill
    MENUCOLOR=" tinning kit"=magenta
    MENUCOLOR=" ring .* regen(eration)?($| )"=magenta
    MENUCOLOR=" ring .* conflict"=magenta
    MENUCOLOR=" ring .* (FA|free action)($| )"=magenta
    MENUCOLOR=" ring .* (TC|teleport control)($| )"=magenta
    MENUCOLOR=" ring .* lev(itation)?($| )"=magenta
    MENUCOLOR=" amulet .* (life ?saving|LS)($| )"=magenta
    MENUCOLOR=" amulet .* ref(lection)?($| )"=magenta
    MENUCOLOR=" c(o|hi)ckatrice (corpse|egg)"=magenta
    MENUCOLOR=" egg .* cockatrice"=magenta
    MENUCOLOR=" stethoscope"=magenta

    #instruments
    MENUCOLOR="tooled horn|fire horn|frost horn|horn .* (tooled|fire|frost)"=magenta
    MENUCOLOR=" harp"=magenta
    MENUCOLOR=" bugle"=magenta
    MENUCOLOR=" flute"=magenta

    #############
    # ARTIFACTS #
    #############
    #unaligned
    MENUCOLOR=" (Dragonbane|Fire Brand|Frost Brand|Ogresmasher|Trollsbane|Werebane)"=lightgreen

    #lawful normal, quest
    MENUCOLOR=" (Demonbane|Excalibur|Grayswandir|Snickersnee|Sunsword)"=lightgreen
    MENUCOLOR=" (Orb of Detection|Sceptre of Might|Magic Mirror of Merlin|Mitre of Holiness|Tsurugi of Muramasa)"=lightgreen

    #neutral normal, quest
    MENUCOLOR=" (Cleaver|Giantslayer|Magicbane|Mjollnir|Vorpal Blade)"=lightgreen
    MENUCOLOR=" (Heart of Ahriman|Staff of Aesculapius|Eyes of the Overworld|Platinum Yendorian Express Card|Orb of Fate|Eye of the Aethiopica)"=lightgreen

    #chaotic normal, quest
    MENUCOLOR=" (Grimtooth|Orcrist|Sting|Stormbringer)"=lightgreen
    MENUCOLOR=" (Longbow of Diana|Master Key of Thievery)"=lightgreen

    #invocation items
    MENUCOLOR=" (Bell of Opening|silver bell|Candelabrum of Invocation|candelabrum|Book of the Dead|papyrus spellbook)"=magenta&bold

    #raison d'etre
    MENUCOLOR=" Amulet of Yendor named"=magenta&bold&underline

    ##################
    # CURSED GOODIES #
    ##################
    MENUCOLOR=" cursed.* bag .* holding"=red&bold
    MENUCOLOR=" cursed.* luck(stone)?($| )"=red&bold
    MENUCOLOR=" cursed.* unicorn horn"=red&bold
    MENUCOLOR=" cursed.* (Bell of Opening|silver bell|Candelabrum of Invocation|candelabrum|Book of the Dead|papyrus spellbook)"=red&bold

    #############
    # BAD STUFF #
    #############
    MENUCOLOR=" load(stone)?($| )"=red&underline

    ##############################
    # WATCH OUT, BAG OF HOLDING! #
    ##############################
    MENUCOLOR=" bag .* tricks"=blue&underline
    MENUCOLOR=" wand .*[^!]canc"=blue&underline
    MENUCOLOR=" wand .* vanish"=blue&underline

    ################
    # SHINY THINGS #
    ################
    MENUCOLOR=" gold piece"=yellow
    MENUCOLOR=" valuable"=brown
    MENUCOLOR=" gems? .* hard"=yellow

    #soft gems
    MENUCOLOR=" ([0-9]+|an?|gems? .*) (uncursed |cursed |blessed )?(dilithium|opal|garnet|jasper|agate|jet|obsidian|jade|citrine|chrysoberyl|amber|amethyst|fluori

    #hard gems
    MENUCOLOR=" ([0-9]+|an?|gems?.*) (uncursed |cursed |blessed )?(diamond|rub(y|ies)|jacinth|sapphire|black opal|emerald|topaz|aquamarine)(e?s)?( stones?| gems?)

    #######################
    # SPELL FAILURE RATES #
    #######################
    MENUCOLOR=" 0%"=white
    MENUCOLOR=" [1-9]%"=cyan
    MENUCOLOR=" [12][0-9]%"=cyan
    MENUCOLOR=" [3-6][0-9]%"=yellow
    MENUCOLOR=" 7[0-5]%"=yellow
    MENUCOLOR=" 7[6-9]%"=orange
    MENUCOLOR=" 8[0-9]%"=orange
    MENUCOLOR=" 9[0-9]%"=red
    MENUCOLOR=" 100%"=red

    ###################
    # FORGOTTEN SPELL # thanks, Stevie
    ###################
    MENUCOLOR="[a-zA-Z] - [a-zA-Z ]+ [0-9]\* [a-z]+ +[0-9]+%"=magenta

    ############
    # #ENHANCE # thanks itsblah
    ############
    MENUCOLOR="^ +[a-z -]+ +\[(Unskilled|Basic|Skilled|Expert|Master|Grand Master)\]$"=none # normal
    MENUCOLOR="^ *[a-z] - +[a-z -]+ +\[(Unskilled|Basic|Skilled|Expert|Master|Grand Master)\]$"=white # ready to enhance
    MENUCOLOR="^ +\* +[a-z -]+ +\[(Unskilled|Basic|Skilled|Expert|Master|Grand Master)\]$"=white # enhanceable if more skill slots
    MENUCOLOR="^ +# +[a-z -]+ +\[(Unskilled|Basic|Skilled|Expert|Master|Grand Master)\]$"=none # enhanceable if more potential

    ################
    # FORCE COLORS #
    ################
    # Some of these are subject to change !

    MENUCOLOR="\{R\}"=red
    MENUCOLOR="\{B\}"=blue
    MENUCOLOR="\{C\}"=cyan
    MENUCOLOR="\{G\}"=green
    MENUCOLOR="\{Y\}"=yellow
    MENUCOLOR="\{[MP]\}"=magenta
    MENUCOLOR="\{O\}"=orange
    MENUCOLOR="\{W\}"=white
    MENUCOLOR="\{L\}"=black
    MENUCOLOR="\{y\}"=gray
    MENUCOLOR="\{g\}"=lightgreen
    MENUCOLOR="\{b\}"=lightblue
    MENUCOLOR="\{[mp]\}"=lightmagenta
    MENUCOLOR="\{c\}"=lightcyan
    MENUCOLOR="\{N\}"=none
    MENUCOLOR="\{X\}"=bold
    MENUCOLOR="\{x\}"=dim
    MENUCOLOR="\{U\}"=underline
    MENUCOLOR="\{I\}"=inverse
    MENUCOLOR="\{K\}"=blink

    ########################
    # LOOT/APPLY CONTAINER #
    ########################
    MENUCOLOR=" is empty. Do what?"=none
    MENUCOLOR="Put something into .*"=none
    MENUCOLOR="Take something out of .*"=none