HoS_PRC8/_mod/_module/nss/rts_darkartifact.nss

20 lines
682 B
Plaintext
Raw Permalink Normal View History

2024-11-25 19:36:07 -05:00
void main()
{
object oPC=GetItemActivator();
string sID=GetLocalString(oPC,"sTeamID");
object oTarget;
location lLoc=GetItemActivatedTargetLocation();
oTarget=GetWaypointByTag(sID+"_START");
if (GetArea(oTarget)==GetArea(oPC))
{ // okay to activate item
oTarget=CreateObject(OBJECT_TYPE_PLACEABLE,"rts_marker",lLoc);
SetLocalObject(oPC,"oTarget",oTarget);
AssignCommand(oPC,ClearAllActions(TRUE));
AssignCommand(oPC,ActionStartConversation(oPC,"darkartifact",TRUE,FALSE));
} // okay to activate item
else
{ // not in lair
SendMessageToPC(oPC,"You may only activate this artifact from within your lair.");
} // not in lair
}