Raiden Posted May 3, 2019 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 13 Reputation: 0 Joined: 04/28/19 Last Seen: May 7, 2019 Share Posted May 3, 2019 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? Quote Link to comment Share on other sites More sharing options...
0 Gladius Posted May 3, 2019 Group: Members Topic Count: 12 Topics Per Day: 0.01 Content Count: 235 Reputation: 64 Joined: 04/29/19 Last Seen: April 16 Share Posted May 3, 2019 (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 May 3, 2019 by Gladius 1 Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted May 3, 2019 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: Tuesday at 07:50 PM Share Posted May 3, 2019 (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 May 3, 2019 by sader1992 1 Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted May 6, 2019 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted May 6, 2019 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. Quote Link to comment Share on other sites More sharing options...
Question
Raiden
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.