Lstm
Respected Member
Concatenate variable with string
Hello dear friends!
I was wondering how I can add a concatenate variable with string
Hello dear friends!
I was wondering how I can add a concatenate variable with string
Code:
uint32 entry_mudarchar;
uint32 count_mudarchar;
[COLOR="#FF0000"]uint32 text1_mudarchar;[/COLOR]
[COLOR="#FF0000"]uint32 text1_mudarchar;[/COLOR]
entry_mudarchar = uint32(sConfigMgr->GetIntDefault("NPC.EntryChangeToken", 49426));
count_mudarchar = uint32(sConfigMgr->GetIntDefault("NPC.CountChangeToken", 1));
[COLOR="#FF0000"]text1_mudarchar[/COLOR] = uint32(sConfigMgr->GetIntDefault("NPC.CountChangeToken", 0));
[COLOR="#FF0000"]text1_mudarchar[/COLOR] = uint32(sConfigMgr->GetIntDefault("NPC.CountChangeToken", 0));
switch(uiAction)
{
case 0:
if (Player->HasItemCount(entry_mudarchar, count_mudarchar))
{
Player->DestroyItemCount(entry_mudarchar, count_mudarchar, true, true);
Player->DestroyItemCount(entry_mudarchar, count_mudarchar, true, false);
Player->SetAtLoginFlag(AT_LOGIN_CHANGE_RACE);
CharacterDatabase.PExecute("UPDATe characters Set at_login = at_login | '128' Where guid = %u", Player->GetGUID());
Player->GetSession()->SendNotification("[COLOR="#FF0000"]|cffFFFFFFVocê precisa relogar para mudar sua Raca![/COLOR]");
Player->PlayerTalkClass->SendCloseGossip();
}
else
{
Player->GetSession()->SendNotification("[COLOR="#FF0000"]|cffFF0000Você não tem emblemas o suficiente.[/COLOR]");
Player->PlayerTalkClass->SendCloseGossip();
Last edited: