From 1cc40cd6ab43b323711ee41a13297680aecbdce1 Mon Sep 17 00:00:00 2001 From: Lupus Date: Mon, 20 Mar 2006 08:32:47 +0000 Subject: added to doc: getmonsterinfo. updated NJ items git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5668 54d463be-8e91-2dee-dedb-b68131a5f0ec --- doc/script_commands.txt | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'doc/script_commands.txt') diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 738b13584..acf532b48 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -4836,6 +4836,32 @@ Valid types are: 4 - sex; 5 - equip; 6 - weight; 7 - atk; 8 - def; 9 - range; 10 - slot; 11 - look; 12 - elv; 13 - wlv; +Check sample in nps\sample\getiteminfo.txt + +--------------------------------------- + +*getmonsterinfo(,) + +This function will look up the monster with the specified ID number in the 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 monster. + +Valid types are listed in const.txt: + MOB_NAME 0 MOB_LV 1 + MOB_MAXHP 2 MOB_BASEEXP 3 + MOB_JOBEXP 4 MOB_ATK1 5 + MOB_ATK2 6 MOB_DEF 7 + MOB_MDEF 8 MOB_STR 9 + MOB_AGI 10 MOB_VIT 11 + MOB_INT 12 JOB_DEX 13 + MOB_LUK 14 MOB_RANGE 15 + MOB_RANGE2 16 MOB_RANGE3 17 + MOB_SIZE 18 MOB_RACE 19 + MOB_ELEMENT 20 MOB_MODE 21 + +Check sample in nps\sample\getmonsterinfo.txt + --------------------------------------- *pow(,) -- cgit v1.2.3-60-g2f50