Initial upload

Initial upload.
This commit is contained in:
Jaysyn904
2024-10-09 14:17:22 -04:00
parent a13073fd78
commit e51634d39b
2354 changed files with 658510 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
/*
Thanks for help from PASSWORD PROTECTED DOOR by mod_urn@yahoo.com
*/
#include "nw_i0_generic"
void main()
{
int iListen = GetListenPatternNumber();
string sNewName;
if(iListen == 777) // listen pattern set in s_listener
{
sNewName = GetMatchedSubstring(0);
if (GetLocalInt(OBJECT_SELF, "iListenFlag") == TRUE)
{
//SpeakString("Echo = " + sNewName);
object oAnvil = GetNearestObjectByTag("pAnvilOfWonder");
object oItem = GetFirstItemInInventory(oAnvil);
string sOldName = GetName(oItem);
SetName(oItem, sNewName);
SpeakString(sOldName + " is renamed to " + sNewName);
}
}
else if (iListen == -1)
{
// Not a match -- start an ordinary conversation
if (GetCommandable(OBJECT_SELF))
{
ClearActions(CLEAR_NW_C2_DEFAULT4_29);
BeginConversation();
}
}
}