Ir para conteúdo
Entre para seguir isso  
lehdarkangel

[7.6] Falando Colorido Efeitos Especiais

Recommended Posts

lehdarkangel    0
lehdarkangel

No final de GAME.CPP «~~

adicione:

void Game::sendAnimatedTextExt(const Position pos,int aniColor,const std::string &text)
{
    SpectatorVec list;
    SpectatorVec::iterator it;
    getSpectators(Range(pos), list);
    for(it = list.begin(); it != list.end(); ++it){
       Player* spec = dynamic_cast<Player*>(*it);
       if(spec)
         spec->sendAnimatedText(pos, aniColor, text);
    }
}

 

Procure por:

// First, check if this was a GM command

 

Depois adicione:

if(text.substr(0,1) == g_config.getGlobalString("colorido", ".")){
Player *player = dynamic_cast<Player*>(creature);
sendAnimatedTextExt(player->pos, random_range(1, 983), text.substr(1).c_str()); 
GMcommand = true;
}

 

Em GAME.H «~~

Publique após:

class Game {
public:
Game();
 ~Game();

 

adicione:

void sendAnimatedTextExt(Position, int, const std::string&);

 

Compile e adicione no config.lua

----- Texto com Efeitos Coloridos by LeeeH -----
colorido = "."
--------------------------------------

Compartilhar este post


Link para o post
Visitante
Este tópico está impedido de receber novos posts.
Entre para seguir isso  
  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×