Added DMFI

Added DMFI.  Set Diamond Golem appearance size to large.  Full compile.  Updated release archive.
This commit is contained in:
Jaysyn904
2024-12-28 18:10:38 -05:00
parent f3057de0bd
commit 37c79b6d57
536 changed files with 235552 additions and 62 deletions

View File

@@ -0,0 +1,31 @@
//::///////////////////////////////////////////////
//:: FileName re_oncliententer.nss
//:://////////////////////////////////////////////
/*
This is part of the BESIE Random Encounter System.
It is intended to be placed in the module
OnClientEnter handler. Its purpose is to set a
local int on the DM so the he does not produce
random encounters when possessing an NPC.
*/
//:://////////////////////////////////////////////
//:: Created By: Ray Miller
//:: Created On: 10/14/02
//:://////////////////////////////////////////////
void main()
{
object oPC = GetEnteringObject();
int bBESIEWidget;
if(GetIsDM(oPC))
{
SetLocalInt(GetModule(), "re_" + GetPCPlayerName(oPC), TRUE);
object oItem = GetFirstItemInInventory(oPC);
while(GetIsObjectValid(oItem))
{
if(GetTag(oItem) == "BESIEWidget") bBESIEWidget = TRUE;
oItem = GetNextItemInInventory(oPC);
}
if(!bBESIEWidget) CreateItemOnObject("besiewidget", oPC);
}
else DeleteLocalInt(GetModule(), "re_" + GetName(oPC));
}