RoT2_PRC8/_module/nss/tab_onlevelup.nss
Jaysyn904 499aba4eb3 Initial upload
Initial upload
2023-09-25 18:13:22 -04:00

41 lines
2.7 KiB
Plaintext

//Created by Tab, Realms of Trintiy.
void main()
{
object oPC = GetPCLevellingUp();
int xp = GetXP(oPC);
if( GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_BASTARDSWORD, oPC) || GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_BATTLEAXE, oPC)
|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_CLUB, oPC)|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_CREATURE, oPC)
|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_DAGGER, oPC)|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_DART, oPC)
|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_DIREMACE, oPC)|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_DOUBLEAXE, oPC)
|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_DWAXE, oPC)|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_GREATAXE, oPC)
|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_GREATSWORD, oPC)|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_HALBERD, oPC)
|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_HANDAXE, oPC)|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_HEAVYCROSSBOW, oPC)
|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_HEAVYFLAIL, oPC)|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_HEAVYFLAIL, oPC)
|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_KAMA, oPC)|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_KATANA, oPC)
|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_KUKRI, oPC)|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_LIGHTCROSSBOW, oPC)
|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_LIGHTFLAIL, oPC)|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_LIGHTHAMMER, oPC)
|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_LIGHTMACE, oPC)|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_LONGBOW, oPC)
|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_LONGSWORD, oPC)|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_MORNINGSTAR, oPC)
|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_QUARTERSTAFF, oPC)|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_RAPIER, oPC)
|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_SCIMITAR, oPC)|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_SCYTHE, oPC)
|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_SHORTBOW, oPC)|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_SHORTSPEAR, oPC)
|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_SHORTSWORD, oPC)|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_SHURIKEN, oPC)
|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_SICKLE, oPC)|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_SLING, oPC)
|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_THROWINGAXE, oPC)|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_TWOBLADEDSWORD, oPC)
|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_UNARMED, oPC)|| GetHasFeat(FEAT_EPIC_DEVASTATING_CRITICAL_WARHAMMER, oPC)
)
{
SendMessageToPC(oPC, "We do not permit the feat Devastating Critical at this time. Please reselect your FEAT.");
SetXP(oPC,210000);
DelayCommand(0.5,SetXP(oPC,xp));
return;
}
}