default_manual_training = false runrest_safe_poison = 80:100 equip_unequip = true confirm_butcher = never easy_eat_chunks = true auto_eat_chunks = true sort_menus = true : basename, fullname autofight_stop = 75 channel.rotten_meat = mute channel.pray = mute channel.multiturn = mute { turn = 0 function ready() if turn%50 == 0 then printSkill() end turn = turn + 1 end } { safe = 1 -- 실패율이 safe값 이하면 안정화가 된걸로 침 --만약 실패율이 5%이하인 것만 메세지를 나타나게 하고싶으면 10을 5로 바꾸면됨 spellTable = {} function checkSpellFailRate() output = '::' for index,spellName in pairs(you.spells()) do fail = spells.fail(spellName) if rawget(spellTable, spellName) == nil then spellTable[spellName] = 0 end if rawget(spellTable, spellName) == 0 and fail < safe then crawl.flush_prev_message() crawl.mpr(string.format("%s 이(가) 안정화되었습니다.",spellName)) crawl.flush_prev_message() spellTable[spellName] = 1 end end crawl.flush_prev_message() crawl.mpr(output) crawl.flush_prev_message() end } { skillTable = {'Fighting', 'Spellcasting', 'Short Blades', 'Conjurations', 'Long Blades', 'Hexes', 'Axes', 'Charms', 'Maces & Flails', 'Summonings', 'Polearms', 'Necromancy', 'Staves', 'Translocations', 'Unarmed Combat', 'Transmutations', 'Fire Magic', 'Bows', 'Ice Magic', 'Crossbows', 'Air Magic', 'Throwing', 'Earth Magic', 'Slings', 'Poison Magic', 'Armour', 'Invocations', 'Dodging', 'Evocations', 'Shields', 'Stealth'} function printSkill() skillstr = "::" for key in pairs(skillTable) do skillName = skillTable[key] skillTrain = you.train_skill(skillName) if skillTrain > 0 then skillLevel1 = you.skill(skillName) skillLevel2 = you.skill_progress(skillName)/10 skillstr = skillstr .. string.format("%s:%d.%d:%d::",skillName, skillLevel1,skillLevel2 ,skillTrain) end end for index,spellName in pairs(you.spells()) do fail = spells.fail(spellName) skillstr = skillstr .. string.format("%s:%d:0::",spellName, fail) end crawl.flush_prev_message() crawl.mpr(skillstr) crawl.flush_prev_message() end } msc := message_colour msc ^= mute:(You|Your).*(miss|misses) the .* msc ^= mute:Done waiting msc ^= mute:Found .* gold pieces msc ^= mute:HP restored msc ^= mute:Magic restored msc ^= mute:The .* (hits|bites|missed|misses) you msc ^= mute:There is an open door here msc ^= mute:There isn't anything here msc ^= mute:There isn't anything to butcher here msc ^= mute:Things that are here msc ^= mute:You (slash|hit|bite) the .* msc ^= mute:You butcher the .* corpse msc ^= mute:You hear a shout msc ^= mute:You hit the .* but do no damage msc ^= mute:You now have .* gold pieces msc ^= mute:You open the door. msc ^= mute:You start (resting|waiting) msc ^= mute:inedible chunks of flesh msc ^= mute:a .* skeleton msc ^= mute:Unknown command msg ^= mute:The .* is (severely|heavily) wounded msc ^= mute:The .* is almost dead msc ^= mute:Okay, then msc ^= mute:Eating .* flesh msc ^= mute:This raw flesh tastes terrible #msg ^= mute:.* chunks of flesh #이유는 모르겠는데 이거 안됨 msc ^= mute:a chunk of flesh msc ^= mute:The .* is (severely|moderately) wounded msg ^= mute:The .* is heavily damaged