diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-08 12:55:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-08 12:55:15 +0300 |
commit | 2fa046459302864b9ce8de2717a93ca6d0bb160e (patch) | |
tree | 0ec99442d414ef17f847b980c38b389a68bad5aa | |
parent | 71e3d704b51f73abf616da77d5e758b3e0d82634 (diff) | |
download | serverdata-2fa046459302864b9ce8de2717a93ca6d0bb160e.tar.gz serverdata-2fa046459302864b9ce8de2717a93ca6d0bb160e.tar.bz2 serverdata-2fa046459302864b9ce8de2717a93ca6d0bb160e.tar.xz serverdata-2fa046459302864b9ce8de2717a93ca6d0bb160e.zip |
Add to help item attributes UseEffect/UseFailEffect/UnequipEffect/UnequipFailEffect.
Use UseEffect attribute in healing items.
Add constant for heal effect id.
-rw-r--r-- | db/const.txt | 1 | ||||
-rw-r--r-- | db/re/item_db.conf | 49 | ||||
-rw-r--r-- | doc/item_db.txt | 4 |
3 files changed, 34 insertions, 20 deletions
diff --git a/db/const.txt b/db/const.txt index f7c30147..8e3199d8 100644 --- a/db/const.txt +++ b/db/const.txt @@ -3411,3 +3411,4 @@ BrimmedFeatherHat 2904 BrimmedFlowerHat 2905 Knife 3500 PiouSlayer 3501 +EFFECT_HEAL 7 diff --git a/db/re/item_db.conf b/db/re/item_db.conf index 18f8d23a..4cf792ea 100644 --- a/db/re/item_db.conf +++ b/db/re/item_db.conf @@ -47,6 +47,10 @@ item_db: ( RequiredMAtkMax: required maximum magic attack (int, default to 0) RequiredDef: required defence (int, default to 0) RequiredMDef: required magic defence (int, default to 0) + UseEffect: effect if use/equip item success (int, default to -1) + UseFailEffect: effect if use/equip item failed (int, default to -1) + UnequipEffect: effect if unequip item success (int, default to -1) + UnequipFailEffect: effect if unequip item failed (int, default to -1) Trade: { (defaults to no restrictions) override: GroupID (int, defaults to 100) nodrop: true/false (boolean, defaults to false) @@ -99,9 +103,9 @@ item_db: ( BuyingStore: true Delay: 5000 Sprite: 0 + UseEffect: "EFFECT_HEAL" Script: <" itemheal rand(12, 18), 0; - misceffect 7, getcharid(3); "> }, { @@ -129,9 +133,9 @@ item_db: ( BuyingStore: true Delay: 5000 Sprite: 0 + UseEffect: "EFFECT_HEAL" Script: <" itemheal rand(25, 40), 0; - misceffect 7, getcharid(3); "> }, { @@ -159,9 +163,10 @@ item_db: ( BuyingStore: true Delay: 5000 Sprite: 0 + UseEffect: "EFFECT_HEAL" Script: <" - sc_start SC_ATTHASTE_POTION1, 20000, -5; itemheal rand(25, 35), 0; - misceffect 7, getcharid(3); + sc_start SC_ATTHASTE_POTION1, 20000, -5; + itemheal rand(25, 35), 0; "> }, { @@ -189,9 +194,9 @@ item_db: ( BuyingStore: true Delay: 5000 Sprite: 0 + UseEffect: "EFFECT_HEAL" Script: <" itemheal rand(30, 50), 0; - misceffect 7, getcharid(3); "> }, { @@ -219,9 +224,9 @@ item_db: ( BuyingStore: true Delay: 5000 Sprite: 0 + UseEffect: "EFFECT_HEAL" Script: <" itemheal rand(7, 13), 0; - misceffect 7, getcharid(3); "> }, { @@ -249,9 +254,9 @@ item_db: ( BuyingStore: true Delay: 5000 Sprite: 0 + UseEffect: "EFFECT_HEAL" Script: <" itemheal rand(15, 25), 0; - misceffect 7, getcharid(3); "> }, { @@ -279,9 +284,9 @@ item_db: ( BuyingStore: true Delay: 5000 Sprite: 0 + UseEffect: "EFFECT_HEAL" Script: <" itemheal rand(12, 23), 0; - misceffect 7, getcharid(3); "> }, { @@ -309,9 +314,10 @@ item_db: ( BuyingStore: true Delay: 5000 Sprite: 0 + UseEffect: "EFFECT_HEAL" Script: <" - sc_start2 SC_POISON, 1, 20, 2500; itemheal rand(10, 20), 0; - misceffect 7, getcharid(3); + sc_start2 SC_POISON, 1, 20, 2500; + itemheal rand(10, 20), 0; "> }, { @@ -339,9 +345,9 @@ item_db: ( BuyingStore: true Delay: 5000 Sprite: 0 + UseEffect: "EFFECT_HEAL" Script: <" itemheal rand(75, 100), 0; - misceffect 7, getcharid(3); "> }, { @@ -369,9 +375,10 @@ item_db: ( BuyingStore: true Delay: 5000 Sprite: 0 + UseEffect: "EFFECT_HEAL" Script: <" - sc_start2 SC_POISON, 1, 30, 3333; itemheal rand(2, 6), 0; - misceffect 7, getcharid(3); + sc_start2 SC_POISON, 1, 30, 3333; + itemheal rand(2, 6), 0; "> }, { @@ -399,9 +406,9 @@ item_db: ( BuyingStore: true Delay: 5000 Sprite: 0 + UseEffect: "EFFECT_HEAL" Script: <" itemheal rand(65, 90), 0; - misceffect 7, getcharid(3); "> }, { @@ -488,9 +495,10 @@ item_db: ( BuyingStore: true Delay: 5000 Sprite: 0 + UseEffect: "EFFECT_HEAL" Script: <" - sc_start SC_ATTHASTE_POTION1, 20000, 5; itemheal rand(20, 30), 0; - misceffect 7, getcharid(3); + sc_start SC_ATTHASTE_POTION1, 20000, 5; + itemheal rand(20, 30), 0; "> }, { @@ -518,9 +526,10 @@ item_db: ( BuyingStore: true Delay: 5000 Sprite: 0 + UseEffect: "EFFECT_HEAL" Script: <" - sc_start2 SC_POISON, 1, 10, 2500; itemheal 1, 0; - misceffect 7, getcharid(3); + sc_start2 SC_POISON, 1, 10, 2500; + itemheal 1, 0; "> }, { @@ -578,9 +587,9 @@ item_db: ( BuyingStore: true Delay: 5000 Sprite: 0 + UseEffect: "EFFECT_HEAL" Script: <" itemheal rand(28, 35), 0; - misceffect 7, getcharid(3); "> }, { @@ -608,9 +617,9 @@ item_db: ( BuyingStore: true Delay: 5000 Sprite: 0 + UseEffect: "EFFECT_HEAL" Script: <" itemheal rand(60, 75), 0; - misceffect 7, getcharid(3); "> }, { diff --git a/doc/item_db.txt b/doc/item_db.txt index 7b5a7824..d98bf260 100644 --- a/doc/item_db.txt +++ b/doc/item_db.txt @@ -52,6 +52,10 @@ item_db: ( RequiredMAtkMax: required maximum magic attack (int, default to 0) RequiredDef: required defence (int, default to 0) RequiredMDef: required magic defence (int, default to 0) + UseEffect: effect if use/equip item success (int, default to -1) + UseFailEffect: effect if use/equip item failed (int, default to -1) + UnequipEffect: effect if unequip item success (int, default to -1) + UnequipFailEffect: effect if unequip item failed (int, default to -1) Trade: { (defaults to no restrictions) override: GroupID (int, defaults to 100) nodrop: true/false (boolean, defaults to false) |