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
Limitation to Dead People
Author Message
backtobasics
Apprentice
*

Posts: 8
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jan 2013
Reputation: 0



Post: #1
Limitation to Dead People
Hi there!

I just wonder if it is possible to prevent dead people from seeing some kind of npcs? For instance, if a player is dead, he wont be able to see a dragon of an id c_dragon_green even its standing near him.

Thanks for your help in advance,
basics.
(This post was last modified: 01-31-2013 05:09 PM by backtobasics.)
01-31-2013 05:07 PM
Find all posts by this user Like Post Quote this message in a reply
WRWR
Journeyman
*

Posts: 212
Likes Given: 30
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 1



Post: #2
RE: Limitation to Dead People
USE @CLICK and REMOVEFROMVIEW
02-05-2013 08:38 AM
Find all posts by this user Like Post Quote this message in a reply
backtobasics
Apprentice
*

Posts: 8
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jan 2013
Reputation: 0



Post: #3
RE: Limitation to Dead People
so, should it be like that

on=@click
if (<src.hits>=0) // if the player is a ghost (or this could be a body check)
removefromview // dont show the npc
endif

is that ok?

I think using @environchange is more useful isnt it?
(This post was last modified: 02-06-2013 03:28 AM by backtobasics.)
02-06-2013 03:26 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: Limitation to Dead People
in the wiki it's written that removefromview remove the item/char for all nearby clients :\
02-06-2013 03:43 AM
Find all posts by this user Like Post Quote this message in a reply
Seron
Apprentice
*

Posts: 11
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jan 2013
Reputation: 0

Motoi

Post: #5
RE: Limitation to Dead People
[FUNCTION SingleRemoveFromView]
SENDPACKET 01d D<ARGS>

You can use this function for single-player removefromview...
Example:

on=@click
src.singleremovefromview <uid>

Will remove <default> from <src> view
02-06-2013 07:32 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
backtobasics
Apprentice
*

Posts: 8
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jan 2013
Reputation: 0



Post: #6
RE: Limitation to Dead People
Could you give an example with a npc id so I can clearly understand?
02-10-2013 03:49 PM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #7
RE: Limitation to Dead People
You don't need an NPC id, the <uid> is triggered under the @click so it will automatically fill in said creature, if you re wanting to limit it to certain types simply do:

Code:
ON=@Click
if <body>==0D0  //chicken
   src.singleremovefromview <uid>
endif

[Image: 2nis46r.jpg]
02-10-2013 04:14 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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