ok
the more accurate fix to this is below.
This is a result of whoever wrote embparser not understanding the old .qst parser well enough as they wrote the perl stuff.
	Code:
	Index: embparser.cpp
===================================================================
--- embparser.cpp       (revision 404)
+++ embparser.cpp       (working copy)
@@ -364,9 +364,7 @@
                        break;
                }
                case EVENT_WAYPOINT: {
-                       std::string temp = "wp";
-                               temp += itoa(npcid);
-                       ExportVar(packagename.c_str(), temp.c_str(), data);
+                       ExportVar(packagename.c_str(), "wp", data);
                        break;
                }
                case EVENT_HP: {