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
eath Bound")){
case 1:
.@r = 1;
break;
case 2:
.@r = 2;
break;
case 3:
.@r = 3;
break;
default:
goto(retryRK);
}
close;
<More code...>
I'm just wondering if there's any fix to this http://herc.ws/board/tracker/issue-3720-failed-npc-checknear-test-on-item-equip-function/
or any work around it.
would greatly appreciate it!
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
case 1:
.@r = 1;
break;
case 2:
.@r = 2;
break;
case 3:
.@r = 3;
break;
default:
goto(retryRK);
}
close;
<More code...>
I'm just wondering if there's any fix to this http://herc.ws/board/tracker/issue-3720-failed-npc-checknear-test-on-item-equip-function/
or any work around it.
would greatly appreciate it!
Last edited by a moderator: