Changed folder name.
Changed folder name.
This commit is contained in:
34
_module/nss/allowcleric2open.nss
Normal file
34
_module/nss/allowcleric2open.nss
Normal file
@@ -0,0 +1,34 @@
|
||||
#include "prc_class_const"
|
||||
|
||||
string sAllow;
|
||||
|
||||
//Put this script OnOpen
|
||||
void main()
|
||||
{
|
||||
object oPC = GetLastOpenedBy();
|
||||
int nClass;
|
||||
|
||||
nClass = GetLevelByClass(CLASS_TYPE_CLERIC, oPC)
|
||||
+GetLevelByClass(CLASS_TYPE_FAVOURED_SOUL, oPC)
|
||||
+GetLevelByClass(CLASS_TYPE_HEALER, oPC)
|
||||
+GetLevelByClass(CLASS_TYPE_SHAMAN, oPC)
|
||||
+GetLevelByClass(CLASS_TYPE_ARCHIVIST, oPC);
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
if (nClass > 9)
|
||||
{
|
||||
sAllow="You feel the power of your pathos wash over you as you open the container.";
|
||||
|
||||
SendMessageToPC(oPC, sAllow);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
AssignCommand(oPC, ClearAllActions());
|
||||
|
||||
object oSelf = OBJECT_SELF;
|
||||
|
||||
AssignCommand(oPC, ActionMoveAwayFromObject(oSelf));
|
||||
|
||||
}
|
Reference in New Issue
Block a user