faiver
Esteemed Member
line
if (Player* plr = Player::GetPlayer(*player, itr->guid))
{
if (USE_TOKEN)
{
sprintf(msg, "Accept %s's Challenge of %u tokens", plr->GetName().c_str(), itr->amount);
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_INTERACT_1, msg, GOSSIP_SENDER_MAIN, itr->guid);
sprintf(msg, "Decline %s's Challenge of %u tokens", plr->GetName().c_str(), itr->amount);
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_INTERACT_1, msg, GOSSIP_SENDER_INFO, itr->guid);
}
else
{
sprintf(msg, "Accept %s's Challenge of %ug", plr->GetName().c_str(), itr->amount/10000);
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_INTERACT_1, msg, GOSSIP_SENDER_MAIN, itr->guid);
sprintf(msg, "Decline %s's Challenge of %ug", plr->GetName().c_str(), itr->amount/10000);
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_INTERACT_1, msg, GOSSIP_SENDER_INFO, itr->guid);
}
:/
thanks for any help
if (Player* plr = Player::GetPlayer(*player, itr->guid))
{
if (USE_TOKEN)
{
sprintf(msg, "Accept %s's Challenge of %u tokens", plr->GetName().c_str(), itr->amount);
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_INTERACT_1, msg, GOSSIP_SENDER_MAIN, itr->guid);
sprintf(msg, "Decline %s's Challenge of %u tokens", plr->GetName().c_str(), itr->amount);
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_INTERACT_1, msg, GOSSIP_SENDER_INFO, itr->guid);
}
else
{
sprintf(msg, "Accept %s's Challenge of %ug", plr->GetName().c_str(), itr->amount/10000);
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_INTERACT_1, msg, GOSSIP_SENDER_MAIN, itr->guid);
sprintf(msg, "Decline %s's Challenge of %ug", plr->GetName().c_str(), itr->amount/10000);
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_INTERACT_1, msg, GOSSIP_SENDER_INFO, itr->guid);
}
:/
thanks for any help