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






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NPC interact with Ghosts
Author Message
Nachtmusique
Journeyman
*

Posts: 89
Likes Given: 0
Likes Received: 6 in 6 posts
Joined: Mar 2012
Reputation: 0



Post: #1
NPC interact with Ghosts
I know that healer brain types interact with ghosts, but is there a way to make an NPC hostile to ghost players? I'd like to make a Reaper NPC that is only visible to Ghost players and will chase ghost players. If caught by a reaper, the player's ghost is transported to the abyss or something like that. Is this even remotely possible?
06-01-2016 06:51 AM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #2
RE: NPC interact with Ghosts
Right now every attack done to a ghost is stopped from the source to avoid exploits, the only way to achieve this is to compile your own build allowing this to happend and changing all your scripts blocking attacks to ghosts in the rest of cases.
06-01-2016 06:00 PM
Find all posts by this user Like Post Quote this message in a reply
Nachtmusique
Journeyman
*

Posts: 89
Likes Given: 0
Likes Received: 6 in 6 posts
Joined: Mar 2012
Reputation: 0



Post: #3
RE: NPC interact with Ghosts
Well poop. So, no way to block healing behavior on a healer brain and script for him to chase? I don't need them to "attack" per say, just chase and fire a trigger when they get close.
06-01-2016 10:06 PM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #4
RE: NPC interact with Ghosts
If so, you can do it with @NPCLookAtChar and starting the Follow skill:

act=<src>
action=100
06-07-2016 04:46 PM
Find all posts by this user Like Post Quote this message in a reply
Nachtmusique
Journeyman
*

Posts: 89
Likes Given: 0
Likes Received: 6 in 6 posts
Joined: Mar 2012
Reputation: 0



Post: #5
RE: NPC interact with Ghosts
Great! I think that would work. Here's what I'm thinking...

An evil player dies.
He begins periodically spawning reaper NPCs nearby every few seconds. (The more evil the character, the more reapers are spawned)
These reapers follow the dead player but are "singleremovefromviewed" from all living players.
If the ghost player comes within 1 tile of any reaper NPC before being resurrected, he is banished to the abyss.
Similarly, I could also have Priest NPCs that would act like normal healers for good players but exorcise the ghosts of evil players to the abyss.

Thoughts?
06-08-2016 08:52 AM
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)