PoA_PRC8/module/nss/royalroguesecret.nss
Jaysyn904 128e7e59a4 Initial upload
Initial upload
2022-10-07 14:20:31 -04:00

37 lines
826 B
Plaintext

location lTarget;
object oTarget;
//Put this script OnEnter
void main()
{
object oPC = GetEnteringObject();
int r = GetLevelByClass(CLASS_TYPE_ROGUE, oPC);
int s = 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!");
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)));
}
}
}