From 1382b22cd68bf90f2adc4ae13187416982f9a12f Mon Sep 17 00:00:00 2001 From: ultramage Date: Fri, 14 Dec 2007 23:38:11 +0000 Subject: Guardian hp handling code removal (see bugreport:342) - removed guardian hp from the castle data structure, database, savefiles and various script functions (use upgrade_svn11914.sql) - removed guardian hp calculation and manipulation from the castle manager npc, now the hp values are updated by the server itself (glitch: when castle defense changes, all guardians are healed to full) - tweaked script function 'guardianinfo' to provide some data needed by the manager npc (currently available are hp, maxhp and visibility); also, it doesn't need a player attached to execute anymore The whole thing is experimental, use at your own risk (seems to work though...) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11915 54d463be-8e91-2dee-dedb-b68131a5f0ec --- doc/script_commands.txt | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'doc') diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 285148a14..9da415503 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -94,6 +94,8 @@ //= Added setnpcdisplay. [FlavioJS] //= 3.10.20071211 //= Added query_logsql. [Skotlex] +//= 3.11.20071215 +//= Updated guardianinfo and get-/setcastledata [ultramage] //===== Description ======================================= //= A reference manual for the eAthena scripting language, //= sorted out depending on their functionality. @@ -5537,14 +5539,16 @@ set the things up that only castle guardians need. --------------------------------------- -*guardianinfo() +*guardianinfo("", , ) -This function will return the current hit point value for the specified guardian -number, if such guardian is currently installed. This function will only work if -the invoking character is on a castle map, and will refer only to the guardians -of that castle, regardless of anything else, i.e. whether the character is a -member of the guild owning the castle, etc, etc. -If no guardian is installed in this slot, the function will return -1. +This function will return various info about the specified guardian, or -1 +if it fails for some reason. It is primarily used in the castle manager npc. + +Map name and guardian number (value between 0 and 7) define the target. +Type indicates what information to return: + 0 - visibility (whether the guardian is installed or not) + 1 - max. hp + 2 - current hp --------------------------------------- // -- cgit v1.2.3-70-g09d2