diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-12-06 12:59:12 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-12-06 12:59:12 +0000 |
commit | 71392bc0305b06e18c99892d0a5b3fb4aaaf22c9 (patch) | |
tree | bcc6bedfb729d9b4e20baaba984c674b4642b946 /doc/script_commands.txt | |
parent | 09a89593b983a9ade807175192fcf63971748f7c (diff) | |
download | hercules-71392bc0305b06e18c99892d0a5b3fb4aaaf22c9.tar.gz hercules-71392bc0305b06e18c99892d0a5b3fb4aaaf22c9.tar.bz2 hercules-71392bc0305b06e18c99892d0a5b3fb4aaaf22c9.tar.xz hercules-71392bc0305b06e18c99892d0a5b3fb4aaaf22c9.zip |
- 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
Diffstat (limited to 'doc/script_commands.txt')
-rw-r--r-- | doc/script_commands.txt | 26 |
1 files changed, 19 insertions, 7 deletions
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: |