Compatibility unverified
This community Razor script has not been tested in game by the Hub. Read its setup and client requirements before use.
THIS SCRIPT DEPENDS FROM: SCRIPTS: backstabberSetup COOLDOWNS: Tactics, Weapon Ability, Smoke Bomb, Health Potion, Hiding, Rope TO SET THIS COOLDOWNS: PAPERDOLL > OPTIONS > COOLDOWNS > NEW ENTRY ALL COOLDOWNS SHOULD BE SET AS MENTIONED…
CombatTacticsHiding
backstabberAttack.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/47a5c810-f959-457a-bf5a-aea5357c1255 for latest2# Automation by Jaseowns3## Script: backstabberAttack4## Created by: tarouca#05#############################################6 7# THIS SCRIPT DEPENDS FROM:8# SCRIPTS: backstabberSetup9# COOLDOWNS: Tactics, Weapon Ability, Smoke Bomb, Health Potion, Hiding, Rope10# TO SET THIS COOLDOWNS:11# PAPERDOLL > OPTIONS > COOLDOWNS > NEW ENTRY12# ALL COOLDOWNS SHOULD BE SET AS MENTIONED (Tactics, Weapon Ability, Smoke Bomb, Health Potion, Hiding, Rope)13# ON EACH CHECK: HIDE WHEN INACTIVE, PAUSE DURING WORLD SAVE14# MOUNT TOKEN15 16# OVERHEAD MESSAGES ARE USEFUL17# TO SETUP OVERHEAD MESSAGES:18# RAZOR > DISPLAY/COUNTERS > OVERHEAD MESSAGES19# CHECK: SHOW20# ADD MESSAGE FOR: stealth steps remaining. WITH OVERHEAD OF: {3} STEPS21# ADD MESSAGE FOR: You feel ready to continue stealthing. WITH OVERHEAD OF: RENEWED22# ADD MESSAGE FOR: You will automatically stealth when out of steps. WITH OVERHEAD OF: RENEWED23 24# TO SETUP ENSURE YOU EDIT THE backstabberSetup SCRIPT25# ADJUST THE lagTimer_ TO YOUR LIKING OR LEAVE IT AS IS26# ADJUST THE smokeBombCooldown_ TO REFLECT YOUR COOLDOWN (120000 IS THE BASE)27# ADJUST THE useMagery_ TO 0 IF TEMPLATE HAS MAGERY < 6028# IF MAGERY >= 60 INVISIBILITY SCROLLS ARE NEEDED29# REGARDING SERIALS REPLACE XXXXXXXXXX BY THE SERIALS OF YOUR ITEMS:30# IF NOT USING 2 WEAPON SKILLS, SET THE myBow_ WITH THE SAME VALUE AS myMace_31# A MAGICAL WIZARD HAT IS NEEDED TO KEEP A DIFFERENCE IN STAMINA SO THAT ON MOVEMENT CHARACTER WONT GET OUT OF STEALTH32# SET SERIALS FOR: myMount_, myHeadPiece_, myWizardHat_, myMace_, myBow_33 34#ATTACK35# UNCOMMENT EVERY CARDINAL BELOW TO GET A CONTIGENGY ON ATTACK.36# THIS CONTIGENCY PREVENTS YOU FROM INSTANTLY ATTACKING IF YOU RUN THE SCRIPT ATTACK ON TOP OF YOUR TARGET.37# YOU WILL HAVE TO GAIN 5 TILES OF DISTANCE WHILE THE SCRIPT IS RUNNING AND THEN APPROACH THE TARGET TO GET THE HIT.38 39if not hidden and not mounted40 dclick myMount_41elseif hidden and mounted42 dclick myMount_43endif44 45#setvar engageTarget_ 046while not dead lasttarget and hidden47 if find myMace_ backpack48 dclick myMace_49 endif50# if find lasttarget ground -1 -1 5 and not find lasttarget ground -1 -1 3 and engageTarget_ = 051# setvar engageTarget_ 152# endif53 while notStealthing_ = 1 and hidden54 if timer "dontWalkOverheadTimer_" > dontWalkOverheadTimerTarget_55 overhead "DONT WALK" 2856 settimer "dontWalkOverheadTimer_" 057 endif58 if insysmsg "You feel comfortable enough to begin stealthing."59 setvar notStealthing_ 060 overhead "STEALTH"61 endif62 endwhile63 if stam = maxstam and timer "staminaControlTimer_" > staminaControlTimerTarget_64 dclick myWizardHat_ backpack65 dclick myHeadPiece_ backpack66 settimer "staminaControlTimer_" 067 endif68 if checkSteps_ = 169 if insysmsg "You have 4 stealth steps remaining." or insysmsg "You have 3 stealth steps remaining." or insysmsg "You have 2 stealth steps remaining." 70 overhead "WARNING" 4371 elseif insysmsg "You have 1 stealth steps remaining." or insysmsg "You have 0 stealth steps remaining."72 overhead "STOP" 2873 endif74 endif75 if insysmsg "You have 0 stealth steps remaining." and checkSteps_ = 076 setvar checkSteps_ 177 endif78 if insysmsg "You will automatically stealth when out of steps." and checkSteps_ = 179 setvar checkSteps_ 080 endif81 if timer "myTargetOverheadTimer_" > myTargetOverheadTimerTarget_82 overhead "�" 38 lasttarget83 settimer "myTargetOverheadTimer_" 084 endif85# if timer "engageOverheadTimer_" > engageOverheadTimerTarget_86# overhead "CANT ENGAGE" 3887# settimer "engageOverheadTimer_" 088# endif89 if find lasttarget ground -1 -1 3 and not find lasttarget ground -1 -1 190 if timer "proximityOverheadTimer_" > proximityOverheadTimerTarget_91 overhead "NEAR TARGET" 4392 settimer "proximityOverheadTimer_" 093 endif94 elseif find lasttarget ground -1 -1 195 if timer "proximityOverheadTimer_" > proximityOverheadTimerTarget_96 overhead "ON SPOT" 3897 settimer "proximityOverheadTimer_" 098 endif99# if engageTarget_ = 1100 cooldown "Tactics" 10000101 cooldown "Hiding" 5000102 attack lasttarget103# endif104 endif105endwhile106 107if not hidden and not mounted108 dclick myMount_109endif110 111while not hidden and not dead lasttarget112 if timer "myTargetOverheadTimer_" > myTargetOverheadTimerTarget_113 overhead "�" 38 lasttarget114 settimer "myTargetOverheadTimer_" 0115 endif116 if not hidden and cooldown "Tactics"117 if find myBow_ backpack118 dclick myBow_119 endif120 if not cooldown "Weapon Ability"121 if weaponAbility_ = 1122 say "[WeaponAbility1" 123 elseif weaponAbility_ = 2124 say "[WeaponAbility2"125 else126 say "[WeaponAbility3"127 endif128 endif129 if insysmsg "You cannot perform that ability yet."130 cooldown "Weapon Ability" 2500131 endif132 warmode "on"133 attack lasttarget134 endif135 if not find lasttarget ground -1 -1 12 and not cooldown "Hiding"136 overhead "TRY HIDING"137 endif138 if not cooldown "Smoke Bomb" and timer "smokeBombOverheadTimer_" > smokeBombOverheadTimerTarget_ and not cooldown "Hiding"139 overhead "CAN USE SMOKE BOMB"140 settimer "smokeBombOverheadTimer_" 0141 endif142 if timer "tacticsOverheadTimer_" > tacticsOverheadTimerTarget_ and not cooldown "Tactics"143 overhead "DONT ENGAGE" 32144 settimer "tacticsOverheadTimer_" 0145 endif146 if timer "rangeOverheadTimer_" > rangeOverheadTimerTarget_ and cooldown "Tactics" and find lasttarget ground -1 -1 archeryRange_147 overhead "IN RANGE"148 settimer "rangeOverheadTimer_" 0149 endif150endwhile