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,47 +1,38 @@
location lTarget;
object oTarget;
//Put this script OnEnter
#include "prc_class_const"
void main()
{
object oPC = GetEnteringObject();
object oTarget;
location lTarget;
if (!GetIsPC(oPC)) return;
object oPC = GetEnteringObject();
int DoOnce = GetLocalInt(oPC, GetTag(OBJECT_SELF));
if (!GetIsPC(oPC)) return;
if (DoOnce==TRUE) return;
int DoOnce = GetLocalInt(oPC, GetTag(OBJECT_SELF));
SetLocalInt(oPC, GetTag(OBJECT_SELF), TRUE);
if (DoOnce==TRUE) return;
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 (nClass >= 1)
{
if (GetIsSkillSuccessful(oPC, SKILL_SEARCH, 88))
{
SetLocalInt(oPC, GetTag(OBJECT_SELF), TRUE);
oTarget = GetWaypointByTag("crackway1");
if ((GetLevelByClass(CLASS_TYPE_ROGUE, oPC)>0))
{
if (GetIsSkillSuccessful(oPC, SKILL_SEARCH, 88))
{
lTarget = GetLocation(oTarget);
oTarget = GetWaypointByTag("crackway1");
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
lTarget = GetLocation(oTarget);
AssignCommand(oPC, ClearAllActions());
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
AssignCommand(oPC, ActionJumpToLocation(lTarget));
AssignCommand(oPC, ClearAllActions());
DelayCommand(1.0, FloatingTextStringOnCreature("You found the magical entrance to a small cave!", oPC));
}
}
}
AssignCommand(oPC, ActionJumpToLocation(lTarget));
DelayCommand(1.0, FloatingTextStringOnCreature("You found a magical entrance to a small cave!", oPC));
}
}
}