Added DMFI
Added DMFI. Set Diamond Golem appearance size to large. Full compile. Updated release archive.
This commit is contained in:
@@ -32,6 +32,21 @@ void main()
|
||||
// predefined patterns
|
||||
int nMatch = GetListenPatternNumber();
|
||||
object oShouter = GetLastSpeaker();
|
||||
|
||||
// 2008.05.25 tsunami282 - removed for NWN 1.69 (no longer needed)
|
||||
//DMFI CODE ADDITIONS BEGIN HERE
|
||||
// if (GetIsPC(oShouter) || GetIsDM(oShouter) || GetIsDMPossessed(oShouter))
|
||||
// {
|
||||
// ExecuteScript("dmfi_voice_exe", OBJECT_SELF);
|
||||
// }
|
||||
|
||||
if (nMatch == -1 && GetIsPC(oShouter) &&(GetLocalInt(GetModule(), "dmfi_AllMute") || GetLocalInt(OBJECT_SELF, "dmfi_Mute")))
|
||||
{
|
||||
SendMessageToAllDMs(GetName(oShouter) + " is trying to speak to a muted NPC, " + GetName(OBJECT_SELF) + ", in area " + GetName(GetArea(OBJECT_SELF)));
|
||||
SendMessageToPC(oShouter, "This NPC is muted. A DM will be here shortly.");
|
||||
return;
|
||||
}
|
||||
//DMFI CODE ADDITIONS END HERE
|
||||
|
||||
if (nMatch == -1)
|
||||
{
|
||||
|
Reference in New Issue
Block a user