23 lines
560 B
Plaintext
23 lines
560 B
Plaintext
|
#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);
|
||
|
}
|