void main()
    {
    object oPC = GetModuleItemLostBy();
    if (!GetIsPC(oPC))
        return;
    object oItem = GetModuleItemLost();
    if (!GetIsObjectValid(oItem))
        return;
    location lLoc = GetLocation(oItem);
    object oSkin = GetItemInSlot(INVENTORY_SLOT_CARMOUR,oPC);
    string sTag = GetTag(oItem);
    DeleteLocalInt(oSkin,sTag);
    // Handles anti cheat for Rod of Flailing
    if (sTag == "rodw111")
        {
        oItem = GetItemPossessedBy(oPC,"rod111");
        DestroyObject(oItem);
        }
    else if (sTag == "rod111")
        {
        DestroyObject (oItem);
        oItem = GetItemPossessedBy(oPC,"rodw111");
        CopyObject(oItem,lLoc);
        DestroyObject(oItem);
        }
    // End Rod of Flailing
    // Handles AnitCheat for Rod of Lordly Might
    else if (sTag == "rod114")
        {
        oItem = GetItemPossessedBy(oPC,"rodw114");
        DestroyObject(oItem);
        }
    else if (sTag == "rodw114")
        {
        DestroyObject (oItem);
        oItem = GetItemPossessedBy(oPC,"rod114");
        CopyObject(oItem,lLoc);
        DestroyObject(oItem);
        }
    // End Rod of Lordly Might

    // Remove all effects associated with the item.
    effect eEffect = GetFirstEffect(oPC);
    while (GetIsEffectValid(eEffect))
        {
        if (GetEffectCreator(eEffect) == oItem)
            RemoveEffect(oPC,eEffect);
        eEffect = GetNextEffect(oPC);
        }
    }
