From 847a41f41dc4296c8c2aa42a79c23336f55e665b Mon Sep 17 00:00:00 2001 From: euphyy Date: Thu, 27 Dec 2012 06:11:18 +0000 Subject: > Follow-up r17048: - Renamed 'useskilltopc' to 'npcskill'; - Removed cast time from NPC objects, code by mkbu95 (suspected official behavior); - Documented 'npcskill'; - Replaced all instances in scripts. * Fixed max level bypass, code by malufett (bugreport:5800). * Updated Malangdo spawns to official. * Some standardization of npc/quests/first_class/. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17049 54d463be-8e91-2dee-dedb-b68131a5f0ec --- doc/script_commands.txt | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'doc/script_commands.txt') 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 ,,,; +*npcskill "",,,; + +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; -- cgit v1.2.3-60-g2f50