Further PRC integration

Further PRC integration.  Class & race integration.  Updated PoA loot spawn scripts for PRC classes.  Integrated PRC NPC event scripts.  Full compile.
This commit is contained in:
Jaysyn904
2022-10-09 22:53:12 -04:00
parent 55766b63b5
commit baf0860664
1708 changed files with 1746 additions and 242 deletions

View File

@@ -1,36 +1,50 @@
location lTarget;
object oTarget;
//Put this script OnEnter
#include "prc_class_const"
void main()
{
location lTarget;
object oTarget;
object oPC = GetEnteringObject();
object oPC = GetEnteringObject();
int r = GetLevelByClass(CLASS_TYPE_ROGUE, oPC);
int s = GetSkillRank(SKILL_SEARCH, oPC, TRUE);
int nClass;
nClass = GetLevelByClass(CLASS_TYPE_ROGUE, oPC)
+GetLevelByClass(CLASS_TYPE_NINJA, oPC)
+GetLevelByClass(CLASS_TYPE_SCOUT, oPC)
+GetLevelByClass(CLASS_TYPE_FACTOTUM, oPC)
+GetLevelByClass(CLASS_TYPE_PSYCHIC_ROGUE, oPC);
int nSearch = GetSkillRank(SKILL_SEARCH, oPC, TRUE);
//They must be a level 21 rogue nothing happens
if (r <=20)
{
//Only if they can spot it!
if(s >=30)
FloatingTextStringOnCreature("You notice a strange looking crack in the wall.", oPC, FALSE);
}
else if (r >=21)
{
if(s >=34)
{
SendMessageToPC(oPC, "You found a secrete lever!");
//:: They must be a level 21 rogue nothing happens
if (nClass <= 20)
{
//:: Only if they can spot it!
if(nSearch >= 30)
{
FloatingTextStringOnCreature("You notice a strange looking crack in the wall.", oPC, FALSE);
}
}
oTarget = GetWaypointByTag("royalrogueway");
else if (nClass >= 21)
{
if(nSearch >= 34)
{
SendMessageToPC(oPC, "You found a secret lever!");
lTarget = GetLocation(oTarget);
oTarget = GetWaypointByTag("royalrogueway");
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
lTarget = GetLocation(oTarget);
DelayCommand(2.0, AssignCommand(oPC, ClearAllActions()));
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
DelayCommand(2.0, AssignCommand(oPC, ActionJumpToLocation(lTarget)));
}
}
}
DelayCommand(2.0, AssignCommand(oPC, ClearAllActions()));
DelayCommand(2.0, AssignCommand(oPC, ActionJumpToLocation(lTarget)));
}
}
}