RATDOG/_module/nss/henchlvl_arcanta.nss
Jaysyn904 0b86a6485c Updated scripts to use MyPRCGetRacialType
Updated scripts to use MyPRCGetRacialType.  Full compile.
2022-09-28 21:36:29 -04:00

21 lines
924 B
Plaintext

#include "prc_inc_racial"
int StartingConditional()
{
int iResult;
iResult = (GetClassByPosition(1, OBJECT_SELF) == CLASS_TYPE_ARCANE_ARCHER ||
GetClassByPosition(2, OBJECT_SELF) == CLASS_TYPE_ARCANE_ARCHER ||
GetClassByPosition(3, OBJECT_SELF) == CLASS_TYPE_ARCANE_ARCHER ||
GetClassByPosition(3, OBJECT_SELF) == CLASS_TYPE_INVALID) &&
(MyPRCGetRacialType(OBJECT_SELF) == RACIAL_TYPE_ELF ||
MyPRCGetRacialType(OBJECT_SELF) == RACIAL_TYPE_HALFELF) &&
(GetBaseAttackBonus(OBJECT_SELF) >= 6) &&
(GetHasFeat(FEAT_WEAPON_FOCUS_LONGBOW, OBJECT_SELF) ||
GetHasFeat(FEAT_WEAPON_FOCUS_SHORTBOW, OBJECT_SELF)) &&
(GetHasFeat(FEAT_POINT_BLANK_SHOT, OBJECT_SELF)) &&
(GetLevelByClass(CLASS_TYPE_SORCERER, OBJECT_SELF) >= 1 ||
GetLevelByClass(CLASS_TYPE_WIZARD, OBJECT_SELF) >= 1) &&
(GetLevelByClass(CLASS_TYPE_ARCANE_ARCHER, OBJECT_SELF) != 40);
return iResult;
}