1
Orion UO Client / Re: Multiskill Trainer for Orion
« on: May 06, 2022, 08:41:02 AM »
I run Orion as well and would be happy to test it out. Just let me know!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
start()
function start()
{
while(true)
{
// Alert if low on regeants
if(Orion.Count("0x0F8D|0x0F7A|0x0F8C", 'any', 'backpack') < 60 )
{
Orion.Sound(61);
Orion.Print('0xF0000', "LOW FIREFIELD REGEANT COUNT");
}
//While your health is greater than 20%
while(Player.Hits() > Player.MaxHits()/100*20)
{
//Cast Firefield on yourelf
Firefield()
//Find the fire on the ground. On this server always 5 tiles long.
var fire = Orion.FindType('0x398C','any',ground, 'item', 150);
//Find the first fire tile
var fireobj0 = Orion.FindObject(fire[0]);
//find the last fire tile
var fireobj4 = Orion.FindObject(fire[4]);
//while there is fire on the ground and your health is greater than 20%
while(Orion.FindType('0x398C','any',ground, 'item', 150).length > 0 && (Player.Hits() > Player.MaxHits()/100*20))
{
//run back and forth between first tile of fire and last tile of fire
Orion.WalkTo(fireobj0.X()-2,fireobj0.Y(),1,1,255,1);
Orion.WalkTo(fireobj4.X()+2,fireobj4.Y(),1,1,255,1);
}
}
//If we do get too low, lets get our of the way and hide and pause.
if(Player.Hits() < Player.MaxHits()/100*20)
{
Orion.Print("HITS TOO LOW, BAILING OUT")
Orion.WalkTo(fireobj0.X()-2,fireobj0.Y()+5,1,1,255,1);
Orion.UseSkill('Hiding');
Orion.Wait(4000);
Orion.PauseScript();
}
}
}
function Firefield() {
Orion.Cast('Fire field')
Orion.Wait(900);
Orion.TargetObject(self);
Orion.Wait(3000)
}