summaryrefslogtreecommitdiff
path: root/doc/script_commands.txt
diff options
context:
space:
mode:
authorGuilherme G. M <guilherme-gm@users.noreply.github.com>2017-02-26 03:41:50 -0300
committerDastgir <dastgirpojee@rocketmail.com>2017-02-26 12:11:50 +0530
commit113865cd441c1ebd04f8d0b9d7380cc852a08fb9 (patch)
treec580d334d86accdb19bac294926c5cffe5f9cccd /doc/script_commands.txt
parent9a7a165d4dbad598907d3ecd54196e8f76c4f3f5 (diff)
downloadhercules-113865cd441c1ebd04f8d0b9d7380cc852a08fb9.tar.gz
hercules-113865cd441c1ebd04f8d0b9d7380cc852a08fb9.tar.bz2
hercules-113865cd441c1ebd04f8d0b9d7380cc852a08fb9.tar.xz
hercules-113865cd441c1ebd04f8d0b9d7380cc852a08fb9.zip
Added option to show classchange only to one player (#1587)
* Added option to show classchange only to one player
Diffstat (limited to 'doc/script_commands.txt')
-rw-r--r--doc/script_commands.txt27
1 files changed, 9 insertions, 18 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 1737f8796..ca7ebacca 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -4507,26 +4507,17 @@ changebase(Class); // Changes player back to default sprite.
---------------------------------------
-*classchange(<view id>, <type>)
+*classchange(<view id>, <type> {, <char id>})
This command is very ancient, it's origins are clouded in mystery.
-It will send a 'display id change' packet to everyone in the immediate
-area of the NPC object, which will supposedly make the NPC look like a
-different sprite, an NPC sprite ID, or a monster ID. This effect is not
-stored anywhere and will not persist (Which is odd, cause it would be
-relatively easy to make it do so) and most importantly, will not work at
-all since this command was broken with the introduction of advanced
-classes. The code is written with the assumption that the lowest sprite
-IDs are the job sprites and the anything beyond them is monster and NPC
-sprites, but since the advanced classes rolled in, they got the ID numbers
-on the other end of the number pool where monster sprites float.
-
-As a result it is currently impossible to call this command with a valid
-view id. It will do nothing whatsoever if the view ID is below 4047.
-Getting it to run will actually just crash the client.
-
-It could be a real gem if it can be gotten to actually do what it's
-supposed to do, but this will only happen in a later Git revision.
+It will send a 'display id change' packet to player with given char ID
+or to everyone in the immediate area of the NPC object if char ID is 0 or
+not passed, which will make the NPC look like a different sprite, an NPC
+sprite ID, or a monster ID. This effect is not stored anywhere and will
+not persist.
+Note that you can't send a Job sprite ID
+
+type is not used and should always be 0.
---------------------------------------