Thread: npc color i guess?

Results 1 to 5 of 5
  1. #1 npc color i guess? 
    Donator

    Mikey 3L's Avatar
    Join Date
    Aug 2017
    Posts
    192
    Thanks given
    43
    Thanks received
    27
    Rep Power
    136
    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?

    likeAttached image
    Reply With Quote  
     

  2. #2  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    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.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  3. #3  
    'Slutty McFur'

    Owain's Avatar
    Join Date
    Sep 2014
    Age
    26
    Posts
    2,894
    Thanks given
    2,360
    Thanks received
    2,200
    Rep Power
    5000
    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.


    Spoiler for wat:
    Attached image
    Attached image

    Attached image


    Reply With Quote  
     

  4. #4  
    Donator

    Mikey 3L's Avatar
    Join Date
    Aug 2017
    Posts
    192
    Thanks given
    43
    Thanks received
    27
    Rep Power
    136
    Quote Originally Posted by A Mage View Post
    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

    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=0008f7>Coins.");
    return;
    think that i got it
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Aug 2014
    Posts
    259
    Thanks given
    2
    Thanks received
    6
    Rep Power
    11
    Quote Originally Posted by Mikey21 View Post
    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 it

    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;
    Try this code.
    Owner of ThamenX
    Reply With Quote  
     

  6. Thankful user:



Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. 317 NPC Colors help
    By zeke in forum Help
    Replies: 4
    Last Post: 04-10-2015, 02:29 AM
  2. Npc colors messed up
    By edvinas123 in forum Help
    Replies: 0
    Last Post: 02-01-2015, 08:38 PM
  3. Replies: 8
    Last Post: 07-25-2011, 02:06 PM
  4. Derp npc color fix
    By Organic in forum Help
    Replies: 1
    Last Post: 06-15-2011, 04:37 AM
  5. Changing npc colors help!
    By Bulby Strife in forum Help
    Replies: 0
    Last Post: 07-06-2010, 09:20 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •