Jump to content

Question

Posted

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;
}

 

1 answer to this question

Recommended Posts

  • 0
Posted (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 by GM Winter
  • Like 1

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...