summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgumi <mekolat@users.noreply.github.com>2017-06-03 12:52:53 -0400
committergumi <mekolat@users.noreply.github.com>2017-06-03 12:57:41 -0400
commit9913f13573d737b4c54c7cad23b77c6a940fe8f4 (patch)
tree7d7e1a7a04081ce9725f771402a88a09d859f5e6
parent53c6feb18fb994516945901853d845cdc5e27529 (diff)
downloadhercules-9913f13573d737b4c54c7cad23b77c6a940fe8f4.tar.gz
hercules-9913f13573d737b4c54c7cad23b77c6a940fe8f4.tar.bz2
hercules-9913f13573d737b4c54c7cad23b77c6a940fe8f4.tar.xz
hercules-9913f13573d737b4c54c7cad23b77c6a940fe8f4.zip
flag misceffect() as deprecated
-rw-r--r--doc/script_commands.txt9
-rw-r--r--src/map/script.c2
2 files changed, 8 insertions, 3 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index a7eb55073..34089f767 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -7635,6 +7635,10 @@ without event labels. If specified name is not found, command does nothing.
*misceffect(<effect number>)
+ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
+ @ /!\ This command is deprecated @
+ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
+
This command, if run from an NPC object that has a sprite, will call up a
specified effect number, centered on the NPC sprite. If the running code
does not have an object ID (a 'floating' NPC) or is not running from an
@@ -7643,8 +7647,9 @@ character who's RID got attached to the script, if any. For usable item
scripts, this command will create an effect centered on the player using
the item.
-A full list of known effects is found in 'doc/effect_list.txt'. The list
-of those that actually work may differ greatly between client versions.
+This command is deprecated and it should not be used in new scripts, as it is
+likely to be removed at a later time. Please use specialeffect instead,
+ie: specialeffect(<effect number>, <send target>, <unit id>)
---------------------------------------
diff --git a/src/map/script.c b/src/map/script.c
index 7530082c1..01bd4d9b5 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -23580,7 +23580,7 @@ void script_parse_builtin(void) {
BUILDIN_DEF(getskilllist,""),
BUILDIN_DEF(clearitem,""),
BUILDIN_DEF(classchange,"ii?"),
- BUILDIN_DEF(misceffect,"i"),
+ BUILDIN_DEF_DEPRECATED(misceffect,"i"),
BUILDIN_DEF(playbgm,"s"),
BUILDIN_DEF(playbgmall,"s?????"),
BUILDIN_DEF(soundeffect,"si"),