UW2_PRC8/_module/nss/testing_script.nss
Jaysyn904 5197ad9a4d Initial upload
Initial upload
2023-09-25 20:24:01 -04:00

31 lines
638 B
Plaintext

//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);
}
}