Issue information

Issue ID
#7688
Status
Needs more Info
Severity
None
Started
Samuel
Sep 5, 2013 4:38
Last Post
daim
Mar 26, 2014 23:58
Confirmation
N/A

Samuel - Sep 5, 2013 4:38

Hi guys! I've been using a script from my old server and tried to use it here in hercules. Then I encountered a weird problem with this command: [b]disablenpc[/b]

When I use this command, it really makes the npc not triggerable in the normal way. The problem is: the disabled NPC shoulld disappear from sight.

If you are near the npc and activated this script, the NPC will disappear from sight but when you walk around or teleported and get back to the NPC's location, NPC is now showing again although it can't be triggered.

Is it really intended to work like that? In my past server, i remember that it's really hidden when the npc is disabled. Thanks!

Ind - Sep 9, 2013 18:33

can you show me the portion of the script that uses disablenpc? so I may use it to reproduce

Samuel - Sep 10, 2013 11:36

[code=nocode:0] quiz_01,42,285,4, script Trial 717,{ mes "Hello"; close; OnInit: waitingroom "Gift For All",0; disablenpc "Gift For All"; end; } - script fon -1,{ OnWhisperGlobal: if(getgmlevel() >= 80) { enablenpc "Gift For All"; dispbottom "You have enabled Gift For All NPC!"; } else end; } - script foff -1,{ OnWhisperGlobal: if(getgmlevel() >= 80) { disablenpc "Gift For All"; dispbottom "You have disabled Gift For All NPC!"; } else end; } [/code]

This post has been edited by Samuel on Sep 10, 2013 11:37

Samuel - Sep 10, 2013 11:40

When you use the above code:

1. Oninit disables the NPC: (making it not triggering but still visible)
2. When you pm npc:foff while away from NPC (disables the npc but when you warp, it's still visible)
3. When you pm npc:foff while beside the NPC (disables the npc but when you warp, it becomes INVISIBLE) but walk around the area until the area where NPC can still be seen by client sight, it will become visible again although it can't be triggered

daim - Mar 26, 2014 23:58

any fix on this?