From 43d7a390b485a4bc46363e4136e26c92e2013515 Mon Sep 17 00:00:00 2001 From: skotlex Date: Tue, 27 Feb 2007 02:30:55 +0000 Subject: - Now when a player logs out while it's running an attached npctimer, OnTimerQuit of that npc will be invoked. - Updated scripts_command to add info on OnTimerQuit - Corrected the double login check in pc_authok git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9926 54d463be-8e91-2dee-dedb-b68131a5f0ec --- doc/script_commands.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc') diff --git a/doc/script_commands.txt b/doc/script_commands.txt index c512e2b8e..5d52abaa7 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -65,6 +65,8 @@ //= initnpctimer [Skotlex] //= 3.03.20070226 //= Updated makeitem and how to include " in strings [Lupus] +//= 3.03.20070228 +//= Added info on OnTimerQuit label to npctimer section. [Skotlex] //===== Compatible With =================================== //= LOL, can be used by anyone hopefully //===== Description ======================================= @@ -4872,6 +4874,10 @@ The other method to attach/detach a RID is through the script commands character the target for all character-referencing commands and functions, not to mention variables. +If the player that is attached to the npctimer logs out, the "OnTimerQuit:" +event label of that npc will be triggered, so you can do the appropiate +cleanup (the player is still attached when this event is triggered). + 'setnpctimer' will explicitly set the timer to a given tick. To make it useful, you will need the 'getnpctimer' function, which the type of information argument means: -- cgit v1.2.3-70-g09d2