@@ -180,11 +180,11 @@ class character_commandscript : public CommandScript
180180
181181 if (!handler->GetSession ())
182182 handler->PSendSysMessage (LANG_CHARACTER_DELETED_LIST_LINE_CONSOLE,
183- itr->guid .GetCounter (), itr->name .c_str (), itr->accountName .empty () ? " <Not existing>" : itr->accountName .c_str (),
183+ itr->guid .ToString (). c_str (), itr->name .c_str (), itr->accountName .empty () ? " <Not existing>" : itr->accountName .c_str (),
184184 itr->accountId , dateStr.c_str ());
185185 else
186186 handler->PSendSysMessage (LANG_CHARACTER_DELETED_LIST_LINE_CHAT,
187- itr->guid .GetCounter (), itr->name .c_str (), itr->accountName .empty () ? " <Not existing>" : itr->accountName .c_str (),
187+ itr->guid .ToString (). c_str (), itr->name .c_str (), itr->accountName .empty () ? " <Not existing>" : itr->accountName .c_str (),
188188 itr->accountId , dateStr.c_str ());
189189 }
190190
@@ -206,21 +206,21 @@ class character_commandscript : public CommandScript
206206 {
207207 if (delInfo.accountName .empty ()) // account does not exist
208208 {
209- handler->PSendSysMessage (LANG_CHARACTER_DELETED_SKIP_ACCOUNT, delInfo.name .c_str (), delInfo.guid .GetCounter (), delInfo.accountId );
209+ handler->PSendSysMessage (LANG_CHARACTER_DELETED_SKIP_ACCOUNT, delInfo.name .c_str (), delInfo.guid .ToString (). c_str (), delInfo.accountId );
210210 return ;
211211 }
212212
213213 // check character count
214214 uint32 charcount = AccountMgr::GetCharactersCount (delInfo.accountId );
215215 if (charcount >= 10 )
216216 {
217- handler->PSendSysMessage (LANG_CHARACTER_DELETED_SKIP_FULL, delInfo.name .c_str (), delInfo.guid .GetCounter (), delInfo.accountId );
217+ handler->PSendSysMessage (LANG_CHARACTER_DELETED_SKIP_FULL, delInfo.name .c_str (), delInfo.guid .ToString (). c_str (), delInfo.accountId );
218218 return ;
219219 }
220220
221221 if (!sCharacterCache ->GetCharacterGuidByName (delInfo.name ).IsEmpty ())
222222 {
223- handler->PSendSysMessage (LANG_CHARACTER_DELETED_SKIP_NAME, delInfo.name .c_str (), delInfo.guid .GetCounter (), delInfo.accountId );
223+ handler->PSendSysMessage (LANG_CHARACTER_DELETED_SKIP_NAME, delInfo.name .c_str (), delInfo.guid .ToString (). c_str (), delInfo.accountId );
224224 return ;
225225 }
226226
@@ -378,7 +378,7 @@ class character_commandscript : public CommandScript
378378 if (handler->HasLowerSecurity (nullptr , player->GetGUID ()))
379379 return false ;
380380
381- handler->PSendSysMessage (LANG_RENAME_PLAYER_GUID, handler->playerLink (*player).c_str (), player->GetGUID ().GetCounter ());
381+ handler->PSendSysMessage (LANG_RENAME_PLAYER_GUID, handler->playerLink (*player).c_str (), player->GetGUID ().ToString (). c_str ());
382382
383383 CharacterDatabasePreparedStatement* stmt = CharacterDatabase.GetPreparedStatement (CHAR_UPD_ADD_AT_LOGIN_FLAG);
384384 stmt->setUInt16 (0 , uint16 (AT_LOGIN_RENAME));
@@ -405,7 +405,7 @@ class character_commandscript : public CommandScript
405405 }
406406 else
407407 {
408- handler->PSendSysMessage (LANG_CUSTOMIZE_PLAYER_GUID, handler->playerLink (*player).c_str (), player->GetGUID ().GetCounter ());
408+ handler->PSendSysMessage (LANG_CUSTOMIZE_PLAYER_GUID, handler->playerLink (*player).c_str (), player->GetGUID ().ToString (). c_str ());
409409 CharacterDatabasePreparedStatement* stmt = CharacterDatabase.GetPreparedStatement (CHAR_UPD_ADD_AT_LOGIN_FLAG);
410410 stmt->setUInt16 (0 , static_cast <uint16>(AT_LOGIN_CUSTOMIZE));
411411 stmt->setUInt32 (1 , player->GetGUID ().GetCounter ());
@@ -447,7 +447,7 @@ class character_commandscript : public CommandScript
447447 }
448448 else
449449 {
450- handler->PSendSysMessage (LANG_CUSTOMIZE_PLAYER_GUID, handler->playerLink (*player).c_str (), player->GetGUID ().GetCounter ());
450+ handler->PSendSysMessage (LANG_CUSTOMIZE_PLAYER_GUID, handler->playerLink (*player).c_str (), player->GetGUID ().ToString (). c_str ());
451451 CharacterDatabasePreparedStatement* stmt = CharacterDatabase.GetPreparedStatement (CHAR_UPD_ADD_AT_LOGIN_FLAG);
452452 stmt->setUInt16 (0 , uint16 (AT_LOGIN_CHANGE_FACTION));
453453 stmt->setUInt32 (1 , player->GetGUID ().GetCounter ());
@@ -471,7 +471,7 @@ class character_commandscript : public CommandScript
471471 }
472472 else
473473 {
474- handler->PSendSysMessage (LANG_CUSTOMIZE_PLAYER_GUID, handler->playerLink (*player).c_str (), player->GetGUID ().GetCounter ());
474+ handler->PSendSysMessage (LANG_CUSTOMIZE_PLAYER_GUID, handler->playerLink (*player).c_str (), player->GetGUID ().ToString (). c_str ());
475475 CharacterDatabasePreparedStatement* stmt = CharacterDatabase.GetPreparedStatement (CHAR_UPD_ADD_AT_LOGIN_FLAG);
476476 stmt->setUInt16 (0 , uint16 (AT_LOGIN_CHANGE_RACE));
477477 stmt->setUInt32 (1 , player->GetGUID ().GetCounter ());
@@ -749,7 +749,7 @@ class character_commandscript : public CommandScript
749749 AccountMgr::GetName (accountId, accountName);
750750
751751 Player::DeleteFromDB (player, accountId, true , true );
752- handler->PSendSysMessage (LANG_CHARACTER_DELETED, player.GetName ().c_str (), player.GetGUID ().GetCounter (), accountName.c_str (), accountId);
752+ handler->PSendSysMessage (LANG_CHARACTER_DELETED, player.GetName ().c_str (), player.GetGUID ().ToString (). c_str (), accountName.c_str (), accountId);
753753
754754 return true ;
755755 }
0 commit comments