summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2025-03-19 19:25:46 +0100
committerFedja Beader <fedja@protonmail.ch>2025-03-19 23:55:28 +0100
commitb3ac330f567a0cf11a53b229d9433d3770a20980 (patch)
tree135aea15a39474b70ac87fb0e89b248a7fb0d188
parent3a7d35b64e1bf7322ffceba15cfbb7ab7459c6b2 (diff)
downloadserverdata-b3ac330f567a0cf11a53b229d9433d3770a20980.tar.gz
serverdata-b3ac330f567a0cf11a53b229d9433d3770a20980.tar.bz2
serverdata-b3ac330f567a0cf11a53b229d9433d3770a20980.tar.xz
serverdata-b3ac330f567a0cf11a53b229d9433d3770a20980.zip
Implement arrow packing for #102
Unfortunately this means killing the randomness mechanics. I was thinking about sticking item ID + amount into options or cards. That would be way better and would allow reusing same box itemID for *all* items. But can server even do this?
-rw-r--r--db/re/item_db.conf16
-rw-r--r--npc/items/emptybox.txt20
2 files changed, 26 insertions, 10 deletions
diff --git a/db/re/item_db.conf b/db/re/item_db.conf
index 9a14011e1..22c55f9d1 100644
--- a/db/re/item_db.conf
+++ b/db/re/item_db.conf
@@ -2444,7 +2444,7 @@ item_db: (
Weight: 215
Refine: false
Script: <"
- getitem TolchiArrow, rand(190, 210);
+ getitem TolchiArrow, 200;
">
},
{
@@ -2457,7 +2457,7 @@ item_db: (
Weight: 215
Refine: false
Script: <"
- getitem TrainingArrow, rand(190, 210);
+ getitem TrainingArrow, 200;
">
},
{
@@ -2470,7 +2470,7 @@ item_db: (
Weight: 215
Refine: false
Script: <"
- getitem Arrow, rand(190, 210);
+ getitem Arrow, 200;
">
},
{
@@ -2483,7 +2483,7 @@ item_db: (
Weight: 215
Refine: false
Script: <"
- getitem IronArrow, rand(190, 210);
+ getitem IronArrow, 200;
">
},
{
@@ -2496,7 +2496,7 @@ item_db: (
Weight: 215
Refine: false
Script: <"
- getitem CursedArrow, rand(190, 210);
+ getitem CursedArrow, 200;
">
},
{
@@ -2509,7 +2509,7 @@ item_db: (
Weight: 430
Refine: false
Script: <"
- getitem PoisonArrow, rand(190, 210);
+ getitem PoisonArrow, 200;
">
},
{
@@ -2522,7 +2522,7 @@ item_db: (
Weight: 430
Refine: false
Script: <"
- getitem ThornArrow, rand(190, 210);
+ getitem ThornArrow, 200;
">
},
{
@@ -2535,7 +2535,7 @@ item_db: (
Weight: 1100
Refine: false
Script: <"
- getitem BoneArrow, rand(190, 210);
+ getitem BoneArrow, 200;
">
},
{
diff --git a/npc/items/emptybox.txt b/npc/items/emptybox.txt
index 4b3010dbb..f2f6dc8bf 100644
--- a/npc/items/emptybox.txt
+++ b/npc/items/emptybox.txt
@@ -13,14 +13,30 @@ OnUse:
20, CommonCarp, FishBox,
8, Croconut, CroconutBox,
7, GrassCarp, FishBox,
- 87, Plushroom, PlushroomBox;
+ 87, Plushroom, PlushroomBox,
+ 200, TolchiArrow, TolchiAmmoBox,
+ 200, TrainingArrow, TrainingAmmoBox,
+ 200, Arrow, ArrowAmmoBox,
+ 200, IronArrow, IronAmmoBox,
+ 200, CursedArrow, CursedAmmoBox,
+ 200, PoisonArrow, PoisonAmmoBox,
+ 200, ThornArrow, ThornAmmoBox,
+ 200, BoneArrow, BoneAmmoBox;
// Strings presented to player, indexes must match above.
setarray .@boxStrings, l("50 Aquadas"),
l("20 Common Carps"),
l("8 Croconuts"),
l("7 Grass Carps"),
- l("87 Plushrooms");
+ l("87 Plushrooms"),
+ l("200 tolchi arrows"),
+ l("200 training arrows"),
+ l("200 normal arrows"),
+ l("200 iron arrows"),
+ l("200 cursed arrows"),
+ l("200 poison arrows"),
+ l("200 thorn arrows"),
+ l("200 bone arrows");
if (getarraysize(.@boxStrings) * 3 != getarraysize(.@boxMatrix))
Exception("Invalid array size: "+getarraysize(.@boxStrings)