how to make AUTOPICK to ALWAYS pick gold no matter monsters
Posted: Saturday, 10th November 2018, 17:33
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
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