ES_PRC8/_module/nss/watchman_sc.nss
Jaysyn904 08e84b4e71 Initial upload
Initial upload.
2023-11-14 12:09:02 -05:00

57 lines
1.2 KiB
Plaintext

//::///////////////////////////////////////////////
//:: User Defined Event for Caer Camlin Nightwatch
//:: user_nightwatch.nss
//:://////////////////////////////////////////////
/*
This makes a nightly patrolman close doors and hail/interrogate PCs
*/
//:://////////////////////////////////////////////
//:: Created By: Ralf Schemmann
//:: Created On: 23rd July 2002
//:://////////////////////////////////////////////
#include "NW_I0_GENERIC"
void main()
{
int nUser = GetUserDefinedEventNumber();
int nTeam;
if(nUser == 1002) // PERCEIVE
{
//get the last object seen
object oSeen = GetLastPerceived();
//if object was a PC, hail it
if (GetIsPC(oSeen))
{
nTeam = GetLocalInt(oSeen, "m_nTeam");
if (nTeam == 2) {
AdjustReputation(oSeen, OBJECT_SELF, -100);
}
}
}
else if(nUser == 1003) // END OF COMBAT
{
}
else if(nUser == 1004) // ON DIALOGUE
{
}
else if(nUser == 1005) // ATTACKED
{
}
else if(nUser == 1006) // DAMAGED
{
}
else if(nUser == 1007) // DEATH
{
}
else if(nUser == 1008) // DISTURBED
{
}
}