Files
Anphillia_PRC8/_module/nss/0e_onclientload.nss
Jaysyn904 d0a4ee6f1f 2025/11/30 Update
Updated for NWN:EE 37-17
Updated NWNxEE libraries.
Updated nim tooling
Updated PEPs
Associated new GUI module event script.
Full compile.
2025-12-01 00:00:34 -05:00

20 lines
802 B
Plaintext

/*//////////////////////////////////////////////////////////////////////////////
Script: 0e_onclientload
Programmer: Philos
////////////////////////////////////////////////////////////////////////////////
Monster OnClientLoad script;
This will fire when the client is loading.
If you have your own OnClientLoad event script just take the below
script lines and add them into your OnClientLoad script.
*///////////////////////////////////////////////////////////////////////////////
#include "0i_menus_dm"
#include "0i_module"
void main()
{
object oCreature = OBJECT_SELF;
// This can be moved to the OnClientLoad script event of your module.
if(ai_GetIsCharacter(oCreature)) ai_CheckPCStart(oCreature);
else if(ai_GetIsDungeonMaster(oCreature)) ai_CheckDMStart(oCreature);
}