Initial upload
Initial upload
This commit is contained in:
30
_module/nss/testing_script.nss
Normal file
30
_module/nss/testing_script.nss
Normal file
@@ -0,0 +1,30 @@
|
||||
|
||||
//Please note, the gold is only given to them IF they
|
||||
//Don't have the item your handing out, so that item
|
||||
//should in fact be undroppable!
|
||||
|
||||
const int GOLD = 5000; //Gold to give PC
|
||||
|
||||
//Enter the Tag Name of the item here..
|
||||
const string TAG_NAME = "EnterTagNameHere";
|
||||
|
||||
//Enter the Res Ref Name of the item here
|
||||
const string RESREF_NAME = "EnterResRefNameHere";
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC;
|
||||
oPC = GetEnteringObject();
|
||||
|
||||
object oTag = GetItemPossessedBy(oPC, TAG_NAME);
|
||||
int nGP = GOLD;
|
||||
|
||||
//If they don't have this Item, give them one
|
||||
if(oTag != OBJECT_INVALID)
|
||||
{
|
||||
CreateItemOnObject(RESREF_NAME, oPC, 1);
|
||||
GiveGoldToCreature(oPC, GOLD);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user