RATDOG/_module/nss/at_ghoulchest1.nss

17 lines
450 B
Plaintext
Raw Permalink Normal View History

void main()
{
// Get the PC who is in this conversation.
object oPC = GetPCSpeaker();
object oSelf = OBJECT_SELF;
string sPlacableTag = GetTag(OBJECT_SELF);
// Give 20 gold to the PC.
GiveGoldToCreature(oPC, 20);
// And some fake coins.
CreateItemOnObject("itm_fakecoins001", oPC);
SetLocalInt(oPC, "PlayerLooted_" + sPlacableTag, 1);
SetLocalInt(oSelf, "BeenLooted1_" + sPlacableTag, 1);
}