kkk111
Member
Pls fix the function.
Ex:
9.00 = custum client
HTML:
int32_t LuaInterface::luaGetClientVersion(lua_State* L)
{
//getClientVersion(cid)
ScriptEnviroment* env = getEnv();
if(Creature* creature = env->getClientVersion(popNumber(L)))
lua_pushnumber(L, creature->clientVersion());
else
{
errorEx(getError(LUA_ERROR_CREATURE_NOT_FOUND));
lua_pushboolean(L, false);
}
return 1;
}
HTML:
static int32_t luaGetClientVersion(lua_State* L);
Ex:
HTML:
function onStepIn(cid, item, frompos, item2, topos)
if(getClientVersion(cid) == 900) then
doTeleportThing(cid,{x=1403, y=3054, z=13})
else
doCreatureSay(cid, "You are not using custum client ...", TALKTYPE_ORANGE_1)
end
return true
end
9.00 = custum client