• 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!

getWorldLight() doesn't work

Capaverde

New Member
Joined
Sep 30, 2007
Messages
107
Reaction score
4
it seems to only return the world light color, 215

Code:
int32_t LuaScriptInterface::luaGetWorldLight(lua_State* L)
{
	//getWorldLight()
	LightInfo lightInfo;
	g_game.getWorldLightInfo(lightInfo);
	lua_pushnumber(L, lightInfo.level);
	lua_pushnumber(L, lightInfo.color);
	return 1;
}

it seems only the last pushed number is effectively pushed
try
a,b = getWorldLight() and a is 215 and b is nil
the same way, t = {getWorldLight()} gives #t = 1, t = {215}
 
Back
Top