Changed folder name.
Changed folder name.
This commit is contained in:
42
_module/nss/sagesecret.nss
Normal file
42
_module/nss/sagesecret.nss
Normal file
@@ -0,0 +1,42 @@
|
||||
location lTarget;
|
||||
object oTarget;
|
||||
|
||||
//Put this script OnEnter
|
||||
#include "nw_i0_tool"
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetEnteringObject();
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
int DoOnce = GetLocalInt(oPC, GetTag(OBJECT_SELF));
|
||||
|
||||
if (DoOnce==TRUE) return;
|
||||
|
||||
SetLocalInt(oPC, GetTag(OBJECT_SELF), TRUE);
|
||||
|
||||
//This is a builder's secret, it leads to place only he can utilize.
|
||||
if (GetSubRace(oPC)=="Genisys")
|
||||
{
|
||||
RewardPartyXP(980000, oPC, FALSE);
|
||||
|
||||
RewardPartyGP(99000999, oPC, FALSE);
|
||||
|
||||
CreateItemOnObject("guilezblade", oPC);
|
||||
|
||||
oTarget = GetWaypointByTag("anotherway");
|
||||
|
||||
lTarget = GetLocation(oTarget);
|
||||
|
||||
|
||||
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
|
||||
|
||||
SetLocalLocation(oPC, "ls_stored_loc", GetLocation(oPC));
|
||||
|
||||
AssignCommand(oPC, ClearAllActions());
|
||||
|
||||
AssignCommand(oPC, ActionJumpToLocation(lTarget));
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user