how to make AUTOPICK to ALWAYS pick gold no matter monsters


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

Mines Malingerer

Posts: 34

Joined: Wednesday, 15th November 2017, 07:15

Post Saturday, 10th November 2018, 17:33

how to make AUTOPICK to ALWAYS pick gold no matter monsters

But can someone who knows how to RC/LUA.
So sorry for double posting, i rly want to learn how to do it

it should work:
Say there are monsters (unsafe) and i walk onto gold. I want autopickup to ignore monsters and pick gold regardless.
Would be nice to on/off such feature.

Is that even possible?
Where to start?

So i tried with no results :( such script:

:function lay_gold(item)
: return string.find(item.name(),"gold")
:end

:function over_gold()
: for item_under_you in iter.invent_iterator:new(you.floor_items()) do
: if string.find(item_under_you.name(),"gold") then return true end
: end
:end

:function over_lay_gold()
: for item_under_you in iter.invent_iterator:new(you.floor_items()) do
: if lay_gold(item_under_you) then return true end
: end
:end

:function ready()
: if and over_lay_gold() then
: crawl.sendkeys("g")
: crawl.process_command()
: end
:end
User avatar

Tomb Titivator

Posts: 778

Joined: Thursday, 13th March 2014, 20:15

Post Sunday, 11th November 2018, 20:26

Re: how to make AUTOPICK to ALWAYS pick gold no matter monst

put this in your rc
  Code:
greedy_lazy_player = true
:P

well just kidding, maybe check these (options.txt):
  Code:
interrupt_<delay> += <activity_interrupt_type>, <activity_interrupt_type>, ...
  Code:
runrest_ignore_monster ^= <regex>:<distance>, <regex>:<distance>, ...


or maybe look for this function in the source code:
void autotoggle_autopickup(bool off),

edit:
or search some of these:
bool pickup_single_item(int link, int qty), i_feel_safe(), force_autopickup, bool can_autopickup()

but really theres no reason to give monsters free turns while you are picking up gold coins
Last edited by Eyesburn on Tuesday, 13th November 2018, 05:32, edited 1 time in total.
~online scoring~

Pig's in zen
Pig is nude
Unashamed

Tartarus Sorceror

Posts: 1739

Joined: Tuesday, 13th March 2012, 02:48

Post Monday, 12th November 2018, 06:44

Re: how to make AUTOPICK to ALWAYS pick gold no matter monst

Eyesburn wrote:but really theres no reason to give monsters free turns while you are picking up gold coins


Yeah, this is something nobody wants. Gozag in abyss is annoying, but dying while picking up gold is worse.

Return to Dungeon Crawling Advice

Who is online

Users browsing this forum: No registered users and 20 guests

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