13 lines
308 B
Plaintext
13 lines
308 B
Plaintext
|
|
|
|
void main()
|
|
{
|
|
string sNPCTag = GetTag(OBJECT_SELF);
|
|
object oStore = GetNearestObjectByTag("STORE_" + sNPCTag + "2");
|
|
|
|
if (GetObjectType(oStore) == OBJECT_TYPE_STORE)
|
|
OpenStore(oStore, GetPCSpeaker());
|
|
else
|
|
ActionSpeakString("Sorry, the store is closed", TALKVOLUME_TALK);
|
|
}
|