28 lines
607 B
Plaintext
28 lines
607 B
Plaintext
|
|
||
|
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
|
||
|
}
|