Quest and script fixes for quest
This commit is contained in:
20
_module/nss/kingannounce.nss
Normal file
20
_module/nss/kingannounce.nss
Normal file
@@ -0,0 +1,20 @@
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetEnteringObject();
|
||||
string sName = GetName(oPC, FALSE);
|
||||
object oKingsGuard = GetNearestObjectByTag("KingsGuard");
|
||||
|
||||
// Only fire once.
|
||||
if ( GetLocalInt(GetModule(), "DO_ONCE__" + sName))
|
||||
return;
|
||||
|
||||
if (GetIsPC(oPC))
|
||||
{
|
||||
AssignCommand(oKingsGuard, ClearAllActions());
|
||||
AssignCommand(oKingsGuard, ActionSpeakString(sName + " has entered the Court!", TALKVOLUME_TALK));
|
||||
SetLocalInt(GetModule(), "DO_ONCE__" + sName, TRUE);
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user