summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-10-08 01:26:00 +0000
committerJesusaves <cpntb1@ymail.com>2019-10-08 01:26:00 +0000
commitabc30f2cf5ebde4c90393fe02c8e8ec817f6557c (patch)
tree3b45d0fe338ba4207d833f64e6c5d3e901f3ef12
parent15aeab5251840af0ab28da40f7cbbbdb39ad1f7a (diff)
downloadserverdata-abc30f2cf5ebde4c90393fe02c8e8ec817f6557c.tar.gz
serverdata-abc30f2cf5ebde4c90393fe02c8e8ec817f6557c.tar.bz2
serverdata-abc30f2cf5ebde4c90393fe02c8e8ec817f6557c.tar.xz
serverdata-abc30f2cf5ebde4c90393fe02c8e8ec817f6557c.zip
Maggot Slime Potion
I thought it might be fun to entertain the idea of a maggot slime potion. Hope you all like! 😄 ---- @WildX : Seems like a good vendor item for Hurnscald general goods and maybe a rare drop from some humanoid mob, I'd like to keep manmade things like potions as items that are dropped by humanoids since it makes little sense for a maggot to carry a bottled potion with it.
-rw-r--r--db/re/item_db.conf25
-rw-r--r--npc/008-2-2/shop.txt18
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;
}