Files
HeroesStone_PRC8/_module/nss/open_store.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

27 lines
808 B
Plaintext

//::///////////////////////////////////////////////
//:: FileName open_store
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
//:: Created By: Otwyn
//:: Created On: 9/02/2003
//::
//:: Place this script in the Action Taken tab of
//:: a conversation node.
//:: Paint a merchant near the NPC that called the
//:: conversation with tag of 'Store_<tag>' where
//:: <tag> is the NPC's tag.
//:://////////////////////////////////////////////
#include "nw_i0_plot"
void main()
{
string sStore = GetTag(OBJECT_SELF);
object oStore = GetNearestObjectByTag("Store_"+sStore);
if(GetObjectType(oStore) == OBJECT_TYPE_STORE)
gplotAppraiseOpenStore(oStore, GetPCSpeaker());
else
ActionSpeakStringByStrRef(53090, TALKVOLUME_TALK);
}