IsabelaFernandez Posted April 2 Share Posted April 2 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: [email protected] = getarraysize(.buffs$); for( [email protected] = 0; [email protected] < [email protected]; [email protected]++){ [email protected]$ = [email protected]$ + ""+.buffs$[[email protected]]+"" + ":"; } [email protected] = select([email protected]$) -1; sc_start .elements[[email protected]],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 GM Winter Posted April 2 Share Posted April 2 (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: [email protected] = getarraysize(.buffs$); for( [email protected] = 0; [email protected] < [email protected]; [email protected]++){ [email protected]$ = [email protected]$ + ""+.buffs$[[email protected]]+"" + ":"; } [email protected] = select([email protected]$) -1; sc_start .elements[[email protected]],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 by GM Winter 1 Quote Link to comment Share on other sites More sharing options...
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:
[email protected] = getarraysize(.buffs$);
for( [email protected] = 0; [email protected] < [email protected]; [email protected]++){
[email protected]$ = [email protected]$ + ""+.buffs$[[email protected]]+"" + ":";
}
[email protected] = select([email protected]$) -1;
sc_start .elements[[email protected]],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