Issue information

Issue ID
#3720
Status
Working as Intended
Severity
None
Started
Hercules Elf Bot
Nov 12, 2009 2:25
Last Post
Hercules Elf Bot
Nov 12, 2009 2:25
Confirmation
N/A

Hercules Elf Bot - Nov 12, 2009 2:25

Originally posted by [b]Shadowless[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=3720

Script functions that require some sort of player interaction (i.e. next, menu selection and input) will cause the error: "failed npc_checknear test" when the function is called from within an item script. The bug appears to turn up in SVN 14xxx. Item scripts using these functions were previously operational on SVN 10377 Stable (yes, very old).

The bug is triggered, so far, in the following ways:

Examples:

CODE
....,{ mes "test test"; next; mes "test"; close;},{},{}


CODE
...,{ callfunc "F_Test"; },{},{}

function <tab> script <tab> F_Test <tab>,{
mes "test test";
next;
mes "test";
close;
}


NPC locks up once the character hits 'next', and the above error is reported to the server console. Similar issue if you prompt for input or if you use the menu/switch commands (in this instance, the menu appears but once you make a selection, error).

Obviously this is a crude example, but I've tried it many different ways and the result is the same.

In the process of testing 14130 Trunk. I will edit this post if the bug still exists.