Ir para conteúdo

He Is A God / You Are A God


Posts Recomendados

Neste Codigo quando o player da loook no gm ou no tutor e os demais aparece assim:

You see God (Level 3). He is a God.

You see GM Gamemaster (Level 2). He is a Gamemaster.

You see SGM Senior Gamemaster (Level 2). He is a Senior Gamemaster.

Lista de Acess:

0 - Player

1 - Counsellor (displayed like a normal player)

2 - Gamemaster

3 - Senior Gamemaster

4- God

Aqui vai o code:

em player.cpp ache o seguinte code:

std::string Player::getDescription(int32_t lookDistance) const

  {

      std::stringstream s;

      std::string str;

   

      if(lookDistance == -1){

        s << "yourself.";

   

        if(vocation != VOCATION_NONE)

            s << " You are " << g_config.getVocationString((int)vocation) << ".";

        else

            s << " You have no vocation.";

      }

      else {

        s << name << " (Level " << level <<").";

   

        if(sex == PLAYERSEX_FEMALE)

            s << " She";

        else

            s << " He";

   

        if(vocation != VOCATION_NONE)

            s << " is "<< g_config.getVocationString((int)vocation) << ".";

        else

            s << " has no vocation.";

      }

Toque ele todo por este code:

Código:

std::string Player::getDescription(int32_t lookDistance) const

{

  std::stringstream s;

  std::string str;

  if(lookDistance == -1)

  {

      if(vocation != VOCATION_NONE || access > 1)

        s << "yourself. You are ";

      else

        s << "yourself. You have no vocation.";

  }

  else

  {

      s << name << " (Level " << level <<").";

      if(sex == PLAYERSEX_FEMALE)

        s << " She ";

      else

        s << " He ";

      if(vocation != VOCATION_NONE || access > 1)

        s << "is ";

      else

        s << "has no vocation.";

  }

  switch(access)

  {

      case 0:

      case 1:

        if(vocation != VOCATION_NONE)

            s << g_config.getVocationString((int)vocation) << ".";

        break;

      case 2:

        s << "a gamemaster.";

        break;

      case 3:

        s << "a senior gamemaster.";

        break;

      default:

        s << "a god.";

        break;

  }

Créditos ao NeezmoK

Code By NeezmoK

Comentem!!

Link para o comentário
Compartilhar em outros sites

Eu n fasso isso

e seus Access estão errados

EU crio novas vocações e dou o nome de GOD, GameMaster e Senior GameMaster

é mais fácil

0 = player

1 = Tutor

2 = Senior Tutor (Consellour)

3 = GM

4 = SGM

5 = GOD

Link para o comentário
Compartilhar em outros sites

  • 1 month later...
  • 4 weeks later...
  • 5 months later...
×
×
  • Criar Novo...