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

32 lines
809 B
Plaintext

// harv_c_show1 - Show harvest point 1?
int StartingConditional()
{
object oMod=GetModule();
object oPC=GetPCSpeaker();
string sID=GetLocalString(oPC,"sTeamID");
location lLoc=GetLocalLocation(oMod,"lHarvest1_"+sID);
object oArea=GetAreaFromLocation(lLoc);
float fX;
float fY;
float fZ;
vector vPos=GetPositionFromLocation(lLoc);
int nX;
int nY;
int nZ;
string sToken;
int nNum=1;
if (oArea!=OBJECT_INVALID)
{ // area exists
fX=vPos.x;
fY=vPos.y;
fZ=vPos.z;
nX=FloatToInt(fX);
nY=FloatToInt(fY);
nZ=FloatToInt(fZ);
sToken=GetName(oArea)+"("+IntToString(nX)+","+IntToString(nY)+","+IntToString(nZ)+")";
SetCustomToken(88000+nNum,sToken);
return TRUE;
} // area exists
return FALSE;
}