31 lines
638 B
Plaintext
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);
|
|
}
|
|
|
|
}
|