75 lines
3.8 KiB
Plaintext
75 lines
3.8 KiB
Plaintext
void main()
|
|
{
|
|
int iEnchLvl = (GetLocalInt(OBJECT_SELF,"lvl")+d4(1));
|
|
itemproperty ipAdd;
|
|
|
|
|
|
switch(iEnchLvl)
|
|
{
|
|
case 1: ipAdd=ItemPropertyEnhancementBonus(1); break; //impossible result
|
|
case 2: ipAdd=ItemPropertyAttackBonus(1); break;
|
|
case 3: ipAdd=ItemPropertyAttackBonus(1); break;
|
|
case 4: ipAdd=ItemPropertyAttackBonus(1); break;
|
|
case 5: ipAdd=ItemPropertyAttackBonus(1); break;
|
|
case 6: ipAdd=ItemPropertyAttackBonus(1); break;
|
|
case 7: ipAdd=ItemPropertyAttackBonus(1); break;
|
|
case 8: ipAdd=ItemPropertyAttackBonus(1); break;
|
|
case 9: ipAdd=ItemPropertyAttackBonus(1); break;
|
|
case 10: ipAdd=ItemPropertyAttackBonus(1); break;
|
|
case 11: ipAdd=ItemPropertyAttackBonus(1); break;
|
|
case 12: ipAdd=ItemPropertyAttackBonus(1); break;
|
|
case 13: ipAdd=ItemPropertyAttackBonus(1); break;
|
|
case 14: ipAdd=ItemPropertyAttackBonus(1); break;
|
|
case 15: ipAdd=ItemPropertyAttackBonus(1); break;
|
|
case 16: ipAdd=ItemPropertyAttackBonus(2); break;
|
|
case 17: ipAdd=ItemPropertyAttackBonus(2); break;
|
|
case 18: ipAdd=ItemPropertyAttackBonus(2); break;
|
|
case 19: ipAdd=ItemPropertyAttackBonus(2); break;
|
|
case 20: ipAdd=ItemPropertyAttackBonus(2); break;
|
|
case 21: ipAdd=ItemPropertyAttackBonus(2); break;
|
|
case 22: ipAdd=ItemPropertyAttackBonus(2); break;
|
|
case 23: ipAdd=ItemPropertyRegeneration(1); break;
|
|
case 24: ipAdd=ItemPropertyAttackBonus(3); break;
|
|
case 25: ipAdd=ItemPropertyAttackBonus(3); break;
|
|
case 26: ipAdd=ItemPropertyAttackBonus(3); break;
|
|
case 27: ipAdd=ItemPropertyAttackBonus(3); break;
|
|
case 28: ipAdd=ItemPropertyAttackBonus(3); break;
|
|
case 29: ipAdd=ItemPropertyRegeneration(2); break;
|
|
case 30: ipAdd=ItemPropertyAttackBonus(4); break;
|
|
case 31: ipAdd=ItemPropertyAttackBonus(4); break;
|
|
case 32: ipAdd=ItemPropertyAttackBonus(4); break;
|
|
case 33: ipAdd=ItemPropertyAttackBonus(4); break;
|
|
case 34: ipAdd=ItemPropertyAttackBonus(4); break;
|
|
case 35: ipAdd=ItemPropertyRegeneration(3); break;
|
|
case 36: ipAdd=ItemPropertyAttackBonus(5); break;
|
|
case 37: ipAdd=ItemPropertyAttackBonus(5); break;
|
|
case 38: ipAdd=ItemPropertyAttackBonus(5); break;
|
|
case 39: ipAdd=ItemPropertyAttackBonus(5); break;
|
|
case 40: ipAdd=ItemPropertyAttackBonus(5); break;
|
|
case 41: ipAdd=ItemPropertyAttackBonus(6); break;
|
|
case 42: ipAdd=ItemPropertyAttackBonus(6); break;
|
|
case 43: ipAdd=ItemPropertyAttackBonus(6); break;
|
|
case 44: ipAdd=ItemPropertyAttackBonus(6); break;
|
|
case 45: ipAdd=ItemPropertyAttackBonus(6); break;
|
|
case 46: ipAdd=ItemPropertyRegeneration(4); break;
|
|
case 47: ipAdd=ItemPropertyAttackBonus(7); break;
|
|
case 48: ipAdd=ItemPropertyAttackBonus(7); break;
|
|
case 49: ipAdd=ItemPropertyAttackBonus(7); break;
|
|
case 50: ipAdd=ItemPropertyAttackBonus(7); break;
|
|
case 51: ipAdd=ItemPropertyAttackBonus(7); break;
|
|
case 52: ipAdd=ItemPropertyAttackBonus(8); break;
|
|
case 53: ipAdd=ItemPropertyAttackBonus(8); break;
|
|
case 54: ipAdd=ItemPropertyAttackBonus(8); break;
|
|
case 55: ipAdd=ItemPropertyAttackBonus(8); break;
|
|
case 56: ipAdd=ItemPropertyAttackBonus(8); break;
|
|
case 57: ipAdd=ItemPropertyRegeneration(5); break;
|
|
case 58: ipAdd=ItemPropertyAttackBonus(9); break;
|
|
case 59: ipAdd=ItemPropertyAttackBonus(9); break;
|
|
case 60: ipAdd=ItemPropertyAttackBonus(9); break;
|
|
case 61: ipAdd=ItemPropertyAttackBonus(9); break;
|
|
case 62: ipAdd=ItemPropertyAttackBonus(10); break;
|
|
case 63: ipAdd=ItemPropertyAttackBonus(10); break;
|
|
}
|
|
AddItemProperty(DURATION_TYPE_PERMANENT,ipAdd,OBJECT_SELF);
|
|
}
|