28 lines
671 B
Plaintext
28 lines
671 B
Plaintext
|
////////////////////////////////////////////////////////////////////////////////
|
||
|
//
|
||
|
// Universal Merchant Activator
|
||
|
// opw_univ_merch
|
||
|
// by Don Anderson
|
||
|
// dandersonru@msn.com
|
||
|
//
|
||
|
// Use this on a Creature to Dynamically Open Merchants
|
||
|
//
|
||
|
////////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
#include "nw_i0_plot"
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
//Conversation or Placeable
|
||
|
object oPC = GetPCSpeaker();
|
||
|
object oMerchant = OBJECT_SELF;
|
||
|
string sTag = GetTag(oMerchant);
|
||
|
|
||
|
//Find the Store and Open it
|
||
|
object oStore = GetNearestObjectByTag(sTag);
|
||
|
if(GetObjectType(oStore) == OBJECT_TYPE_STORE)
|
||
|
{
|
||
|
gplotAppraiseOpenStore(oStore, oPC);
|
||
|
}
|
||
|
}
|