I need to create a package, that when added to an NPC, causes the NPC to cast spells from his/her spell list, for 30 seconds.
After the the 30 seconds are up, a few items are added to the Npcs Inventory. I need this to happen reliably everytime the package ends.
Can anyone tell me how to configure the package to make sure this happens? My attempts so far have only gotten the Npc to cast a spell once and the onpackagedone function in the script thats attached to them never executes.