Bard Training - Prevalia Zoo by thisideasucks
Description from the author:
# "Borrowed" from Jaseowns bard training scripts
# UO Outlands
# Version: 1.0.0
# Description: Be at the Prevalia Zoo with instruments
# Can set these to 0 and it will not train the skill
@setvar! trainPeacemaking 100
@setvar! trainDiscordance 100
@setvar! trainProvocation 100
# Set to 1 to keep Peacemaking and Provocation at same skill level
@setvar! balancePeaceProv 1
# Modify delays if needed to account for latency or loop faster
@setvar! loopDelay 1050
@setvar! discordanceDelay 5250
@setvar! missingWait 2000
# Cancel any pending target
if targetexists
hotkey 'Cancel Current Target'
endif
# Peacemaking check
if skill "Peacemaking" < trainPeacemaking
if balancePeaceProv = 1
if skill "Peacemaking" <= skill "Provocation"
useskill 'Peacemaking'
wft 100
if insysmsg "What instrument"
if findtype "bamboo flute" backpack as inny
target inny
elseif findtype "tambourine" backpack as inny
target inny
elseif findtype "drum" backpack as inny
target inny
elseif findtype "lute" backpack as inny
target inny
elseif findtype "lap harp" backpack as inny
target inny
else
overhead "I don't have an inny" 34
wait missingWait
replay
endif
wft 200
endif
if findtype "an anaconda" ground -1 -1 10 as mob
if noto mob = hostile
target mob
else
ignore mob
replay
endif
elseif findtype "a rock guar" ground -1 -1 10 as mob
if noto mob = hostile
target mob
else
ignore mob
replay
endif
elseif findtype "a sand crawler" ground -1 -1 10 as mob
if noto mob = hostile
target mob
else
ignore mob
replay
endif
elseif findtype "a wolfhound" ground -1 -1 10 as mob
if noto mob = hostile
target mob
else
ignore mob
replay
endif
else
overhead "No mob found" 34
wait missingWait
replay
endif
endif
else
useskill 'Peacemaking'
wft 100
if insysmsg "What instrument"
if findtype "bamboo flute" backpack as inny
target inny
elseif findtype "tambourine" backpack as inny
target inny
elseif findtype "drum" backpack as inny
target inny
elseif findtype "lute" backpack as inny
target inny
elseif findtype "lap harp" backpack as inny
target inny
else
overhead "I don't have an inny" 34
wait missingWait
replay
endif
wft 200
endif
if findtype "an anaconda" ground -1 -1 10 as mob
if noto mob = hostile
target mob
else
ignore mob
replay
endif
elseif findtype "a rock guar" ground -1 -1 10 as mob
if noto mob = hostile
target mob
else
ignore mob
replay
endif
elseif findtype "a sand crawler" ground -1 -1 10 as mob
if noto mob = hostile
target mob
else
ignore mob
replay
endif
elseif findtype "a wolfhound" ground -1 -1 10 as mob
if noto mob = hostile
target mob
else
ignore mob
replay
endif
else
overhead "No mob found" 34
wait missingWait
replay
endif
endif
if skill "Discordance" < trainDiscordance
if skill "Peacemaking" < trainPeacemaking
wait discordanceDelay
useskill 'Discordance'
wft 100
if insysmsg "What instrument"
if findtype "bamboo flute" backpack as inny
target inny
elseif findtype "tambourine" backpack as inny
target inny
elseif findtype "drum" backpack as inny
target inny
elseif findtype "lute" backpack as inny
target inny
elseif findtype "lap harp" backpack as inny
target inny
else
overhead "I don't have an inny" 34
wait missingWait
replay
endif
wft 200
endif
if findtype "an anaconda" ground -1 -1 10 as mob
if noto mob = hostile
target mob
else
ignore mob
replay
endif
elseif findtype "a rock guar" ground -1 -1 10 as mob
if noto mob = hostile
target mob
else
ignore mob
replay
endif
elseif findtype "a sand crawler" ground -1 -1 10 as mob
if noto mob = hostile
target mob
else
ignore mob
replay
endif
elseif findtype "a wolfhound" ground -1 -1 10 as mob
if noto mob = hostile
target mob
else
ignore mob
replay
endif
else
overhead "No mob found" 34
wait missingWait
replay
endif
endif
endif
endif
# Provocation check
if skill "Provocation" < trainProvocation
if balancePeaceProv = 1
if skill "Provocation" <= skill "Peacemaking"
useskill 'Provocation'
wft 100
if insysmsg "What instrument"
if findtype "bamboo flute" backpack as inny
target inny
elseif findtype "tambourine" backpack as inny
target inny
elseif findtype "drum" backpack as inny
target inny
elseif findtype "lute" backpack as inny
target inny
elseif findtype "lap harp" backpack as inny
target inny
else
overhead "I don't have an inny" 34
wait missingWait
replay
endif
wft 200
endif
if findtype "an anaconda" ground -1 -1 10 as mob
if noto mob = hostile
target mob
else
ignore mob
replay
endif
elseif findtype "a rock guar" ground -1 -1 10 as mob
if noto mob = hostile
target mob
else
ignore mob
replay
endif
elseif findtype "a sand crawler" ground -1 -1 10 as mob
if noto mob = hostile
target mob
else
ignore mob
replay
endif
elseif findtype "a wolfhound" ground -1 -1 10 as mob
if noto mob = hostile
target mob
else
ignore mob
replay
endif
else
overhead "No mob found" 34
wait missingWait
replay
endif
wft 100
if insysmsg "Whom do you wish them to attack?"
target self
clearsysmsg
endif
else
useskill 'Provocation'
wft 100
if insysmsg "What instrument"
if findtype "bamboo flute" backpack as inny
target inny
elseif findtype "tambourine" backpack as inny
target inny
elseif findtype "drum" backpack as inny
target inny
elseif findtype "lute" backpack as inny
target inny
elseif findtype "lap harp" backpack as inny
target inny
else
overhead "I don't have an inny" 34
wait missingWait
replay
endif
wft 200
endif
if findtype "an anaconda" ground -1 -1 10 as mob
if noto mob = hostile
target mob
else
ignore mob
replay
endif
elseif findtype "a rock guar" ground -1 -1 10 as mob
if noto mob = hostile
target mob
else
ignore mob
replay
endif
elseif findtype "a sand crawler" ground -1 -1 10 as mob
if noto mob = hostile
target mob
else
ignore mob
replay
endif
elseif findtype "a wolfhound" ground -1 -1 10 as mob
if noto mob = hostile
target mob
else
ignore mob
replay
endif
else
overhead "No mob found" 34
wait missingWait
replay
endif
endif
endif
if skill "Discordance" < trainDiscordance
if skill "Provocation" < trainProvocation
wait discordanceDelay
useskill 'Discordance'
wft 100
if findtype "an anaconda" ground -1 -1 10 as mob
if noto mob = hostile
target mob
else
ignore mob
replay
endif
elseif findtype "a rock guar" ground -1 -1 10 as mob
if noto mob = hostile
target mob
else
ignore mob
replay
endif
elseif findtype "a sand crawler" ground -1 -1 10 as mob
if noto mob = hostile
target mob
else
ignore mob
replay
endif
elseif findtype "a wolfhound" ground -1 -1 10 as mob
if noto mob = hostile
target mob
else
ignore mob
replay
endif
else
overhead "No mob found" 34
wait missingWait
replay
endif
endif
endif
# Discordance or you beat the game fallback check
elseif skill "Discordance" < trainDiscordance
useskill 'Discordance'
else
overhead "You beat the game" 88
overhead "Adjust skill check" 34
stop
endif
# Restart on cooldown reset
if insysmsg "Your barding skill cooldowns reset."
replay
endif
# Loop delay
for 1
wait loopDelay
endfor
loopThis version is somewhat inelegant, but takes advantage of the lower cooldown for discordance to speed up overall training.
Additionally added in an optional check to keep Peacemaking and Provocation at the same skill level.
*Updates - Made corrections to variables, syntax, and formatting.