Your client need to have that support for different text color. Then you just follow the code to change color.
Also those are not npc color.
|
so im trying to find out how i would change the color of the text when a shop tells you the price of the item?
like
Your client need to have that support for different text color. Then you just follow the code to change color.
Also those are not npc color.
If you're using PI then it should be ShopAssistant, search for 'currently costs' then you can change the text/colour. If your client supports it then you can add a hex code like <col=0008f7> before the text that you want a different colour.
here is the code and it still does not work? am i not doing something right and the base is PI, its Os Brutaility
think that i got itpublic void buyFromShopPrice(int removeId, int removeSlot) {
int ShopValue = (int) Math.floor(getItemShopValue(removeId, 0, removeSlot));
ShopValue *= 1.00;
String ShopAdd = "";
if (c.myShopId == 7
|| c.myShopId == 26 || c.myShopId == 57
|| c.myShopId == 60 || c.myShopId == 61 || c.myShopId == 62 || c.myShopId == 63 || c.myShopId == 65) {
c.sendMessage(c.getItems().getItemName(removeId) + " <col=0008f7>currently costs" + getSpecialItemValue(removeId)
+ "<col=0008f7>Coins.");
return;
Try this code.public void buyFromShopPrice(int removeId, int removeSlot) {
int ShopValue = (int) Math.floor(getItemShopValue(removeId, 0, removeSlot));
ShopValue *= 1.00;
String ShopAdd = "";
if (c.myShopId == 7
|| c.myShopId == 26 || c.myShopId == 57
|| c.myShopId == 60 || c.myShopId == 61 || c.myShopId == 62 || c.myShopId == 63 || c.myShopId == 65) {
c.sendMessage(c.getItems().getItemName(removeId) + " <col=0008f7>currently costs" + getSpecialItemValue(removeId)
+ "</col>Coins.");
return;
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |