Returning Player autopickup issue


Ask fellow adventurers how to stay alive in the deep, dark, dangerous dungeon below, or share your own accumulated wisdom.

Spider Stomper

Posts: 233

Joined: Saturday, 18th February 2012, 04:40

Post Thursday, 22nd December 2022, 06:11

Returning Player autopickup issue

Hey there.
Returning player here. My init file is based on Ultraviolent 4´s ditto and worked very well in the 0.26 version but I haven´t really played since back then and now when I use it in 0.29 my toons keep on auto-pickup-ing all armor, wither I found better or not.
Any easy way to fix this? I´m not really that good with init.files so any help greatly appreciated.
Here´s the file btw:
  Code:
       

tile_full_screen = true
default_manual_training=true
autofight_stop = 70
auto_butcher=true
auto_eat_chunks = true
show_more = false




# autopickup = $?!:"/%}|\


############
# Includes #
############
autopickup_exceptions +=<stone
autopickup_exceptions +=<sling bullet
autopickup_exceptions +=<needle
autopickup_exceptions +=<javelin
autopickup_exceptions +=<stone
autopickup_exceptions +=<boomerang
autopickup_exceptions +=<tomahawk

autopickup_exceptions +=<dart
autopickup_exceptions +=<potion of mutation
autopickup_exceptions +=<figurines of a ziggurat
autopickup_exceptions +=<lightning rods
autopickup_exceptions +=<phantom mirrors
autopickup_exceptions +=<unknown books






# include += HDAColors.rc
# doesnt work without this rc being present

# Skill menu at game start by rwbarton
{

local need_skills_opened = true
function ready()
  if you.turns() == 0 and need_skills_opened then
    need_skills_opened = false
    crawl.sendkeys("m")
  end

end
}



# Autopickup artefacts
ae += <artefact

# Armour/Weapon autopickup by rwbarton, enhanced by HDA with fixes from Bloaxor
{
add_autopickup_func(function(it, name)

  if name:find("throwing net") then return true end
  if name:find("scroll of immolation") then return true end
  if name:find("scroll of vulnerability") then return true end
 
  local class = it.class(true)
  local armour_slots = {cloak="Cloak", helmet="Helmet", gloves="Gloves", boots="Boots", body="Armour", shield="Shield"}

  if (class == "armour") then
      if it.is_useless then return false end
      
    sub_type = it.subtype()
    equipped_item = items.equipped_at(armour_slots[sub_type])

    if (sub_type == "cloak") or (sub_type == "helmet") or (sub_type == "gloves") or (sub_type == "boots") then
      if not equipped_item then
        return true
      else
        return it.artefact or it.branded or it.ego
      end
    end
 
    if (sub_type == "body") then
      if equipped_item then
        local armourname = equipped_item.name()
        if equipped_item.artefact or equipped_item.branded or equipped_item.ego or (equipped_item.plus > 2) or armourname:find("dragon") or armourname:find("troll") then
          return it.artefact
        else
          return it.artefact or it.branded or it.ego
        end
      end
      return true
    end
 
    if (sub_type == "shield") then
      if equipped_item then
          return it.artefact or it.branded or it.ego
      end
    end
  end
end)
}


#############
# Interface #
#############


travel_delay = -1
rest_delay = -1
auto_sacrifice = true
sacrifice_before_explore = true

show_game_time = true

warn_hatches = true
jewellery_prompt = false
equip_unequip = true
allow_self_target = never
confirm_butcher = never
easy_eat_gourmand = true
hp_warning = 70

wall_jump_move = false

##############
# Autopickup #
##############

ae := autopickup_exceptions

ae += <phantom mirror
ae += <scrolls? of immolation
ae += <vulnerability|immolation

# ae += >wand of lightning
# ae += >wand of confusion

ae += >scroll of amnesia
ae += >scroll of holy word

ae += >ring of stealth
ae += >ring of positive energy
ae += >ring of fire
ae += >ring of ice
ae += >ring of magical power
ae += >ring of strength
ae += >ring of intelligence
ae += >ring of dexterity
ae += >ring of wizardry





#########
# Notes #
#########

dump_item_origins = all
dump_message_count = 50
dump_book_spells = false

##########
# Travel #
##########

explore_stop = items,greedy_items, greedy_pickup, greedy_pickup_gold
explore_stop += greedy_visited_item_stack,stairs,shops,altars,gates
explore_stop += greedy_sacrificeable
auto_exclude += oklob,statue,roxanne,hyperactive

stop := runrest_stop_message
ignore := runrest_ignore_message

# Annoyances
: if you.god() == "Jiyva" then
ignore += Jiyva gurgles merrily
ignore += Jiyva appreciates your sacrifice
ignore += Jiyva says: Divide and consume
ignore += You hear.*splatter
: end

ignore += You eat
ignore += Eating one of the
ignore += This raw flesh


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 += chunks of flesh in your inventory.*rotted away
runrest_ignore_poison  = 5:10
runrest_ignore_monster += ^butterfly:1


# Bad things
stop += You fall through a shaft
stop += An alarm trap emits a blaring wail
stop += (blundered into a|invokes the power of) Zot
stop += A huge blade swings out and slices into you!
stop += flesh start
stop += wrath finds you
stop += lose consciousness
stop += watched by something
stop += appears from out of your range of vision
stop += An orb of Fire.*

# Expiring effects
stop += less insulated
stop += You are starting to lose your buoyancy
stop += You lose control over your flight
stop += Your hearing returns
stop += back to life
stop += uncertain
stop += time is quickly running out
stop += life is in your own hands
stop += is no longer charmed
stop += You are no longer



: if you.race() == "Ghoul" then
stop += smell.*(rott(ing|en)|decay)
stop += something tasty in your inventory
: end

: if you.god() == "Xom" then
stop += god:
:else
ignore += god:
:end

ignore += pray:
ignore += talk:
ignore += talk_visual:
ignore += friend_spell:
ignore += friend_enchant:
ignore += friend_action:
ignore += sound:


###########
# prompts #
###########

flash_screen_message += You feel strangely unstable
flash_screen_message += Strange energies course through your body

more := force_more_message









# distortion
more += Space warps horribly around you
more += hits you.*distortion
more += Space bends around you\.
more += Its appearance distorts for a moment.

# ghost moths/antimagic
more += watched by something


# torment/holy wrath
more += You convulse

# dispel breath

more += You fall through a shaft

# abyss convenience prompts
more += Found an abyssal rune
more += Found a gateway leading out of the Abyss
more += Found a gateway leading deeper into the Abyss

# necromutation
more += You feel yourself coming back to life

# summon greater demon
more += is no longer charmed

# Announcements of timed portal vaults:
more += interdimensional caravan
more += distant snort
more += roar of battle
more += wave of frost
more += hiss of flowing sand
more += sound of rushing water
more += oppressive heat about you
more += crackle of arcane power
more += Found a gateway leading out of the Abyss
more += Found .* abyssal rune of Zot
more += .* resides here

# Interrupts
more += You don't.* that spell
more += You miscast (Controlled Blink|Blink|Death's|Borg|Necromutation)
more += You can't (read|drink|do) that
more += Something interferes with your magic

# Bad things
more += Space warps horribly around you
more += Space bends around you\.
more += watched by something
more += A sentinel's mark forms upon you
more += Your limbs have turned to stone
more += warns you.*of distortion
more += lethally poison
more += space bends around your



# Expiring effects
more += less insulated
more += You are starting to lose your buoyancy
more += You lose control over your flight
more += Your hearing returns
more += You have a feeling this form
more += You feel yourself come back to life
more += uncertain
more += time is quickly running out
more += life is in your own hands
more += is no longer charmed
more += shroud falls apart
more += You start to feel a little slower
more += You feel less protected from missiles


# Others
# more += You have finished your manual of
more += Your scales start
more += You feel monstrous
more += Jiyva alters your body

# Dancing weapon
more += Your.*falls from the air.

# Xom is scary
: if you.god() == "Xom" then
more += god:
: end

####################
# Autoinscriptions #
####################

ai := autoinscribe

ai += (bad|dangerous)_item.*potion:!q
ai += (bad|dangerous)_item.*scroll:!r
ai += of faith:!P
ai += rod of:!a
ai += lightning rod:!a
ai += [^r]staff of (conj|energy|power|wizardry):!a
ai += manual of:!d
ai += dispersal:!f
ai += tome of Destruction:!d
ai += throwing net:!Z
ai += curare:!f

: if you.god() ~= "Lugonu" then
ai += (distortion):!w
:end

ai += remove curse:@r2
ai += curing:@q1
ai += potions? of heal wounds:@q2
ai += wand of heal wounds:@v2
ai += wand of hasting:@v3
ai += potions? of haste:@q3
ai += scrolls? of teleportation:@r4
ai += wand of teleportation:@v4
ai += potions? of blood:@q0

: if you.god() == "Fedhas" then
ai += fruit:!e
: end

####################
# Mute some messages #
####################


###############
# Spell slots #
###############

spells
spell_slot += Infusion:l
spell_slot += Coronoa:l
spell_slot += Beastly Appendage:l
spell_slot += Magic Dart:l
spell_slot += Summon Small Mammal:l
spell_slot += Pain:l
spell_slot += Flame Tongue:l
spell_slot += Freeze:l
spell_slot += Shock:l
spell_slot += Sandblast:l
spell_slot += Sting:l
spell_slot += Corona:l


spell_slot += Summon Imp:b

spell_slot += Throw Frost:e
spell_slot += Throw Icicle:f
spell_slot += Throw Ozocubus´s Armour:q



spell_slot += Confusing Touch:a
spell_slot += Sticks to Snakes:b
spell_slot += Tukima´s Dance:e


spell_slot += Summon Lightning Spire:z

spell_slot += Apportation:t
spell_slot += Blink:g
spell_slot += Sting:z

spell_slot += Coronoa:e
spell_slot += Song of Slaying:a
spell_slot += Shroud of Golubria:b
spell_slot += Passwall:v

spell_slot += Throw Flame:e
spell_slot += Haste:h
spell_slot += Swiftness:x
spell_slot += Deflect Missiles:d
spell_slot += Regeneration:q
spell_slot += Conjure Flame:w
spell_slot += Vampiric Draining:f
spell_slot += Spectral Weapon:f
spell_slot += Confuse:b
spell_slot += Animate Skeleton:a
spell_slot += Animate Dead:n
spell_slot += Borgnjor´s Vile Clutch:z
spell_slot += Agony:c
spell_slot += Dispel Undead:e
spell_slot += Bolt of Draining:s
spell_slot += Simulacrum:g







spell_slot += Song of Slaying:a
spell_slot += Mephitic Cloud:c
spell_slot += Fireball:f
spell_slot += Bolt of Fire:j
spell_slot += Bolt of Cold:j
spell_slot += Freezing Cloud:z
spell_slot += Summon Lightning Spire:f
spell_slot += Sticky Flame:r

###############
# Item slots #
###############
item_slot += wand of hasting:H
item_slot += wand of heal wounds:e
item_slot += wand of confusion:y
item_slot += wand of lightning:L
item_slot += wand of teleportation:T


item_slot += wand of acid:A
item_slot += wand of digging:B
item_slot += wand of clouds:C
item_slot += wand of disintegration:D
item_slot += wand of enslavement:E
item_slot += wand of flame:F
item_slot += wand of iceblast:I
item_slot += wand of paralysis:P
item_slot += wand of polymorph:Q
item_slot += wand of random effects:R
item_slot += wand of scattershot:S


item_slot += dagger:w

item_slot += throwing net:Z
item_slot += hunting sling:b
item_slot += stone:o
item_slot += sling bullet:g
item_slot += dart of curare:v
item_slot += boomerang:m



item_slot += ring of see invisible:z
item_slot += ring of protection from magic:l
item_slot += potion of heal:s


item_slot += ration:e
item_slot += potion of blood:q
item_slot += poison needle: Q

item_slot += scroll of identify:r
item_slot += potion of mutation:m
item_slot += potion of might:s








##################
# Basic Settings #
##################

# General Categories
menu += $boring:(melded)
menu += $boring:.*useless_item.*
menu += $evil:.*evil_item.*
menu += $danger:[^n]cursed
menu += inventory:$danger:[^n]cursed
menu += inventory:$equipped:.*equipped.*
menu += $decent:.*artefact.*

# Unidentified Items
menu += $warning:^unidentified .*(jewellery|potion|scroll|wand).*
menu += $good:^unidentified .*armour.*(embroidered|dyed|glowing|shiny|runed)
menu += $good:^unidentified .*weapon.*(glowing|runed)

#################
# Various Items #
#################

# Amulets
menu += $boring:amulet of inaccuracy
menu += $good:amulet of (guardian spirit|stasis|warding)
menu += $positive:amulet of (faith|rage|resist corrosion)
menu += $verypositive:amulet of (clarity|regeneration|resist mutation|the gourmand)

# Decks (keep warning as default in case of new decks)
menu += $evil:deck of punishments
menu += $warning:deck of (changes|destruction)
menu += $decent:deck of cards
menu += $good:deck of war
menu += $positive:deck of (defence|summoning)
menu += $verypositive:deck of escape
menu += $awesome:deck of wonders
menu += $warning:deck of

# Evokables
menu += blue:inert
menu += $warning:disc of storms
menu += $warning:tome of Destruction
menu += $decent:box of beasts
menu += $decent:lantern of shadows
menu += $decent:stone of tremors
menu += $good:fans? of gales
menu += $good:lamps? of fire
menu += $good:phials? of floods
menu += $good:sack of spiders
menu += $positive:phantom mirror
menu += $mp:crystal ball of energy

# Food
menu += $evil:evil_eating
menu += $danger:rot-inducing
menu += $warning:poisonous
menu += $boring:inedible
menu += $good:bread ration
menu += $good:meat ration
menu += $good:preferred
menu += $good:(corpse|chunk)
menu += $mutation:mutagenic

# Potions
menu += $danger:potions? of berserk
menu += $decent:potions? of (flight|lignification|restore)
menu += $good:potions? of (agility|brilliance|invisibility|might|resistance)
menu += $positive:potions? of curing
menu += $verypositive:potions? of (haste|heal wounds)
menu += $awesome:potions? of (beneficial|cancellation|mutation|experience|gain)
menu += $mp:potions? of magic

# Rings
menu += $negative:ring of \-.*(dexterity|evasion|intelligence|protection|slaying|strength)
menu += $negative:ring of loudness
menu += $warning:ring of (fire|ice)
menu += $decent:ring of flight
menu += $good:ring of (.*evasion|invisibility|magical power|.*protection|stealth|sustain abilities|wizardry)
menu += $positive:ring of (poison resistance|protection from cold|protection from fire|protection from magic|see invisible)
menu += $verypositive:ring of (regeneration|.*slaying)
menu += $awesome:ring of teleport

# Rods
menu += $verypositive:rod

# Scrolls
menu += $danger:scrolls? of torment
menu += $boring:scrolls? of (noise|random)
menu += $decent:scrolls? of (holy word|identify|remove curse)
menu += $good:scrolls? of (fear|fog|immolation|silence|summoning|vulnerability)
menu += $positive:scrolls? of (brand|enchant|magic mapping|recharging)
menu += $verypositive:scrolls? of acquirement
menu += $awesome:scrolls? of (blinking|teleportation)

# Staves
menu += $mp:staff of (energy|Wucad Mu)
menu += $positive:[^r]staff of

# Wands
menu += $boring:wand of (flame|frost|magic darts|random effects)
menu += $decent:wand of (confusion|enslavement|paralysis|polymorph|slowing)
menu += $good:wand of (cold|digging|disintegration|draining)
menu += $good:wand of (fire|fireball|invisibility|lightning)
menu += $positive:wand of hasting
menu += $verypositive:wand of heal wounds
menu += $awesome:wand of teleportation

# Other
menu += $negative:shield of the gong
menu += $good:throwing net
menu += $good:tomahawk

menu += $awesome:.*misc.*rune( of Zot)?
menu += $awesome:.*orb.*Zot
menu += $awesome:manual

####################
# Message coloring #
####################
# Standard Colors
# black, blue, brown, cyan, darkgrey, green, lightblue, lightcyan, lightgreen,
# lightgrey, lightmagenta, lightred, magenta, red, yellow, white

# Variables for message highlighting
$danger   := lightred
$item_dmg := red
$warning  := yellow
$boring   := darkgrey
$negative := brown
$good     := lightblue
$positive := green
$verypositive := lightgreen
$awesome := lightmagenta
$interface := cyan
$takesaction := blue
$godaction := magenta
$mp := lightcyan

#Channels
#channel.plain =
channel.prompt = $interface
channel.god = $godaction
channel.pray = $godaction
channel.duration = $warning
channel.danger = $danger
channel.warning = $danger
channel.recovery = $verypositive
channel.talk = $warning
channel.talk_visual = $boring
channel.timed_portal = $warning
#channel.sound =
channel.intrinsic_gain = $awesome
#channel.mutation = --either danger/warning/awesome
channel.monster_spell = $takesaction
#channel.monster_enchant = --either danger/warning/boring/takesaction
channel.friend_spell = $takesaction
#channel.friend_enchant = --either danger/warning/boring/takesaction
channel.friend_action = $takesaction
channel.monster_damage = mute
#monster_target = --currently unused by the game
#channel.banishment = --either positive or danger
channel.rotten_meat = $boring
channel.equipment = $interface
#channel.floor =
channel.multiturn = $boring
#channel.examine =
#channel.examine_filter =
#channel.diagnostics =
#channel.error =
#channel.tutorial =
channel.orb = $awesome
#channel.hell_effect = -either danger/warning/boring

Spider Stomper

Posts: 233

Joined: Saturday, 18th February 2012, 04:40

Post Thursday, 22nd December 2022, 08:46

Re: Returning Player autopickup issue

Went through some old posts and turns I had had a similair issue before so i removed the "return false" command and that fixed it.

Return to Dungeon Crawling Advice

Who is online

Users browsing this forum: No registered users and 48 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.