void main() { // Remove items from the player's inventory object oItemToTake; object oPC=GetPCSpeaker(); oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "frost_portalkey_q1"); if(GetIsObjectValid(oItemToTake) != 0) DestroyObject(oItemToTake); ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_IMP_UNSUMMON),oPC); DelayCommand(0.7,AssignCommand(oPC,JumpToObject(GetWaypointByTag("frost_portal_exit_q1"),FALSE))); }