IsabelaFernandez Posted April 2, 2022 Group: Members Topic Count: 146 Topics Per Day: 0.06 Content Count: 355 Reputation: 8 Joined: 04/16/18 Last Seen: October 21, 2024 Share Posted April 2, 2022 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; } Quote Link to comment Share on other sites More sharing options...
0 Sallycantdance Posted April 2, 2022 Group: Members Topic Count: 225 Topics Per Day: 0.14 Content Count: 798 Reputation: 12 Joined: 12/04/20 Last Seen: 13 hours ago Share Posted April 2, 2022 (edited) 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 April 2, 2022 by GM Winter 1 Quote Link to comment Share on other sites More sharing options...
Question
IsabelaFernandez
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
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.