Oskar
Forum friend
- Joined
- Jan 24, 2009
- Messages
- 2,256
- Reaction score
- 331
Szybko i na temat. Jak zmieni? maksymaln? ilo?? wy?wietlanych znak?w t? funkcj??
PHP:
int32_t LuaScriptInterface::luaDoSendAnimatedText(lua_State* L)
{
//doSendAnimatedText(pos, text, color[, player])
ScriptEnviroment* env = getEnv();
SpectatorVec list;
if(lua_gettop(L) > 3)
{
if(Creature* creature = env->getCreatureByUID(popNumber(L)))
list.push_back(creature);
}
uint32_t color = popNumber(L);
std::string text = popString(L);
PositionEx pos;
popPosition(L, pos);
if(pos.x == 0xFFFF)
pos = env->getRealPos();
if(!list.empty())
g_game.addAnimatedText(list, pos, color, text);
else
g_game.addAnimatedText(pos, color, text);
lua_pushboolean(L, true);
return 1;
}