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
NPC Brain
Author Message
Xenon
Apprentice
*

Posts: 5
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Mar 2014
Reputation: 0



Post: #1
NPC Brain
Hi Guys, I have been out of action for a long time, many years in fact but thought I would muck around with some scripting again.

I am in the process of upgrading from sphere 56b to 56d and have come across a problem with my NPC scripts.

Most of my NPC's dont have the ON=@Create
NPC=10

Which is causing some problems with NPC such as not moving and attacking.

However I have previously added a event on most of my custom NPCs e_npc.

How would I add NPC=10 or NPC=Brain_Monster to my e_npc event that is lcoated on most of my custom NPC scripts?
06-26-2017 04:48 AM
Find all posts by this user Like Post Quote this message in a reply
Xenon
Apprentice
*

Posts: 5
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Mar 2014
Reputation: 0



Post: #2
RE: NPC Brain
I am trying to do something like this. I just cant find of the set function in scripting....


[EVENTS e_npc]
if (<src.npc>)
src.npc=brain_animal
endif
06-27-2017 04:39 AM
Find all posts by this user Like Post Quote this message in a reply
BestBG
Apprentice
*

Posts: 9
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jun 2017
Reputation: 0



Post: #3
RE: NPC Brain
Why not just add ON=@CREATE for all your custom npcs and use NPC=brain_animal?
(This post was last modified: 06-27-2017 12:20 PM by BestBG.)
06-27-2017 12:19 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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