PoA_PRC8/_module/nss/royalroguesecret.nss
Jaysyn904 6937da5f87 Further PRC integration
Further PRC integration. Updated racial & class hooks.  Updated NPC AI  for PRC NPC events.  Updated loot generation tables for PRC classes.
2022-10-09 23:07:18 -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)));
}
}
}