• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Windows doSendAnimatedText

Doggynub

LUA / C++
Joined
Sep 28, 2008
Messages
2,541
Reaction score
186
I see it is deprecated, what is a alternative now?

EDIT : go to the last post
 
Last edited:
PHP:
doCreatureSay(cid, "You should search more in source files!", TALKTYPE_MONSTER)
Maybe it =).

@down - what wrong?
 
Last edited:
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]
 
Back
Top