From 33bfe1d214ca533892e1bbcbb99dea47629995fd Mon Sep 17 00:00:00 2001 From: Aleos Date: Sat, 9 Dec 2017 08:05:53 -0500 Subject: [PATCH] Updated script command npcskill documentation (#2691) * Fixes #2681. * NPCs must have basic stats applied to them for specific skills to work properly. Thanks to @sader1992! --- doc/script_commands.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 0b7035f522..e76a19cbbb 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -7859,6 +7859,11 @@ and "NPC level" is the temporary level of the NPC (used in some skills). Neither value can be greater than the max level defined in config, and will not work properly if the NPC has a mob sprite. +Before using skills, NPCs must have basic stats applied to them depending on the +skill being used: UNPC_ATKMIN, UNPC_ATKMAX, UNPC_MATKMIN, UNPC_MATKMAX, UNPC_STR, +UNPC_AGI, UNPC_VIT, UNPC_INT, UNPC_DEX, UNPC_LUK. +See 'setunitdata' for more information on usage. + // Casts Level 10 Heal on the attached player, calculated with // all stats 99 and base level 60. npcskill "AL_HEAL",10,99,60;