@ -207,7 +207,8 @@ public:
{"OnGUIAction", Callback<unsigned short, int, const char*>()},
{"OnWorldKillCount", Callback<unsigned short>()},
{"OnWorldMap", Callback<unsigned short>()},
{"OnWorldWeather", Callback<unsigned short>() },
{"OnWorldWeather", Callback<unsigned short>()},
{"OnScriptGlobalShort", Callback<unsigned short>()},
{"OnMpNumIncrement", Callback<int>()},
{"OnRequestDataFileList", Callback<>()}
};
@ -12,6 +12,13 @@ namespace mwmp
{
BPP_INIT(ID_SCRIPT_GLOBAL_SHORT)
}
void Do(ObjectPacket &packet, Player &player, BaseObjectList &objectList) override
LOG_MESSAGE_SIMPLE(TimedLog::LOG_INFO, "Received %s from %s", strPacketID.c_str(), player.npc.mName.c_str());
Script::Call<Script::CallbackIdentity("OnScriptGlobalShort")>(player.getId());