From f0279f15bc3f2d58c66f399ee717d024e6256be4 Mon Sep 17 00:00:00 2001 From: Haru Date: Fri, 15 Nov 2013 15:41:26 +0100 Subject: Added BindOnEquip to the item_db documentation and templates - Special thanks to ossi0110, kyeme - Fixes bugreport:7821 http://hercules.ws/board/tracker/issue-7821-missing-item-dbconf-columne/ Signed-off-by: Haru --- db/item_db2.conf | 1 + db/pre-re/item_db.conf | 1 + db/re/item_db.conf | 1 + doc/item_db.txt | 6 ++++++ tools/itemdbconverter.pl | 1 + 5 files changed, 10 insertions(+) diff --git a/db/item_db2.conf b/db/item_db2.conf index 5705c82c5..f552f5d44 100644 --- a/db/item_db2.conf +++ b/db/item_db2.conf @@ -28,6 +28,7 @@ item_db: ( EquipLv: [min, max] (alternative syntax with min / max level) Refine: Refineable (boolean, defaults to true) View: View ID (int, defaults to 0) + BindOnEquip: true/false (boolean, defaults to false) Script: <" Script (it can be multi-line) diff --git a/db/pre-re/item_db.conf b/db/pre-re/item_db.conf index fb57af552..569f084c8 100644 --- a/db/pre-re/item_db.conf +++ b/db/pre-re/item_db.conf @@ -28,6 +28,7 @@ item_db: ( EquipLv: [min, max] (alternative syntax with min / max level) Refine: Refineable (boolean, defaults to true) View: View ID (int, defaults to 0) + BindOnEquip: true/false (boolean, defaults to false) Script: <" Script (it can be multi-line) diff --git a/db/re/item_db.conf b/db/re/item_db.conf index bae2b3ba0..c70588a13 100644 --- a/db/re/item_db.conf +++ b/db/re/item_db.conf @@ -28,6 +28,7 @@ item_db: ( EquipLv: [min, max] (alternative syntax with min / max level) Refine: Refineable (boolean, defaults to true) View: View ID (int, defaults to 0) + BindOnEquip: true/false (boolean, defaults to false) Script: <" Script (it can be multi-line) diff --git a/doc/item_db.txt b/doc/item_db.txt index d897e1511..50b7523cc 100644 --- a/doc/item_db.txt +++ b/doc/item_db.txt @@ -33,6 +33,7 @@ item_db: ( EquipLv: [min, max] (alternative syntax with min / max level) Refine: Refineable (boolean, defaults to true) View: View ID (int, defaults to 0) + BindOnEquip: true/false (boolean, defaults to false) Script: <" Script (it can be multi-line) @@ -216,6 +217,11 @@ View: For normal items, defines a replacement view-sprite for the item (eg: 8: Cannonballs 9: Throwable Items (Sling Item) +BindOnEquip: Whether the item will automatically bind to the character when it + is equipped for the first time. An item that has this field set, + will display a confirmation dialog the first time it is equipped, + and, if accepted, the item will become character-bound. + Script: Script to execute when the item is used/equipped. OnEquipScript: Script to execute when the item is equipped. diff --git a/tools/itemdbconverter.pl b/tools/itemdbconverter.pl index 747f9e84f..bd7254373 100755 --- a/tools/itemdbconverter.pl +++ b/tools/itemdbconverter.pl @@ -174,6 +174,7 @@ item_db: ( EquipLv: [min, max] (alternative syntax with min / max level) Refine: Refineable (boolean, defaults to true) View: View ID (int, defaults to 0) + BindOnEquip: true/false (boolean, defaults to false) Script: <" Script (it can be multi-line) -- cgit v1.2.3-70-g09d2