The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Animals won't start fights
Author Message
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #11
RE: Animals won't start fights
NPC AI is a bit complicated, like the "AI" word says itself, they have some artificial intelligence checks instead just attack everyone and everything, so there's some things that can make the NPC refuse start the attack (like flags, distance, notoriety, threat level, etc)

here you can find how the attack sequence is called and everything that it checks for:
https://github.com/Sphereserver/Source/b....cpp#L2344

PS: maybe the problem of guards NPCs refusing the attack could be also related to this same code
01-28-2017 06:52 PM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Coruja's post
Post Reply 


Messages In This Thread
RE: Animals won't start fights - massis87 - 01-26-2017, 12:20 PM
RE: Animals won't start fights - darksun84 - 01-26-2017, 07:39 PM
RE: Animals won't start fights - Leonidas - 01-27-2017, 12:09 PM
RE: Animals won't start fights - Leonidas - 01-28-2017, 07:36 AM
RE: Animals won't start fights - Leonidas - 01-28-2017, 09:43 AM
RE: Animals won't start fights - Coruja - 01-28-2017 06:52 PM
RE: Animals won't start fights - Coruja - 01-31-2017, 01:31 AM
RE: Animals won't start fights - Coruja - 01-31-2017, 08:32 AM

Forum Jump:


User(s) browsing this thread: 8 Guest(s)