#include "inc_item_tools"

void main()
    {
    object oItem = GetItemActivated();
    string sTag = GetTag (oItem);
    object oPC = GetItemActivator();
            if (sTag == "Antitoxin")
                ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectSavingThrowIncrease(SAVING_THROW_FORT,5,SAVING_THROW_TYPE_POISON),oPC,HoursToSeconds(1));
            //else if (sTag == "potion001")
            //    AssignCommand(oPC,JumpToLocation(lLoc));  Deactivated
            else if (sTag == "potion003")
                ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectSkillIncrease(SKILL_SEARCH,10),oPC,HoursToSeconds(1));
            else if (sTag == "potion004")
                ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectSkillIncrease(SKILL_SPOT,10),oPC,HoursToSeconds(1));
            else if (sTag == "potion005")
                ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectSkillIncrease(SKILL_HIDE,10),oPC,HoursToSeconds(1));
            else if (sTag == "potion006")
                ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectSkillIncrease(SKILL_MOVE_SILENTLY,10),oPC,HoursToSeconds(1));
            else if (sTag == "potion020")
                ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectSkillIncrease(SKILL_PERSUADE,30),oPC,HoursToSeconds(1));
            else if (sTag == "potion026")
                ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectDamageResistance(DAMAGE_TYPE_COLD,12,12),oPC,HoursToSeconds(1));
            else if (sTag == "potion027")
                ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectDamageResistance(DAMAGE_TYPE_ELECTRICAL,12,12),oPC,HoursToSeconds(1));
            else if (sTag == "potion028")
                ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectDamageResistance(DAMAGE_TYPE_FIRE,12,12),oPC,HoursToSeconds(1));
            else if (sTag == "potion029")
                ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectDamageResistance(DAMAGE_TYPE_ACID,12,12),oPC,HoursToSeconds(1));
            else if (sTag == "potion030")
                ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectDamageResistance(DAMAGE_TYPE_SONIC,12,12),oPC,HoursToSeconds(1));
            else if (sTag == "potion033")
                {
                ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectAttackIncrease(2,ATTACK_BONUS_MISC),oPC,HoursToSeconds(1));
                ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectSavingThrowIncrease(SAVING_THROW_TYPE_ALL,2),oPC,HoursToSeconds(1));
                ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectSkillIncrease(SKILL_ALL_SKILLS,2),oPC,HoursToSeconds(1));
                }
            else if (sTag == "potion035")
                ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectSpellImmunity(SPELL_DROWN),oPC,HoursToSeconds(1));
    }
