23 lines
555 B
Plaintext
23 lines
555 B
Plaintext
/*
|
|
Use this script to make all stores have the same appraisal
|
|
(so all stores act the same)
|
|
|
|
To make sure this works - make sure the merchant waypoint is located close
|
|
to the NPC and not too close to another metchant waypoint.
|
|
*/
|
|
#include "nw_i0_plot"
|
|
void main()
|
|
{
|
|
object oPC = GetPCSpeaker();
|
|
object oStore = GetNearestObject(OBJECT_TYPE_STORE, oPC, 1);
|
|
|
|
if (GetObjectType(oStore) == OBJECT_TYPE_STORE)
|
|
{
|
|
gplotAppraiseOpenStore(oStore, oPC);
|
|
}
|
|
else
|
|
{
|
|
ActionSpeakStringByStrRef(53090, TALKVOLUME_TALK);
|
|
}
|
|
}
|