View Single Post
Old 03-01-2007, 02:37 AM   #10
robertthebard
Xanathar Thieves Guild
 

Join Date: March 17, 2001
Location: Wichita, KS USA
Age: 62
Posts: 4,537
/* 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.
__________________
To those we have lost; May your spirits fly free.
Interesting read, one of my blogs.
robertthebard is offline   Reply With Quote