From 09b2f259b86749e57b1179d795f19f495c5defab Mon Sep 17 00:00:00 2001
From: Skotlex <Skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>
Date: Wed, 10 Aug 2011 15:52:59 +0000
Subject: - Commiting a bunch of cleanups piled up from the past few
 weeks/months/years. - Updated unitwarp so that an id of "0" causes the
 script's rid to be warped. - Updated the Brasilis ontouchNPC warp command to
 use unitwarp instead. - Signum Crucis's duration is now specified in the
 skill_cast_db file - Updated @warp/@jump commands so that when an invalid
 tile is specified, a nearby cell is chosen (rather than using a map-wide
 random value) - The if(req.weapon) code was broken, since req.weapon is never
 "0" for a skill. Updated the code so that the requirement of '99' (any
 weapon) is stored as 0, in order to make the checks effective. - Cleaned up
 the code for script command warpparty - Fixed the define itemdb_canrefine() -
 Cleaned up some the status_damage() function - Fixed map_random_dir(), which
 at times would pick cells that didn't preserve the required distance. - Some
 aesthetic code cleanups. - Fixed some possible crashes for skills where the
 code assumes the caster is a player. - Fixed a bunch of idiotic code-snippets
 that should have embarrassed whoever was responsible for them.

git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14929 54d463be-8e91-2dee-dedb-b68131a5f0ec
---
 doc/script_commands.txt | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

(limited to 'doc')

diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 42ccbcbbe..3cdc590a6 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -181,6 +181,8 @@
 //=       Documented special map names recognized by 'warpguild'. [Ai4rei]
 //= 3.45.20110709
 //=       Added 'getmercinfo' command. [Ai4rei]
+//= 3.46.20110810
+//=       Added information on OnTouchNPC and 'unitwarp' special case [Skotlex]
 //=========================================================
 
 This document is a reference manual for all the scripting commands and functions 
@@ -423,7 +425,8 @@ spanning triggerX cells in every direction across X and triggerY in every
 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.
+label. Monsters can also trigger the NPC, though the label 'OnTouchNPC:' is 
+used in this case.
 
 The code part is the script code that will execute whenever the NPC is 
 triggered. It may contain commands and function calls, descriptions of which 
@@ -5241,6 +5244,10 @@ Example(s):
 
 Okay, these commands should be fairly self explaining.
 For the emotions, you can look in db/const.txt for prefixes with e_
+PS: unitwarp supports a <GID> of zero, which causes the executor of the script to be affected. This can be used with OnTouchNPC to warp monsters:
+
+OnTouchNPC:
+	unitwarp 0,"this",-1,-1;
 
 ---------------------------------------
 
-- 
cgit v1.2.3-70-g09d2