Jump to content
  • 0

How to make invisible NPC??


Raiden

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  04/28/19
  • Last Seen:  

I would like to make a script with an "if",
it will look something like this:

(joblvl > = 10) {
// Npc "will have a"
(mes "Example";
// Then the NPC becomes invisible or disappears
};

How to make the NPC go away or become invisible?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   63
  • Joined:  04/29/19
  • Last Seen:  

1 hour ago, Raiden said:

I would like to make a script with an "if",
it will look something like this:

(joblvl > = 10) {
// Npc "will have a"
(mes "Example";
// Then the NPC becomes invisible or disappears
};

How to make the NPC go away or become invisible?

 use:
 

disablenpc "npc";
enablenpc "npc";

 

Edited by Gladius
  • Like 1
Link to comment
Share on other sites

  • 0

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

https://github.com/rathena/rathena/blob/7f772c32d3be201861946bb64720c231828465ac/doc/script_commands.txt#L6456

 


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

*hideonnpc "<NPC object name>";
*hideoffnpc "<NPC object name>";

These commands will make the NPC object specified display as hidden/visible,
even though not actually disabled per se. Hidden as in thief Hide skill, but
unfortunately, not detectable by Ruwach or Sight.

As they are now, these commands are pointless, it is suggested to use
'disablenpc'/'enablenpc', because these two commands actually unload the NPC
sprite location and other accompanying data from memory when it is not used.
However, you can use these for some quest ideas (such as cloaking NPCs talking
while hidden then revealing.... you can wonder around =P

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

 

Edited by sader1992
  • Like 1
Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

another option for invisible npc, change the NPC sprite into -1 or 111 or 844, but the npc mostly will remain clickable depend on which sprite you selected.

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...