Jump to content
  • 0
IsabelaFernandez

colors in npc dialogs

Question

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

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0
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 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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.