Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Information to log:
- ## References:
- # https://github.com/elliptic/qw/blob/master/qw.rc
- # http://doc.dcss.io/
- show_more = false
- autofight_stop = 0
- {
- function get_mons(x, y)
- mon = monster.get_monster_at(x, y)
- crawl.stderr("Monster" .. "[" .. x .. "]" .. "[" .. y .. "] " .. tostring(mon:name()) .. "|" ..
- tostring(mon:is_unique()) .. "|" .. tostring(mon:damage_level()) .. "|" .. tostring(mon:threat())
- .. "|" .. tostring(mon:attitude()) .. "|" .. tostring(mon:is_firewood()))
- end
- function output(prompt)
- local hp, mhp = you.hp()
- for x = -9, 9 do
- for y = -9, 9 do
- if items.get_items_at(x,y) == Nil then
- crawl.stderr("Floor_Items" .. "[" .. x .. "]" .. "[" .. y .. "]" .. "0")
- else
- Floor_Item = items.get_items_at(x,y)
- items_at_loc = ''
- for ind,i in pairs(Floor_Item) do
- items_at_loc = items_at_loc .. '|' .. i.name()
- end
- crawl.stderr("Floor_Items" .. "[" .. x .. "]" .. "[" .. y .. "] " .. items_at_loc)
- end
- if you.see_cell_no_trans(x,y) == Nil then
- crawl.stderr("Can_See" .. "[" .. x .. "]" .. "[" .. y .. "] " .. 0)
- else
- crawl.stderr("Can_See" .. "[" .. x .. "]" .. "[" .. y .. "] " .. tostring(you.see_cell_no_trans(x, y)))
- end
- if you.see_cell_no_trans(x,y) == Nil or tostring(you.see_cell_no_trans(x, y)) == "false" then
- crawl.stderr("Monster" .. "[" .. x .. "]" .. "[" .. y .. "] " .. 0)
- else
- if monster.get_monster_at(x, y) == Nil then
- crawl.stderr("Monster" .. "[" .. x .. "]" .. "[" .. y .. "] " .. 0)
- else
- get_mons(x, y)
- end
- end
- crawl.stderr("Feature" .. "[" .. x .. "]" .. "[" .. y .. "] " .. view.feature_at(x, y))
- crawl.stderr("Invis_Mon" .. "[" .. x .. "]" .. "[" .. y .. "] " .. tostring(view.invisible_monster(x, y)))
- end
- end
- for it in iter.invent_iterator:new(items.inventory()) do
- if it.class(true) == "weapon" then
- temp = it.damage .. "|" .. it.accuracy .. "|" .. it.delay .. "|" ..
- tostring(it.plus) .. "|" .. it.weap_skill .. "|" .. tostring(it.equipped)
- elseif it.class(true) == "armour" then
- temp = it.ac .. "|" .. it.encumbrance .. "|" .. it.equip_type .. "|" ..
- tostring(it.worn) .. "|" .. tostring(it.plus)
- else
- temp = ""
- end
- crawl.stderr("Inventory_Item[" .. it.slot .. "]" .. items.index_to_letter(it.slot) .. "|" .. " |" ..
- it.class(true) .. "|" .. it.name(true) .. "|" .. temp)
- end
- crawl.stderr(
- "[\"HP\",\"" .. hp .. "\", \"" .. mhp .. "\"],\n" ..
- "[\"Turns\",\"" .. you.turns() .. "\"],\n" ..
- "[\"Gold\",\"" .. you.gold() .. "\"],\n" ..
- "[\"Feel safe\",\"" .. tostring(you.feel_safe()) .. "\"],\n" ..
- "[\"Hunger\",\"" .. you.hunger() .. "\"],\n" ..
- "[\"Strength\",\"" .. you.strength() .. "\"],\n" ..
- "[\"Intelligence\",\"" .. you.intelligence() .. "\"],\n" ..
- "[\"Dexterity\",\"" .. you.dexterity() .. "\"],\n" ..
- "[\"Safe\",\"" .. tostring(you.feel_safe()) .. "\"],\n" ..
- "[\"Prompt\",\"" .. tostring(prompt) .. "\"],\n" ..
- "[\"Confused\",\"" .. tostring(you.confused()) .. "\"],\n" ..
- "[\"Transform\",\"" .. tostring(you.transform()) .. "\"],\n" ..
- "[\"Berserk\",\"" .. tostring(you.berserk()) .. "\"],\n" ..
- "[\"Status\",\"" .. tostring(you.status()) .. "\"],\n" ..
- "[\"Cold Resistance\",\"" .. tostring(you.res_cold()) .. "\"],\n" ..
- "[\"Corrosion Resistance\",\"" .. tostring(you.res_corr()) .. "\"],\n" ..
- "[\"Negative energy Resistance\",\"" .. tostring(you.res_draining()) .. "\"],\n" ..
- "[\"Drowning Resistance\",\"" .. tostring(you.res_drowning()) .. "\"],\n" ..
- "[\"Fire Resistance\",\"" .. tostring(you.res_fire()) .. "\"],\n" ..
- "[\"Mutation Resistance\",\"" .. tostring(you.res_mutation()) .. "\"],\n" ..
- "[\"Poison Resistance\",\"" .. tostring(you.res_poison()) .. "\"],\n" ..
- "[\"Electric Resistance\",\"" .. tostring(you.res_shock()) .. "\"],\n" ..
- "[\"Branch\",\"" .. you.branch() .. "\"],\n" ..
- "[\"Branch depth\",\"" .. you.depth() .. "\"],\n" ..
- "[\"Branch depth percent\",\"" .. you.depth_fraction() .. "\"],\n" ..
- "[\"Absolute depth\",\"" .. you.absdepth() .. "\"],\n" ..
- "[\"Temple depth\",\"" .. travel.find_deepest_explored("Temple") .. "\"],\n" ..
- "[\"Dungeon depth\",\"" .. travel.find_deepest_explored("D") .. "\"],\n" ..
- "[\"Lair depth\",\"" .. travel.find_deepest_explored("Lair") .. "\"],\n" ..
- "[\"Swamp depth\",\"" .. travel.find_deepest_explored("Swamp") .. "\"],\n" ..
- "[\"Shoals depth\",\"" .. travel.find_deepest_explored("Shoals") .. "\"],\n" ..
- "[\"Snake Pit depth\",\"" .. travel.find_deepest_explored("Snake") .. "\"],\n" ..
- "[\"Spiders Nest depth\",\"" .. travel.find_deepest_explored("Spider") .. "\"],\n" ..
- "[\"Slime Pits depth\",\"" .. travel.find_deepest_explored("Slime") .. "\"],\n" ..
- "[\"Orcish Mines depth\",\"" .. travel.find_deepest_explored("Orc") .. "\"],\n" ..
- "[\"Elven Halls depth\",\"" .. travel.find_deepest_explored("Elf") .. "\"],\n" ..
- "[\"The Vaults depth\",\"" .. travel.find_deepest_explored("Vaults") .. "\"],\n" ..
- "[\"The Crypt depth\",\"" .. travel.find_deepest_explored("Crypt") .. "\"],\n" ..
- "[\"The Tomb depth\",\"" .. travel.find_deepest_explored("Tomb") .. "\"],\n" ..
- "[\"The Depths depth\",\"" .. travel.find_deepest_explored("Depths") .. "\"],\n" ..
- "[\"The Vestibule of Hell depth\",\"" .. travel.find_deepest_explored("Hell") .. "\"],\n" ..
- "[\"The Abyss depth\",\"" .. travel.find_deepest_explored("Abyss") .. "\"],\n" ..
- "[\"Realm of Zot depth\",\"" .. travel.find_deepest_explored("Zot") .. "\"],\n" ..
- "[\"Messages\",\n" .. crawl.messages(10) .. "]"
- )
- end
- function ready()
- output()
- end
- function choose_stat_gain()
- output()
- end
- function c_answer_prompt(prompt)
- output(prompt)
- end
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement