23 lines
480 B
Plaintext
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);
|
||
|
}
|
||
|
}
|