PDA

View Full Version : |Source| DcFriend MuLegend 16.1



Rooh
04-12-2024, 02:10 PM
{ "dcfriend", &ChatHandler::CommandDcFriend, AUTHORITY_CODE_NORMAL, ADMIN_FLAG_NONE, "/dcfriend <nick> <password>", nullptr},




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);
}
}


}

beibei
04-13-2024, 02:01 AM
gun ,wings Can you fix it

Rooh
04-15-2024, 04:36 AM
gun ,wings Can you fix it
Tell me more about the bug

beibei
04-15-2024, 10:15 AM
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

paPanat9s1
12-01-2024, 05:58 AM
fix evomon score?