EN4_PRC8/_module/nss/en4_openpotions.nss
Jaysyn904 b464d8da05 Initial Commit
Initial Commit [v1.32PRC8]
2025-04-03 13:38:45 -04:00

23 lines
480 B
Plaintext

#include "nw_i0_plot"
void main()
{
string sStoreTag;
if (GetLocalInt(GetArea(OBJECT_SELF),"MinimumLevel") > 19)
sStoreTag = "en3_potions2";
else
sStoreTag = "en3_potions";
object oStore = GetNearestObjectByTag(sStoreTag);
if(GetObjectType(oStore) == OBJECT_TYPE_STORE)
{
gplotAppraiseOpenStore(oStore, GetPCSpeaker());
}
else
{
SendMessageToPC(GetPCSpeaker(),"Could not open store.");
ActionSpeakStringByStrRef(53090, TALKVOLUME_TALK);
}
}