26 lines
464 B
Plaintext
26 lines
464 B
Plaintext
#include "_inc_color_text_"
|
|
void main()
|
|
{
|
|
|
|
|
|
string sName;
|
|
string sColor;
|
|
object oItem;
|
|
oItem = GetFirstItemInInventory();
|
|
|
|
while (GetIsObjectValid(oItem))
|
|
{
|
|
sName = GetName(oItem);
|
|
sColor = GetStringLeft(sName, 2);
|
|
|
|
//We don't colorize items already colored!
|
|
if(sColor != "<c")
|
|
{
|
|
SetName(oItem, ChaoticText(GetName(oItem,TRUE)));
|
|
oItem = GetNextItemInInventory();
|
|
}
|
|
}
|
|
|
|
|
|
}
|