summaryrefslogtreecommitdiff
path: root/npc/009-2
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-04-10 11:45:37 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-10 11:45:37 -0300
commit7679e5994642ef019d850b92ee74e564fefd2e57 (patch)
tree8b97ec3c2581908837ea039979fe6f6b3181c17f /npc/009-2
parentf810899c0006e86f46c3e0122ea5b9ec5ea7dfd8 (diff)
downloadserverdata-7679e5994642ef019d850b92ee74e564fefd2e57.tar.gz
serverdata-7679e5994642ef019d850b92ee74e564fefd2e57.tar.bz2
serverdata-7679e5994642ef019d850b92ee74e564fefd2e57.tar.xz
serverdata-7679e5994642ef019d850b92ee74e564fefd2e57.zip
Cleanup all shops. This makes CI passable! (At least in a real environment)
Diffstat (limited to 'npc/009-2')
-rw-r--r--npc/009-2/peter.txt14
-rw-r--r--npc/009-2/shops.txt75
2 files changed, 81 insertions, 8 deletions
diff --git a/npc/009-2/peter.txt b/npc/009-2/peter.txt
index e73740e5..b48ebe4a 100644
--- a/npc/009-2/peter.txt
+++ b/npc/009-2/peter.txt
@@ -1,4 +1,16 @@
-009-2,183,57,0 shop #PeterShop NPC32767,1201:25,522:50,521:500
+009-2,183,57,0 script #PeterShop NPC32767,{
+ shop .name$;
+ goodbye;
+ close;
+
+OnInit:
+ tradertype(NST_ZENY);
+ sellitem Knife;
+ sellitem SharpKnife;
+ sellitem Dagger;
+ .distance = 5;
+ end;
+}
009-2,183,57,0 script Peter NPC157,{
@peter_chain_mail_coal = 10;
diff --git a/npc/009-2/shops.txt b/npc/009-2/shops.txt
index a50d2d7a..5269ab9b 100644
--- a/npc/009-2/shops.txt
+++ b/npc/009-2/shops.txt
@@ -1,4 +1,71 @@
-009-2,65,49,0 shop Barkeeper NPC112,539:87,513:15,676:100
+// The Mana World Script
+// (C) Jesusalva, 2021
+// Licensed under GPLv2 or later
+
+009-2,65,49,0 script Barkeeper NPC112,{
+ shop .name$;
+ goodbye;
+ close;
+
+OnInit:
+ tradertype(NST_ZENY);
+ sellitem Beer;
+ sellitem Cake;
+ sellitem Steak;
+ .distance = 5;
+ end;
+}
+
+009-2,97,24,0 script Donald NPC120,{
+ shop .name$;
+ goodbye;
+ close;
+
+OnInit:
+ tradertype(NST_ZENY);
+ sellitem SlingBullet;
+ sellitem Arrow, 2;
+ sellitem IronArrow;
+ sellitem Bow;
+ sellitem ShortBow, 4000;
+ .distance = 5;
+ end;
+}
+
+009-2,123,22,0 script Potions#_M NPC400,{
+ shop .name$;
+ goodbye;
+ close;
+
+OnInit:
+ tradertype(NST_ZENY);
+ sellitem CactusDrink;
+ sellitem CactusPotion;
+ sellitem IronPotion;
+ sellitem ConcentrationPotion;
+ sellitem SlowPoisonPotion;
+ .distance = 5;
+ end;
+}
+
+009-2,32,99,0 script General Store#hurnscald NPC112,{
+ shop .name$;
+ goodbye;
+ close;
+
+OnInit:
+ tradertype(NST_ZENY);
+ sellitem Milk;
+ sellitem BottleOfWater;
+ sellitem CottonShirt;
+ sellitem CottonShorts;
+ sellitem Boots;
+ sellitem SerfHat;
+ sellitem CottonHeadband;
+ sellitem CottonGloves;
+ .distance = 5;
+ end;
+}
009-2,50,48,0 script Receptionist#inn NPC108,{
@npcname$ = "Receptionist";
@@ -6,9 +73,3 @@
callfunc "Inn";
end;
}
-
-009-2,97,24,0 shop Apprentice NPC120,904:0,1199:2,529:2,1200:500,530:4000
-
-009-2,123,22,0 shop Potions#_M NPC400,501:25,502:35,567:250,568:250,750:200
-
-009-2,32,99,0 shop General Store#hurnscald NPC112,527:150,541:100,1202:5,586:500,528:500,656:100,724:500,741:500