Thursday, January 24, 2019

classchange - npc shown only to certain players

The npc is shown only to 1 player, this screenshot must be fake !!

just kidding, this script command is available since the new novice training ground released

And again ... as always, Hercules and rAthena having different ways to do this

Hercules


rAthena


---- This has been tested on both Hercules and rAthena, both behave the same way -----

*classchange ... the way is works is ...
IF you are within the sight range of the npc, it will change its sprite ID

as example above, this npc was visible from the beginning, and hides upon clicking it
BUT if you walk away from it, and come back again, it will mysteriously appear again

so in order to have only selective players can see this npc, (GMs, players with variables)
the only way I think of, is using OnTouch


even with that, my test result shows certain npc ID are unable to change sprite. These are :-
1. FAKE_NPC (-1)
2. WARPNPC (45)
3. HIDDEN_NPC (111)

HIDDEN_WARP_NPC (139) works fine, make this is the only npc ID that hides your npc

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

another thing I want to make note is ...
because Hercules use <char id> instead of  bc_flag, seems can do like this
but actually it is not.
If you load the script upon server startup, and login later, you wont able to see the npc
after all, *classchange only effective if you are standing in range with the npc

No comments:

Post a Comment

Linux compiler error that never shown on Visual Studio

let's just admit Visual Studio sux ... ok ? right now, if you want to host a Private Ragnarok Online server, its just better to choose...