/*   Script generated by
Lilac Soul's NWN Script Generator, v. 2.1

For download info, please visit:
http://nwvault.ign.com/View.php?view=Other.Detail&id=4683&id=625    */

//Put this on action taken in the conversation editor
void main()
{

object oPC = GetPCSpeaker();

object oTarget;
oTarget = GetObjectByTag("playeritem");

object oItem;
oItem = GetFirstItemInInventory(oPC);

while (GetIsObjectValid(oItem))
   {
   AssignCommand(oTarget, ActionTakeItem(oItem, oPC));

   oItem = GetNextItemInInventory(oPC);
   }

int nInt;
for (nInt=0; nInt<NUM_INVENTORY_SLOTS; nInt++)
   {
   oItem = GetItemInSlot(nInt, oPC);

   if (GetIsObjectValid(oItem)) AssignCommand(oTarget, ActionTakeItem(oItem, oPC));
   }

}