Alangara_PRC8/_module/nss/_kjm_all_stores.nss

23 lines
555 B
Plaintext
Raw Permalink Normal View History

2024-06-05 21:21:06 -04:00
/*
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);
}
}