Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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!
You can add this check inside here so the outfit window request is denied for access players. You could also use a playerflag check if you don't wanna hinder all of the access group players and only certain groups.
You can add this check inside here so the outfit window request is denied for access players. You could also use a playerflag check if you don't wanna hinder all of the access group players and only certain groups.
function Creature:onChangeOutfit(outfit)
local player = Player(self)
if player:getGroup():getAccess() and player:getAccountType() >= ACCOUNT_TYPE_GAMEMASTER then
return false
end
if hasEventCallback(EVENT_CALLBACK_ONCHANGEMOUNT) then
if not EventCallback(EVENT_CALLBACK_ONCHANGEMOUNT, self, outfit.lookMount) then
return false
end
end
if hasEventCallback(EVENT_CALLBACK_ONCHANGEOUTFIT) then
return EventCallback(EVENT_CALLBACK_ONCHANGEOUTFIT, self, outfit)
else
return true
end
end
number 4
Post automatically merged:
no error appears in tfs, and it didn't work either
I can't remember, but I believe that accountid 4 is a gm account and groupid 4 too, so it should work, but as I'm not at home and I don't know if that's really the case, I can't confirm
void Game::playerRequestOutfit(uint32_t playerId)
{
if (!g_config.getBoolean(ConfigManager::ALLOW_CHANGEOUTFIT)) {
return;
}
Player* player = getPlayerByID(playerId);
if (!player) {
return;
}
// Verifica se o jogador é um Game Master
if (player->getAccountType() == ACCOUNT_TYPE_GAMEMASTER) {
// Se for um Game Master, não permite trocar de outfit
return;
}
// Jogadores normais podem trocar de outfit
player->sendOutfitWindow();
}