Jump to content

Bloquear Gm De Abrir Bau


Guest Gamers
 Share

Recommended Posts

  • 2 weeks later...

Ir até ao ficheiro game/char_item.cpp

 

Procurar por:

 

switch (item->GetType())

 

Adicionar isto acima:

 

switch (item->GetVnum())

{

case idbau:

case idbau2:

std::string nNomeB = GetName();

if (GetGMLevel() > GM_PLAYER && nNomeB != "tierrilopes")

{

ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Proibido abrir este bau como GM."));

return false;

}

return 1;

break;

default:

break;

}

 

Isto bloqueia todos os GM excepto aquele cujo nome seja tierrilopes.

Substituir idbau e idbau2 pelo vnum dos baus. Para adicionar mais adicionar novos cases.

 

Podes bloquear/permitir apenas os IMPLEMENTOR, LOW_WIZARD, HIGH_WIZARD.

Para tal comenta qual o cargo que pode abrir e quais não pode.

Link to comment
Share on other sites

  • 2 weeks later...
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...