[EasyUO] ninjutsu trainer

If you make a Client-side script you can publish it here for other players to use
Locked
Penny
Legendary Scribe
Posts: 210
Joined: Thu Oct 01, 2009 12:05 pm

[EasyUO] ninjutsu trainer

Post by Penny »

A ninjutsu training script, for whoever wanted it. The melee skills (4-5) have a bit shabby implementation. I might make it better later, or if someone knows how to do it better, please tell me :) Otherwise it works well.

Edit: Changed Rabbit Form to Rat Form

Code: Select all

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Script for training ninjutsu
;
; The skills and levels for training are taken from UOEX wiki skill guides section.
; Choose a skill, start the script and it will run until you stop it.
;
;(1) 30 - 40 	Animal Form (Rat)
;(2) 40 - 50 	Animal Form (Dog)
;(3) 50 - 75 	Mirror Images
;(4) 75 - 85 	Focus Attack
;(5) 85 - 120	Death Strike
;
;Choose which skill to use (1-5):
set %skill 5
; 4 and 5 are used in melee combat (you need a melee weapon)
; I'm sorry for the way skills 4 and 5 are implemented, they work
; to some extent though.
;
;   -Jack Penny
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


if %skill = 1
{
 gosub RatForm
}
if %skill = 2
{
 gosub DogForm
}
if %skill = 3
{
 gosub MirrorImage
}
if %skill = 4
{
 gosub FocusAttack
}
if %skill = 5
{
 gosub DeathStrike
}
halt

;----------------------------------------------
sub RatForm
{
 RatLoop:
 gosub wait_mana 10
 event macro 15 247
 gosub wait_for_generic_gump
 set %x #contposx + 220
 set %y #contposy + 220
 click %x %y
 wait 2
 set %x #contposx + 40
 set %y #contposy + 280
 click %x %y
 wait 40
 event macro 15 247
 wait 30
 goto RatLoop
}
;-------------------------------------------------
sub DogForm
{
 DogLoop:
 gosub wait_mana 10
 event macro 15 247
 gosub wait_for_generic_gump
 set %x #contposx + 20
 set %y #contposy + 220
 click %x %y
 wait 2
 set %x #contposx + 40
 set %y #contposy + 280
 click %x %y
 wait 30
 event macro 15 247
 wait 30
 goto DogLoop
}
;--------------------------------------------------
sub MirrorImage
{
 MirrorLoop:
 gosub wait_mana 10
 while #followers = #maxfol
 {
  wait 10
 }
 event macro 15 252
 wait 20
 goto MirrorLoop
}
;--------------------------------------------------
sub FocusAttack
{
 FocusLoop:
 gosub wait_mana 20
 event macro 15 245
 wait 20
 goto FocusLoop:
}
;--------------------------------------------------
sub DeathStrike
{
 DeathStrikeLoop:
 gosub wait_mana 20
 event macro 15 246
 wait 20
 goto DeathStrikeLoop
}
;--------------------------------------------------
sub wait_for_generic_gump
{
 wait_gump_loop:
 if #contname <> generic_gump
 {
  wait 3
  goto wait_gump_loop
 }
 return
}
;--------------------------------------------------
sub wait_mana
{
 set %minmana %1
 while %minmana > #mana
 {
  wait 10
 }
 return
}
;---------------------------------------------------

Last edited by Penny on Thu Oct 01, 2009 3:13 pm, edited 1 time in total.
Failure is not an option, it's a standard.
User avatar
labmonkey
Master Scribe
Posts: 56
Joined: Fri Aug 14, 2009 1:44 pm
Location: Sweeny, TX (south of Houston)

Re: [EasyUO] ninjutsu trainer

Post by labmonkey »

great script so far. I did change it to use rat form instead of rabbit form though because rabbit doesn't gain fast at all past 25 skill and rat form can actually take u all the way to 60 if you forget to change it.
When you look into the abyss remember that the abyss is looking back.
Locked