From 71392bc0305b06e18c99892d0a5b3fb4aaaf22c9 Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 6 Dec 2007 12:59:12 +0000 Subject: - The default event script behaviour is to trigger on labels rather than NPCs now. - Removed several script config options which break NPC compatibility when you mess with them (event_script_type, event_requires_trigger, die_event_name, kill_pc_event_name, kill_mob_event_name, logout_event_name, login_event_name, loadmap_event_name, baselvup_event_name, joblvup_event_name) - LoadMap events no longer set the variable "@maploaded$" to the name of the new map. - Optimized/simplified the code now that the previous config options were removed. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11859 54d463be-8e91-2dee-dedb-b68131a5f0ec --- doc/script_commands.txt | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'doc/script_commands.txt') diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 35b1958f5..40c8e9224 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -868,16 +868,28 @@ This label will be executed if a trigger area is defined for the NPC object it's in. If it isn't present, the execution will start from the beginning of the NPC code. The RID of the triggering character object will be attached. +OnPCLoginEvent: +OnPCLogoutEvent: +OnPCBaseLvUpEvent: +OnPCJobLvUpEvent: + +It's pretty obvious when these four special labels will be invoked. For more +information, see 'npc/sample/PCLoginEvent.txt' + OnPCDieEvent: + +This special label triggers when a player dies. The variable 'killerrid' is +set to the ID of the killer. + OnPCKillEvent: -OnPCLogoutEvent: -OnPCLoginEvent: -These four special labels will be invoked if you have set 'event_script_type' -value in your 'script_athena.conf' to 1, and you can change their names by -altering the configuration options in 'script_athena.conf'. It's pretty obvious -when those will get triggered. For more information, see -'npc/sample/PCLoginEvent.txt' +This special label triggers when a player kills another player. The variable +'killedrid' is set to the ID of the player killed. + +OnNPCKillEvent: + +This special label triggers when a player kills a monster. The variable +'killedrid' is set to the Class of the monster killed. OnPCLoadMapEvent: -- cgit v1.2.3-70-g09d2