View Full Version : my back is tired from using the free pickaxe
gilchristr
03-02-2022, 03:01 AM
Can anyone recommend a good script? Like i dont want to do anything except lean back and watch, and rip on people on lnet.
PS, I already know about ;totalsolution
Tgo01
03-02-2022, 03:28 AM
I wrote up a little script that worked great for me.
It can automatically throw away selected items, it can give items to the archaeologist, and instead of doing "empty crate into my cloak" or whatever it just grabs each item out of the box so you save previous seconds by not using the EMPTY verb. The script still has to EMPTY coffins and caskets though.
Just be sure to read the instructions and change the variables listed towards the top of the script.
#How to use script:
#;script_name dig - to dig
#;script_name give - to give designated items to archaeologist
#;script_name trash - to throw away designated items in the bin
###Variables below must be set:
stow_container = "cloak" #Enter the NOUN of the container where you want to stow everything.
number_of_digs = 300 #How many digs at once you want to do before script will exit. Script will also exit when you have no more pickaxes in any open containers so you can just set this to 100000 to just keep digging until all your pickaxes break.
item = /jagged white sunstone shard|broken white opal sphere|white dreamstone sliver|thin platinum strip|black opal fragment|blood red garnet chunk|coarse grey moonstone shard|thin iron strip|cracked ur-barath stone|broken fire opal chunk|splintered fire agate shard|thin kakore strip|carved ur-barath totem|sharp golden topaz shard/ #Enter the names of items you want to give to the archaeologist, each item separated by a |
trash_items = /woven flax and linen rag|enormous gold nose ring|stamped golden coin|heavy iron boar hide|twisted branch of wyrwood|large bolt of plumille|rigid chunk of balenite/ #Enter the names of items you want to trash, each item separated by a |. This will automatically trash items found in boxes while you're digging (note it will NOT trash these items if they are found in coffins/caskets) or if you start script by doing ;script_name trash. This only works in the area where you're digging because it's hard coded to put items in the bin.
################################################## ###################################
number_digs_remaining = number_of_digs
fput "stow right" if checkright
fput "stow left" if checkleft
wait_until{ checkright.nil? && checkleft.nil? }
container = GameObj.inv.find{ |i| i.noun == stow_container }
if script.vars[1] =~ /give/
container.contents.each{ |i|
fput "stow right" if checkright
fput "stow left" if checkleft
if i.name =~ item
fput "get ##{i.id}"
wait_until { checkright }
2.times{ fput "give ##{i.id} to archaeologist" }
end
break if !checknpcs.include?("archaeologist")
}
elsif script.vars[1] =~ /dig/
fput "get my pickaxe"
sleep 1
number_of_digs.times{
break if checkright.nil?
waitrt?
fput "anal my pickaxe"
fput "dig"
echo "Number of digs remaining: #{number_digs_remaining}"
sleep 0.2
if checkleft
waitrt?
loop{
waitrt?
until checkright.nil?
waitrt?
fput "stow right"
sleep 0.1
end
result = dothistimeout "open my #{checkleft}", 5, /Perhaps try to PRY it open|You (open|lift) the lid|That is already open/
if result =~ /Perhaps try to PRY it open/
loop{
waitrt?
result = dothistimeout "pry my #{checkleft}", 5, /Roundtime|is already opened/
if result =~ /Roundtime/
nil
elsif result =~ /is already opened/
break
end
}
break
elsif result =~ /You (open|lift) the lid|That is already open/
break
end
}
loop{
waitrt?
if checkleft !~ /coffin|casket/
box_container = GameObj.left_hand
20.times{
fput "look in ##{box_container.id}"
break if box_container.contents
sleep 0.1
}
if box_container.contents
box_container.contents.each{ |item|
fput "get ##{item.id}"
if item.name =~ trash_items
fput "put ##{item.id} in bin"
else
fput "stow ##{item.id}"
end
}
end
end
result = dothistimeout "empty my #{checkleft} into my #{stow_container}", 5, /everything falls in quite nicely|but nothing comes out/
break if result =~ /everything falls in quite nicely|but nothing comes out/
waitrt?
sleep 0.1
}
loop{
waitrt?
result = dothistimeout "put #{checkleft} in bin", 5, /you feel pleased with yourself/
break if result =~ /you feel pleased with yourself/
sleep 0.1
}
until checkright
waitrt?
fput "get my pickaxe"
sleep 0.1
end
end
waitrt?
fput "stow #{checkleft}" if checkleft
}
elsif script.vars[1] =~ /trash/
container.contents.each{ |i|
fput "stow right" if checkright
fput "stow left" if checkleft
if i.name =~ trash_items
fput "get ##{i.id}"
wait_until { checkright }
fput "put ##{i.id} in bin"
end
}
end
50.times{ echo "ALL FINISHED!" }
Tgo01
03-02-2022, 03:30 AM
I just realized the script will probably get stuck in a loop trying to GET MY PICKAXE if you don't have anymore pickaxes instead of just exiting. I can fix it later, but that's rather minor anyways since you will be watching the script...right...?
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.