//This is an include file for the creation of items that has multiple functions, //such as minimum caster level, invalid spell for creation, spell level, etc. //Returns the level of the spell int ReturnSpellLevel(int iSpellID) { switch (iSpellID) { case SPELL_ACID_FOG : return 6;// 0; case SPELL_AID : return 2;// 1; case SPELL_ANIMATE_DEAD : return 5;// 2; case SPELL_BARKSKIN : return 2;// 3; case SPELL_BESTOW_CURSE : return 4;// 4; case SPELL_BLADE_BARRIER : return 6;// 5; case SPELL_BLESS : return 1;// 6; case SPELL_BLESS_WEAPON : return 1;// 7; case SPELL_BLINDNESS_AND_DEAFNESS : return 2;// 8; case SPELL_BULLS_STRENGTH : return 2;// 9; case SPELL_BURNING_HANDS : return 1;// 10; case SPELL_CALL_LIGHTNING : return 3;// 11; case SPELL_CATS_GRACE : return 2;// 13; case SPELL_CHAIN_LIGHTNING : return 6;// 14; case SPELL_CHARM_MONSTER : return 4;// 15; case SPELL_CHARM_PERSON : return 1;// 16; case SPELL_CHARM_PERSON_OR_ANIMAL : return 2;// 17; case SPELL_CIRCLE_OF_DEATH : return 6;// 18; case SPELL_CIRCLE_OF_DOOM : return 5;// 19; case SPELL_CLAIRAUDIENCE_AND_CLAIRVOYANCE : return 3;// 20; case SPELL_CLARITY : return 2;// 21; case SPELL_CLOAK_OF_CHAOS : return 8;// 22; case SPELL_CLOUDKILL : return 5;// 23; case SPELL_COLOR_SPRAY : return 1;// 24; case SPELL_CONE_OF_COLD : return 5;// 25; case SPELL_CONFUSION : return 4;// 26; case SPELL_CONTAGION : return 4;// 27; case SPELL_CONTROL_UNDEAD : return 7;// 28; case SPELL_CREATE_GREATER_UNDEAD : return 8;// 29; case SPELL_CREATE_UNDEAD : return 6;// 30; case SPELL_CURE_CRITICAL_WOUNDS : return 4;// 31; case SPELL_CURE_LIGHT_WOUNDS : return 1;// 32; case SPELL_CURE_MINOR_WOUNDS : return 0;// 33; case SPELL_CURE_MODERATE_WOUNDS : return 2;// 34; case SPELL_CURE_SERIOUS_WOUNDS : return 3;// 35; case SPELL_DARKNESS : return 2;// 36; case SPELL_DAZE : return 0;// 37; case SPELL_DEATH_WARD : return 4;// 38; case SPELL_DELAYED_BLAST_FIREBALL : return 7;// 39; case SPELL_DISMISSAL : return 5;// 40; case SPELL_DISPEL_MAGIC : return 3;// 41; case SPELL_DIVINE_POWER : return 4;// 42; case SPELL_DOMINATE_ANIMAL : return 3;// 43; case SPELL_DOMINATE_MONSTER : return 9;// 44; case SPELL_DOMINATE_PERSON : return 5;// 45; case SPELL_DOOM : return 1;// 46; case SPELL_ELEMENTAL_SHIELD : return 4;// 47; case SPELL_ELEMENTAL_SWARM : return 9;// 48; case SPELL_ENDURANCE : return 2;// 49; case SPELL_ENDURE_ELEMENTS : return 1;// 50; case SPELL_ENERGY_DRAIN : return 9;// 51; case SPELL_ENERVATION : return 4;// 52; case SPELL_ENTANGLE : return 1;// 53; case SPELL_FEAR : return 4;// 54; case SPELL_FEEBLEMIND : return 5;// 55; case SPELL_FINGER_OF_DEATH : return 7;// 56; case SPELL_FIRE_STORM : return 8;// 57; case SPELL_FIREBALL : return 3;// 58; case SPELL_FLAME_ARROW : return 3;// 59; case SPELL_FLAME_LASH : return 2;// 60; case SPELL_FLAME_STRIKE : return 5;// 61; case SPELL_FREEDOM_OF_MOVEMENT : return 4;// 62; case SPELL_GATE : return 9;// 63; case SPELL_GHOUL_TOUCH : return 2;// 64; case SPELL_GLOBE_OF_INVULNERABILITY : return 6;// 65; case SPELL_GREASE : return 2;// 66; case SPELL_GREATER_DISPELLING : return 6;// 67; case SPELL_GREATER_MAGIC_WEAPON : return 3;// Not in the game! 68; case SPELL_GREATER_PLANAR_BINDING : return 8;// 69; case SPELL_GREATER_RESTORATION : return 7;// 70; case SPELL_GREATER_SPELL_BREACH : return 6;// 72; case SPELL_GREATER_SPELL_MANTLE : return 9;// 73; case SPELL_GREATER_STONESKIN : return 6;// 74; case SPELL_HAMMER_OF_THE_GODS : return 4;// 76; case SPELL_HARM : return 6;// 77; case SPELL_HASTE : return 3;// 78; case SPELL_HEAL : return 6;// 79; case SPELL_HEALING_CIRCLE : return 5;// 80; case SPELL_HOLD_ANIMAL : return 2;// 81; case SPELL_HOLD_MONSTER : return 5;// 82; case SPELL_HOLD_PERSON : return 3;// 83; case SPELL_HOLY_AURA : return 8;// 84; case SPELL_HOLY_SWORD : return 4;// 85; case SPELL_IDENTIFY : return 1;// 86; case SPELL_IMPLOSION : return 9;// 87; case SPELL_IMPROVED_INVISIBILITY : return 4;// 88; case SPELL_INCENDIARY_CLOUD : return 8;// 89; case SPELL_INVISIBILITY : return 2;// 90; case SPELL_INVISIBILITY_PURGE : return 3;// 91; case SPELL_INVISIBILITY_SPHERE : return 3;// 92; case SPELL_KNOCK : return 2;// 93; case SPELL_LESSER_DISPEL : return 2;// 94; case SPELL_LESSER_MIND_BLANK : return 5;// 95; case SPELL_LESSER_PLANAR_BINDING : return 5;// 96; case SPELL_LESSER_RESTORATION : return 2;// 97; case SPELL_LESSER_SPELL_BREACH : return 4;// 98; case SPELL_LESSER_SPELL_MANTLE : return 5;// 99; case SPELL_LIGHT : return 0;// 100; case SPELL_LIGHTNING_BOLT : return 3;// 101; case SPELL_MAGE_ARMOR : return 1;// 102; case SPELL_MAGIC_CIRCLE_AGAINST_CHAOS : return 3;// 103; case SPELL_MAGIC_CIRCLE_AGAINST_EVIL : return 3;// 104; case SPELL_MAGIC_CIRCLE_AGAINST_GOOD : return 3;// 105; case SPELL_MAGIC_CIRCLE_AGAINST_LAW : return 3;// 106; case SPELL_MAGIC_MISSILE : return 1;// 107; case SPELL_MAGIC_VESTMENT : return 3;// Not in the Game! 108; case SPELL_MAGIC_WEAPON : return 1;// Not in the Game! 109; case SPELL_MASS_BLINDNESS_AND_DEAFNESS : return 8;// 110; case SPELL_MASS_CHARM : return 8;// 111; case SPELL_MASS_HASTE : return 6;// 113; case SPELL_MASS_HEAL : return 8;// 114; case SPELL_MELFS_ACID_ARROW : return 2;// 115; case SPELL_METEOR_SWARM : return 9;// 116; case SPELL_MIND_BLANK : return 8;// 117; case SPELL_MIND_FOG : return 5;// 118; case SPELL_MINOR_GLOBE_OF_INVULNERABILITY : return 4;// 119; case SPELL_GHOSTLY_VISAGE : return 2;// 120; case SPELL_ETHEREAL_VISAGE : return 5;// 121; case SPELL_MORDENKAINENS_DISJUNCTION : return 9;// 122; case SPELL_MORDENKAINENS_SWORD : return 7;// 123; case SPELL_NATURES_BALANCE : return 8;// 124; case SPELL_NEGATIVE_ENERGY_PROTECTION : return 3;// 125; case SPELL_NEUTRALIZE_POISON : return 4;// 126; case SPELL_PHANTASMAL_KILLER : return 4;// 127; case SPELL_PLANAR_BINDING : return 6;// 128; case SPELL_POISON : return 4;// 129; case SPELL_POLYMORPH_SELF : return 4;// 130; case SPELL_POWER_WORD_KILL : return 9;// 131; case SPELL_POWER_WORD_STUN : return 7;// 132; case SPELL_PRAYER : return 3;// 133; case SPELL_PREMONITION : return 8;// 134; case SPELL_PRISMATIC_SPRAY : return 7;// 135; case SPELL_PROTECTION__FROM_CHAOS : return 1;// 136; case SPELL_PROTECTION_FROM_ELEMENTS : return 3;// 137; case SPELL_PROTECTION_FROM_EVIL : return 1;// 138; case SPELL_PROTECTION_FROM_GOOD : return 1;// 139; case SPELL_PROTECTION_FROM_LAW : return 1;// 140; case SPELL_PROTECTION_FROM_SPELLS : return 8;// 141; case SPELL_RAISE_DEAD : return 5;// 142; case SPELL_RAY_OF_ENFEEBLEMENT : return 1;// 143; case SPELL_RAY_OF_FROST : return 0;// 144; case SPELL_REMOVE_BLINDNESS_AND_DEAFNESS : return 3;// 145; case SPELL_REMOVE_CURSE : return 3;// 146; case SPELL_REMOVE_DISEASE : return 3;// 147; case SPELL_REMOVE_FEAR : return 1;// 148; case SPELL_REMOVE_PARALYSIS : return 2;// 149; case SPELL_RESIST_ELEMENTS : return 2;// 150; case SPELL_RESISTANCE : return 0;// 151; case SPELL_RESTORATION : return 4;// 152; case SPELL_RESURRECTION : return 7;// 153; case SPELL_SANCTUARY : return 1;// 154; case SPELL_SCARE : return 2;// 155; case SPELL_SEARING_LIGHT : return 3;// 156; case SPELL_SEE_INVISIBILITY : return 2;// 157; case SPELL_SHADOW_SHIELD : return 7;// 160; case SPELL_SHAPECHANGE : return 9;// 161; case SPELL_SHIELD_OF_LAW : return 8;// 162; case SPELL_SILENCE : return 2;// 163; case SPELL_SLAY_LIVING : return 5;// 164; case SPELL_SLEEP : return 1;// 165; case SPELL_SLOW : return 3;// 166; case SPELL_SOUND_BURST : return 2;// 167; case SPELL_SPELL_RESISTANCE : return 5;// 168; case SPELL_SPELL_MANTLE : return 7;// 169; case SPELL_STINKING_CLOUD : return 3;// 171; case SPELL_STONESKIN : return 4;// 172; case SPELL_STORM_OF_VENGEANCE : return 9;// 173; case SPELL_SUMMON_CREATURE_I : return 1;// 174; case SPELL_SUMMON_CREATURE_II : return 2;// 175; case SPELL_SUMMON_CREATURE_III : return 3;// 176; case SPELL_SUMMON_CREATURE_IV : return 4;// 177; case SPELL_SUMMON_CREATURE_IX : return 9;// 178; case SPELL_SUMMON_CREATURE_V : return 5;// 179; case SPELL_SUMMON_CREATURE_VI : return 6;// 180; case SPELL_SUMMON_CREATURE_VII : return 7;// 181; case SPELL_SUMMON_CREATURE_VIII : return 8;// 182; case SPELL_SUNBEAM : return 7;// 183; case SPELL_TENSERS_TRANSFORMATION : return 6;// 184; case SPELL_TIME_STOP : return 9;// 185; case SPELL_TRUE_SEEING : return 6;// 186; case SPELL_UNHOLY_AURA : return 8;// 187; case SPELL_VAMPIRIC_TOUCH : return 3;// 188; case SPELL_VIRTUE : return 0;// 189; case SPELL_WAIL_OF_THE_BANSHEE : return 9;// 190; case SPELL_WALL_OF_FIRE : return 4;// 191; case SPELL_WEB : return 2;// 192; case SPELL_WEIRD : return 9;// 193; case SPELL_WORD_OF_FAITH : return 7;// 194; case SPELL_EAGLE_SPLEDOR : return 2;// 354; case SPELL_OWLS_WISDOM : return 2;// 355; case SPELL_FOXS_CUNNING : return 2;// 356; case SPELL_GREATER_EAGLE_SPLENDOR : return 4;// 357; case SPELL_GREATER_OWLS_WISDOM : return 4;// 358; case SPELL_GREATER_FOXS_CUNNING : return 4;// 359; case SPELL_GREATER_BULLS_STRENGTH : return 4;// 360; case SPELL_GREATER_CATS_GRACE : return 4;// 361; case SPELL_GREATER_ENDURANCE : return 4;// 362; case SPELL_AWAKEN : return 5;// 363; case SPELL_CREEPING_DOOM : return 7;// 364; case SPELL_DARKVISION : return 2;// 365; case SPELL_DESTRUCTION : return 7;// 366; case SPELL_HORRID_WILTING : return 8;// 367; case SPELL_ICE_STORM : return 4;// 368; case SPELL_ENERGY_BUFFER : return 5;// 369; case SPELL_NEGATIVE_ENERGY_BURST : return 3;// 370; case SPELL_NEGATIVE_ENERGY_RAY : return 1;// 371; case SPELL_AURA_OF_VITALITY : return 7;// 372; case SPELL_WAR_CRY : return 4;// 373; case SPELL_REGENERATE : return 7;// 374; case SPELL_EVARDS_BLACK_TENTACLES : return 4;// 375; case SPELL_LEGEND_LORE : return 3;// 376; case SPELL_FIND_TRAPS : return 3;// 377; default: return -1; } return -1; } //Returns the closest match to a caster level that items can cast. int ReturnCasterLevel(int iSpellID, int iCasterLevel) { int iEffectLevel; switch (iSpellID) { case SPELL_ACID_FOG : return 11;// 0; case SPELL_AID : return 3;// 1; case SPELL_ANIMATE_DEAD : iEffectLevel = 5; if (iCasterLevel >= 10) iEffectLevel = 10; if (iCasterLevel >= 15) iEffectLevel = 15; return iEffectLevel;// 2; case SPELL_BARKSKIN : iEffectLevel = 3; if (iCasterLevel >= 6) iEffectLevel = 6; if (iCasterLevel >= 12) iEffectLevel = 12; return iEffectLevel;// 3; case SPELL_BESTOW_CURSE : return 11;// 4; case SPELL_BLADE_BARRIER : iEffectLevel = 11; if (iCasterLevel >= 15) iEffectLevel = 15; return iEffectLevel;// 5; case SPELL_BLESS : return 2;// 6; case SPELL_BLESS_WEAPON : return 3;// 7; case SPELL_BLINDNESS_AND_DEAFNESS : return 3;// 8; case SPELL_BULLS_STRENGTH : iEffectLevel = 3; if (iCasterLevel >= 10) iEffectLevel = 10; if (iCasterLevel >= 15) iEffectLevel = 15; return iEffectLevel;// 9; case SPELL_BURNING_HANDS : return 2;// Not in my list!10; case SPELL_CALL_LIGHTNING : iEffectLevel = 5; if (iCasterLevel >= 10) iEffectLevel = 10; return iEffectLevel;// 11; case SPELL_CATS_GRACE : iEffectLevel = 3; if (iCasterLevel >= 10) iEffectLevel = 10; if (iCasterLevel >= 15) iEffectLevel = 15; return iEffectLevel;// 13; case SPELL_CHAIN_LIGHTNING : iEffectLevel = 11; if (iCasterLevel >= 15) iEffectLevel = 15; if (iCasterLevel >= 20) iEffectLevel = 20; return iEffectLevel;// 14; case SPELL_CHARM_MONSTER : iEffectLevel = 5; if (iCasterLevel >= 10) iEffectLevel = 10; return iEffectLevel;// 15; case SPELL_CHARM_PERSON : iEffectLevel = 2; if (iCasterLevel >= 10) iEffectLevel = 10; return iEffectLevel;// 16; case SPELL_CHARM_PERSON_OR_ANIMAL : iEffectLevel = 3; if (iCasterLevel >= 10) iEffectLevel = 10; return iEffectLevel;// 17; case SPELL_CIRCLE_OF_DEATH : iEffectLevel = 11; if (iCasterLevel >= 15) iEffectLevel = 15; if (iCasterLevel >= 20) iEffectLevel = 20; return iEffectLevel;// 18; case SPELL_CIRCLE_OF_DOOM : iEffectLevel = 9; if (iCasterLevel >= 15) iEffectLevel = 15; if (iCasterLevel >= 20) iEffectLevel = 20; return iEffectLevel;// 19; case SPELL_CLAIRAUDIENCE_AND_CLAIRVOYANCE : iEffectLevel = 5; if (iCasterLevel >= 10) iEffectLevel = 10; if (iCasterLevel >= 15) iEffectLevel = 15; return iEffectLevel;// 20; case SPELL_CLARITY : return 3;// 21; case SPELL_CLOUDKILL : return 9;// 23; case SPELL_COLOR_SPRAY : return 2;// 24; case SPELL_CONE_OF_COLD : iEffectLevel = 9; if (iCasterLevel >= 15) iEffectLevel = 15; return iEffectLevel;// 25; case SPELL_CONFUSION : iEffectLevel = 5; if (iCasterLevel >= 10) iEffectLevel = 10; return iEffectLevel;// 26; case SPELL_CONTAGION : return 5;// 27; case SPELL_CONTROL_UNDEAD : iEffectLevel = 13; if (iCasterLevel >= 20) iEffectLevel = 20; return iEffectLevel;// 28; case SPELL_CREATE_GREATER_UNDEAD : iEffectLevel = 15; if (iCasterLevel >= 16) iEffectLevel = 16; if (iCasterLevel >= 18) iEffectLevel = 18; return iEffectLevel;// 29; case SPELL_CREATE_UNDEAD : iEffectLevel = 11; if (iCasterLevel >= 14) iEffectLevel = 14; if (iCasterLevel >= 16) iEffectLevel = 16; return iEffectLevel;// 30; case SPELL_CURE_CRITICAL_WOUNDS : iEffectLevel = 7; if (iCasterLevel >= 12) iEffectLevel = 12; if (iCasterLevel >= 15) iEffectLevel = 15; return iEffectLevel;// 31; case SPELL_CURE_LIGHT_WOUNDS : iEffectLevel = 2; if (iCasterLevel >= 5) iEffectLevel = 5; return iEffectLevel;// 32; case SPELL_CURE_MINOR_WOUNDS : return 1;// 33; case SPELL_CURE_MODERATE_WOUNDS : iEffectLevel = 3; if (iCasterLevel >= 6) iEffectLevel = 6; if (iCasterLevel >= 10) iEffectLevel = 10; return iEffectLevel;// 34; case SPELL_CURE_SERIOUS_WOUNDS : iEffectLevel = 5; if (iCasterLevel >= 10) iEffectLevel = 10; if (iCasterLevel >= 15) iEffectLevel = 15; return iEffectLevel;// 35; case SPELL_DARKNESS : return 3;// 36; case SPELL_DAZE : return 1;// 37; case SPELL_DEATH_WARD : return 7;// 38; case SPELL_DELAYED_BLAST_FIREBALL : iEffectLevel = 13; if (iCasterLevel >= 15) iEffectLevel = 15; if (iCasterLevel >= 20) iEffectLevel = 20; return iEffectLevel;// 39; case SPELL_DISMISSAL : iEffectLevel = 7; if (iCasterLevel >= 12) iEffectLevel = 12; if (iCasterLevel >= 18) iEffectLevel = 18; return iEffectLevel;// 40; case SPELL_DISPEL_MAGIC : iEffectLevel = 5; if (iCasterLevel >= 10) iEffectLevel = 10; return iEffectLevel;// 41; case SPELL_DIVINE_POWER : return 7;// 42; case SPELL_DOMINATE_ANIMAL : return 5;// 43; case SPELL_DOMINATE_MONSTER : return 17;// 44; case SPELL_DOMINATE_PERSON : return 7;// 45; case SPELL_DOOM : iEffectLevel = 2; if (iCasterLevel >= 5) iEffectLevel = 5; return iEffectLevel;// 46; case SPELL_ELEMENTAL_SHIELD : iEffectLevel = 7; if (iCasterLevel >= 12) iEffectLevel = 12; return iEffectLevel;// 47; case SPELL_ELEMENTAL_SWARM : return 17;// 48; case SPELL_ENDURANCE : iEffectLevel = 3; if (iCasterLevel >= 10) iEffectLevel = 10; if (iCasterLevel >= 15) iEffectLevel = 15; return iEffectLevel;// 49; case SPELL_ENDURE_ELEMENTS : return 2;// 50; case SPELL_ENERGY_DRAIN : return 17;// 51; case SPELL_ENERVATION : return 7;// 52; case SPELL_ENTANGLE : iEffectLevel = 2; if (iCasterLevel >= 5) iEffectLevel = 5; return iEffectLevel;// 53; case SPELL_FEAR : return 5;// 54; case SPELL_FEEBLEMIND : return 9;// 55; case SPELL_FINGER_OF_DEATH : return 13;// 56; case SPELL_FIRE_STORM : iEffectLevel = 13; if (iCasterLevel >= 18) iEffectLevel = 18; return iEffectLevel;// 57; case SPELL_FIREBALL : iEffectLevel = 5; if (iCasterLevel >= 10) iEffectLevel = 10; return iEffectLevel;// 58; case SPELL_FLAME_ARROW : return iEffectLevel;// 59; case SPELL_FLAME_LASH : iEffectLevel = 3; if (iCasterLevel >= 10) iEffectLevel = 10; return iEffectLevel;// 60; case SPELL_FLAME_STRIKE : iEffectLevel = 7; if (iCasterLevel >= 12) iEffectLevel = 12; if (iCasterLevel >= 18) iEffectLevel = 18; return iEffectLevel;// 61; case SPELL_FREEDOM_OF_MOVEMENT : return 7;// 62; case SPELL_GATE : return 17;// 63; case SPELL_GHOUL_TOUCH : return 3;// 64; case SPELL_GLOBE_OF_INVULNERABILITY : return 11;// 65; case SPELL_GREASE : return 2;// 66; case SPELL_GREATER_DISPELLING : iEffectLevel = 7; if (iCasterLevel >= 15) iEffectLevel = 15; return iEffectLevel;// 67; case SPELL_GREATER_MAGIC_WEAPON : return -1;// Not in the Game! 68; case SPELL_GREATER_PLANAR_BINDING : return 15;// 69; case SPELL_GREATER_RESTORATION : return 13;// 70; case SPELL_GREATER_SPELL_BREACH : return 11;// 72; case SPELL_GREATER_SPELL_MANTLE : return 17;// 73; case SPELL_GREATER_STONESKIN : return 11;// 74; case SPELL_HAMMER_OF_THE_GODS : iEffectLevel = 7; if (iCasterLevel >= 12) iEffectLevel = 12; if (iCasterLevel >= 20) iEffectLevel = 20; return iEffectLevel;// 76; case SPELL_HARM : return 11;// 77; case SPELL_HASTE : iEffectLevel = 5; if (iCasterLevel >= 10) iEffectLevel = 10; return iEffectLevel;// 78; case SPELL_HEAL : return 11;// 79; case SPELL_HEALING_CIRCLE : iEffectLevel = 9; if (iCasterLevel >= 16) iEffectLevel = 16; return iEffectLevel;// 80; case SPELL_HOLD_ANIMAL : return 3;// 81; case SPELL_HOLD_MONSTER : return 7;// 82; case SPELL_HOLD_PERSON : return 3;// 83; case SPELL_HOLY_AURA : return -1;// 84; case SPELL_HOLY_SWORD : return -1;// 85; case SPELL_IDENTIFY : return 3;// 86; case SPELL_IMPLOSION : return 17;// 87; case SPELL_IMPROVED_INVISIBILITY : return 7;// 88; case SPELL_INCENDIARY_CLOUD : return 15;// 89; case SPELL_INVISIBILITY : return 3;// 90; case SPELL_INVISIBILITY_PURGE : return 5;// 91; case SPELL_INVISIBILITY_SPHERE : return 5;// 92; case SPELL_KNOCK : return 3;// 93; case SPELL_LESSER_DISPEL : iEffectLevel = 2; if (iCasterLevel >= 5) iEffectLevel = 5; return iEffectLevel;// 94; case SPELL_LESSER_MIND_BLANK : return 9;// 95; case SPELL_LESSER_PLANAR_BINDING : return 9;// 96; case SPELL_LESSER_RESTORATION : return 3;// 97; case SPELL_LESSER_SPELL_BREACH : return 7;// 98; case SPELL_LESSER_SPELL_MANTLE : return 9;// 99; case SPELL_LIGHT : iEffectLevel = 1; if (iCasterLevel >= 5) iEffectLevel = 5; return iEffectLevel;// 100; case SPELL_LIGHTNING_BOLT : iEffectLevel = 5; if (iCasterLevel >= 10) iEffectLevel = 10; return iEffectLevel;// 101; case SPELL_MAGE_ARMOR : return 2;// 102; case SPELL_MAGIC_CIRCLE_AGAINST_CHAOS : return 5;// 103; case SPELL_MAGIC_CIRCLE_AGAINST_EVIL : return 5;// 104; case SPELL_MAGIC_CIRCLE_AGAINST_GOOD : return 5;// 105; case SPELL_MAGIC_CIRCLE_AGAINST_LAW : return 5;// 106; case SPELL_MAGIC_MISSILE : iEffectLevel = 3; if (iCasterLevel >= 5) iEffectLevel = 5; if (iCasterLevel >= 9) iEffectLevel = 9; return iEffectLevel;// 107; case SPELL_MAGIC_VESTMENT : return -1;//Not in the Game 108; case SPELL_MAGIC_WEAPON : return -1;//Not in the Game 109; case SPELL_MASS_BLINDNESS_AND_DEAFNESS : return 15;// 110; case SPELL_MASS_CHARM : return 15;// 111; case SPELL_MASS_HASTE : return 11;// 113; case SPELL_MASS_HEAL : return 15;//Need to look up 114; case SPELL_MELFS_ACID_ARROW : iEffectLevel = 3; if (iCasterLevel >= 6) iEffectLevel = 6; if (iCasterLevel >= 9) iEffectLevel = 9; return iEffectLevel;// 115; case SPELL_METEOR_SWARM : return 17;// 116; case SPELL_MIND_BLANK : return 15;// 117; case SPELL_MIND_FOG : return 9;// 118; case SPELL_MINOR_GLOBE_OF_INVULNERABILITY : iEffectLevel = 7; if (iCasterLevel >= 15) iEffectLevel = 15; return iEffectLevel;// 119; case SPELL_GHOSTLY_VISAGE : iEffectLevel = 3; if (iCasterLevel >= 9) iEffectLevel = 9; if (iCasterLevel >= 15) iEffectLevel = 15; return iEffectLevel ;// 120; case SPELL_ETHEREAL_VISAGE : iEffectLevel = 9; if (iCasterLevel >= 15) iEffectLevel = 15; return iEffectLevel;// 121; case SPELL_MORDENKAINENS_DISJUNCTION : return 17;// 122; case SPELL_MORDENKAINENS_SWORD : iEffectLevel = 13; if (iCasterLevel >= 18) iEffectLevel = 18; return iEffectLevel;// 123; case SPELL_NATURES_BALANCE : return 15;// 124; case SPELL_NEGATIVE_ENERGY_PROTECTION : iEffectLevel = 5; if (iCasterLevel >= 10) iEffectLevel = 10; if (iCasterLevel >= 15) iEffectLevel = 15; return iEffectLevel;// 125; case SPELL_NEUTRALIZE_POISON : return 5;// 126; case SPELL_PHANTASMAL_KILLER : return 7;// 127; case SPELL_PLANAR_BINDING : return 11;// 128; case SPELL_POISON : return 5;// 129; case SPELL_POLYMORPH_SELF : return 7;// 130; case SPELL_POWER_WORD_KILL : return 17;// 131; case SPELL_POWER_WORD_STUN : return 13;// 132; case SPELL_PRAYER : return 5;// 133; case SPELL_PREMONITION : return 15;// 134; case SPELL_PRISMATIC_SPRAY : return 13;// 135; case SPELL_PROTECTION__FROM_CHAOS : iEffectLevel = 3; if (iCasterLevel >= 5) iEffectLevel = 5; return iEffectLevel;// 136; case SPELL_PROTECTION_FROM_ELEMENTS : iEffectLevel = 3; if (iCasterLevel >= 10) iEffectLevel = 10; return iEffectLevel;// 137; case SPELL_PROTECTION_FROM_EVIL : iEffectLevel = 3; if (iCasterLevel >= 5) iEffectLevel = 5; return iEffectLevel;// 138; case SPELL_PROTECTION_FROM_GOOD : iEffectLevel = 3; if (iCasterLevel >= 5) iEffectLevel = 5; return iEffectLevel;// 139; case SPELL_PROTECTION_FROM_LAW : iEffectLevel = 3; if (iCasterLevel >= 5) iEffectLevel = 5; return iEffectLevel;// 140; case SPELL_PROTECTION_FROM_SPELLS : iEffectLevel = 13; if (iCasterLevel >= 20) iEffectLevel = 20; return iEffectLevel;// 141; case SPELL_RAISE_DEAD : return 9;// 142; case SPELL_RAY_OF_ENFEEBLEMENT : return 2;// 143; case SPELL_RAY_OF_FROST : return 1;// 144; case SPELL_REMOVE_BLINDNESS_AND_DEAFNESS : return 5;// 145; case SPELL_REMOVE_CURSE : return 5;// 146; case SPELL_REMOVE_DISEASE : return 5;// 147; case SPELL_REMOVE_FEAR : return 2;// 148; case SPELL_REMOVE_PARALYSIS : return 3;// 149; case SPELL_RESIST_ELEMENTS : iEffectLevel = 3; if (iCasterLevel >= 10) iEffectLevel = 10; return iEffectLevel;// 150; case SPELL_RESISTANCE : iEffectLevel = 2; if (iCasterLevel >= 5) iEffectLevel = 5; if (iCasterLevel >= 7) iEffectLevel = 7; return iEffectLevel;// 151; case SPELL_RESTORATION : return -1;//Not in my list 152; case SPELL_RESURRECTION : return -1;//Not in my list 153; case SPELL_SANCTUARY : return 2;// 154; case SPELL_SCARE : return 2;// 155; case SPELL_SEARING_LIGHT : return 5;// 156; case SPELL_SEE_INVISIBILITY : return 3;// 157; case SPELL_SHADOW_SHIELD : return 13;// 160; case SPELL_SHAPECHANGE : return 17;// 161; case SPELL_SHIELD_OF_LAW : return -1;// 162; case SPELL_SILENCE : return 3;// Not in my list!163; case SPELL_SLAY_LIVING : return 9;// 164; case SPELL_SLEEP : iEffectLevel = 2; if (iCasterLevel >= 5) iEffectLevel = 5; return iEffectLevel;// 165; case SPELL_SLOW : return 5;// 166; case SPELL_SOUND_BURST : return 3;// 167; case SPELL_SPELL_RESISTANCE : iEffectLevel = 9; if (iCasterLevel >= 15) iEffectLevel = 15; return iEffectLevel;// 168; case SPELL_SPELL_MANTLE : return 13;// 169; case SPELL_SPHERE_OF_CHAOS : return -1;// Not in my List! 170; case SPELL_STINKING_CLOUD : return 5;// 171; case SPELL_STONESKIN : return 7;// 172; case SPELL_STORM_OF_VENGEANCE : return 17;// 173; case SPELL_SUMMON_CREATURE_I : iEffectLevel = 2; if (iCasterLevel >= 5) iEffectLevel = 5; return iEffectLevel;// 174; case SPELL_SUMMON_CREATURE_II : return 3;// 175; case SPELL_SUMMON_CREATURE_III : return 5;// 176; case SPELL_SUMMON_CREATURE_IV : return 7;// 177; case SPELL_SUMMON_CREATURE_IX : return 17;// 178; case SPELL_SUMMON_CREATURE_V : return 9;// 179; case SPELL_SUMMON_CREATURE_VI : return 11;// 180; case SPELL_SUMMON_CREATURE_VII : return 13;// 181; case SPELL_SUMMON_CREATURE_VIII : return 15;// 182; case SPELL_SUNBEAM : return 13;// 183; case SPELL_TENSERS_TRANSFORMATION : return 11;// 184; case SPELL_TIME_STOP : return 17;// 185; case SPELL_TRUE_SEEING : return 9;// 186; case SPELL_UNHOLY_AURA : return -1; // Not on my list!187; case SPELL_VAMPIRIC_TOUCH : return 5;// 188; case SPELL_VIRTUE : return 1;// 189; case SPELL_WAIL_OF_THE_BANSHEE : return 17;// 190; case SPELL_WALL_OF_FIRE : return 9;// 191; case SPELL_WEB : return 3;// 192; case SPELL_WEIRD : return 17;// 193; case SPELL_WORD_OF_FAITH : return 13;// 194; case SPELL_EAGLE_SPLEDOR : iEffectLevel = 3; if (iCasterLevel >= 10) iEffectLevel = 10; if (iCasterLevel >= 15) iEffectLevel = 15; return iEffectLevel;// 354; case SPELL_OWLS_WISDOM : iEffectLevel = 3; if (iCasterLevel >= 10) iEffectLevel = 10; if (iCasterLevel >= 15) iEffectLevel = 15; return iEffectLevel;// 355; case SPELL_FOXS_CUNNING : iEffectLevel = 3; if (iCasterLevel >= 10) iEffectLevel = 10; if (iCasterLevel >= 15) iEffectLevel = 15; return iEffectLevel;// 356; case SPELL_GREATER_EAGLE_SPLENDOR : return 11;// 357; case SPELL_GREATER_OWLS_WISDOM : return 11;// 358; case SPELL_GREATER_FOXS_CUNNING : return 11;// 359; case SPELL_GREATER_BULLS_STRENGTH : return 11;// 360; case SPELL_GREATER_CATS_GRACE : return 11;// 361; case SPELL_GREATER_ENDURANCE : return 11;// 362; case SPELL_AWAKEN : return 9;// 363; case SPELL_CREEPING_DOOM : return -1;// Not on my list364; case SPELL_DARKVISION : return -1;// Not on my list! 365; case SPELL_DESTRUCTION : return 13;// 366; case SPELL_HORRID_WILTING : iEffectLevel = 15; if (iCasterLevel >= 20) iEffectLevel = 20; return iEffectLevel;// 367; case SPELL_ICE_STORM : return 9;// 368; case SPELL_ENERGY_BUFFER : iEffectLevel = 11; if (iCasterLevel >= 15) iEffectLevel = 15; if (iCasterLevel >= 20) iEffectLevel = 20; return iEffectLevel;// 369; case SPELL_NEGATIVE_ENERGY_BURST : iEffectLevel = 5; if (iCasterLevel >= 10) iEffectLevel = 10; return iEffectLevel; // 370; case SPELL_NEGATIVE_ENERGY_RAY : iEffectLevel = 1; if (iCasterLevel >= 3) iEffectLevel = 3; if (iCasterLevel >= 5) iEffectLevel = 5; if (iCasterLevel >= 7) iEffectLevel = 7; if (iCasterLevel >= 9) iEffectLevel = 9; return iEffectLevel;// 371; case SPELL_AURA_OF_VITALITY : return 13;// 372; case SPELL_WAR_CRY : return 7;// 373; case SPELL_REGENERATE : return 13;// 374; case SPELL_EVARDS_BLACK_TENTACLES : iEffectLevel = 7; if (iCasterLevel >= 15) iEffectLevel = 15; return iEffectLevel;// 375; case SPELL_LEGEND_LORE : return 5;// 376; case SPELL_FIND_TRAPS : return 3;// 377; default: return -1; } return -1; }