OkMuOnline


NowaHosting


AlphaServers


Resultados 1 a 4 de 4
  1. #1
    Developer C++ Rooh's Avatar


    Data de Ingresso
    Aug 2022
    Posts
    57
    Thanks Thanks Given 
    30
    Thanks Thanks Received 
    277
    Thanked in
    29 Posts
    Mentioned
    6 Post(s)
    Humor
    Yeehaw
    País
    Canada

    DcFriend MuLegend 16.1

    Código:
    		{	"dcfriend",		&ChatHandler::CommandDcFriend,	AUTHORITY_CODE_NORMAL,			ADMIN_FLAG_NONE,		"/dcfriend <nick> <password>",				nullptr},
    Código:
    void ChatHandler::CommandDcFriend(const char* msg) {
    
    
    
    
    	std::string loginAndPassword = msg;
    	std::string delimiter = " ";
    
    
    
    
    	size_t pos = loginAndPassword.find(delimiter);
    	std::string login = loginAndPassword.substr(0, pos);
    	std::string password = loginAndPassword.substr(pos + delimiter.length(), std::string::npos);
    
    
    	Player* pPlayer = sObjectMgr->FindPlayerByName(login.c_str());
    
    
    
    
    	if(pPlayer)
    	{
    		if(pPlayer->GetPasswordSafe() == password)
    		if (pPlayer->GetConnectStatus() == CONNECT_STATUS_LOGGED ||
    			pPlayer->GetConnectStatus() == CONNECT_STATUS_PLAYING)
    		{
    			pPlayer->SaveCharacter(1);
    			pPlayer->InitCloseSocketTime(CLOSE_SOCKET_TIME_SERVER_QUIT);
    			pPlayer->SetServerQuit(true);
    		}
    	}
    
    
    }

  2. The Following User Says Thank You to Rooh For This Useful Post:


  3. #2
    Iniciante beibei's Avatar

    Data de Ingresso
    Oct 2022
    Posts
    4
    Thanks Thanks Given 
    37
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts
    Mentioned
    0 Post(s)
    País
    Hong Kong
    gun ,wings Can you fix it

  4. #3
    Developer C++ Rooh's Avatar


    Data de Ingresso
    Aug 2022
    Posts
    57
    Thanks Thanks Given 
    30
    Thanks Thanks Received 
    277
    Thanked in
    29 Posts
    Mentioned
    6 Post(s)
    Humor
    Yeehaw
    País
    Canada
    Citação Originally Posted by beibei Ver Post
    gun ,wings Can you fix it
    Tell me more about the bug

  5. #4
    Iniciante beibei's Avatar

    Data de Ingresso
    Oct 2022
    Posts
    4
    Thanks Thanks Given 
    37
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts
    Mentioned
    0 Post(s)
    País
    Hong Kong
    The display of the wings character interface is different from the display of entering the game, and the game brings wings, and the other character has nothing to see

Permissões de Postagem

  • Você não pode iniciar novos tópicos
  • You may not post Resposta(s)
  • Você não pode enviar anexos
  • Você não pode editar suas mensagens
  •