Jump to content
  • 0

invalid npc constant


mirabell

Question


  • Group:  Members
  • Topic Count:  41
  • Topics Per Day:  0.01
  • Content Count:  197
  • Reputation:   19
  • Joined:  11/20/11
  • Last Seen:  

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

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   4
  • Joined:  06/27/12
  • Last Seen:  

checked line 57 and 70?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  82
  • Reputation:   40
  • Joined:  01/03/12
  • Last Seen:  

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,{

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  41
  • Topics Per Day:  0.01
  • Content Count:  197
  • Reputation:   19
  • Joined:  11/20/11
  • Last Seen:  

thanks that worked but back 6 year ago the extra 2 i thought was for area of affect but i guess that changed.

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

make sure the npc script are saved using appropriate encoding that support by server.

Link to comment
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.   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.

×
×
  • Create New...