Changed folder name.
Changed folder name.
This commit is contained in:
27
_module/nss/scribesetname.nss
Normal file
27
_module/nss/scribesetname.nss
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
// Vars
|
||||
object oPC = GetPCSpeaker(), oListener = OBJECT_SELF;
|
||||
string sNN = GetLocalString(oListener, "NN");
|
||||
string sID = GetLocalString(oPC, "ONID");
|
||||
object oItem;
|
||||
|
||||
oItem = GetFirstItemInInventory(oPC);
|
||||
|
||||
//Let's find the correct item and name it the new name..
|
||||
while(GetIsObjectValid(oItem)==TRUE)
|
||||
{
|
||||
//Only if the item is an original target of the Item Naming Tool.
|
||||
if(GetLocalString(oItem, "ONID")=="MEME")
|
||||
{
|
||||
SetName(oItem, sNN);
|
||||
//If it is, stop here!
|
||||
return;
|
||||
}
|
||||
|
||||
oItem = GetNextItemInInventory(oPC);
|
||||
}
|
||||
|
||||
//Script End
|
||||
}
|
Reference in New Issue
Block a user