2022-10-09 23:07:18 -04:00
|
|
|
//Put this script OnEnter
|
|
|
|
|
2022-10-10 08:16:23 -04:00
|
|
|
#include "prc_class_const"
|
2022-10-09 23:07:18 -04:00
|
|
|
|
2022-10-10 08:16:23 -04:00
|
|
|
void main()
|
|
|
|
{
|
|
|
|
location lTarget;
|
|
|
|
object oTarget;
|
|
|
|
|
|
|
|
object oPC = GetEnteringObject();
|
|
|
|
|
|
|
|
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 (nClass <= 20)
|
|
|
|
{
|
|
|
|
//:: Only if they can spot it!
|
|
|
|
if(nSearch >= 30)
|
|
|
|
{
|
|
|
|
FloatingTextStringOnCreature("You notice a strange looking crack in the wall.", oPC, FALSE);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (nClass >= 21)
|
|
|
|
{
|
|
|
|
if(nSearch >= 34)
|
|
|
|
{
|
|
|
|
SendMessageToPC(oPC, "You found a secret lever!");
|
|
|
|
|
|
|
|
oTarget = GetWaypointByTag("royalrogueway");
|
|
|
|
|
|
|
|
lTarget = GetLocation(oTarget);
|
|
|
|
|
|
|
|
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
|
|
|
|
|
|
|
|
DelayCommand(2.0, AssignCommand(oPC, ClearAllActions()));
|
|
|
|
|
|
|
|
DelayCommand(2.0, AssignCommand(oPC, ActionJumpToLocation(lTarget)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|