Jump to content
  • 0

invalid npc constant


Question

Posted

I'm getting this error when loading my npc 

[Warning]: npc_parseview: Invalid NPC constant '723ü' specified in file 'npc/cus
tom/move/event/poring.txt', line'57'. Defaulting to INVISIBLE_CLASS.
[Warning]: npc_parseview: Invalid NPC constant '723ü' specified in file 'npc/cus
tom/move/event/poring.txt', line'70'. Defaulting to INVISIBLE_CLASS.

and this is the script 

paradise,143,87,1	script	Time Portal#porev	723,2,2,2,{

specialeffect 300;
sleep2 1000;
warp "morocc_o",159,95;
end;

OnInit:
	disablenpc "Time Portal#porev";
	end;

}

morocc_o,159,112,1	script	Time Portal#porev3	723,2,2,2,{


specialeffect 300;
sleep2 1000;
warp "paradise",143,101;
end;
}

not sure where its getting the 723ü  <-----u from

thanks

4 answers to this question

Recommended Posts

  • 0
Posted

It is because the npc definition:

<map name>,<x>,<y>,<facing>%TAB%script%TAB%<NPC Name>%TAB%<sprite id>,<triggerX>,<triggerY>,{<code>}

You have an extra ",2" argument. The correct should be:

paradise,143,87,1	script	Time Portal#porev	723,2,2,{

morocc_o,159,112,1	script	Time Portal#porev3	723,2,2,{

 

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...