View Full Version : [SOLVED] Show DP/VP in gossip menu!

09-23-2014, 08:30 AM
hey guys i have created an vote/donor npc but i can't handle 1 thing , i managed to show VP/DP when players click on the menu item but i want them to show and also refresh whenever a player talk to that npc , my structure is the following:

You have: zzz Gold Coins
You have: zzz Silver Coins
1 Gold Coin -> 1 Merchant token
100 Silver Coins ->1 Merchant token
30 Gold Coin -> V.I.P Status
Learn more about this system

RED = After runing the querry i tried something like this

player->add_gossip_item(4,'You have: %u Silver Coins',querryresul,gossip_sender_main,0);
obviously it didn't worked the result was "You have: %u Gold Coins" is there an other way to do that with or witouth Gossip_item i was thinking of adding that in an npc text but as i think that can only be done within the DB not sure ..

09-23-2014, 02:58 PM
nvm you can close this i managed to do it on my own :D