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