Jump to content
  • 0

failed npc checknear test


kevin1109

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   3
  • Joined:  10/21/12
  • Last Seen:  

I made an item call a function which have player interaction to choose on a menu but it gets the error npc_scriptcont: failed npc->checknear test.

 

Heres an example of it:

Item id of Knife -> 1202

with script on it as:

callfunc "getSkill";

 

and the gist of the function of:

function	script	getSkill	{
	attachrid(getcharid(3));
			retryRK:
					dispbottom "Select a Skill you want.";
					switch(select("Enchant Blade:Sonic Wave:Death Bound")){
						case 1: 
							.@r = 1;
							break;
						case 2: 
							.@r = 2;
							break;
						case 3: 
							.@r = 3;
							break;
						default:
							goto(retryRK);
					}
					close;
<More code...>

Is there any workaround this or any fix? would greatly appreciate it!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   3
  • Joined:  10/21/12
  • Last Seen:  

Bump

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

hmm I don't get the npc->checknear warning on test 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...