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)
}
}
}
UO Orion Script Help
UO Orion Script Help
Alibaster in game!!
-
- Apprentice Scribe
- Posts: 13
- Joined: Sat Aug 26, 2023 11:23 pm
Re: UO Orion Script Help
Yup... I am using the same script with the same issue. If you find a solution plz post... Following...
Diggles in Game
Re: UO Orion Script Help
Thanks to NyKy for this suggestion
remove exclamation marks from front these !0x0191 | !0x0190 and it should attack human like graphics
evidently ! means ignore.
remove exclamation marks from front these !0x0191 | !0x0190 and it should attack human like graphics
evidently ! means ignore.
Alibaster in game!!
-
- Apprentice Scribe
- Posts: 13
- Joined: Sat Aug 26, 2023 11:23 pm
- Wil
- Legendary Scribe
- Posts: 1227
- Joined: Mon Dec 30, 2013 1:19 pm
- Location: Seattle, WA, USA
- Contact:
Re: UO Orion Script Help
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
Thank you. I followed some of that but programing is not something I know so I appreciate those that do.
Alibaster in game!!