Is it possible to include Variable Args in a ADD_GOSSIP_ITEM ?
Example :
Into something relevant to:
^ "itementry" being the variable to '%u'
I was curious if I could do the same with the first one '%u' being the variable to maybe:
I know it doesn't work but something like that, i basically want a "variable" (number from the database) in this case vote points to display on the OnGossipHello initially so you can simply view how many vp you got.
Any help is appreciated
Example :
Code:
player->ADD_GOSSIP_ITEM(4, "Current VP:%u", GOSSIP_SENDER_MAIN, 0);
Into something relevant to:
Code:
WorldDatabase.PQuery("SELECT `name` FROM `item_template` where `entry`=[COLOR="#00FF00"]%u[/COLOR]", [COLOR="#FF0000"]itementry[/COLOR]);
^ "itementry" being the variable to '%u'
I was curious if I could do the same with the first one '%u' being the variable to maybe:
Code:
player->ADD_GOSSIP_ITEM(4, "Current VP:[COLOR="#00FF00"]%u[/COLOR]", GOSSIP_SENDER_MAIN, 0, [COLOR="#FF0000"]currentvp.c_str()[/COLOR]);
I know it doesn't work but something like that, i basically want a "variable" (number from the database) in this case vote points to display on the OnGossipHello initially so you can simply view how many vp you got.
Any help is appreciated