Further PRC integration

Further PRC integration. Updated racial & class hooks.  Updated NPC AI  for PRC NPC events.  Updated loot generation tables for PRC classes.
This commit is contained in:
Jaysyn904
2022-10-09 23:07:18 -04:00
parent baf0860664
commit 6937da5f87
1708 changed files with 242 additions and 1746 deletions

View File

@@ -1,34 +1,24 @@
//Put this script OnOpen
#include "prc_class_const"
void main()
{
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;
object oPC = GetLastUnlocked();
if (nClass <= 0)
{
SendMessageToPC(oPC, "You may not pass!");
if (!GetIsPC(oPC)) return;
ActionCloseDoor(OBJECT_SELF);
if ((GetLevelByClass(CLASS_TYPE_ROGUE, oPC)==0))
{
SendMessageToPC(oPC, "You may not pass!");
SetLocked(OBJECT_SELF, TRUE);
}
ActionCloseDoor(OBJECT_SELF);
else
{
SendMessageToPC(oPC, "You may pass.");
}
SetLocked(OBJECT_SELF, TRUE);
}
}
else
{
SendMessageToPC(oPC, "You may pass.");
}
}