how to make AUTOPICK to ALWAYS pick gold no matter monsters


Problems running or configuring the software, commands & options, compiling, different platforms, using the interface, documentation, etc.

Mines Malingerer

Posts: 34

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

Post Sunday, 4th November 2018, 08:50

how to make AUTOPICK to ALWAYS pick gold no matter monsters

i posted that question on coding section as well.



it is tricky and i doubt it can be done. But can someone who knows how to RC/LUA.

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?
Last edited by qepasa on Monday, 5th November 2018, 10:16, edited 1 time in total.

Mines Malingerer

Posts: 34

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

Post Monday, 5th November 2018, 10:13

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

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

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 6 guests

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