Initial upload
Initial upload
This commit is contained in:
44
_module/nss/open_travelstore.nss
Normal file
44
_module/nss/open_travelstore.nss
Normal file
@@ -0,0 +1,44 @@
|
||||
/*--------------------------------------------------------
|
||||
Script Name: open_travelstore
|
||||
----------------------------------------------------------
|
||||
Created By: Genisys(Guile)
|
||||
Created On: 4/03/09
|
||||
----------------------------------------------------------
|
||||
This is a Conversation ActionTaken Script Template
|
||||
for opening up a store from anywhere in your module, the
|
||||
idea behind this script is to allow you to place ALL of
|
||||
your stores in one area, so that the areas the PCs enter
|
||||
to interact with PCs will not take a long time to load,
|
||||
note you cannot have 2 copies of the store in the module
|
||||
or this script will fail!
|
||||
----------------------------------------------------------*/
|
||||
//Enter the Store's Tagname below leave this " ";
|
||||
const string STORE_NAME = "travelstore";
|
||||
///////////////////////////////////////////////////////////
|
||||
//Required Inlcude only for Appraise...
|
||||
#include "nw_i0_plot"
|
||||
//Mainscript
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
object oTarget;
|
||||
object o = GetWaypointByTag("ref_point");
|
||||
oTarget = GetNearestObjectByTag(STORE_NAME, o);
|
||||
string sMsg = "This store does not exist! ";
|
||||
//Debugging
|
||||
if(oTarget==OBJECT_INVALID)
|
||||
{
|
||||
//Inform the PCs & DMs the store doesn't exist!
|
||||
FloatingTextStringOnCreature(sMsg, oPC, TRUE);
|
||||
SendMessageToAllDMs(sMsg + STORE_NAME);
|
||||
return;
|
||||
}
|
||||
//The first 0 = Markup for Items Sold
|
||||
//The 2nd 0 = Markup for Items Bought
|
||||
//Note the markup is in addition to the markups the store has!
|
||||
OpenStore(oTarget, oPC, 0, 0);
|
||||
//For Appraise Check Usage
|
||||
//(type // before OpenStore Above and delete // below!)
|
||||
//gplotAppraiseOpenStore(oTarget, oPC, 0, 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user