1
Orion UO Scripts / Question on primary ability syntax (Whirlwind Attack)
« on: November 02, 2023, 07:31:06 PM »
Hello all,
I have recently modified a script to train Bushido with minimum effort. I used this in Yew sheep pen to get my Bushido to 100 as it targets a mob, uses lightning strike, then targets a new mob.
My question is for Whirlwind Attack. Since Whirlwind attack is not a buff, I do not know the language needed to use Whirlwind Attack, wait until it hits a mob, then repeat.
Right now I can only get it to toggle on/off with "wait", which is not optimal. Any help here would be greatly appreciated. Please let me know if you have any questions. Thanks!
-V
p.s. Feel free to use my Bushido sheep pen script below.
I have recently modified a script to train Bushido with minimum effort. I used this in Yew sheep pen to get my Bushido to 100 as it targets a mob, uses lightning strike, then targets a new mob.
My question is for Whirlwind Attack. Since Whirlwind attack is not a buff, I do not know the language needed to use Whirlwind Attack, wait until it hits a mob, then repeat.
Right now I can only get it to toggle on/off with "wait", which is not optimal. Any help here would be greatly appreciated. Please let me know if you have any questions. Thanks!
-V
p.s. Feel free to use my Bushido sheep pen script below.
Code: Javascript
- function attackNearestMob(){
- var target, range = 14;
- for(;;){
- var mobs = Orion.FindTypeEx(any, any, ground, 'mobile|live|inlos', 8, 'gray|enemy').sort(function(a, b){
- return a.Distance() - b.Distance();
- })[0];
- if(mobs){
- Orion.Print("Attacking " +mobs.Name());
- if(mobs.Hits("%") == 100){
- Orion.AddWaitTargetObject(mobs.Serial());
- Orion.InvokeVirtue('Honor');
- }
- Orion.Attack(mobs.Serial());
- while(mobs.Exists()){
- if(Player.Mana() > 10 && !Orion.BuffExists('Lightning Strike'))
- Orion.Cast('Lightning Strike');
- Orion.Wait(500);
- }
- Orion.Print("Target dead");
- } else {
- Orion.Print("No targets found");
- Orion.Wait(2000);
- }
- }
- }