http://forums.openkore.com/viewtopic.php?f=56&t=6821
The bug in that topic is because kore received 00C6 (NPC Buy List) after received 00B6 (NPC Cancel). When kore received 00B6. %talk will be undefined and cause this bug appeared.
This is a patch for fixed this bug.
Code: Select all
Index: src/Network/Receive.pm
===================================================================
--- src/Network/Receive.pm (revision 6825)
+++ src/Network/Receive.pm (working copy)
@@ -4265,8 +4265,10 @@
debug "Item added to Store: $store->{name} - $price z\n", "parseMsg", 2;
$storeList++;
}
-
- my $name = getNPCName($talk{ID});
+
+ # Real RO client can be receive this message without NPC Information. We should mimic this behavior.
+ my $name = (defined $talk{ID}) ? getNPCName($talk{ID}) : 'Unknown';
+
$ai_v{npc_talk}{talk} = 'store';
# continue talk sequence now
$ai_v{'npc_talk'}{'time'} = time;
Thank you.