Initial upload

Initial upload
This commit is contained in:
Jaysyn904
2023-09-25 20:24:01 -04:00
parent 4e16ca63ca
commit 5197ad9a4d
7741 changed files with 5391820 additions and 0 deletions

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