#include "inc_item_tools"
void main()
    {
    object oItem = GetItemActivated();
    string sTag = GetTag (oItem);
    object oPC = GetItemActivator();
    object oTarget = GetItemActivatedTarget();
    object oTemp;
    location lLoc = GetItemActivatedTargetLocation();
    int iTemp;
    if (sTag == "misca044")
        {
        oTemp = RetrieveCampaignObject(CAMPAIGN,sTag,lLoc,oPC,oPC);
        if (!GetIsObjectValid(oTemp))
            {
            if (GetObjectType(oTarget) == OBJECT_TYPE_ITEM)
                {
                if (GetDistanceBetween(oPC,oTarget) <= 3.0)
                    {
                    StoreCampaignObject(CAMPAIGN,sTag,oTarget,oPC);
                    DestroyObject(oTarget);
                    }
                else
                    SendMessageToPC(oPC,"Must be closer to store items");
                }
            else
                SendMessageToPC(oPC,"Only items my be stored.");
            }
        else
            DeleteCampaignVariable(CAMPAIGN,sTag,oPC);
        }
    else if (sTag == "misca076")
        {
        AssignCommand(oTarget,JumpToLocation(GetLocation(oPC)));
        }
    else if (sTag == "misca087")
        {
        JumpToLocation(lLoc);
        }
    else if (sTag == "miscb001")
        {
        Fly();
        }
    else if (sTag == "miscb041")
        {
        ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY,EffectVisualEffect(VFX_FNF_SMOKE_PUFF),GetLocation(oPC));
        ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY,EffectVisualEffect(VFX_FNF_SMOKE_PUFF),lLoc);
        DelayCommand(1.0,JumpToLocation(lLoc));
        }
    }
