summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-11-23 09:26:00 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-11-23 09:26:00 +0000
commit7d7f935061145b4f387ce904ec3d1c44612341bb (patch)
tree81961130b37c75bd7915bc46247fea87c3709f40 /doc
parent012a470926be6d0d0f51f877c6ba1ffd3422ea3a (diff)
downloadhercules-7d7f935061145b4f387ce904ec3d1c44612341bb.tar.gz
hercules-7d7f935061145b4f387ce904ec3d1c44612341bb.tar.bz2
hercules-7d7f935061145b4f387ce904ec3d1c44612341bb.tar.xz
hercules-7d7f935061145b4f387ce904ec3d1c44612341bb.zip
* Added script command pushpc, which is required by newer scripts.
- Moved knockback-part of skill_blown into unit_blown, to allow unconditional knockback required by pushpc without copy-pasting code. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/renewal@14492 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'doc')
-rw-r--r--doc/script_commands.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 1c75bb062..29e9edee4 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -135,6 +135,8 @@
//= 3.28.20091119
//= Added showevent and searchitem commands [Skotlex]
//= Added info on strcharinfo(3) [Skotlex]
+//= 3.29.20101123
+//= Added 'pushpc' command. [Ai4rei]
//=========================================================
This document is a reference manual for all the scripting commands and functions
@@ -3870,6 +3872,22 @@ you can look at, this may help you create a Stylist of your own:
'custom\dye.txt'
---------------------------------------
+
+*pushpc <direction>,<cells>;
+
+This command will push the currently attached player to given direction by given
+amount of square cells. Direction is the same as used when declaring npcs, and
+can be specified by using one of the DIR_* constants (db/const.txt).
+
+The knock-back is not restricted by items or map flags, only obstacles are taken
+into account. If there is not enough space to perform the push (e.g. due to a
+wall), the character is pushed only up to the obstacle.
+
+ // pushes the character 5 cells in 3 o'clock direction from it's
+ // current position.
+ pushpc DIR_EAST, 5;
+
+---------------------------------------
\\
4,1.- Item-related commands
\\