Bapeth's Trapper BOOM BOOM by barryroser
Description from the author:
# BOOM BOOM by Bapeth
#
# Update : Jan 14th 2025 (Bug fix + added logic)
#
# This is a one button Trap placer and detonator, Bind to a hotkey
#
# If you want to remove a trap, go into warmode near the trap and play script
# If you are not close enough to remove the trap (within the purple square), the script will now place a new trap
#
# Script starts here...
if not timerexists baptrapcombat
createtimer baptrapcombat
elseif timerexists baptrapcombat
settimer baptrapcombat 0
endif
if warmode and findtype "metal trap" ground -1 -1 2 as removetrap
menu removetrap 0
warmode off
hotkey "Attack Last Combatant"
elseif warmode and findtype "metal trap" ground -1 -1
say "[PlaceTrap"
warmode off
endif
if not findtype 51163 ground
getlabel backpack ping
endif
if not warmode and findtype "metal trap" ground -1 -1 8 and findtype "music box" backpack as boom
clearsysmsg
say "[DetonateTrap"
getlabel backpack ping
if insysmsg "You detonate a ground trap"
overhead "BOOM!" 88
elseif insysmsg "You must wait another"
// do nothing
elseif insysmsg "You are too far away"
overhead "Gotta get closer..." 45
elseif insysmsg "You do not have an active floor trap."
say "[PlaceTrap"
endif
elseif not warmode
if findtype "metal trap" backpack
say "[PlaceTrap"
endif
endif
if skill "Tinkering" >= 80
script "Bapeths Trapper Background"
endifThis script is a one button trap placer and detonator!