Initial Commit
Initial Commit [v1.32PRC8]
This commit is contained in:
22
_module/nss/en4_openpotions.nss
Normal file
22
_module/nss/en4_openpotions.nss
Normal file
@@ -0,0 +1,22 @@
|
||||
#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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user