From 1f78dc3468f1a4afe1f8bd09ea340a715af1d206 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 28 Nov 2019 04:24:37 +0300 Subject: Add script function specialeffectnum --- doc/effect_list.md | 2 +- doc/script_commands.txt | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/effect_list.md b/doc/effect_list.md index 8ba8d36c9..b16839d41 100644 --- a/doc/effect_list.md +++ b/doc/effect_list.md @@ -21,7 +21,7 @@ The following is a compiled list of visual and sound effects which the client can produce. Each list entry contains a number and a short description of the effect. You can produce these effects ingame by using the `@effect` atcommand. It's also possible to attach effects to item/npc scripts by using the -`specialeffect()` script command. +`specialeffect()` or `specialeffectnum()` script commands. ID | Constant Name | Description --: | :----------------------------- | :---------------------------------- diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 45636f23b..b55afb0f2 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -6231,6 +6231,15 @@ Example usage: --------------------------------------- +*specialeffectnum(, , {, {, {, }}}) +*specialeffectnum(, , {, {, ""{, }}}) + +Works same as specialeffect but also send effect numbers to client. +For PACKETVER >= 20191127 support two numbers (num1, num2). +For older packet versions only num1 supported. + +--------------------------------------- + *removespecialeffect({, {, {, }}}) *removespecialeffect({, {, ""{, }}}) -- cgit v1.2.3-70-g09d2