############### Interface ############### tile_show_threat_levels = nasty show_more = false equip_unequip = true hp_warning = 50 hp_colour = 100:green, 99:lightgray, 50:yellow, 25:red mp_colour = 100:green, 99:lightgray, 50:yellow, 25:red stat_colour = 3:red, 7:yellow sort_menus = inv: true : equipped, freshness, charged show_more = false simple_targeting = false ############## O-Tab ############### autofight_throw = true autofight_throw_nomove = true autofight_stop = 50 ############### Corpse ############### confirm_butcher = never easy_eat_chunks = true auto_eat_chunks = true auto_drop_chunks = yes : if you.race()=="Ghoul" then auto_butcher = true : elseif you.race()=="Troll" or you.race()=="Felid" or you.race()=="Kobold" then auto_butcher = very full : else auto_butcher = hungry :end ############### Skill ############### default_manual_training = true note_skill_levels = 1,5,9,12,15,18,22,24,27 { local need_skills_opened = true function OpenSkills() if you.turns() == 0 and need_skills_opened then need_skills_opened = false sendkeys("m") end end } ############# CWZ Settings ############# Language = en lab_sound_on = false lab_magic_window_translate = false lab_skill_window_translate = false lab_interface_translate = false lab_ability_window_translate = false lab_apply_font = true #$ lab_transfer_chat_ingame=true #$ lab_hide_chat_control = true lab_disable_mouse_move = true #$ lab_disable_chat_clear = true lab_gold_status = true note_chat_messages = true ########### Autopickup ########### ae := autopickup_exceptions ae += >useless_item ae += >dangerous_item #ae += >evil_item #ae += scrolls? of (vuln|fear|immol|amne|brand|noise|random|silence) ae += >(crystal ball|fan of gales) ae += >ring of (pro|flight|mag|stealth|ice|fire|pois) ae += >ring of (wiz|int|str|dex|slay|eva|pos|resis|see) ae += >staff of (air|cold|conj|death|ear|ene|fire|pois|pow|sum|wiz) ae += >amulet of (reflect|faith|harm|magic|guard|rage|regen) ae += >amulet of the (acrobat|gourmand) ae += >wand of (poly|rand) : if you.xl() > 15 then ae += >wand of (flame|disint|para|scatter|enslave|ice) : end ########### Inscriptions ########### autoinscribe += staff of (energy|channeling|wizardry|power|conjuration|summoning):!a autoinscribe += .*Wucad Mu:!a!d : if you.god()~="Lugonu" then autoinscribe += distortion:!w :end autoinscribe += faith:!P autoinscribe += ziggurat:!V autoinscribe += ^ration:!d autoinscribe += throwing net?:!f!d autoinscribe += potion.*ambrosia:!d autoinscribe += potion.*resistance:!d autoinscribe += potion.*heal wounds:!d autoinscribe += potion.*haste:!d autoinscribe += potion.*curing:!d autoinscribe += potion.*might:!d autoinscribe += potion.*agility:!d autoinscribe += potion.*cancellation:!d autoinscribe += potion.*mutation:!d autoinscribe += scroll.*fog:!d autoinscribe += scroll.*blinking:!d autoinscribe += scroll.*identify:!d autoinscribe += scroll.*teleportation:!d autoinscribe += scroll.*magic mapping:!d ########### Item Slot ########### item_slot += ration:R item_slot += throwing nets?:+Z item_slot += staff of energy:e item_slot += staff of wizardry:w item_slot += wand.*flame:+d item_slot += wand.*polymorph:+l item_slot += wand.*disintegration:+o item_slot += wand.*iceblast:+p item_slot += wand.*enslavement:+s item_slot += wand.*paralysis:+u item_slot += wand.*digging:+v item_slot += wand.*clouds:+F item_slot += wand.*scattershot:+H item_slot += wand.*acid:+V Item_slot += scroll.*remove curse:+c Item_slot += scroll.*identify:+f Item_slot += scroll.*fear:+h Item_slot += scroll.*vulnerability:+i Item_slot += scroll.*immolation:+j Item_slot += scroll.*holy word:+k Item_slot += scroll.*enchant weapon:+n Item_slot += scroll.*enchant armour:+x Item_slot += scroll.*brand weapon:+y Item_slot += scroll.*acquirement:+z Item_slot += scroll.*fog:+B Item_slot += scroll.*teleportation:+K Item_slot += scroll.*blinking:+M Item_slot += scroll.*magic mapping:+O Item_slot += scroll.*amnesia:+U Item_slot += potion.*berserk rage:+g Item_slot += potion.*lignification:+l Item_slot += potion.*experience:+m Item_slot += potion.*Invisibility:+C Item_slot += potion.*flight:+D Item_slot += potion.*resistance:+E Item_slot += potion.*haste:+G Item_slot += potion.*brilliance:+I Item_slot += potion.*agility:+J Item_slot += potion.*might:+L Item_slot += potion.*ambrosia:+N Item_slot += potion.*magic:+P Item_slot += potion.*curing:+S Item_slot += potion.*heal wounds:+T Item_slot += potion.*cancellation:+X Item_slot += potion.*mutation:+Y ########### Item Colors ########### menu := menu_colour # Potions menu += lightmagenta:potion.*berserk rage menu ^= lightmagenta:potion.*lignification menu += lightcyan:potion.*flight menu += lightcyan:potion.*Invisibility menu ^= green:potion.*resistance menu ^= green:potion.*haste menu += cyan:potion.*brilliance menu += cyan:potion.*agility menu += cyan:potion.*might menu += lightgreen:potion.*ambrosia menu ^= lightgreen:potion.*magic menu += lightmagenta:potion.*cancellation menu ^= lightmagenta:potion.*mutation # Scrolls menu += lightmagenta:scroll.*identify menu += lightmagenta:scroll.*remove curse menu += green:scroll.*holy word menu ^= green:scroll.*immolation menu ^= green:scroll.*vulnerability menu ^= green:scroll.*fear menu += cyan:scroll.*enchant weapon menu += cyan:scroll.*enchant armour menu += cyan:scroll.*brand weapon menu += cyan:scroll.*acquirement menu += lightmagenta:scroll.*magic mapping menu += lightmagenta:scroll.*amnesia # Wands menu += lightmagenta:wand.*disintegration menu += lightmagenta:wand.*iceblast menu += cyan:wand.*enslavement menu += cyan:wand.*paralysis menu += green:wand.*digging menu += yellow:wand.*clouds menu += yellow:wand.*scattershot menu += yellow:wand.*acid ########### Messages ########### easy_confirm = all message_colour ^= green:more experienced message_colour ^= skill increases to ### Ignore # Explore Stop explore_stop = artifacts explore_stop += greedy_visited_item_stack,stairs explore_stop += altars,portals,branches,runed_doors runrest_ignore_monster += butterfly:1 stop := runrest_stop_message ignore := runrest_ignore_message ignore += You regained.*mp # Annoyances -- Don't stop autotravel for these events ignore += A.*toadstool withers and dies ignore += disappears in a puff of smoke ignore += engulfed in a cloud of smoke ignore += engulfed in white fluffiness ignore += grinding sound ignore += in your inventory.*rotted away ignore += safely over a trap ignore += standing in the rain ignore += toadstools? grow ignore += You feel.*sick ignore += You walk carefully through the ignore += contamination has completely ignore += your breath back # Jiyva Messages ignore += Jiyva appreciates your sacrifice ignore += Jiyva gurgles merrily ignore += Jiyva says: Divide and consume ignore += You hear.*splatter # Qazlal Messages ignore += The plant is engulfed ignore += You destroy the (bush|fungus|plant) ignore += You displace your # Bad things -- Stop autotravel for these events stop += (blundered into a|invokes the power of) Zot stop += (devoid of blood|starving) stop += A huge blade swings out and slices into you[^r] stop += An alarm trap emits a blaring wail stop += flesh start stop += found a zot trap stop += hear a soft click stop += lose consciousness stop += sense of stasis stop += Wait a moment stop += wrath finds you stop += You fall through a shaft stop += something hits you ############## MORE & Flash ############## ## Yellow Flash ## flash_screen_message += your limbs are stiffening flash_screen_message += The floating eye seems to glare at you flash_screen_message += The floating eye's stare focuses on you flash_screen_message += The floating eye's view fixates on you flash_screen_message += A sentinel's mark forms upon you flash_screen_message += You are fainting from starvation! flash_screen_message += You shout at flash_screen_message += distant snort flash_screen_message += unleashes a terrible howl flash_screen_message += engulfs you in water flash_screen_message += Your magical essence is drained flash_screen_message += You feel less protected from missiles flash_screen_message += You are slowing down flash_screen_message += You feel strangely unstable flash_screen_message += (.* Fiends?|Tzitzi.*) comes into view flash_screen_message += Something drains your vigour flash_screen_message += You feel yourself slow down flash_screen_message += Something hits you flash_screen_message += Strange energy courses ## MORE ## more := force_more_message ## player ## more += Careful! more += .*LOW HITPOINT WARNING more += Ouch! That really hurt! more += Terrible wounds open up more += You convulse more += Your body is wracked with pain! more += (iron shot|orb of destruction|crystal spear|dispelling energy|calcifying dust|vile air).*you! more += damnation engulfs you! more += The air twists around and violently strikes you in flight! more += engulfs you in water more += watched by something more += You feel your power leaking away more += magical defenses are stripped away more += You cannot more += You can't (read|drink|do) more += You are too exhausted to more += unable to access your magic more += Your vision blurs more += You shout at more += You miscast.*(Touch|Blink|Revivifi|Door|Invisibility|Servitor) more += You fail to use your ability more += You feel less protected from missiles more += You fall into a shaft more += You feel your flesh start more += You are engulfed in seething chaos more += You start to feel a little slower more += You feel yourself slow down more += You are slowing down more += You are confused more += You enter a teleport trap more += You are suddenly yanked more += Your transformation is almost over more += A sentinel's mark forms upon you more += You are starting to lose your buoyancy more += skill increases to level more += You have reached level more += finished your manual more += You become entangled in the net more += god:(sends|finds|silent|anger) more += offers itself more += Uskayaw prepares the audience for your solo more += hell_effect: more += Something reaches out for you more += time is quickly running out more += life is in your own more += something hits you! more += something hits you\. more += smites you! more += You feel less confused. more += You are more poisoned. You feel very sick. more += The water swirls and strikes you! more += You feel extremely sick. more += You can't see any susceptible monsters within range! more += when .*silenced more += too confused more += There's something in the way more += There's nothing to (close|open) nearby more += not good enough to have a special ability more += You are too berserk more += no means to grasp more += That item cannot be evoked more += You are held in a net more += You can't unwield more += enough magic points more += You don't .* that spell more += You are blasted by holy energy! more += Space warps.*around you more += Space bends around you more += (hits|claws) you!! more += Wisps of shadow whirl around you... The shadows disperse without effect. more += You are splashed with acid! more += You are engulfed in dark miasma more += The blast of calcifying dust hits you. more += You are sucked into a shaft ## Monsters ## more += Your guardian golem overheats more += .*drinks a potion more += .*reads a scroll more += .* carrying a wand of more += flickers and vanishes! #more += grabs you\. #more += constricts you\. more += breathes miasma more += fire storm spell more += filled with .* inner flame more += The floating eye seems to glare at you more += The floating eye's stare focuses on you more += The floating eye's view fixates on you more += slime creature.*becomes.*slime creature more += slime creatures merge.*slime creature more += seems less confused more += is no longer charmed more += goes berserk! more += unleashes a terrible howl more += is duplicated ## Exploring ## more += Found a gateway leading out of the Abyss more += Found a gateway leading deeper into the Abyss more += Found .* abyssal rune of Zot more += You found a shaft more += Found a gate leading to another region of Pandemonium more += The mighty Pandemonium lord .* resides here more += volcano erupts ## Portals ## more += ticking.*clock more += dying ticks more += distant snort more += coins.*counted more += tolling.*bell more += roar of battle more += creaking.*portcullis more += portcullis is probably more += wave of frost more += crackling.*melting more += hiss.*sand more += sound.*rushing water more += rusting.*drain more += drain falling apart more += heat about you more += falling.*rocks more += rumble.*avalanche of rocks more += crackle.*arcane power more += crackle.*magical portal more += distant wind more += whistling.*wind more += rapidly growing quiet more += beating.*drum more += the drumbeats cease more += interdimensional caravan ## MORE Monsters ## more += An orb of destruction comes into view. more += wielding.* (distortion|chaos|electrocution).* comes? into view more += (high priest|zealot|scorcher|demonologist|blood saint).*into view more += (serpent|draconian shifter|convoker|hydra|serpent).*into view more += (moth of wrath|ghost moth|torpor snail).*into view more += ((giant|floating|shining) eye|eye of draining).*into view more += (curse toe|curse skull|greater mummy|mummy priest).*into view more += (flayed ghost|tormentor|hellion|fiend|hell sentinel|tzitzi).*into view more += (ancient lich|orb of fire|executioner|juggernaut|shrike|balrug|doom hound).*into view more += (cacodemon|neqoxec|wretched star).* comes? into view more += (pandemonium lord|the Serpent of Hell).* comes? into view more += .*(Agnes|Aizul|Antaeus|Arachne|Asmodeus|Azrael|Bai suzhen|Blork the orc|Boris|Cerebov|Crazy Yiuf| Dispater|Dissolution|Donald|Dowan|Duvessa|Edmund|the Enchantress|Ereshkigal|Erica|Erolcha|Eustachio|Fannar|Frances| Frederick|Gastronok|Geryon|Gloorx Vloq|Grinder|Grum|Harold|Ignacio|Ijyb|Ilsuiw|Jessica|Jorgrun|Jory|Joseph|Josephine| Khufu|Kirke|the Lernaean hydra|Lom Lobon|Louise|Mara|Margery|Maurice|Menkaure|Mennas|Mnoleg|Murray|Nergalle|Natasha| Nessos|Nikola|Pan|Pikel|Polyphemus|Prince Ribbit|Psyche|Purgy|Roxanne|the royal jelly|Rupert|Saint Roka| Sigmund|Snorg|Sojobo|Sonja|Terence|Tiamat|Urug|Vashnia|Xtahua).*comes? into view ## low lv. ## : if you.xl() < 15 then #more += comes? into view more += ogre.* comes? into view more += orc warrior.* comes? into view more += hornet.* comes? into view more += centaur.* comes? into view more += killer bee.* comes? into view more += electric eel.* comes? into view more += dream sheep.* comes? into view : end ## Holy Wrath ## : if you.race()=="Ghoul" or you.race()=="Mummy" or you.race()=="Demonspawn" or you.race()=="Vampire" then more += .* is wielding .* of holy wrath more += there is a.*holy wrath more += of holy wrath comes into view. :end # Death's Door force_more_message += time is quickly running out force_more_message += life is in your own # Transmutations force_more_message += Your transformation is almost over force_more_message += You have a feeling this form force_more_message += Your skin feels tender force_more_message += You feel yourself come back to life # Haste/Slow force_more_message += You feel yourself slow down ########### Damage Calculator ########### { function ready() hp_percent() mp_percent() AnnounceDamage() end } { function hp_percent() a,b=you.hp() return 100*a/b end } { function mp_percent() a,b=you.mp() return 100*a/b end } ## AnnounceDamage() ## { local previous_hp = 0 local previous_mp = 0 local previous_form = "" local was_berserk_last_turn = false function AnnounceDamage() local current_hp, max_hp = you.hp() local current_mp, max_mp = you.mp() --Things that increase hp/mp temporarily really mess with this local current_form = you.transform() local you_are_berserk = you.berserk() local max_hp_increased = false local max_hp_decreased = false if (current_form ~= previous_form) then if (previous_form:find("dragon") or previous_form:find("statue") or previous_form:find("tree") or previous_form:find("ice")) then max_hp_decreased = true elseif (current_form:find("dragon") or current_form:find("statue") or current_form:find("tree") or current_form:find("ice")) then max_hp_increased = true end end if (was_berserk_last_turn and not you_are_berserk) then max_hp_decreased = true elseif (you_are_berserk and not was_berserk_last_turn) then max_hp_increased = true end --crawl.mpr(string.format("previous_form is: %s", previous_form)) --crawl.mpr(string.format("current_form is: %s", current_form)) --crawl.mpr(string.format("max_hp_increased is: %s", max_hp_increased and "True" or "False")) --crawl.mpr(string.format("max_hp_decreased is: %s", max_hp_decreased and "True" or "False")) --crawl.mpr(string:format("you_are_berserk is: %s", you_are_berserk and "True" or "False")) --crawl.mpr(string:format("was_berserk_last_turn is: %s", was_berserk_last_turn and "True" or "False")) --Skips message on initializing game if previous_hp > 0 then local hp_difference = previous_hp - current_hp local mp_difference = previous_mp - current_mp if max_hp_increased or max_hp_decreased then if max_hp_increased then crawl.mpr("You now have " .. current_hp .. "/" .. max_hp .. " hp.") else crawl.mpr("You now have " .. current_hp .. "/" .. max_hp .. " hp.") end else --On losing health if (current_hp < previous_hp) then if current_hp <= (max_hp * 0.30) then crawl.mpr("You take " .. hp_difference .. " damage, and have " .. current_hp .. "/" .. max_hp .. " hp.") elseif current_hp <= (max_hp * 0.50) then crawl.mpr("You take " .. hp_difference .. " damage, and have " .. current_hp .. "/" .. max_hp .. " hp.") elseif current_hp <= (max_hp * 0.70) then crawl.mpr("You take " .. hp_difference .. " damage, and have " .. current_hp .. "/" .. max_hp .. " hp.") elseif current_hp <= (max_hp * 0.90) then crawl.mpr("You take " .. hp_difference .. " damage, and have " .. current_hp .. "/" .. max_hp .. " hp.") else crawl.mpr("You take " .. hp_difference .. " damage, and have " .. current_hp .. "/" .. max_hp .. " hp.") end if hp_difference > (max_hp * 0.20) then crawl.mpr("MASSIVE DAMAGE!!") end end --On gaining more than 1 health if (current_hp > previous_hp) then --Removes the negative sign local health_inturn = (0 - hp_difference) if (health_inturn > 1) and not (current_hp == max_hp) then if current_hp <= (max_hp * 0.30) then crawl.mpr("You regained " .. health_inturn .. " hp, and now have " .. current_hp .. "/" .. max_hp .. " hp.") elseif current_hp <= (max_hp * 0.50) then crawl.mpr("You regained " .. health_inturn .. " hp, and now have " .. current_hp .. "/" .. max_hp .. " hp.") elseif current_hp <= (max_hp * 0.70) then crawl.mpr("You regained " .. health_inturn .. " hp, and now have " .. current_hp .. "/" .. max_hp .. " hp.") elseif current_hp <= (max_hp * 0.90) then crawl.mpr("You regained " .. health_inturn .. " hp, and now have " .. current_hp .. "/" .. max_hp .. " hp.") else crawl.mpr("You regained " .. health_inturn .. " hp, and now have " .. current_hp .. "/" .. max_hp .. " hp.") end end if (current_hp == max_hp) then crawl.mpr("Health restored: " .. current_hp .. "") end end --On gaining more than 1 magic if (current_mp > previous_mp) then --Removes the negative sign local mp_inturn = (0 - mp_difference) if (mp_inturn > 1) and not (current_mp == max_mp) then if current_mp < (max_mp * 0.25) then crawl.mpr("You regained " .. mp_inturn .. " mp, and now have " .. current_mp .. "/" .. max_mp .. " mp.") elseif current_mp < (max_mp * 0.50) then crawl.mpr("You regained " .. mp_inturn .. " mp, and now have " .. current_mp .. "/" .. max_mp .. " mp.") else crawl.mpr("You regained " .. mp_inturn .. " mp, and now have " .. current_mp .. "/" .. max_mp .. " mp.") end end if (current_mp == max_mp) then crawl.mpr("MP restored: " .. current_mp .. "") end end --On losing magic if current_mp < previous_mp then if current_mp <= (max_mp / 5) then crawl.mpr("You now have " .. current_mp .. "/" ..max_mp .." mp.") elseif current_mp <= (max_mp / 2) then crawl.mpr("You now have " .. current_mp .. "/" ..max_mp .." mp.") else crawl.mpr("You now have " .. current_mp .. "/" ..max_mp .." mp.") end end end end --Set previous hp/mp and form at end of turn previous_hp = current_hp previous_mp = current_mp previous_form = current_form was_berserk_last_turn = you_are_berserk end } ########### Spells & Abilities ########### ### Abilities ability_slot ^= Evoke Invis:w ability_slot ^= Evoke Flight:F ability_slot ^= Evoke Blink:B ability_slot ^= Fly:F ability_slot ^= Flight:F ability_slot ^= Stop Flying:G ability_slot ^= Blink:B ability_slot ^= Heal Wounds:H ability_slot += Spit:q ability_slot += Breath:q ability_slot ^= Apocalypse:C ### Spells auto_hide_spells = true sps := spell_slot # FE sps += throw flame:s sps += conjure flame:d sps += sticky flame:vc sps += fireball:f # IE sps += frozen rampart:s sps += ozocubu's armour:r sps += summon ice beast:e # AE sps += swiftness:qS sps += static discharge:s sps += airstrike:x sps += lightning bolt:t # Cj sps += searing ray:s sps += dazzling spray:de sps += iskenderun's mystic blast:xcv # Wz sps += mephitic cloud:c # Su sps += call imp:i sps += call canine familiar: c sps += summon lightning spire: wWr # Tm sps += sticks to snakes:s sps += spider form:x sps += blade hands:d # Sk sps += shroud of golubria:r sps += song of slaying:sb sps += spectral weapon:w # Ne sps += animate skeleton: xs sps += vampiric draining: vc sps += animate dead:d # EE sps += passwall: p sps += stone arrow: s sps += petrify: e sps += lee's rapid deconstruction: cd ## Conjurations sps += iron shot:vV sps += orb of destruction:xXdDvV sps += iskenderun's battlesphere:w sps += spellforged servitor:W ## End Game sps += ignition:G sps += lehudib's crystal spear:vV sps += fire storm:F sps += glaciate:G sps += tornado:T sps += shatter:H ## Summoning sps += recall:rR sps += aura of abjuration:j sps += mana viper:eirt ## Buffs sps += portal projectile:p sps += deflect missiles:M sps += silence:L sps += statue form:nN ## Tloc sps += apportation:A sps += blink:B sps += controlled blink:BC sps += passage of golubria:P ## Necro sps += sublimation of blood:z sps += corpse rot:R sps += borgnjor's vile clutch:fvg sps += death channel:D sps += dispel undead:u sps += simulacrum:S sps += agony:xvb sps += haunt:hH sps += infestation:fF sps += necromutation:nN sps += death's door:K sps += borgnjor's revivification:L