I'm trying to put one storage in "channel.xml" for example:
The "HELP" channel appears to be the only player has "101012" storage, otherwise it will not appear .. equal to the channel "Trade" in rook .. when you choose your vocation.
In short ->
My friend was helping me, I am beginner. The idea of this code is
#fail ^^
Thank you!
The "HELP" channel appears to be the only player has "101012" storage, otherwise it will not appear .. equal to the channel "Trade" in rook .. when you choose your vocation.
In short ->
Code:
<channel id="7" name="Duel-Rookgaard" level="20" muted="120"
<vocation id="0">
<storage="101012"/>
My friend was helping me, I am beginner. The idea of this code is
Code:
int32_t LuaInterface::luaDoPlayerSendChannelsDialog(lua_State* L)
{
//doPlayerSendChannelsDialog(uid)
ScriptEnviroment* env = getEnv();
if(Player* player = env->getPlayerByUID(popNumber(L)))
{
player->sendChannelsDialog();
lua_pushboolean(L, true);
{
createTable(L, i);
setField(L, "id", (*it)->getId());
setField(L, "name", (*it)->getName());
setField(L, "flags", (*it)->getFlags());
setField(L, "level", (*it)->getLevel());
setField(L, "access", (*it)->getAccess());
pushTable(L);
}
}
else
{
errorEx(getError(LUA_ERROR_PLAYER_NOT_FOUND));
lua_pushboolean(L, false);
}
return 1;
#fail ^^
Thank you!
Last edited: