PoA_PRC8/_module/nss/sagesecret.nss
Jaysyn904 8d97886c3f Changed folder name.
Changed folder name.
2022-10-07 21:08:37 -04:00

43 lines
829 B
Plaintext

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));
}
}