From 5edaf054f8cfac09b95583cbe4d5c64df850b82b Mon Sep 17 00:00:00 2001 From: FlavioJS Date: Thu, 12 Jun 2008 09:30:12 +0000 Subject: * Added support for skill names to script commands: - skill, addtoskill, guildskill, getskilllv, getgdskilllv, itemskill, petskillattack, petskillattack2, petskillsupport, skilleffect, npcskilleffect, unitskilluseid, unitskillusepos - bonus/bonus2/bonus3/bonus4/bonus5 for bonuses bAutoSpell, bSkillAtk, bSkillHeal, bAutoSpellWhenHit, bAddSkillBlow, bCastrate git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12814 54d463be-8e91-2dee-dedb-b68131a5f0ec --- doc/script_commands.txt | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) (limited to 'doc/script_commands.txt') diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 00c604d01..71ac40864 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -4,7 +4,7 @@ //= A reference manual for the eAthena scripting language. //= Commands are sorted depending on their functionality. //===== Version =========================================== -//= 3.19.20080407 +//= 3.21.20080612 //========================================================= //= 1.0 - First release, filled will as much info as I could //= remember or figure out, most likely there are errors, @@ -111,8 +111,13 @@ //= 3.19.20080407 //= Extended the behaviour of 'guardian'. [FlavioJS] //= 3.20.20080425 -//= Corrected 'getitem', 'getitem2' & 'delitem2' (charid instead of accountid) [Toms] -//= Modified 'delitem' (added optional accountid parameter) [Toms] +//= Corrected 'getitem', 'getitem2' & 'delitem2' (charid instead of accountid) [Toms] +//= Modified 'delitem' (added optional accountid parameter) [Toms] +//= 3.21.20080612 +//= Script commands extended to support skill names: [FlavioJS] +//= skill, addtoskill, guildskill, getskilllv, getgdskilllv, itemskill, +//= petskillattack, petskillattack2, petskillsupport, skilleffect, npcskilleffect, +//= unitskilluseid, unitskillusepos, bonus/bonus2/bonus3/bonus4/bonus5 //========================================================= This document is a reference manual for all the scripting commands and functions @@ -2734,6 +2739,7 @@ anything, obviously. --------------------------------------- *getgdskilllv(,) +*getgdskilllv(,"") This function returns the level of the skill of the guild . If the guild does not have that skill, 0 is returned. @@ -2769,6 +2775,7 @@ Example(s): --------------------------------------- *getskilllv() +*getskilllv("") This function returns the level of the specified skill that the invoking character has. If they don't have the skill, 0 will be returned. The full list @@ -3936,6 +3943,7 @@ effect is still in effect). --------------------------------------- *itemskill ,; +*itemskill "",; This is a command meant for item scripts to replicate single-use skills. It will not work properly in NPC scripts a lot of the time because casting a skill is @@ -4132,6 +4140,7 @@ any guild. --------------------------------------- *guildskill , +*guildskill "", This command will bump up the specified guild skill by the specified number of levels. This refers to the invoking character and will only work if the invoking @@ -4256,6 +4265,7 @@ should be rather obvious. --------------------------------------- *skilleffect ,; +*skilleffect "",; This command will display the visual and sound effects of a specified skill (see 'db/skill_db.txt' for a full list of skills) on the invoking character's sprite. @@ -4278,6 +4288,7 @@ effect displays a floating number, the number given will float up. --------------------------------------- *npcskilleffect ,,,; +*npcskilleffect "",,,; This command behaves identically to 'skilleffect', however, the effect will not be centered on the invoking character's sprite, nor on the NPC sprite, if any, @@ -4383,7 +4394,9 @@ autoscript). --------------------------------------- *skill ,{,}; -*addtoskill ,{,} +*skill "{,}; +*addtoskill ,{,}; +*addtoskill "",{,}; These commands will give the invoking character a specified skill. This is also used for item scripts. @@ -5830,8 +5843,10 @@ Example(s): --------------------------------------- -*unitskilluseid ,,; +*unitskilluseid ,,{,}; +*unitskilluseid ,"",{,}; *unitskillusepos ,,,,; +*unitskillusepos ,"",,,; This is the replacement of the older commands, these use the same values for GID as the other unit* commands (See 'GID'). @@ -6064,6 +6079,7 @@ specified. Pet will store items and return them when the maximum is reached or when pet performance is activated. *petskillsupport ,,,,; +*petskillsupport "",,,,; *petheal ,,,; This will make the pet use a specified support skill on the owner whenever the @@ -6075,7 +6091,9 @@ It's not quite certain who's stats will be used for the skills cast, the character's or the pets. Probably, Skotlex can answer that question. *petskillattack ,,,; +*petskillattack "",,,; *petskillattack2 ,,,,; +*petskillattack2 "",,,,; These two commands will make the pet cast an attack skill on the enemy the pet's owner is currently fighting. Skill IDs and levels are as per 'petskillsupport'. -- cgit v1.2.3-60-g2f50