kevin1109 Posted April 25, 2017 Posted April 25, 2017 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! Quote
0 Capuche Posted April 27, 2017 Posted April 27, 2017 hmm I don't get the npc->checknear warning on test server. Quote
Question
kevin1109
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:
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.