Jump to content
  • 0

@whosell


Get Backers

Question


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.02
  • Content Count:  70
  • Reputation:   0
  • Joined:  11/23/20
  • Last Seen:  

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);

 

 

Like this.jpg

whosell.png

Edited by Get Backers
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.02
  • Content Count:  70
  • Reputation:   0
  • Joined:  11/23/20
  • Last Seen:  

not npc i want to change vending name to Seller Name

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  208
  • Reputation:   22
  • Joined:  01/14/13
  • Last Seen:  

2 hours ago, Get Backers said:

,pl_sd->message);

Change this to 

,pl_sd->status.name);

 

Edited by Cookie-rae
minor
  • Love 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.02
  • Content Count:  70
  • Reputation:   0
  • Joined:  11/23/20
  • Last Seen:  

Thank you so much for the help! i got last question how to change color font like this thanks again

dark.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...