From 113865cd441c1ebd04f8d0b9d7380cc852a08fb9 Mon Sep 17 00:00:00 2001 From: "Guilherme G. M" Date: Sun, 26 Feb 2017 03:41:50 -0300 Subject: Added option to show classchange only to one player (#1587) * Added option to show classchange only to one player --- doc/script_commands.txt | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) (limited to 'doc/script_commands.txt') 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(, ) +*classchange(, {, }) 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. --------------------------------------- -- cgit v1.2.3-60-g2f50