summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/script_commands.txt22
1 files changed, 19 insertions, 3 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 46583b95f..80c528bdb 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -6336,9 +6336,8 @@ Example:
This command will send the message to the server console (map-server window). It
will not be displayed anywhere else.
- debugmes strcharinfo(0)+" has just done this that and the other";
- // You would see in the map-server window "NAME has just done this that and
- // the other"
+ // Displays "NAME has clicked me!" in the map-server window.
+ debugmes strcharinfo(0)+" has clicked me!";
---------------------------------------
@@ -6623,6 +6622,23 @@ For the position, the x and y are given in the unitSkillUsePos.
---------------------------------------
+*npcskill <skill id>,<skill lvl>,<stat point>,<NPC level>;
+*npcskill "<skill name>",<skill lvl>,<stat point>,<NPC level>;
+
+This command causes the attached NPC object to cast a skill on the attached
+player. The skill will have no cast time or cooldown. The player must be
+within the default skill range or the command will fail silently.
+
+The "stat point" parameter temporarily sets all NPC stats to the given value,
+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.
+
+ // Casts Level 10 Heal on the attached player, calculated with
+ // all stats 99 and base level 60.
+ npcskill "AL_HEAL",10,99,60;
+
+---------------------------------------
+
*day;
*night;