//Created by Guile 01/28/07 //Put this on action taken in the conversation editor void main() { object oPC = GetPCSpeaker(); object oItem; oItem = GetFirstItemInInventory(oPC); while (GetIsObjectValid(oItem)) { if (GetTag(oItem)=="gemofteleportation") DestroyObject(oItem); oItem = GetNextItemInInventory(oPC); } oItem = GetFirstItemInInventory(oPC); while (GetIsObjectValid(oItem)) { if (GetTag(oItem)=="gemofteleporting") DestroyObject(oItem); oItem = GetNextItemInInventory(oPC); } object oTarget; oTarget = oPC; effect eEffect; eEffect = EffectTurned(); eEffect = SupernaturalEffect(eEffect); ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oTarget); }