well okay i tried to see how it is made and tried to make a lua function but it seems not to be working , the normal stats message appear, but the one that looks like whenn you get exp (animation of exp received) don't appeaar
[cpp]
nt32_t LuaInterface::luaSendAnimation(lua_State* L)
{
//sendAnimation(cid, exp ,color)
int color = popNumber(L);
int32_t exp = popNumber(L);
ScriptEnviroment* env = getEnv();
Player* player = env->getPlayerByUID(popNumber(L));
if(!player)
{
errorEx(getError(LUA_ERROR_PLAYER_NOT_FOUND));
lua_pushboolean(L, false);
return 1;
}
MessageDetails lo(exp, (Color_t)color);
MessageDetails* details = &lo;
std::stringstream s;
s<< "Your guild have earned " << exp << " points.";
player->sendStatsMessage(MSG_STATUS_CONSOLE_BLUE, s.str(), player->getPosition(), details);
lua_pushboolean(L, true);
return 1;
}[/cpp]