diff options
-rw-r--r-- | db/re/item_db.conf | 25 | ||||
-rw-r--r-- | npc/008-2-2/shop.txt | 18 |
2 files changed, 31 insertions, 12 deletions
diff --git a/db/re/item_db.conf b/db/re/item_db.conf index 141196ff..2dc59cd7 100644 --- a/db/re/item_db.conf +++ b/db/re/item_db.conf @@ -1300,6 +1300,31 @@ item_db: ( "> }, { + Id: 567 + AegisName: "MaggotSlimePotion" + Name: "Maggot Slime Potion" + Type: "IT_HEALING" + Buy: 75 + Sell: 15 + Weight: 15 + Refine: false + ViewSprite: 567 + Delay: 450 + UseEffect: "EFFECT_HEAL" + Script: <" + @min = 10; + @max = 130; + @delay = 2; + @type = 1; + if (rand(100) < 50) { + getmapxy(.@m$, .@x, .@y, 0); + .@mobGID = monster(.@m$, .@x, .@y, "Maggot", Maggot, 1); + unitattack(.@mobGID, getcharid(3)); + } + doevent "rand_sc_heal::OnUse"; + "> +}, +{ Id: 600 AegisName: "SmallHealing" Name: "Small Healing Potion" diff --git a/npc/008-2-2/shop.txt b/npc/008-2-2/shop.txt index d0db9b67..d3699092 100644 --- a/npc/008-2-2/shop.txt +++ b/npc/008-2-2/shop.txt @@ -1,6 +1,7 @@ // Evol scripts. // Authors: // 4144 +// jesusalva // Reid // toams // Description: @@ -17,25 +18,17 @@ OnInit: sellitem Cheese, -1, 50; sellitem CherryCake, -1, 50; sellitem SmallHealing, -1, 50; + sellitem MaggotSlimePotion, -1, 50; .sex = G_OTHER; .distance = 10; end; +// FIXME Note: "20" doesn't means "restock 20 units". +// It means "restock if less than 20 units are being sold". +// Is this behavior intended? Seems like a bug. OnClock0000: - restoreshopitem Beer, 20; - restoreshopitem Bread, 20; - restoreshopitem RedPlushWine, 20; - restoreshopitem Cheese, 20; - restoreshopitem CherryCake, 20; - restoreshopitem SmallHealing, 20; OnClock0800: - restoreshopitem Beer, 20; - restoreshopitem Bread, 20; - restoreshopitem RedPlushWine, 20; - restoreshopitem Cheese, 20; - restoreshopitem CherryCake, 20; - restoreshopitem SmallHealing, 20; OnClock1600: restoreshopitem Beer, 20; restoreshopitem Bread, 20; @@ -43,4 +36,5 @@ OnClock1600: restoreshopitem Cheese, 20; restoreshopitem CherryCake, 20; restoreshopitem SmallHealing, 20; + restoreshopitem MaggotSlimePotion, 50; } |