UW2_PRC8/_module/nss/p_open_rainbow.nss
Jaysyn904 5197ad9a4d Initial upload
Initial upload
2023-09-25 20:24:01 -04:00

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