Jump to content
  • 0
OverLord

disable npc error

Question


I'm customizing the apprentice field. I used the following code to disable the NPC that I modified. The NPC who created work and the old are apparently disabled. But is showing this error message when I start the emulator ...
Is there a best mode to do this so as not to appear this message?
 
- script Disable -1,{
OnInit:
disablenpc "Sprakki#newbe05";
disablenpc "Brade#newbe02";
disablenpc "Brade#newbe04";
disablenpc "Chocolat#newbe06";
end;
}

 

[Error]: npc_enable: Attempted to hide a non-existing NPC 'Sprakki#newbe05' (fla
g=0).
[Error]: npc_enable: Attempted to hide a non-existing NPC 'Brade#newbe02' (flag=
0).
[Error]: npc_enable: Attempted to hide a non-existing NPC 'Brade#newbe04' (flag=
0).
[Error]: npc_enable: Attempted to hide a non-existing NPC 'Chocolat#newbe06' (fl
ag=0).

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

 


I'm customizing the apprentice field. I used the following code to disable the NPC that I modified. The NPC who created work and the old are apparently disabled. But is showing this error message when I start the emulator ...
Is there a best mode to do this so as not to appear this message?
 
- script Disable -1,{
OnInit:
disablenpc "Sprakki#newbe05";
disablenpc "Brade#newbe02";
disablenpc "Brade#newbe04";
disablenpc "Chocolat#newbe06";
end;
}

 

[Error]: npc_enable: Attempted to hide a non-existing NPC 'Sprakki#newbe05' (fla
g=0).
[Error]: npc_enable: Attempted to hide a non-existing NPC 'Brade#newbe02' (flag=
0).
[Error]: npc_enable: Attempted to hide a non-existing NPC 'Brade#newbe04' (flag=
0).
[Error]: npc_enable: Attempted to hide a non-existing NPC 'Chocolat#newbe06' (fl
ag=0).

According to error those npc's doesn't exist, so just comment those lines(if the npc which contain this contain other useful things), else disable npc.

If the npc's mentioned in error exists, then make sure this npc is loaded at last(after those 4 npc which are going to be disabled)

Share this post


Link to post
Share on other sites
  • 0

This does not work. I think the problem is that "after" the original script, has the "duplicate" command. What should try to clone the NPC, which is already disabled and generates this error. For just test the command on a NPC that does not have the "duplicate" and not getting this error.

 

Sorry bad english....

Edited by OverLord

Share this post


Link to post
Share on other sites
  • 0

Make sure that you don't have a "Unique Name" set on those npcs, since if there is one you should refer to them by their unique name, not their display name. (Unique Name is the name which goes after :: in NPC name field at the start of NPC).

Share this post


Link to post
Share on other sites

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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.