viewing paste Unknown #23804 | Athena

Posted on the
1 2 3 4 5 6 7 8
//== Function F_MesColor ===================================
// Function to colorize npc dialog without having to memorize the color code
// Examples:
//    mes callfunc("F_MesColor", C_BLUE) +"This message is now in BLUE";
function        script  F_MesColor      {
        return sprintf("^%06X", min(getarg(0), 0xFFFFFF));
}
 
Viewed 343 times, submitted by unknown.