Page 1 of 1

how to make AUTOPICK to ALWAYS pick gold no matter monsters

PostPosted: Saturday, 10th November 2018, 17:33
by qepasa
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

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

PostPosted: Sunday, 11th November 2018, 20:26
by Eyesburn
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

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

PostPosted: Monday, 12th November 2018, 06:44
by Rast
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.