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 edit summary |
||
Line 5: | Line 5: | ||
retvals=This function does not return any specific values.| | retvals=This function does not return any specific values.| | ||
example=<source lang="lua"> | example=<source lang="lua"> | ||
function | function OnNPCDisconnect(reason) | ||
{ | { | ||
print("Disconnected from server. Reason:"+reason+"\n"); | print("Disconnected from server. Reason:"+reason+"\n"); |
Latest revision as of 13:50, 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"); }