HoS_PRC8/_mod/_module/nss/pagemsg.nss
Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

23 lines
591 B
Plaintext

// pagemsg - Determine which direction to go next
void main()
{
object oMe=OBJECT_SELF;
object oTarget=GetLocalObject(oMe,"oMsgTarget");
string sID;
int nDest=0;
if (oTarget!=OBJECT_INVALID)
{ // target exists
sID=GetLocalString(oTarget,"sTeamID");
if (sID=="DWF") nDest=14;
else if (sID=="UNC") nDest=17;
else if (sID=="UND") nDest=20;
else if (sID=="SPID") nDest=23;
} // target exists
else
{ // despawn
DestroyObject(oMe);
} // despawn
if (nDest=0) DestroyObject(oMe);
SetLocalString(oMe,"sGNBDTag",IntToString(nDest));
}