2025/07/18 Update
Added PEPS. Full compile.
This commit is contained in:
23
_module/nss/0e_onclientload.nss
Normal file
23
_module/nss/0e_onclientload.nss
Normal file
@@ -0,0 +1,23 @@
|
||||
/*//////////////////////////////////////////////////////////////////////////////
|
||||
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);
|
||||
// If this is a server you can add this as well.
|
||||
else if(AI_SERVER && (GetIsDM(oCreature) || GetIsPlayerDM(oCreature)))
|
||||
{
|
||||
ai_CheckPCStart(oCreature);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user