Initial commit
Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
27
_module/nss/lel_gong.nss
Normal file
27
_module/nss/lel_gong.nss
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
Door bells for forts on Anphillia. Player uses the gong to send a "gong" message
|
||||
to players of the related faction. At deployment, make sure the tag of the placable
|
||||
is matched with the faction name, or it will not work!
|
||||
*/
|
||||
#include "hc_inc"
|
||||
#include "anph_inc"
|
||||
|
||||
void main()
|
||||
{
|
||||
int delayID = 5001; //any number will do. This delay ID is local to the gong.
|
||||
int gongTimer = GetLocalInt(OBJECT_SELF, "gongTimer");
|
||||
if(gongTimer > 0)
|
||||
{
|
||||
SendMessageToPC(GetLastUsedBy(), "The gong has recently been rung. Please wait for it to settle down.");
|
||||
}
|
||||
else
|
||||
{
|
||||
SetLocalInt(OBJECT_SELF, "gongTimer", 5); // set gong ringing interval (in minutes)
|
||||
|
||||
SendMessageToPC(GetLastUsedBy(), "You hit the gong");
|
||||
PlaySound("as_cv_bell2");
|
||||
//Uses anphillia broadcast message. Make sure gong tag = faction name!
|
||||
AnphSendMessageToTeam (GetTag(OBJECT_SELF), "The gong at the gates rings loudly throughout the fort.");
|
||||
DelayCommand(60.0, SignalEvent(OBJECT_SELF, EventUserDefined(delayID)));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user