Further PRC integration

Further PRC integration.  Fixed Rod of Ruin.  Full compile.
This commit is contained in:
Jaysyn904
2022-10-10 08:16:23 -04:00
parent b257fba4d9
commit 2bf42182fd
1710 changed files with 1758 additions and 244 deletions

View File

@@ -1,24 +1,34 @@
//Put this script OnOpen
#include "prc_class_const"
void main()
{
object oPC = GetLastUnlocked();
object oPC = GetLastUnlocked();
int nClass;
nClass = GetLevelByClass(CLASS_TYPE_ROGUE, oPC)
+GetLevelByClass(CLASS_TYPE_NINJA, oPC)
+GetLevelByClass(CLASS_TYPE_SCOUT, oPC)
+GetLevelByClass(CLASS_TYPE_BEGUILER, oPC)
+GetLevelByClass(CLASS_TYPE_FACTOTUM, oPC)
+GetLevelByClass(CLASS_TYPE_PSYCHIC_ROGUE, oPC);
if (!GetIsPC(oPC)) return;
if (!GetIsPC(oPC)) return;
if (nClass <= 0)
{
SendMessageToPC(oPC, "You may not pass!");
if ((GetLevelByClass(CLASS_TYPE_ROGUE, oPC)==0))
{
SendMessageToPC(oPC, "You may not pass!");
ActionCloseDoor(OBJECT_SELF);
ActionCloseDoor(OBJECT_SELF);
SetLocked(OBJECT_SELF, TRUE);
}
SetLocked(OBJECT_SELF, TRUE);
else
{
SendMessageToPC(oPC, "You may pass.");
}
}
else
{
SendMessageToPC(oPC, "You may pass.");
}
}
}