GammaAge/_module/nss/trigger_warn_dms.nss
Jaysyn904 b927d0faf8 File re-organization.
File re-organization.  Added module builder & hak builder.
2021-09-16 10:15:32 -04:00

18 lines
503 B
Plaintext

// trigger_warn_dms
// grabs the name of the entering object (usually a PC) and the area name
// and sends a message on the DM channel containing the information
// To use, place in an Area OnEnter handler or paint the custom "Trigger_Warn"
void main()
{
object oEntering=GetEnteringObject();
string sEnteringName=GetName(oEntering);
object oArea = GetArea(oEntering);
string sAreaName = GetName(oArea);
string sTellMe = sEnteringName + " just entered " + sAreaName;
SendMessageToAllDMs(sTellMe);
}