Initial upload
Initial upload
This commit is contained in:
23
_module/nss/clericonly.nss
Normal file
23
_module/nss/clericonly.nss
Normal file
@@ -0,0 +1,23 @@
|
||||
#include "prc_class_const"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oDoor = OBJECT_SELF;
|
||||
|
||||
object oPC = GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC);
|
||||
|
||||
int nDivine = (GetLevelByClass(CLASS_TYPE_CLERIC, oPC)
|
||||
+GetLevelByClass(CLASS_TYPE_ARCHIVIST, oPC)
|
||||
+GetLevelByClass(CLASS_TYPE_FAVOURED_SOUL, oPC)
|
||||
+GetLevelByClass(CLASS_TYPE_HEALER, oPC)
|
||||
+GetLevelByClass(CLASS_TYPE_DRUID, oPC));
|
||||
|
||||
if (nDivine >=15){
|
||||
|
||||
AssignCommand(oDoor, ActionOpenDoor(oDoor)) ;
|
||||
SendMessageToPC(oPC, "You may pass.");
|
||||
}
|
||||
else{
|
||||
SendMessageToPC(oPC, "You will not pass.");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user