Get Backers Posted December 11, 2020 Group: Members Topic Count: 26 Topics Per Day: 0.02 Content Count: 70 Reputation: 0 Joined: 11/23/20 Last Seen: January 24, 2021 Share Posted December 11, 2020 (edited) GoodEvening Anyone know how change display the Character name instead of the Vending Name Thanks for (j = 0; j < pl_sd->vend_num; j++) { if ((item_data = itemdb_exists(pl_sd->cart.u.items_cart[pl_sd->vending[j].index].nameid)) == NULL) continue; if(s_type 1 && pl_sd->cart.u.items_cart[pl_sd->vending[j].index].nameid != item_id) continue; if(s_type 2 && ((item_data->type != IT_ARMOR && item_data->type != IT_WEAPON) || (pl_sd->cart.u.items_cart[pl_sd->vending[j].index].card[0] != card_id && pl_sd->cart.u.items_cart[pl_sd->vending[j].index].card[1] != card_id && pl_sd->cart.u.items_cart[pl_sd->vending[j].index].card[2] != card_id && pl_sd->cart.u.items_cart[pl_sd->vending[j].index].card[3] != card_id))) continue; if(s_type & 4 && ((item_data->type != IT_ARMOR && item_data->type != IT_WEAPON) || pl_sd->cart.u.items_cart[pl_sd->vending[j].index].refine != refine)) continue; if(item_data->type == IT_ARMOR) snprintf(atcmd_output, CHAT_SIZE_MAX, "+%d %s[%d] | Price %ud | Amount %d | %s[%d,%d] | %s",pl_sd->cart.u.items_cart[pl_sd->vending[j].index].refine ,item_data->jname ,pl_sd->cart.u.items_cart[pl_sd->vending[j].index].card[0] ,pl_sd->vending[j].value ,pl_sd->vending[j].amount ,mapindex_id2name(pl_sd->mapindex) ,pl_sd->bl.x,pl_sd->bl.y ,pl_sd->message); else if(item_data->type == IT_WEAPON) snprintf(atcmd_output, CHAT_SIZE_MAX, "+%d %s[%d,%d,%d,%d] | Price %ud | Amount %d | %s[%d,%d] | %s",pl_sd->cart.u.items_cart[pl_sd->vending[j].index].refine ,item_data->jname ,pl_sd->cart.u.items_cart[pl_sd->vending[j].index].card[0] ,pl_sd->cart.u.items_cart[pl_sd->vending[j].index].card[1] ,pl_sd->cart.u.items_cart[pl_sd->vending[j].index].card[2] ,pl_sd->cart.u.items_cart[pl_sd->vending[j].index].card[3] ,pl_sd->vending[j].value ,pl_sd->vending[j].amount ,mapindex_id2name(pl_sd->mapindex) ,pl_sd->bl.x,pl_sd->bl.y ,pl_sd->message); else snprintf(atcmd_output, CHAT_SIZE_MAX, "%s | Price %ud | Amount %d | %s[%d,%d] | %s",item_data->jname ,pl_sd->vending[j].value ,pl_sd->vending[j].amount ,mapindex_id2name(pl_sd->mapindex) ,pl_sd->bl.x, pl_sd->bl.y ,pl_sd->message); if(pl_sd->vending[j].value < MinPrice) MinPrice = pl_sd->vending[j].value; if(pl_sd->vending[j].value > MaxPrice) MaxPrice = pl_sd->vending[j].value; clif_displaymessage(fd, atcmd_output); Edited December 12, 2020 by Get Backers Quote Link to comment Share on other sites More sharing options...
0 Get Backers Posted December 11, 2020 Group: Members Topic Count: 26 Topics Per Day: 0.02 Content Count: 70 Reputation: 0 Joined: 11/23/20 Last Seen: January 24, 2021 Author Share Posted December 11, 2020 not npc i want to change vending name to Seller Name Quote Link to comment Share on other sites More sharing options...
0 hikashin-rae Posted December 11, 2020 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 208 Reputation: 22 Joined: 01/14/13 Last Seen: March 30 Share Posted December 11, 2020 (edited) 2 hours ago, Get Backers said: ,pl_sd->message); Change this to ,pl_sd->status.name); Edited December 11, 2020 by Cookie-rae minor 1 Quote Link to comment Share on other sites More sharing options...
0 Get Backers Posted December 12, 2020 Group: Members Topic Count: 26 Topics Per Day: 0.02 Content Count: 70 Reputation: 0 Joined: 11/23/20 Last Seen: January 24, 2021 Author Share Posted December 12, 2020 Thank you so much for the help! i got last question how to change color font like this thanks again Quote Link to comment Share on other sites More sharing options...
Question
Get Backers
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.