75 lines
4.1 KiB
Plaintext
75 lines
4.1 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=ItemPropertyEnhancementBonus(1); break;
|
|
case 3: ipAdd=ItemPropertyEnhancementBonus(1); break;
|
|
case 4: ipAdd=ItemPropertyEnhancementBonus(1); break;
|
|
case 5: ipAdd=ItemPropertyEnhancementBonus(1); break;
|
|
case 6: ipAdd=ItemPropertyEnhancementBonus(1); break;
|
|
case 7: ipAdd=ItemPropertyEnhancementBonus(1); break;
|
|
case 8: ipAdd=ItemPropertyEnhancementBonus(1); break;
|
|
case 9: ipAdd=ItemPropertyEnhancementBonus(1); break;
|
|
case 10: ipAdd=ItemPropertyEnhancementBonus(1); break;
|
|
case 11: ipAdd=ItemPropertyEnhancementBonus(1); break;
|
|
case 12: ipAdd=ItemPropertyEnhancementBonus(1); break;
|
|
case 13: ipAdd=ItemPropertyEnhancementBonus(1); break;
|
|
case 14: ipAdd=ItemPropertyEnhancementBonus(1); break;
|
|
case 15: ipAdd=ItemPropertyEnhancementBonus(1); break;
|
|
case 16: ipAdd=ItemPropertyEnhancementBonus(2); break;
|
|
case 17: ipAdd=ItemPropertyEnhancementBonus(2); break;
|
|
case 18: ipAdd=ItemPropertyEnhancementBonus(2); break;
|
|
case 19: ipAdd=ItemPropertyEnhancementBonus(2); break;
|
|
case 20: ipAdd=ItemPropertyEnhancementBonus(2); break;
|
|
case 21: ipAdd=ItemPropertyEnhancementBonus(2); break;
|
|
case 22: ipAdd=ItemPropertyEnhancementBonus(2); break;
|
|
case 23: ipAdd=ItemPropertyRegeneration(1); break;
|
|
case 24: ipAdd=ItemPropertyEnhancementBonus(3); break;
|
|
case 25: ipAdd=ItemPropertyEnhancementBonus(3); break;
|
|
case 26: ipAdd=ItemPropertyEnhancementBonus(3); break;
|
|
case 27: ipAdd=ItemPropertyEnhancementBonus(3); break;
|
|
case 28: ipAdd=ItemPropertyEnhancementBonus(3); break;
|
|
case 29: ipAdd=ItemPropertyRegeneration(2); break;
|
|
case 30: ipAdd=ItemPropertyEnhancementBonus(4); break;
|
|
case 31: ipAdd=ItemPropertyEnhancementBonus(4); break;
|
|
case 32: ipAdd=ItemPropertyEnhancementBonus(4); break;
|
|
case 33: ipAdd=ItemPropertyEnhancementBonus(4); break;
|
|
case 34: ipAdd=ItemPropertyEnhancementBonus(4); break;
|
|
case 35: ipAdd=ItemPropertyRegeneration(3); break;
|
|
case 36: ipAdd=ItemPropertyEnhancementBonus(5); break;
|
|
case 37: ipAdd=ItemPropertyEnhancementBonus(5); break;
|
|
case 38: ipAdd=ItemPropertyEnhancementBonus(5); break;
|
|
case 39: ipAdd=ItemPropertyEnhancementBonus(5); break;
|
|
case 40: ipAdd=ItemPropertyEnhancementBonus(5); break;
|
|
case 41: ipAdd=ItemPropertyEnhancementBonus(6); break;
|
|
case 42: ipAdd=ItemPropertyEnhancementBonus(6); break;
|
|
case 43: ipAdd=ItemPropertyEnhancementBonus(6); break;
|
|
case 44: ipAdd=ItemPropertyEnhancementBonus(6); break;
|
|
case 45: ipAdd=ItemPropertyEnhancementBonus(6); break;
|
|
case 46: ipAdd=ItemPropertyRegeneration(4); break;
|
|
case 47: ipAdd=ItemPropertyEnhancementBonus(7); break;
|
|
case 48: ipAdd=ItemPropertyEnhancementBonus(7); break;
|
|
case 49: ipAdd=ItemPropertyEnhancementBonus(7); break;
|
|
case 50: ipAdd=ItemPropertyEnhancementBonus(7); break;
|
|
case 51: ipAdd=ItemPropertyEnhancementBonus(7); break;
|
|
case 52: ipAdd=ItemPropertyEnhancementBonus(8); break;
|
|
case 53: ipAdd=ItemPropertyEnhancementBonus(8); break;
|
|
case 54: ipAdd=ItemPropertyEnhancementBonus(8); break;
|
|
case 55: ipAdd=ItemPropertyEnhancementBonus(8); break;
|
|
case 56: ipAdd=ItemPropertyEnhancementBonus(8); break;
|
|
case 57: ipAdd=ItemPropertyRegeneration(5); break;
|
|
case 58: ipAdd=ItemPropertyEnhancementBonus(9); break;
|
|
case 59: ipAdd=ItemPropertyEnhancementBonus(9); break;
|
|
case 60: ipAdd=ItemPropertyEnhancementBonus(9); break;
|
|
case 61: ipAdd=ItemPropertyEnhancementBonus(9); break;
|
|
case 62: ipAdd=ItemPropertyEnhancementBonus(10); break;
|
|
case 63: ipAdd=ItemPropertyEnhancementBonus(10); break;
|
|
}
|
|
AddItemProperty(DURATION_TYPE_PERMANENT,ipAdd,OBJECT_SELF);
|
|
}
|