From 234ababd8c1a9df4391c6c54f9167f625e432dc2 Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 10 Jan 2008 22:02:33 +0000 Subject: - Fixed getmonsterinfo to return "null" when returning the name of a non-existing mob instead of -1. - Extended the status_percent_damage define to include a bolean to specify whether or not the target can be killed from it. - Corrected CR_CULTIVATION to fail when the target cell has some BL_CHAR on it already. - Changed the meaning of 'flag' in status_percent_change, to enable differentiation between damage that can kill the object and damage that cannot. - Script command percentheal will no longer kill the player if the specified amount is negative (and not -100). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12051 54d463be-8e91-2dee-dedb-b68131a5f0ec --- doc/script_commands.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 2c52024d2..1a9987587 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -2839,8 +2839,8 @@ set @i, petstat(PET_CLASS); This function will look up the monster with the specified ID number in the mob database and return the info set by TYPE argument. -It will return -1 if there is no such item. Due to specific of MOB DB routines, -it's better to check monster name. It'd return "Dummy" for a non-existing mob. +It will return -1 if there is no such monster (or the type value is invalid), +or "null" if you requested the monster's name. Valid types are listed in const.txt: MOB_NAME 0 MOB_LV 1 -- cgit v1.2.3-60-g2f50