Further PRC integration
Further PRC integration. Fixed Rod of Ruin. Full compile.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user