by Double Duke Version 0.6 2023/04/18 Script for UO Outlands The script ask you to set 3 weapons and a shield (optional): 1x onehanded (+ shield) - 1x twohanded - 1x secondary twohanded or…
Melee weapons swap and hide in a trapped pouch.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/34a5a207-8a1b-4853-a202-33fe010bcbdf for latest2# Automation by Jaseowns3## Script: Melee weapons swap and hide in a trapped pouch4## Created by: DoubleDuke#63215#############################################6 7# Melee weapons swap and hide in a trapped pouch by Double Duke8# Version 0.6 2023/04/189# Script for UO Outlands10#11# The script ask you to set 3 weapons and a shield (optional):12# 1x onehanded (+ shield) - 1x twohanded - 1x secondary twohanded or bow/heavycrossbow13# Then equip the first weapon in line and hide the others in your next free trapped pouch available14#15# After setup, every trigger of the script, will do this for you:16#17# - check for free trapped pouches available and set as safepouch (thief proof)18# - check if your weapons are still there19# - look into actually equipped weapon and swap with the next20# - hide all the selected weapons and shield left laying in backpack21#22# Remove the variables (in option section of Razor) myFirstWeapon, mySecondWeapon and myThirdWeapon if:23# - your char dies and lose weapons24# - you change your weapons25# or....simply copy these lines to another script and run it once to re-set your weapons (remove the hash before play):26#27# @setvar! myThirdWeaponEquip 128# @setvar! myShieldEquip 029# overhead "Set your Onehanded weapon" 284330# @setvar! myFirstWeapon31# overhead "Set your Twohanded Weapon" 284332# @setvar! mySecondWeapon33# if myThirdWeaponEquip = 134# overhead "Set your Bow or another Twohanded weapon" 284335# @setvar! myThirdWeapon36# endif37# if myShieldEquip = 138# overhead "Set your Shield" 284339# @setvar! myShield40# endif41#42# NOTE: try the script before intensive use (pvp or dungeon crawling), test it with your thief or friends43# 44# CHANGELOG:45# - v0.6 2023/04/18, added shield equip variable selector and third weapon selector46# - v0.5 2023/04/14, initial release47#48# ROADMAP:49# - free weapons type choice (ex: 3 onehanded or 3 twohanded etc..)50# - variable selector for more than 3 weapons51# - speed improvement52#53# WARNING: the script is not pefect, always set a stop script macro for emergency;54# Set a normal equip weapon macro for all your weapons, for your safety.55#56# REPORT: any feedback or collaboration on Discord @ DoubleDuke#632157 58#############59### EDIT TO MEET YOUR PREFERENCES60#############61 62### Fine tune this to your Latency or Personal Preferences63# GlobalWaitTime safe value is 65064@setvar! globalWaitTimeLiftAndDrop 65065# WaitForPing safe value is 20066@setvar! minimumWaitForPing 20067 68#############69### DEXXER VARIABLES70### the more you add, the slower the script71#############72 73# Do you want to equip a Shield with your OneHanded weapon? (1=yes, 0=no [default])74@setvar! myShieldEquip 075 76# Do you want to equip the Third Weapon? (twohanded or bow/heavycrossbow) (1=yes [default], 0=no)77@setvar! myThirdWeaponEquip 178 79 80#############81### DO NOT EDIT BELOW THIS82#############83 84 85// Automatically set your trapped pouch every time86// Even if you or someone trigger it (thief proof)87if findtype "pouch" backpack 38 as trappedsafepouch88 @setvar! safepouch trappedsafepouch89endif90 91// Weapons Variable selector92 93if not varexist myFirstWeapon94 overhead "Set your Onehanded weapon" 284395 @setvar! myFirstWeapon96endif97 98if not varexist mySecondWeapon99 overhead "Set your Twohanded Weapon" 2843100 @setvar! mySecondWeapon101endif102 103if not varexist myThirdWeapon and myThirdWeaponEquip = 1104 overhead "Set your Bow or another Twohanded weapon" 2843105 @setvar! myThirdWeapon106endif107 108if not varexist myShield and myShieldEquip = 1109 overhead "Set your Shield" 2843110 @setvar! myShield111endif112 113// Check if wrong weapon equipped114 115if not find righthand myFirstWeapon and not find lefthand mySecondWeapon and not find lefthand myThirdWeapon116 if find myFirstWeapon backpack as item117 overhead "Wrong weapon! Now swapping..." 2843118 dclick item119 wait minimumWaitForPing120 if myShieldEquip = 1121 dclick myShield122 wait minimumWaitForPing123 endif124 elseif find mySecondWeapon backpack as item125 overhead "Wrong weapon! Now swapping..." 2843126 dclick item127 wait minimumWaitForPing128 elseif myThirdWeaponEquip = 1 and find myThirdWeapon backpack as item129 overhead "Wrong weapon! Now swapping..." 2843130 dclick item131 wait minimumWaitForPing132 else133 overhead "No weapon at all in backpack!" 2843134 endif 135 136 137// Check if you need to equip a weapon and equip the first available138 139elseif not findlayer self lefthand and not findlayer self righthand140 if find myFirstWeapon backpack as item141 dclick item142 wait minimumWaitForPing143 if myShieldEquip = 1 and find myShield backpack as equipShield144 dclick equipShield145 wait minimumWaitForPing146 endif147 if find mySecondWeapon backpack as upSecondWpn and find myThirdWeapon backpack as upThirdWpn148 lift upSecondWpn149 drop safepouch -1 -1 -1150 wait globalWaitTimeLiftAndDrop151 if myThirdWeaponEquip = 1152 lift upThirdWpn153 drop safepouch -1 -1 -1154 wait globalWaitTimeLiftAndDrop155 endif156 elseif find mySecondWeapon backpack as upSecondWpn157 lift upSecondWpn158 drop safepouch -1 -1 -1159 wait globalWaitTimeLiftAndDrop160 elseif myThirdWeaponEquip = 1 and find myThirdWeapon backpack as upThirdWpn161 lift upThirdWpn162 drop safepouch -1 -1 -1163 wait globalWaitTimeLiftAndDrop164 endif165 elseif find mySecondWeapon backpack as item166 dclick item167 wait minimumWaitForPing168 if myThirdWeaponEquip = 1 and find myThirdWeapon backpack as upThirdWpn169 lift upThirdWpn170 drop safepouch -1 -1 -1171 wait globalWaitTimeLiftAndDrop172 endif173 elseif myThirdWeaponEquip = 1 and find myThirdWeapon backpack as item174 dclick item175 wait minimumWaitForPing176 else177 overhead "No weapon at all in backpack!" 2843178 endif179 180// Equip Second Weapon181 182elseif find myFirstWeapon righthand183 if find mySecondWeapon backpack as item184 dclick item185 wait minimumWaitForPing186 if find myFirstWeapon backpack as upFirstWpn and find myThirdWeapon backpack as upThirdWpn187 lift upFirstWpn188 drop safepouch -1 -1 -1189 wait globalWaitTimeLiftAndDrop190 if myShieldEquip = 1 and find myShield backpack as equipShield191 lift equipShield192 drop safepouch -1 -1 -1193 wait globalWaitTimeLiftAndDrop194 endif195 if myThirdWeaponEquip = 1196 lift upThirdWpn197 drop safepouch -1 -1 -1198 wait globalWaitTimeLiftAndDrop199 endif200 elseif find myFirstWeapon backpack as upFirstWpn201 lift upFirstWpn202 drop safepouch -1 -1 -1203 wait globalWaitTimeLiftAndDrop204 if myShieldEquip = 1 and find myShield backpack as equipShield205 lift equipShield206 drop safepouch -1 -1 -1207 wait globalWaitTimeLiftAndDrop208 endif209 elseif myThirdWeaponEquip = 1 and find myThirdWeapon backpack as upThirdWpn210 lift upThirdWpn211 drop safepouch -1 -1 -1212 wait globalWaitTimeLiftAndDrop213 endif214 elseif myThirdWeaponEquip = 1 and find myThirdWeapon backpack as item215 dclick item216 wait minimumWaitForPing217 if find myFirstWeapon backpack as upFirstWpn and find mySecondWeapon backpack as upSecondWpn218 lift upFirstWpn219 drop safepouch -1 -1 -1220 wait globalWaitTimeLiftAndDrop221 if myShieldEquip = 1 and find myShield backpack as equipShield222 lift equipShield223 drop safepouch -1 -1 -1224 wait globalWaitTimeLiftAndDrop225 endif226 lift upSecondWpn227 drop safepouch -1 -1 -1228 wait globalWaitTimeLiftAndDrop229 elseif find myFirstWeapon backpack as upFirstWpn230 lift upFirstWpn231 drop safepouch -1 -1 -1232 wait globalWaitTimeLiftAndDrop233 if myShieldEquip = 1 and find myShield backpack as equipShield234 lift equipShield235 drop safepouch -1 -1 -1236 wait globalWaitTimeLiftAndDrop237 endif238 elseif find mySecondWeapon backpack as upSecondWpn239 lift upSecondWpn240 drop safepouch -1 -1 -1241 wait globalWaitTimeLiftAndDrop242 endif243 else244 overhead "No more weapons left!" 2843245 endif246 247// Equip Third Weapon248 249elseif find mySecondWeapon lefthand250 if myThirdWeaponEquip = 1 and find myThirdWeapon backpack as item251 dclick item252 wait minimumWaitForPing253 if find myFirstWeapon backpack as upFirstWpn and find mySecondWeapon backpack as upSecondWpn254 lift upFirstWpn255 drop safepouch -1 -1 -1256 wait globalWaitTimeLiftAndDrop257 if myShieldEquip = 1 and find myShield backpack as equipShield258 lift equipShield259 drop safepouch -1 -1 -1260 wait globalWaitTimeLiftAndDrop261 endif262 lift upSecondWpn263 drop safepouch -1 -1 -1264 wait globalWaitTimeLiftAndDrop265 elseif find myFirstWeapon backpack as upFirstWpn266 lift upFirstWpn267 drop safepouch -1 -1 -1268 wait globalWaitTimeLiftAndDrop269 if myShieldEquip = 1 and find myShield backpack as equipShield270 lift equipShield271 drop safepouch -1 -1 -1272 wait globalWaitTimeLiftAndDrop273 endif274 elseif find mySecondWeapon backpack as upSecondWpn275 lift upSecondWpn276 drop safepouch -1 -1 -1277 wait globalWaitTimeLiftAndDrop278 endif279 elseif find myFirstWeapon backpack as item280 dclick item281 wait minimumWaitForPing282 if find mySecondWeapon backpack as upSecondWpn and find myThirdWeapon backpack as upThirdWpn283 lift upSecondWpn284 drop safepouch -1 -1 -1285 wait globalWaitTimeLiftAndDrop286 if myThirdWeaponEquip = 1287 lift upThirdWpn288 drop safepouch -1 -1 -1289 wait globalWaitTimeLiftAndDrop290 endif291 elseif find mySecondWeapon backpack as upSecondWpn292 lift upSecondWpn293 drop safepouch -1 -1 -1294 wait globalWaitTimeLiftAndDrop295 elseif myThirdWeaponEquip = 1 and find myThirdWeapon backpack as upThirdWpn296 lift upThirdWpn297 drop safepouch -1 -1 -1298 wait globalWaitTimeLiftAndDrop299 endif300 else301 overhead "No more weapons left!" 2843302 endif303 304// Equip First Weapon305 306elseif myThirdWeaponEquip = 1 and find myThirdWeapon lefthand307 if find myFirstWeapon backpack as item308 dclick item309 wait minimumWaitForPing310 if myShieldEquip = 1 and find myShield backpack as item311 dclick item312 wait minimumWaitForPing313 endif314 if find mySecondWeapon backpack as upSecondWpn and find myThirdWeapon backpack as upThirdWpn315 lift upSecondWpn316 drop safepouch -1 -1 -1317 wait globalWaitTimeLiftAndDrop318 if myThirdWeaponEquip = 1319 lift upThirdWpn320 drop safepouch -1 -1 -1321 wait globalWaitTimeLiftAndDrop322 endif323 elseif find mySecondWeapon backpack as upSecondWpn324 lift upSecondWpn325 drop safepouch -1 -1 -1326 wait globalWaitTimeLiftAndDrop327 elseif myThirdWeaponEquip = 1 and find myThirdWeapon backpack as upThirdWpn328 lift upThirdWpn329 drop safepouch -1 -1 -1330 wait globalWaitTimeLiftAndDrop331 endif332 elseif find mySecondWeapon backpack as item333 dclick item334 wait minimumWaitForPing335 if find myFirstWeapon backpack as upFirstWpn and find myThirdWeapon backpack as upThirdWpn336 lift upFirstWpn337 drop safepouch -1 -1 -1338 wait globalWaitTimeLiftAndDrop339 if myShieldEquip = 1 and find myShield backpack as equipShield340 lift equipShield341 drop safepouch -1 -1 -1342 wait globalWaitTimeLiftAndDrop343 endif344 if myThirdWeaponEquip = 1345 lift upThirdWpn346 drop safepouch -1 -1 -1347 wait globalWaitTimeLiftAndDrop348 endif349 elseif find myFirstWeapon backpack as upFirstWpn350 lift upFirstWpn351 drop safepouch -1 -1 -1352 wait globalWaitTimeLiftAndDrop353 if myShieldEquip = 1 and find myShield backpack as equipShield354 lift equipShield355 drop safepouch -1 -1 -1356 wait globalWaitTimeLiftAndDrop357 endif358 elseif myThirdWeaponEquip = 1 and find myThirdWeapon backpack as upThirdWpn359 lift upThirdWpn360 drop safepouch -1 -1 -1361 wait globalWaitTimeLiftAndDrop362 endif363 else364 overhead "No more weapons left!" 2843365 endif366endif367 368// If you wish to collaborate to improve this script please contact me in Discord @ DoubleDuke#6321369//370//