Mines Malingerer
Posts: 34
Joined: Wednesday, 15th November 2017, 07:15
how to make AUTOPICK to ALWAYS pick gold no matter monsters
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?
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
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