Jump to content
  • 0

failed npc checknear test


Question

Posted

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!

2 answers to this question

Recommended Posts

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