Spider Stomper
Posts: 233
Joined: Saturday, 18th February 2012, 04:40
Tried Trunk, so many changes, few quetions
So I tried Trunk since it sais quote "New option: autofight_warning, disabling autofight (tab) if successive commands are received too quickly. Should be helpful in cases of lag or accident."
I have played v.0.16-a0-2097 until now and was hoping this would fix the lagg problems I had had since the changes to coding. Not sure what command to write behind, tried a few and come to the conclusion it must be a number. But what does the # represent?
I also noticed my old init files is really outdated. No items, except Bread Rations are now on auto_pickup.
In fact, could someone send me an init file with a bit more advanced mechanisms (like auto-Stop when a Fiend comes into view, or auto-picking up Potions of Blood if you play Vampire) and i´ll work from there?
Or better yet - just give me some pointers what to remove and to add? (´ll post my current one at the bottom, it´s more or less Sandmans old init)
Any help appreciated!
- Code:
Init file
autofight_warning = 20
hp_warning = 25
greedy_sacrificeable
auto_sacrifice = true
travel_delay = -99
explore_delay = -99
tile_full_screen = true
runrest_ignore_monster ^= fish:3
autofight_stop = 60
good_random = true
force_more_message += You have finished your manual of
force_more_message = Space bends around you
force_more_message += sticky flame hits you(.|!)
force_more_message += scroll.*catch
force_more_message += potion.*shatter
force_more_message += fiend.*come
force_more_message += skill increases to level
force_more_message += Flails skill increases.*20
force_more_message += You hear the.*
##############
# Autopickup #
##############
pickup_thrown = true
pickup_mode = single
autopickup_exceptions +=<dart
autopickup_exceptions +=<javelin
autopickup_exceptions +=<needle
autopickup_exceptions +=<sling bullet
autopickup_exceptions +=<stone
autopickup_exceptions +=<throwing net
autopickup_exceptions +=<tomahawk
autopickup = $?!:"/%|\
ae := autopickup_exceptions
ae += useless_item
ae += (amulet|ring|rod|tome) of
ae += scrolls? of (amnesia|curse|noise|torment)
ae += potions? of (brilliance|magic|mutation|.*blood)
ae += ring? of (strength|slaying|protection|dexterity|intelligence)
(mutation|paralysis|.*poison|slowing|decay|degeneration|magic)
ae += <staves
ae += <books
ae += <manuals
: local branch = you.branch()
: if branch == "Pan" or branch:find("Zig") then
autopickup = $
Eae += <wand of (heal wounds|hasting|teleportation)
ae += <scrolls? of (acquirement|fog|holy|identify|lignification|recharging|remove)
ae += <scrolls? of (blinking|enchant|magic|brand)
ae += <potions? of (beneficial|cure mutation|experience|porridge)
ae += <potions? of (curing|restore abilities)
ae += <legendary deck
ae += <manuals
: end
: if you.race() ~= "Vampire" then
ae += potions? of.*blood
: end
: if you.god() == "Nemelex Xobeh" then
ae += <deck
: end
{
local function autopickup(it, name)
if it.artefact then
return false
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
end
if class == "weapon" then
if name:find("demon") or
name:find("quick") or
name:find("double") or
name:find("triple") or
name:find("eveningstar") or
name:find("distortion") then
return false
end
end
if class == "missile" then
if name:find("curare") then
return false
end
end
return false
end
add_autopickup_func(autopickup)
}
##########
# Travel #
##########
level_map_title = true
show_travel_trail = false
ignore := runrest_ignore_message
ignore =
# Annoyances
ignore += Jiyva gurgles merrily
ignore += Jiyva appreciates your sacrifice
ignore += Jiyva says: Divide and consume
ignore += You hear.*splatter
ignore += You feel.*sick
ignore += disappears in a puff of smoke
ignore += engulfed in a cloud of smoke
ignore += standing in the rain
ignore += engulfed in white fluffiness
ignore += safely over a trap
ignore += A.*toadstool withers and dies
ignore += toadstools? grow
ignore += You walk carefully through the
ignore += grinding sound
ignore += contamination has completely
ignore += chunks of flesh in your inventory.*rotted away
ignore += lightning rod has recharged
ignore += your breath back
ignore += Your transformation is almost over
ignore += You smell something.*
ignore += Magic Restored
ignore += Your transformation is almost over
ignore += Something in your.*
ignore += You are feeling.*
ignore += Eating.*
ignore += This raw.*
ignore += You are no.*
ignore += You start.*
ignore += One of your.*
ignore += You continue.*
ignore += Ugh.*
ignore += There is a.*
runrest_ignore_poison = 2:10
runrest_ignore_monster += butterfly:1
# Expiring effects
ignore += pray:
ignore += talk:
ignore += talk_visual:
ignore += friend_spell:
ignore += friend_enchant:
ignore += friend_action:
ignore += sound:
#############
# Interface #
#############
equip_unequip = true
allow_self_target = no
easy_confirm = all
confirm_butcher = never
auto_eat_chunks = true
auto_drop_chunks = yes
autofight_throw_nomove = false
show_inventory_weights = true
show_gold_turns = true
show_game_turns = true
default_manual_training = true
skill_focus = true
small_more = false
# Spellcasting spam reduction by monqy
{
local function generic_cast_spell(cmd)
crawl.mpr('<cyan>Cast which spell?</cyan>')
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
}
###############
# Keybindings #
###############
#########
# Notes #
#########
dump_message_count = 30
dump_order = header,hiscore,stats,misc,mutations,skills,spells,inventory
dump_order += screenshot,monlist,messages,action_counts,vaults,notes,kills
note_hp_percent = 10
###############
# Spell slots #
###############
#################
# Miscellaneous #
#################
char_set = unicode
show_player_species = true
note_all_skill_levels = true
# Features
cset_unicode = item_gold:£
cset_unicode = cloud:#
feature = explore horizon {.,,green}
feature = (closed|runed|sealed) door {+,,}
# Glyph todo:
# Steal st_'s 'p'eople?
# Classed draconians on q?
# All ghosts on W, corporeal undead on z?
# Bugs on B, flying bugs on y.
# Quadruped hybrids
mon_glyph = hippogriff:Q
mon_glyph = manticore:Q
mon_glyph = griffon:Q
mon_glyph = sphinx:Q
# Dwarves
mon_glyph = Wiglaf:lightcyan g
mon_glyph = Jorgrun:lightmagenta g
mon_glyph = dwarf:lightgreen g
mon_glyph = deep dwarf:lightblue g
# Derived undead
mon_glyph = small zombie:brown Z
mon_glyph = small skeleton:lightgrey Z
mon_glyph = small simulacrum:ice Z
# Others
mon_glyph = ice beast:ice Y
mon_glyph = sky beast:mutagenic Y
mon_glyph = boggart:magenta i
mon_glyph = dancing weapon:7
mon_glyph = greater mummy:lightmagenta M
mon_glyph = ancient lich:lightmagenta L
mon_glyph = hellion:lightred 2
# Sensed monsters
mon_glyph = tough sensed monster:lightred
mon_glyph = nasty sensed monster:red