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

25 lines
954 B
Plaintext

//******************************************************************************
//* Script: mvi_openstore
//* Created: 04-21-04
//* By: Mike Immordino (AKA Darnos Marchenhaft)
//* Revised:
//******************************************************************************
//* This script is used module-wide to open a merchant's store. It reads the
//* TAG of the merchant speaker, and opens the store with the same exact Tag.
//* This script uses the "Appraise" skill to give the PC a favorable or
//* unfavorable pricing when opening.
//******************************************************************************
#include "nw_i0_plot"
void main()
{
string sStoreName = GetTag(OBJECT_SELF);
object oStore = GetNearestObjectByTag(sStoreName);
if (GetObjectType(oStore) == OBJECT_TYPE_STORE)
{ gplotAppraiseOpenStore(oStore, GetPCSpeaker()); }
else
{ ActionSpeakStringByStrRef(53090, TALKVOLUME_TALK); }
}