Skip to content
Outlands Hub

Razor script

Ougah Dexxer Bard Single target

by Jephgag · 710 lines
Download

Ougah Dexxer Bard By [Myth]Ougah Ougah This script is work in progress

CombatBard
Ougah Dexxer Bard Single target.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/42aad8ad-383f-4d7b-b1bd-3fb65758a782 for latest2# Automation by Jaseowns3## Script: Ougah Dexxer Bard Single target 4## Created by: Jephgag#84205#############################################6 7# Ougah Dexxer Bard8# By [Myth]Ougah Ougah9# This script is work in progress10 11# The overhead targetting portion of the script is taken from Jasowns Autodexxer Script12# The drinking potion part of the script is taken from Jasowns Autodexxer Script13# The Chiv symbol counting is taken from Jasowns Autodexxer Script14# https://outlands.uorazorscripts.com/ultimate-dexxer15 16# This script is very specific to my style of play, but feel free to try it and modify it. 17 18# This script requires :19# Chivalry20# Discord and Peace making21# A skinning knife if you want to autocarve the bodies of your target22 23# The philosophy behind this script is that it can be used both in solo play and group play. The goal is to target a single monster.24# If the player needs to retreat, then the script will stop by itself (you will see the message Target Lost)25 26# The order of priority of this script27# 1. Heal/Cure the player28# 2. Peace the target first to reduce damage29# 3. Then discord the target for easier kills30# 5. Up the chivalry buffs (musicianships buff to come)31# 4. Once the target is dead, skin the corpse (if enabled)32 33# This script only use Heal potion and cure potion (for now) 34 35# There are a few user variable to setup below for what type of heal to use (Noble, Holy light, Hp pot) and which buff to use (EoO, Divine Fury)36 37 38# The following Cooldowns must be setup in your UO Client (Options -> Cooldowns)39# Be careful to write them as they are written below, case sensitive40# Musicianship41# Peacemaking42# Pacified43# Discordance44# Discorded45# Healing Potion46# Cure Potion47# Refresh Potion48# Heal Preventend49# Chivalry Ability CD50# Noble Sacrifice51# Divine Fury52# Enemy Of One53# Cleanse By Fire54# Close Wounds55# Holy Light56# Song Buff Delay57# Song Of Discordance58# Song Of Peacemaking59 60######################################################61# Start of Script Setup62######################################################63 64#*****************************************************65#  User Variables66#***************************************************** 67@setvar! PeacemakingReapply 3000068@setvar! DiscordanceReapply 6000069 70@setvar! AutoCarving 171@setvar! FindTargetRefresh 300072@setvar! StopWhenTargetCannotBeSeen 173 74@setvar! HpNobleSacrifice 6575 76@setvar! HpHolyLight 4077@setvar! HpHealPotion 5578@setvar! HpCurePotion 9579@setvar! StamRefreshPotion 9080 81@setvar! EnableCleanseByFire 182@setvar! EnableCloseWounds 183@setvar! EnableNobleSacrifice 184@setvar! EnableHolyLight 185@setvar! EnableDivineFury 186@setvar! EnableEnemyOfOne 187 88@setvar! EnablePeacemakingBuff 189@setvar! EnableDiscordanceBuff 190 91@setvar! SongReapply 84000092 93@setvar! EnableHealPotion 194@setvar! EnableCurePotion 195@setvar! EnableRefreshPotion 196 97@setvar! EnableParalyzePouch 198 99#variable reused from jasowns autodexxer script100@setvar! minimumWaitForPing 300101@setvar! minimumWaitForPingUnequipping 650102 103#*****************************************************104#  End of User Variables105#***************************************************** 106#*****************************************************107#  Script Variables108#*****************************************************109 110 111@setvar! StopTheLoop 0112@setvar! UseHealPotion 0113@setvar! UseCurePotion 0114@setvar! ChivAbilityCd 31000115@setvar! PotionCd 10000116@setvar! TimeBetweenChivAbility 300117@setvar! SongBuffDelay 11000118 119 120#*****************************************************121#  End of Script Variables122#***************************************************** 123 124 125 126######################################################127# End of script Setup128######################################################    129######################################################130# Beginning of Main Loop131######################################################132 133 134#*****************************************************135#  Setup of Main Loop136#*****************************************************  137hotkey 'Target Closest Non-Friendly Monster'138 139if insysmsg "No one matching that was found on your screen"140    @setvar CurrentTarget 0141    overhead "[*** NO CREATURE ***]" 88142else143 144	@setvar LastTarget CurrentTarget145    @setvar CurrentTarget lasttarget 146 147    clearsysmsg148    149    #clean the cooldowns150    151    if LastTarget != CurrentTarget152	    cooldown "Pacified" 0153    	cooldown "Discorded" 0154    endif155#*****************************************************156#  end of Setup of Main Loop157#*****************************************************  158#*****************************************************159#  Main Loop160#*****************************************************  161    162   	while not dead CurrentTarget and StopTheLoop = 0163   	164 	165   		if not timerexists "FindTarget"166   			createtimer "FindTarget"167   			settimer "FindTarget" FindTargetRefresh168   		endif169   		170   		if timer "FindTarget" >= FindTargetRefresh171   			attack CurrentTarget172		    overhead "� �� HERE �� �" 88 CurrentTarget	173       		attack CurrentTarget174       		settimer "FindTarget" 0175		endif176   		177		getlabel CurrentTarget descTarget178 179#*****************************************************180#  Start of Survival Loop181#*****************************************************182 183		if paralyzed and EnableParalyzePouch = 1184			if findtype "pouch" backpack 38185				yell "[pouch"186				wait minimumWaitForPing187			endif			188		endif189		190		if EnableNobleSacrifice = 1191			192			if hits <= HpNobleSacrifice and skill "Chivalry" >= 80 and not cooldown "Noble Sacrifice" and not cooldown "Heal Prevented" and not cooldown "Chivalry Ability CD" 193				yell "[NobleSacrifice"194				195				if not insysmsg "You do not have enough holy symbols for that ability"196					waitfortarget 500197					target 'self'198					wait minimumWaitForPing	199					cooldown "Heal Prevented" 5000200					cooldown "Noble Sacrifice" ChivAbilityCd201					cooldown "Chivalry Ability CD" TimeBetweenChivAbility202				endif203					204			endif205		endif206	207		if EnableHolyLight = 1	208			if hits <= HpHolyLight and skill "Chivalry" >= 95 and not cooldown "Holy Light" and not cooldown "Heal Prevented" and not cooldown "Chivalry Ability CD"209				yell "[HolyLight"210				wait minimumWaitForPing		211				cooldown "Holy Light" ChivAbilityCd		212				cooldown "Chivalry Ability CD" TimeBetweenChivAbility213			endif214		endif215		216		217		#check for both cure and heal potion to not remove the weapons 2 times.218		if EnableHealPotion = 1219			if hits <= HpHealPotion and not cooldown "Heal Prevented" and not cooldown "Healing Potion"220				@setvar! UseHealPotion 1221			else222				@setvar! UseCurePotion 0223			endif224		endif225		226		if EnableCurePotion = 1227			if hits <= HpCurePotion and not cooldown "Cure Potion" and poisoned228				@setvar! UseCurePotion 1229			else230				@setvar! UseCurePotion 0231			endif232		endif233		234		if EnableRefreshPotion = 1235			if stam <= StamRefreshPotion and not cooldown "Refresh Potion"236				@setvar! UseRefreshPotion 1237			else238				@setvar! UseRefreshPotion 0239			endif240		endif241		242		#stole this part from the AutoDexxer Jasowns script243		#https://outlands.uorazorscripts.com/ultimate-dexxer244		245		if UseCurePotion = 1 or UseHealPotion = 1 or UseRefreshPotion = 1246			if skill "Alchemy" >= 80247				@setvar! jaseCanDrinkPotion 1248			else249				if not findlayer self lefthand and not findlayer self righthand250					@setvar! jaseCanDrinkPotion 1251				else252					if findlayer self lefthand as myLefthand253						@setvar! jaseLeftHand myLefthand254					endif255					if findlayer self righthand as myRightHand256						@setvar! jaseRightHand myRightHand257					endif 258					if not lhandempty 259						if not rhandempty 260							@setvar! jaseCanDrinkPotion 0261						else262							// handle two handed weapons263							getlabel jaseLeftHand desc264							if skill "Swordsmanship" > 0265							   if "axe" in desc or "bardiche" in desc or "halberd" in desc266								    @setvar! jaseCanDrinkPotion 0267								    @setvar! needTwoHandSwap 1268								else   269								    @setvar! jaseCanDrinkPotion 1270								endif271							elseif skill "Mace Fighting" > 0272								if "staff" in desc or "crook" in desc or "war hammer" in desc273								    @setvar! jaseCanDrinkPotion 0274								    @setvar! needTwoHandSwap 1275								else   276								    @setvar! jaseCanDrinkPotion 1277								endif278							elseif skill "Fencing" > 0279								if "spear" in desc or "pitchfork" in desc280								    @setvar! jaseCanDrinkPotion 0281								    @setvar! needTwoHandSwap 1282								else   283								    @setvar! jaseCanDrinkPotion 1284								endif285							elseif skill "Archery" > 0286								if "bow" in desc or "heavy crossbow" in desc287								    @setvar! jaseCanDrinkPotion 0288								    @setvar! needTwoHandSwap 1289								else   290								    @setvar! jaseCanDrinkPotion 1291								endif292							elseif skill "Wrestling" > 0293								@setvar! jaseCanDrinkPotion 1294							endif  295						endif296					endif297					if not rhandempty 298						if lhandempty 299							@setvar! jaseCanDrinkPotion 1300						else301							@setvar! needShieldSwap 1302						endif303					endif304				endif305			endif306		endif307		308		if jaseCanDrinkPotion = 1309			// do nothing310		else311			if needTwoHandSwap = 1312				if skill "Swordsmanship" > 0 and findtype "cutlass|broadsword|scimitar|viking sword|longsword|katana" backpack as item313					dclick item314					wait minimumWaitForPing315				elseif skill "Mace Fighting" > 0 and findtype "maul|war axe|war mace|mace|hammer pick|club" backpack as item316					dclick item317					wait minimumWaitForPing318				elseif skill "Fencing" > 0 and findtype "kryss|war fork" backpack as item319					dclick item320					wait minimumWaitForPing321				elseif skill "Archery" > 0 and findtype "crossbow" backpack as item322					dclick item323					wait minimumWaitForPing324				else325					hotkey 'Arm/Disarm Left Hand'    326					wait minimumWaitForPing327				endif328				@setvar! jaseCanDrinkPotion 1329			elseif needShieldSwap = 1330				overhead "we should be disarming left hand"331				while not lhandempty332					hotkey 'Arm/Disarm Left Hand'333					wait minimumWaitForPingUnequipping334					while queued335						wait 100336					endwhile337				endwhile338				setvar! jaseCanDrinkPotion 1339			endif340		endif341 342		if jaseCanDrinkPotion = 1343			if UseHealPotion = 1344				if findtype "Yellow Potion" backpack as jotion345					overhead "[Drinking Heal Potion]" 34346					dclick jotion347					wait minimumWaitForPing348					cooldown "Healing Potion" PotionCd349				else350					overhead "No Heal potion found!" 34351				endif352				@setvar! UseHealPotion 0353			endif354			355			if UseCurePotion = 1356				if findtype "Orange Potion" backpack as jotion357					overhead "[Drinking Cure Potion]" 34358					dclick jotion359					wait minimumWaitForPing360					cooldown "Cure Potion" PotionCd361				else362					overhead "No Cure potion found!" 34363				endif364				@setvar! UseCurePotion 0365			endif366			367			if UseRefreshPotion = 1368				if findtype "Red Potion" backpack as jotion369					overhead "[Drinking Refresh Potion]" 34370					dclick jotion371					wait minimumWaitForPing372					cooldown "Refresh Potion" PotionCd373				endif374				@setvar! UseRefreshPotion 0375			endif376			377			if needTwoHandSwap = 1378				dclick jaseLeftHand379				wait minimumWaitForPing380			elseif needShieldSwap = 1381				hotkey 'Arm/Disarm Left Hand'382				wait minimumWaitForPingUnequipping383			endif384		endif385		386		387		if EnableCleanseByFire = 1388 389			if poisoned and not cooldown "Cleanse By Fire" and not cooldown "Chivalry Ability CD"390				yell "[CleanseByFire"391				wait minimumWaitForPing392				393				if not insysmsg "You do not have enough holy symbols for that ability"394					cooldown "Cleanse By Fire" ChivAbilityCd395				endif396			endif397		endif398		399		if EnableCloseWounds = 1400			401			if findbuff "bleed" or findbuff "disease"402				if skill "chivalry" >= 70 and not cooldown "Close Wounds" and not cooldown "Chivalry Ability CD" 403					yell "[CloseWounds"404					wait minimumWaitForPing 405					406					if not insysmsg "You do not have enough holy symbols for that ability"407						cooldown "Close Wounds" ChivAbilityCd408						cooldown "Chivalry Ability CD" TimeBetweenChivAbility409					endif410				endif411			endif412		endif413		414	415#*****************************************************416#  End of Survival Loop417#*****************************************************418 419		420#*****************************************************421#  Start of PeaceMaking422#*****************************************************  		423		if not cooldown "Peacemaking" and not cooldown "Musicianship" and not cooldown "Pacified"424		425			if "pacified" in descTarget and cooldown "Pacified"426				#do nothing427			else428				skill "Peacemaking"429				waitfortarget 500430				if insysmsg "What instrument shall you play?"431				    if findtype "bamboo flute" backpack as inny432				        target inny433				    elseif findtype "tambourine" backpack as inny434				        target inny435				    elseif findtype "drum" backpack as inny436				        target inny437				    elseif findtype "lute" backpack as inny438				        target inny439				    elseif findtype "lap harp" backpack as inny440				        target inny441				    else 442				        #Cause an error message443				        target CurrentTarget444				        overhead "No instrument in backpack"445				        446				    endif447				endif448		    449				if not insysmsg "This is not a musical instrument"450				    waitfortarget 500451				    target CurrentTarget452				    wait minimumWaitForPing453				endif454 455				if insysmsg "Target cannot be seen." and StopWhenTargetCannotBeSeen = 1456					#stop the script457					@setvar! StopTheLoop 1458				break459				460				endif				461				if insysmsg "You play successfully, pacifying your target"462					cooldown "Pacified" PeacemakingReapply463					cooldown "Musicianship" 5000464					cooldown "Peacemaking" 11000465				endif466				467				if insysmsg "you fail to pacify your opponent"468					cooldown "Musicianship" 5000469				endif470				471		    endif472		endif473#*****************************************************474#  End of Peacemaking475#*****************************************************  		476#*****************************************************477#  Start Discordance478#*****************************************************  479 480		if not cooldown "Discordance" and not cooldown "Musicianship" and not cooldown "Discorded"481			482			if "discord" in descTarget and cooldown "Discorded"483				#do nothing484			else485			486				skill "Discordance"487				waitfortarget 500488				if insysmsg "What instrument shall you play?"489				    if findtype "bamboo flute" backpack as inny490				        target inny491				    elseif findtype "tambourine" backpack as inny492				        target inny493				    elseif findtype "drum" backpack as inny494				        target inny495				    elseif findtype "lute" backpack as inny496				        target inny497				    elseif findtype "lap harp" backpack as inny498				        target inny499				    else 500				        #Cause an error message501				        target CurrentTarget502				        overhead "No instrument in backpack"503				        504				    endif505				endif506				507				if not insysmsg "This is not a musical instrument"508				    waitfortarget 500509				    target CurrentTarget510				    wait minimumWaitForPing511				endif512				513				if insysmsg "Target cannot be seen." and StopWhenTargetCannotBeSeen = 1514					#stop the script515					@setvar! StopTheLoop 1516				endif517				518				if insysmsg "You play successfully, disrupting your opponent"519					cooldown "Discorded" DiscordanceReapply520					cooldown "Musicianship" 5000521					cooldown "Discordance" 11000522				endif523				524				if insysmsg "You fail to discord your opponent"525					cooldown "Musicianship" 5000526				endif527			endif528		endif529#*****************************************************530#  End of Discordance531#*****************************************************  		   532 533#*****************************************************534#  Chiv Abilities535#***************************************************** 536 537 538		if EnableDivineFury = 1 539			if not cooldown "Divine Fury" and not cooldown "Chivalry Ability CD"540				yell "[DivineFury"541				wait minimumWaitForPing542				543				if not insysmsg "You do not have enough holy symbols for that ability" and not insysmsg "You must wait a moment before attempting to use another Chivalry ability."544					cooldown "Divine Fury" ChivAbilityCd545					cooldown "Chivalry Ability CD" 500546				endif547			endif548		endif549		550		if EnableEnemyOfOne = 1 551			if not cooldown "Enemy Of One" and not cooldown "Chivalry Ability CD"552				yell "[EnemyOfOne"553				wait minimumWaitForPing554				555				if not insysmsg "You do not have enough holy symbols for that ability" and not insysmsg "You must wait a moment before attempting to use another Chivalry ability."556					cooldown "Enemy Of One" ChivAbilityCd557					cooldown "Chivalry Ability CD" 500558				endif559			endif560		endif561#*****************************************************562#  end of Chiv Abilities563#*****************************************************564 565#*****************************************************566#  End of Musicianship Buff567#*****************************************************568 569		if EnablePeacemakingBuff = 1 and not cooldown "Song Of Peacemaking" and not cooldown "Musicianship" and not cooldown "Peacemaking" and not cooldown "Song Buff Delay"570			skill "Peacemaking"571			waitfortarget 500572			if insysmsg "What instrument shall you play?"573			    if findtype "bamboo flute" backpack as inny574			        target inny575			    elseif findtype "tambourine" backpack as inny576			        target inny577			    elseif findtype "drum" backpack as inny578			        target inny579			    elseif findtype "lute" backpack as inny580			        target inny581			    elseif findtype "lap harp" backpack as inny582			        target inny583			    else 584			        #Cause an error message585			        target CurrentTarget586			        overhead "No instrument in backpack"587			        588			    endif589			endif590	    591			if not insysmsg "This is not a musical instrument"592			    waitfortarget 500593			    target backpack 594			    wait minimumWaitForPing595			    cooldown "Song Of Peacemaking" SongReapply596			    cooldown "Song Buff Delay" SongBuffDelay597			    #no need to refresh the musicianship cooldown. 598			endif599		endif600		601		if EnableDiscordanceBuff = 1 and not cooldown "Song Of Discordance" and not cooldown "Musicianship" and not cooldown "Discordance" and not cooldown "Song Buff Delay"602			skill "Discordance"603			waitfortarget 500604			if insysmsg "What instrument shall you play?"605			    if findtype "bamboo flute" backpack as inny606			        target inny607			    elseif findtype "tambourine" backpack as inny608			        target inny609			    elseif findtype "drum" backpack as inny610			        target inny611			    elseif findtype "lute" backpack as inny612			        target inny613			    elseif findtype "lap harp" backpack as inny614			        target inny615			    else 616			        #Cause an error message617			        target CurrentTarget618			        overhead "No instrument in backpack"619			    endif620			endif621	    622			if not insysmsg "This is not a musical instrument"623			    waitfortarget 500624			    target backpack 625			    wait minimumWaitForPing626   			    cooldown "Song Of Discordance" SongReapply627   			    cooldown "Song Buff Delay" SongBuffDelay628			    #no need to refresh the musicianship cooldown. 629			endif630		endif631#*****************************************************632#  End of Musicianship Buff633#*****************************************************634 635#*****************************************************636#  World Save637#*****************************************************638 639		if insysmsg "world is saving"640			if not timerexists "WorldSaveTimer"641				createtimer "WorldSaveTimer"642			endif643			644			settimer "WorldSaveTimer" 0645			646			#Wait a maximum of 5 seconds in this loop, or when the save complete message pops			647			while timer "WorldSaveTimer" < 5000648				if insysmsg "save complete"649					break650				endif651			endwhile652			653			overhead "Resuming Script..." 88654		endif   655		656#*****************************************************657#  end of WorldSave658#*****************************************************		659		    660    endwhile661    662#*****************************************************663#  End of Main Loop664#*****************************************************  665	overhead "[*** TARGET LOST ***]"666######################################################667# End of Main Loop668######################################################    669endif670 671######################################################672# Beginning of Clean Up673######################################################674 675 676#Clean-up677 678#clean the cooldowns679cooldown "Pacified" 0680cooldown "Discorded" 0681 682 683#carve your kill684 685wait 500686if AutoCarving = 1687 688	if findtype 'Elven SpellBlade' backpack689		if findtype "corpse" ground -1 -1 2 as rip690    		overhead "[Skinning]"		691    		dclicktype "Elven Spellblade"692    		waitfortarget 1500693    		target 'self'694    		695    		@ignore rip696		endif697	else698		overhead "[No Skinning Knife]" 88699	endif700	701endif702 703######################################################704# End of Cleanup705######################################################706    707 708 709 710