generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit.
This commit is contained in:
24
_module/nss/mvi_openstore.nss
Normal file
24
_module/nss/mvi_openstore.nss
Normal file
@@ -0,0 +1,24 @@
|
||||
//******************************************************************************
|
||||
//* 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); }
|
||||
}
|
||||
Reference in New Issue
Block a user