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