RUNS flag not working.

Forum where anything UOX3-related goes - including, but not limited to: newbie-support, ideas, general questions, comments, etc and-so-forth.
Post Reply
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

RUNS flag not working.

Post by stranf »

I noticed some NPCs (great Hart for example) have a RUNS flag set in the DFN. From my understanding, this flag tells the NPC to flee when combat has begun. Unfortunatly, my Great Harts tend to stand down and face a mounted knight rather than flee to safety.

With the new code that supposedly makes monsters flee at different rates it would be nice to get the RUNS flag working again. A GM could set up a hunting quest for a white stag if the stag chooses to flee instead of attack the PC straight up.

Any thought on how to make this flag work again? Also, if the flag starts working again, is there anyway to access the C++ function via JS? It would be nice to make the great hart "flee" from NPCs if they "detect" their presence.
Grimson
Developer
Posts: 802
Joined: Sat Jun 04, 2005 1:52 am
Location: Germany
Has thanked: 0
Been thanked: 0

Post by Grimson »

The RUNS flag means that the NPC does run towards an enemy when it attacks, instead of walking towards it. If you want to modify when they flee tweak the FLEEAT and REATTACKAT values.
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Post by stranf »

Thanks grimson, that makes sense now.

however, aren't the Fleeat and reattackat values set in the uox.ini and are global instead of individual?
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

The base values are set in the UOX.INI, but you can set FLEEAT=# and REATTACKAT=# values on a per-NPC basis.
-= Ho Eyo He Hum =-
Post Reply