75 lines
8.4 KiB
Plaintext
75 lines
8.4 KiB
Plaintext
void main()
|
|
{
|
|
int iEnchLvl = (GetLocalInt(OBJECT_SELF,"lvl")+d4(1));
|
|
itemproperty ipAdd;
|
|
|
|
|
|
switch(iEnchLvl)
|
|
{
|
|
case 1: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_ELECTRIC_JOLT_1,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break; //impossible result
|
|
case 2: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_ELECTRIC_JOLT_1,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 3: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_CURE_MINOR_WOUNDS_1,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 4: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_ACID_SPLASH_1,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 5: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_SUMMON_CREATURE_I_2,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 6: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_BLESS_2,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 7: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_CURE_LIGHT_WOUNDS_2,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 8: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_RAY_OF_FROST_1,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 9: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_LIGHT_1,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 10: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_MAGE_ARMOR_2,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 11: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_IDENTIFY_3,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 12: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_MAGIC_MISSILE_3,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 13: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_RAY_OF_ENFEEBLEMENT_2,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 14: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_NEGATIVE_ENERGY_RAY_1,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 15: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_DOOM_2,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 16: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_BARKSKIN_3,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 17: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_BURNING_HANDS_2,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 18: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_AID_3,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 19: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_BLESS_2,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 20: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_KNOCK_3,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 21: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_FOXS_CUNNING_3,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 22: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_BULLS_STRENGTH_3,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 23: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_CATS_GRACE_3,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 24: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_ENDURANCE_3,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 25: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_OWLS_WISDOM_3,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 26: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_EAGLE_SPLEDOR_3,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 27: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_HOLD_PERSON_3,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 28: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_SUMMON_CREATURE_II_3,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 29: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_SOUND_BURST_3,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 30: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_COLOR_SPRAY_2,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 31: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_INFLICT_MODERATE_WOUNDS_7,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 32: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_FLAME_ARROW_5,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 33: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_FIREBALL_5,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 34: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_LIGHTNING_BOLT_5,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 35: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_LESSER_RESTORATION_3,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 36: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_LESSER_DISPEL_5,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 37: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_INFLICT_SERIOUS_WOUNDS_9,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 38: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_INVISIBILITY_3,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 39: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_HASTE_10,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 40: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_GHOSTLY_VISAGE_9,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 41: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_DRAGON_BREATH_FIRE_10,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 42: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_DISPEL_MAGIC_5,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 43: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_ANIMATE_DEAD_5,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 44: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_BARKSKIN_6,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 45: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_CALL_LIGHTNING_5,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 46: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_DEATH_WARD_7,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 47: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_ICE_STORM_9,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 48: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_ETHEREAL_VISAGE_15,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 49: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_ISAACS_LESSER_MISSILE_STORM_13,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 50: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_RESTORATION_7,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 51: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_CIRCLE_OF_DOOM_9,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 52: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_ENTANGLE_2,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 53: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_FIND_TRAPS_3,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 54: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_SLEEP_5,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 55: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_SILENCE_3,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 56: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_ISAACS_GREATER_MISSILE_STORM_15,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 57: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_SUMMON_CREATURE_II_3,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 58: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_SUMMON_CREATURE_III_5,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 59: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_FIREBALL_10,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 60: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_LIGHTNING_BOLT_10,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 61: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_MAGIC_MISSILE_9,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 62: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_MELFS_ACID_ARROW_9,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
case 63: ipAdd=ItemPropertyCastSpell(IP_CONST_CASTSPELL_RESTORATION_7,IP_CONST_CASTSPELL_NUMUSES_1_CHARGE_PER_USE); break;
|
|
}
|
|
AddItemProperty(DURATION_TYPE_PERMANENT,ipAdd,OBJECT_SELF);
|
|
}
|