/* Script generated by
Lilac Soul's NWN Script Generator, v. 2.3
For download info, please visit:
http://nwvault.ign.com/View.php?view...id=4683&id=625 */
//Put this script OnClose
void main()
{
object oPC = GetLastClosedBy();
if (!GetIsPC(oPC)) return;
object oTarget;
oTarget = OBJECT_SELF;
DestroyObject(oTarget, 0.0);
SetLocalInt(oPC, "barrel", 0);
}
If you want to get fancy with it. Then you can set the variable to one either when the PC accepts the quest, or when you spawn the barrel, and the quest will be repeatable.