Changed folder name.
Changed folder name.
This commit is contained in:
36
_module/nss/royalroguesecret.nss
Normal file
36
_module/nss/royalroguesecret.nss
Normal file
@@ -0,0 +1,36 @@
|
||||
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)));
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user