PoA_PRC8/_module/nss/scribesetname.nss

28 lines
607 B
Plaintext
Raw Permalink Normal View History

2022-10-07 14:20:31 -04:00
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
}