HoS_PRC8/_mod/_module/nss/pagemsg.nss

23 lines
591 B
Plaintext
Raw Normal View History

2024-11-25 19:36:07 -05:00
// 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));
}