Initial commit

Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
Jaysyn904
2024-01-04 07:49:38 -05:00
parent df18cd54c8
commit 28cdb617b3
12943 changed files with 9727121 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
#include "store_inc"
void main()
{
string sNPCTag = GetTag(OBJECT_SELF);
object oStore = GetNearestObjectByTag("STORE_" + sNPCTag);
if (oStore == OBJECT_INVALID)
oStore = GetNearestObjectByTag(GetLocalString(OBJECT_SELF, "STORE_TO_OPEN"));
if (GetObjectType(oStore) == OBJECT_TYPE_STORE)
{
WriteTimestampedLogEntry("STOREDBG: NPC " + sNPCTag + " in " + GetName(GetArea(OBJECT_SELF)) + " opening store " + GetTag(oStore) + " for " + GetName(GetPCSpeaker()));
store_Initialize(oStore);
OpenStore(oStore, GetPCSpeaker());
}
else
{
WriteTimestampedLogEntry("STOREDBG: store not found for NPC " +sNPCTag + " STORE_TO_OPEN:" + GetLocalString(OBJECT_SELF, "STORE_TO_OPEN"));
ActionSpeakString("Sorry, the store is closed", TALKVOLUME_TALK);
}
}