OnNPCDisconnect: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Welcome| desc=This function is called when an NPC disconnect from the server.| params=<syntaxhighlight lang="lua">(reason)</syntaxhighlight> <poem>::reason : The reason why...") |
(No difference)
|
Revision as of 13:49, 9 March 2022
Description:
This function is called when an NPC disconnect from the server.
Parameters:
(reason)
reason : The reason why the bot has disconnected from the server.
Return Values:
This function does not return any specific values.
Example
function onNPCDisconnect(reason)
{
print("Disconnected from server. Reason:"+reason+"\n");
}