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-nmm7 (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-nmm7 (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-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NPCs not fighting back?
Author Message
Arathil
Apprentice
*

Posts: 1
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Oct 2016
Reputation: 0



Post: #1
NPCs not fighting back?
I have some NPC guards in a city with a very simple script that fires when they see a flagged criminal player.

Essentially:
ON=@NPCSeeNewPlayer
IF (<SRC.FLAGS>&STATF_CRIMINAL)
ATTACK <SRC.UID>
SAY=Meet your fate, criminal!
...
...
...

It seems to fire correctly, You see a *Guard is attacking Criminal* emote, and the guard gets into war mode, but the NPC doesn't actually start attacking and wanders away.

If the Criminal makes an effort to attack the guard and hits them, then it will fight back as it should. I cannot figure out for the life of me why this is happening. Any ideas?
10-01-2016 04:19 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
NPCs not fighting back? - Arathil - 10-01-2016 04:19 PM
RE: NPCs not fighting back? - Kanibal - 10-01-2016, 09:16 PM
RE: NPCs not fighting back? - x77x - 10-02-2016, 01:46 PM
RE: NPCs not fighting back? - Coruja - 10-06-2016, 08:34 AM
RE: NPCs not fighting back? - x77x - 10-06-2016, 09:16 PM
RE: NPCs not fighting back? - Leonidas - 11-05-2016, 05:09 AM
RE: NPCs not fighting back? - Coruja - 11-05-2016, 01:15 PM
RE: NPCs not fighting back? - massis87 - 01-26-2017, 08:19 PM
RE: NPCs not fighting back? - Rostok - 03-26-2017, 01:26 PM
RE: NPCs not fighting back? - Coruja - 03-27-2017, 11:05 AM
RE: NPCs not fighting back? - Rostok - 03-27-2017, 05:04 PM

Forum Jump:


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