Jump to content
  • 0

About hidden NPCs


Lay961

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  05/17/19
  • Last Seen:  

Hello everyone, I have a question for *hideonnpc and *disablenpc commands

I use this two commands to hidden my NPCs, but it will hidden for all players

but I just want to hide for some players, not everyone

My script:

yuno_in04,48,67,4    script    braid::yuno_braid    903,{
mes"[braid]";
mes"OK! I will go that later!";
mes"Just wait for me!";
close2;
hideonnpc"yuno_braid";
end;
}

If A player talk to this NPC, than that NPC will be hidden, but B player also can't seen this NPC (but B doesn't talk to NPC)

How can I do?

Edited by Emistry
Please use codebox.
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

it's not recommended . but you can use this command

*classchange(<view id>{,"<NPC name>","<flag>"});

read the command info to know why it's not recommended

also you will need to do a lot of extra code to keep your npc the way you want the player to see (read the command information)

---------------------------------------

*classchange(<view id>{,"<NPC name>","<flag>"});

This command is very ancient, its origins are clouded in mystery.
It will send a 'display id change' packet to everyone in the immediate area of
the NPC object, which will supposedly make the NPC look like a different sprite,
an NPC sprite ID, or a monster ID. This effect is not stored anywhere and will
not persist (Which is odd, cause it would be relatively easy to make it do so)
and most importantly, will not work at all since this command was broken with
the introduction of advanced classes. The code is written with the assumption
that the lowest sprite IDs are the job sprites and the anything beyond them is
monster and NPC sprites, but since the advanced classes rolled in, they got the
ID numbers on the other end of the number pool where monster sprites float.

As a result it is currently impossible to call this command with a valid view
id. It will do nothing whatsoever if the view ID is below 4047. Getting it to
run will actually just crash the client.

It could be a real gem if it can be gotten to actually do what it's supposed to
do, but this will only happen in a later SVN revision.

Empty <NPC name> means attached NPC.

Target for <flag>:
- bc_area : Sprite is sent to players in the vicinity of the source (default value).
- bc_self : Sprite is sent only to player attached.

---------------------------------------

 

Edited by sader1992
they > the
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  05/17/19
  • Last Seen:  

Thank you very much! it's works!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  115
  • Reputation:   7
  • Joined:  05/09/19
  • Last Seen:  

On 5/19/2019 at 2:30 AM, Lay961 said:

Thank you very much! it's works!

sorry how to fix your script.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...