UO Orion Script Help

Name says it all
Post Reply
Alibaster
Legendary Scribe
Posts: 268
Joined: Wed Nov 16, 2016 11:02 am

UO Orion Script Help

Post 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)
}
}
}
Alibaster in game!!
stargazerm31
Apprentice Scribe
Posts: 13
Joined: Sat Aug 26, 2023 11:23 pm

Re: UO Orion Script Help

Post by stargazerm31 »

Yup... I am using the same script with the same issue. If you find a solution plz post... Following...
Diggles in Game
Alibaster
Legendary Scribe
Posts: 268
Joined: Wed Nov 16, 2016 11:02 am

Re: UO Orion Script Help

Post 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.
Alibaster in game!!
stargazerm31
Apprentice Scribe
Posts: 13
Joined: Sat Aug 26, 2023 11:23 pm

Re: UO Orion Script Help

Post by stargazerm31 »

Sweet. Too easy. Thx guys
Diggles in Game
User avatar
Wil
Legendary Scribe
Posts: 1227
Joined: Mon Dec 30, 2013 1:19 pm
Location: Seattle, WA, USA
Contact:

Re: UO Orion Script Help

Post 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."
Alibaster
Legendary Scribe
Posts: 268
Joined: Wed Nov 16, 2016 11:02 am

Re: UO Orion Script Help

Post 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.
Alibaster in game!!
Post Reply