Jump to content
  • 0

colors in npc dialogs


IsabelaFernandez

Question


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.07
  • Content Count:  354
  • Reputation:   8
  • Joined:  04/16/18
  • Last Seen:  

hello, I would like to know how I add colors in this script in the menu option for example. in the "fire" option I would like to add the color #FF0000 (which is red)
in the water #0000FF (which is blue) and in the respective

Spoiler

end;

OnBuffs:
    .@size = getarraysize(.buffs$);
    for( .@i = 0; .@i < .@size; .@i++){
        .@menu$ = .@menu$ + ""+.buffs$[.@i]+"" + ":";
        }
        .@i = select(.@menu$) -1;
        sc_start .elements[.@i],180000,5;
        atcommand "@refresh "+strcharinfo(0);
        end;

OnInit:
    setarray .buffs$, "Fire", "Water", "Earth", "Wind", "Holy", "Shadow", "Poison";
    setarray .elements, 96, 97, "99", "98", "37", "144", "26";
    bindatcmd "buffs2","buffs::OnBuffs",5,99;
    end;
}

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.14
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

30 minutes ago, IsabelaFernandez said:

hello, I would like to know how I add colors in this script in the menu option for example. in the "fire" option I would like to add the color #FF0000 (which is red)
in the water #0000FF (which is blue) and in the respective

  Hide contents

end;

OnBuffs:
    .@size = getarraysize(.buffs$);
    for( .@i = 0; .@i < .@size; .@i++){
        .@menu$ = .@menu$ + ""+.buffs$[.@i]+"" + ":";
        }
        .@i = select(.@menu$) -1;
        sc_start .elements[.@i],180000,5;
        atcommand "@refresh "+strcharinfo(0);
        end;

OnInit:
    setarray .buffs$, "Fire", "Water", "Earth", "Wind", "Holy", "Shadow", "Poison";
    setarray .elements, 96, 97, "99", "98", "37", "144", "26";
    bindatcmd "buffs2","buffs::OnBuffs",5,99;
    end;
}


 


 setarray .buffs$, "^FF0000Fire^000000", "Water", "Earth", "Wind", "Holy", "Shadow", "Poison";

Edited by GM Winter
  • Like 1
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...