Jump to content
  • 0

How to make invisible NPC??


Question

Posted

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?

3 answers to this question

Recommended Posts

  • 0
Posted (edited)

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
  • 0
Posted (edited)
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
  • 0
Posted

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.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...