Lankhmar_PRC8/_module/nss/is_a_thief.nss

24 lines
625 B
Plaintext
Raw Permalink Normal View History

2025-04-03 12:54:47 -04:00
#include "prc_class_const"
int StartingConditional()
{
object oPC = GetPCSpeaker();
int iRogue = GetLevelByClass(CLASS_TYPE_ROGUE, oPC)
+ GetLevelByClass(CLASS_TYPE_SCOUT, oPC)
+ GetLevelByClass(CLASS_TYPE_BEGUILER, oPC)
+ GetLevelByClass(CLASS_TYPE_NINJA, oPC)
+ GetLevelByClass(CLASS_TYPE_FACTOTUM, oPC)
+ GetLevelByClass(CLASS_TYPE_PSYCHIC_ROGUE, oPC);
// Restrict based on the player's class
int iPassed = 0;
if(iRogue >= 1)
iPassed = 1;
if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_ASSASSIN, GetPCSpeaker()) >= 1))
iPassed = 1;
if(iPassed == 0)
return FALSE;
return TRUE;
}