I used the following and gmed Provo, Music, Archery, Tactics, Anatomy at the bard table in Deceit
It might not be the most well written, but if any changes need to be made or questions just let me know. Updated to be a little more informative and work a little nicer.
It might not be the most well written, but if any changes need to be made or questions just let me know. Updated to be a little more informative and work a little nicer.
Code:
.
// // // // // // // // // // // // // //
// Archery / Bard Trainer //
// //
//Author: Peej //
//Version: 2.0 //
//Date: 8/12/2018 //
// // // // // // // // // // // // // //
// Notes: //
// +Will train Archery / Bard Skills //
// at the Bard table UOF //
// // // // // // // // // // // // // //
//--------------------------------------------//
// Travel Options //
// 1. Rune Book //
// +Prompt for Town /Bard Table //
// Comment out line 18-23 if not needed //
// 2. Young Travel //
//+Use Wisp for quick getaway //
// Comment out line 28-31 //
//--------------------------------------------//
if not @findalias 'Town Recall'
promptalias 'Town Recall'
endif
if not @findalias 'Bard Table'
promptalias 'Bard Table'
endif
//if not @findalias 'wisp'
// headmsg 'Choose Wisp'
// promptalias 'wisp'
//endif
//-------------//
// Create Lists//
//-------------//
if not @listexists 'archery_l'
@createlist 'archery_l'
@pushlist 'archery_l' 0x13b2 // Bow
@pushlist 'archery_l' 0xf50 // Crossbow
@pushlist 'archery_l' 0x13fd // Heavy Crossbow
endif
if not @listexists 'instruments_l'
@createlist 'instruments_l'
@pushlist 'instruments_l' 0xe9d // Tambourine
@pushlist 'instruments_l' 0xe9e // Tambourine w/ Red Tassle
@pushlist 'instruments_l' 0xeb3 // Lute
@pushlist 'instruments_l' 0xeb2 // Lap Harp
@pushlist 'instruments_l' 0xe9c // Drum
@pushlist 'instruments_l' 0xeb1 // Standing Harp
endif
//------------//
//Create Timer//
//------------//
if not timerexists 'anat_t'
createtimer 'anat_t'
settimer 'anat_t' 9000
endif
//-----------------------------------------------------------------//
//Recalls if see Red //
// - Will attempt to recall to town if //
// you take damage or see a red //
// - Comment out lines you dont need //
// 1. Uses Recall - ln 68 //
// 2. Uses Wisp - ln 81 //
// 3. If take damage recall - ln 94 //
// 4. Damage / Wisp Recall - ln 106 //
// - pause time can be adjusted default 600000 = 10 mins //
//-----------------------------------------------------------------//
//1.
getenemy 'Murderer'
if @inrange 'enemy' 15
cast 'Recall'
waitfortarget 1000
target! 'Town Recall'
pause 3000
if inregion 'town'
pause 600000
elseif not inregion 'town'
replay
endif
endif
//2.
//getenemy 'Murderer'
//if @inrange 'enemy' 15
//useobject 'wisp'
//waitforgump 0xcec30275 15000
//replygump 0xcec30275 6
//if inregion 'guards'
//headmsg "Safe in town"
//pause 600000
//elseif not @inregion 'guards'
//replay
//endif
//endif
//3.
if hits != maxhits
cast 'Recall'
waitingfortarget 1000
target! 'Town Recall'
pause 3000
if inregion 'town'
pause 600000
elseif not inregion 'town'
replay
endif
endif
//4.
//if hits != maxhits
//useobject 'wisp'
//waitforgump 0xcec30275 15000
//replygump 0xcec30275 6
//if inregion 'guards'
//headmsg "Safe in town"
//pause 600000
//elseif not @inregion 'guards'
//replay
//endif
//endif
//------------------------------//
// Archery Training //
// - Equip Listed Items //
// - Unequip if no Mobs //
// - Default Mob - Rotten Corpse//
//------------------------------//
if not @findtype 0x9b 0 0 0 10
clearhands 'both'
pause 400
warmode 'off'
elseif @findtype 0x9b 0 0 0 10
if skill 'Archery' != 100 or skill 'Tactics' != 100
if not @findlayer 'self' 1
for 0 to 'archery_l'
if @findtype archery_l[]
@setalias 'archery_l' 'found'
equipitem 'found' 1
warmode 'on'
// Attack Rotten Corpse
if @findtype 0x9b 0 0 0 10
attack 'found'
endif
endif
endif
endif
// Provcation
if skill 'Provocation' != 100
for 0 to 'instruments_l'
if @findtype instruments_l[]
@setalias 'instruments_l' 'found'
useobject! 'instruments_l'
break
endif
endfor
pause 2000
if skill 'Provocation' < 100
useskill 'Provocation'
waitfortarget 1000
targettype! 0x9b
waitfortarget 1000
target! 'self'
pause 12000
elseif skill 'Provocation' < 65
useskill 'Provocation'
waitfortarget 1000
targettype! 0x3
waitfortarget 1000
target! 'self'
pause 12000
endif
endif
// Use Anatomy on Target
if timer 'anat_t' >= 9000 and skill 'Provocation' == 100
@getfriend 'any''humanoid''nearest'
if @inrange 'friend' 5
useskill 'anatomy'
waitfortarget 1000
target! 'friend'
endif
settimer 'anat_t' 0
endif
// Recall to bank and stop once skills are gm - Comment / Delete out unwanted skills
if skill 'Archery' == 100
skill 'Anatomy' == 100
skill 'Tactics' == 100
skill 'Musicianship' == 100
skill 'Provocation' == 100
cast 'Recall'
waitingfortarget 1500
target! 'Town Recall'
pause 4000
if inregion 'town'
sysmsg 'Safe in guards!' 29
headmsg 'Training Complete!'
stop
endif
endif
//If wanted you can add an organizer in here and have it recall to bank or house restock and go back to continue
// if counter 'arrow' == 0
// cast 'Recall'
// waitingfortarget 1500
// target! 'Town Recall'
// pause 4000
// if inregion 'town'
// sysmsg 'Out of Arrows, Restock' 29
// msg 'Bank'
// organizer 'restock arrows'
// while organizing
// endwhile
// if counter 'arrow' == 0
// headmsg 'Restock Arrows'
// stop
// else
// cast 'Recall'
// waitingfortarget 1000
// target! 'Bard Table'
// endif
// endif
// endif
// endif
Last edited: