From dfcb1ff37ad077249c0050bb1bab8994225191e1 Mon Sep 17 00:00:00 2001 From: Haru Date: Sun, 12 Nov 2017 01:56:57 +0100 Subject: Add ITEMINFO_MATK support to getiteminfo() / setiteminfo(). This item info type was documented in commit 315d632e69c60d2996872c9330164133101befdf, but never implemented. Signed-off-by: Haru --- doc/sample/getiteminfo.txt | 1 + doc/script_commands.txt | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/sample/getiteminfo.txt b/doc/sample/getiteminfo.txt index 35dd9e27c..63a6e7928 100644 --- a/doc/sample/getiteminfo.txt +++ b/doc/sample/getiteminfo.txt @@ -32,5 +32,6 @@ prontera,156,179,6 script test_getiteminfo 4_F_KAFRA1,{ mesf("Equip Level: %d", getiteminfo(.@value, ITEMINFO_ELV)); mesf("Weapon Level: %d", getiteminfo(.@value, ITEMINFO_WLV)); mesf("View ID: %d", getiteminfo(.@value, ITEMINFO_VIEWID)); + mesf("MATK: %d", getiteminfo(.@value, ITEMINFO_MATK)); close; } diff --git a/doc/script_commands.txt b/doc/script_commands.txt index c8496d227..746eaea2b 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -3201,8 +3201,7 @@ Valid types are: ITEMINFO_ELV - Equip min. level ITEMINFO_WLV - Weapon level ITEMINFO_VIEWID - View ID ("Sprite" field in the Item DB) - - If RENEWAL is defined, 15 - matk + ITEMINFO_MATK - MATK (only relevant if RENEWAL is set) Check sample in doc/sample/getiteminfo.txt -- cgit v1.2.3-70-g09d2