generated from Jaysyn/ModuleTemplate
25 lines
954 B
Plaintext
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); }
|
|
}
|