Raiden Posted May 3, 2019 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
0 sader1992 Posted May 3, 2019 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
0 Gladius Posted May 3, 2019 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
0 Emistry Posted May 6, 2019 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
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?
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.