#include "mn_i_pwfunctions" void ObjectToVoid(object oObject); void ObjectToVoid(object oObject) { } void main() { // Get the PC who is in this conversation. object oPC = GetPCSpeaker(); // Take stuff from the PC. DestroyObject(GetItemPossessedBy(oPC, "potioncrystal1")); DestroyObject(GetItemPossessedBy(oPC, "potioncrystal2")); DestroyObject(GetItemPossessedBy(oPC, "potioncrystal3")); DestroyObject(GetItemPossessedBy(oPC, "potioncrystal4")); DestroyObject(GetItemPossessedBy(oPC, "potioncrystal5")); DestroyObject(GetItemPossessedBy(oPC, "potioncrystal7")); AssignCommand(oPC, TakeGoldFromCreature(1000, oPC, TRUE)); effect eVFX; object oSelf = GetPCSpeaker(); eVFX = EffectVisualEffect(VFX_FNF_ELECTRIC_EXPLOSION); ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oSelf); DelayCommand(1.0, ObjectToVoid(CreateItemOnObject("potioncrystal1", oPC))); }