37 lines
944 B
Plaintext
37 lines
944 B
Plaintext
#include "prc_class_const"
|
|
|
|
//Put this script OnOpen
|
|
void main()
|
|
{
|
|
object oPC = GetLastOpenedBy();
|
|
|
|
int nGoodEvil = GetAlignmentGoodEvil(oPC); //:: 2 = Good
|
|
int nLawChaos = GetAlignmentLawChaos(oPC); //:: 4 = Lawful
|
|
|
|
int nAlignment = nGoodEvil + nLawChaos;
|
|
|
|
string sAllow;
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
if ((GetHasFeat(FEAT_TURN_UNDEAD, oPC) && nAlignment == 6))
|
|
|
|
/*if ((GetLevelByClass(CLASS_TYPE_PALADIN, oPC)
|
|
+GetLevelByClass(CLASS_TYPE_SOHEI, oPC)
|
|
+GetLevelByClass(CLASS_TYPE_SOLDIER_OF_LIGHT, oPC)
|
|
+GetLevelByClass(CLASS_TYPE_SACREDPURIFIER, oPC)
|
|
+GetLevelByClass(CLASS_TYPE_MORNINGLORD, oPC) >8))*/
|
|
{
|
|
sAllow="Your great purity of spirit allows you to disturb this ancient evil and open the coffin to put an end to Razhids true power.";
|
|
|
|
SendMessageToPC(oPC, sAllow);
|
|
|
|
return;
|
|
}
|
|
|
|
AssignCommand(oPC, ClearAllActions());
|
|
|
|
object oSelf = OBJECT_SELF;
|
|
AssignCommand(oPC, ActionMoveAwayFromObject(oSelf));
|
|
|
|
} |