summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-07 19:42:37 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-16 22:44:20 +0300
commit4e546bb97afdc3d4a0a29325b88942873ed676a3 (patch)
tree8c89ee32854f4fcde364a9692ec8d606c7dff446
parent3ea017f844af342a24b75c278e69b2821056c2a1 (diff)
downloadhercules-4e546bb97afdc3d4a0a29325b88942873ed676a3.tar.gz
hercules-4e546bb97afdc3d4a0a29325b88942873ed676a3.tar.bz2
hercules-4e546bb97afdc3d4a0a29325b88942873ed676a3.tar.xz
hercules-4e546bb97afdc3d4a0a29325b88942873ed676a3.zip
Add OnUnTouch event/label into scripts documentation.
-rw-r--r--doc/script_commands.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 4909699c3..3c99afcf1 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -259,7 +259,8 @@ direction across Y. Walking into that area will trigger the NPC. If no
'OnTouch:' special label is present in the NPC code, the execution will
start from the beginning of the script, otherwise, it will start from the
'OnTouch:' label. Monsters can also trigger the NPC, though the label
-'OnTouchNPC:' is used in this case.
+'OnTouchNPC:' is used in this case. If player left area npc will called
+if present label 'OnUnTouch'.
The code part is the script code that will execute whenever the NPC is
triggered. It may contain commands and function calls, descriptions of
@@ -1040,6 +1041,12 @@ OnTouch_:
Similar to OnTouch, but will only run one instance. Another character is
chosen once the triggering character leaves the area.
+OnUnTouch:
+
+This label will be executed if plater leave trigger area is defined for the NPC
+object it's in. If it isn't present, nothing will happend.
+The RID of the triggering character object will be attached.
+
OnPCLoginEvent:
OnPCLogoutEvent:
OnPCBaseLvUpEvent: