Bapeth's Leather / Plate Hot swapping script by barryroser
Description from the author:
# Bapeths Leather / Plate Hotswapping
#
# Upload Date : December 30th 2024
#
# This script will toggle leather or plate on in a single press
# It requires that you have two sets of armor on your person, one leather and one plate
#
# Use this when you want to avoid Blast damage, or auto swap between leather/plate for any reason
#
# Script starts here...
clearall
while queued
//donothing
endwhile
if not find "NoMBchest" self
hotkey "Set Last Target"
wft 500
overhead "Set Plate Chest..." 88
while targetexists
//do nothing
endwhile
@setvar "NoMBchest" lasttarget
getlabel "NoMBchest" desc
if "platemail chest" in desc
//donothing
else
@unsetvar "NoMBchest"
replay
endif
endif
if not find "NoMBleggings" self
hotkey "Set Last Target"
wft 500
overhead "Set Plate Leggings..." 88
while targetexists
//donothing
endwhile
@setvar "NoMBleggings" lasttarget
getlabel "NoMBleggings" desc
if "platemail leggings" in desc
//donothing
else
@unsetvar "NoMBleggings"
replay
endif
endif
if not find "NoMBgloves" self
hotkey "Set Last Target"
wft 500
overhead "Set Plate Gloves..." 88
while targetexists
//donothing
endwhile
@setvar "NoMBgloves" lasttarget
getlabel "NoMBgloves" desc
if "platemail gloves" in desc
//donothing
else
@unsetvar "NoMBgloves"
replay
endif
endif
if not find "NoMBarms" self
hotkey "Set Last Target"
wft 500
overhead "Set Plate Arms..." 88
while targetexists
//donothing
endwhile
@setvar "NoMBarms" lasttarget
getlabel "NoMBarms" desc
if "platemail arms" in desc
//donothing
else
@unsetvar "NoMBarms"
replay
endif
endif
if not find "NoMBgorget" self
hotkey "Set Last Target"
wft 500
overhead "Set Plate Gorget..." 88
while targetexists
//donothing
endwhile
@setvar "NoMBgorget" lasttarget
getlabel "NoMBgorget" desc
if "platemail gorget" in desc
//donothing
else
@unsetvar "NoMBgorget"
replay
endif
endif
if not find "MBchest" self
hotkey "Set Last Target"
wft 500
overhead "Set Leather Chest..." 78
while targetexists
//do nothing
endwhile
@setvar "MBchest" lasttarget
getlabel "MBchest" desc
if "leather chest" in desc
//donothing
else
@unsetvar "MBchest"
replay
endif
endif
if not find "MBleggings" self
hotkey "Set Last Target"
wft 500
overhead "Set Leather Leggings..." 78
while targetexists
//donothing
endwhile
@setvar "MBleggings" lasttarget
getlabel "MBleggings" desc
if "leather leggings" in desc
//donothing
else
@unsetvar "MBleggings"
replay
endif
endif
if not find "MBgloves" self
hotkey "Set Last Target"
wft 500
overhead "Set Leather Gloves..." 78
while targetexists
//donothing
endwhile
@setvar "MBgloves" lasttarget
getlabel "MBgloves" desc
if "leather gloves" in desc
//donothing
else
@unsetvar "MBgloves"
replay
endif
endif
if not find "MBarms" self
hotkey "Set Last Target"
wft 500
overhead "Set Leather Arms..." 78
while targetexists
//donothing
endwhile
@setvar "MBarms" lasttarget
getlabel "MBarms" desc
if "leather arms" in desc
//donothing
else
@unsetvar "MBarms"
replay
endif
endif
if not find "MBgorget" self
hotkey "Set Last Target"
wft 500
overhead "Set Leather Gorget..." 78
while targetexists
//donothing
endwhile
@setvar "MBgorget" lasttarget
getlabel "MBgorget" desc
if "leather gorget" in desc
//donothing
else
@unsetvar "MBgorget"
replay
endif
endif
if not timerexists pvparon
overhead "Equipping Leather" 88
createtimer pvparon
removetimer pvparoff
while find "MBchest" backpack
dclick "MBchest"
while queued
//donothing
endwhile
endwhile
while find "MBgloves" backpack
dclick "MBgloves"
while queued
//donothing
endwhile
endwhile
while find "MBleggings" backpack
dclick "MBleggings"
while queued
//donothing
endwhile
endwhile
while find "MBarms" backpack
dclick "MBarms"
while queued
//donothing
endwhile
endwhile
while find "MBgorget" backpack
dclick "MBgorget"
while queued
//donothing
endwhile
endwhile
stop
endif
if not timerexists pvparoff
overhead "Equipping Plate" 38
createtimer pvparoff
removetimer pvparon
while find "NoMBchest" backpack
dclick "NoMBchest"
while queued
//donothing
endwhile
endwhile
while find "NoMBgloves" backpack
dclick "NoMBgloves"
while queued
//donothing
endwhile
endwhile
while find "NoMBleggings" backpack
dclick "NoMBleggings"
while queued
//donothing
endwhile
endwhile
while find "NoMBarms" backpack
dclick "NoMBarms"
while queued
//donothing
endwhile
endwhile
while find "NoMBgorget" backpack
dclick "NoMBgorget"
while queued
//donothing
endwhile
endwhile
stop
endifUse this when you want to avoid Mind Blast damage, or auto swap between leather/plate for any reason