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
spirit speak npcs
Author Message
Nachtmusique
Journeyman
*

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



Post: #1
Thumbs Down spirit speak npcs
I'm wondering if there is a way to make certain ghost type npcs invisible except when spirit speaking. Remember zelda 2 where you needed the cross in order to see the ghosts that were attacking you? Id like to do something like that.
07-18-2012 09:30 PM
Find all posts by this user Like Post Quote this message in a reply
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #2
RE: spirit speak npcs
we got no triggers about drawing of objects or outgoing packet filter so answer is no. you can use object remove packet with @click trigger but it is not a real solution:

[FUNCTION SingleRemoveFromView]
SENDPACKET 01d D<ARGS>

[events e_ghost]
on=@click
if (<src.spiritspeak> <= 80.0)
src.SingleRemoveFromView <uid>
return 1
endif


im using that for couple of scripts but i cannot say its working good, it is possible to see npcs like flicking, also packets received by client.
(This post was last modified: 07-19-2012 12:10 AM by Shaklaban.)
07-18-2012 10:48 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Shidhun
Journeyman
*

Posts: 59
Likes Given: 5
Likes Received: 3 in 3 posts
Joined: Jul 2012
Reputation: 1



Post: #3
RE: spirit speak npcs
I once saw an "invisible" npc on a long gone server. They patched a very small animation (in this case it was a dagger) as if it was a character.

The NPC attacked you, but the only thing you could see was the moving dagger.

Perhaps something like this could be a possible solution?
Every time you cast spirit speak, a function changes the body of the npc to a real ghost, insted of the (in my example) moving dagger.

I know that this is not a very good solution, but at least it should work.
07-19-2012 01:54 AM
Find all posts by this user Like Post Quote this message in a reply
Khaos
Master
**

Posts: 595
Likes Given: 166
Likes Received: 83 in 51 posts
Joined: Mar 2012
Reputation: 11



Post: #4
RE: spirit speak npcs
You don't need to patch anything for a floating dagger Smile. It is an animation file that links to another animation file. It is independent. You can just script the anim ID as a character and you have a floating dagger npc Smile.

Even if they are removed from sight; I think a player can pull their name gump up from the SHOW ALL NAMES. Not sure.

Just do a removefromview on @seenewplayer. use if conditions to make sure it is not in combat with a player who can see it (obviously others would rush to aid hitting the air where that player is as his blood is pouring out) and an if condition for the needed item to see them Big Grin
Well in this case a check for spiritspeak Big Grin
(This post was last modified: 07-20-2012 06:54 AM by Khaos.)
07-20-2012 06:53 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)