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:
@@ -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.");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user