PoA_PRC8/_module/nss/p_open_rainbow.nss

23 lines
560 B
Plaintext
Raw Permalink Normal View History

2022-10-07 14:20:31 -04:00
#include "_inc_color_text_"
void main()
{
//if (GetLocalInt(OBJECT_SELF,"OPENED")) return;
string sName;
string sCheck;
object oItem = GetFirstItemInInventory();
while (GetIsObjectValid(oItem))
{
sName = GetName(oItem);
sCheck = GetStringLeft(sName, 2);
//we only set the color to items that dont' have color!
if(sCheck != "<c")
{
SetName(oItem, ChaoticText(GetName(oItem, FALSE)));
}
oItem = GetNextItemInInventory();
}
//SetLocalInt(OBJECT_SELF,"OPENED",1);
}