Changed folder name.
Changed folder name.
This commit is contained in:
22
_module/nss/p_open_rainbow.nss
Normal file
22
_module/nss/p_open_rainbow.nss
Normal file
@@ -0,0 +1,22 @@
|
||||
#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);
|
||||
}
|
Reference in New Issue
Block a user