Page 1 of 1
UO Orion Script Help
Posted: Tue Oct 24, 2023 6:56 pm
by Alibaster
I have a targeting script that should target the closest monster but for some reason it will not target red characters like the cultist in the Halloween dungeon. Any idea how to change this or make it better?
function BowTargetAttack()
{
Orion.IgnoreReset();
Orion.Ignore(self);
while (true)
{
var enemy = Orion.FindType('-1 | !0x0191 | !0x0190 ', -1, 'ground', 'mobile | near | ignorefriends', '15', 'gray | criminal | enemy | red');
Orion.Wait(50);
if (enemy.length > 0)
{
Orion.UseAbility('secondary');
Orion.TargetObject(enemy[0]);
Orion.Wait(50);
Orion.Attack(enemy[0]);
Orion.Wait(1000)
}
}
}
Re: UO Orion Script Help
Posted: Wed Oct 25, 2023 3:30 pm
by stargazerm31
Yup... I am using the same script with the same issue. If you find a solution plz post... Following...
Re: UO Orion Script Help
Posted: Wed Oct 25, 2023 5:09 pm
by Alibaster
Thanks to NyKy for this suggestion
remove exclamation marks from front these !0x0191 | !0x0190 and it should attack human like graphics
evidently ! means ignore.
Re: UO Orion Script Help
Posted: Wed Oct 25, 2023 7:31 pm
by stargazerm31
Sweet. Too easy. Thx guys
Re: UO Orion Script Help
Posted: Thu Oct 26, 2023 9:34 am
by Wil
Alibaster wrote: Wed Oct 25, 2023 5:09 pm
remove exclamation marks from front these !0x0191 | !0x0190 and it should attack human like graphics
In most programming languages, "!" means "not" and "|" means "or". Your original expression should have evaluated to "true" for all objects since "anything except A or anything except B" means "everything."
Re: UO Orion Script Help
Posted: Thu Oct 26, 2023 10:48 am
by Alibaster
Wil wrote: Thu Oct 26, 2023 9:34 am
Alibaster wrote: Wed Oct 25, 2023 5:09 pm
remove exclamation marks from front these !0x0191 | !0x0190 and it should attack human like graphics
In most programming languages, "!" means "not" and "|" means "or". Your original expression should have evaluated to "true" for all objects since "anything except A or anything except B" means "everything."
Thank you. I followed some of that but programing is not something I know so I appreciate those that do.