summaryrefslogtreecommitdiff
path: root/npc/020-2-20
diff options
context:
space:
mode:
Diffstat (limited to 'npc/020-2-20')
-rw-r--r--npc/020-2-20/_import.txt5
-rw-r--r--npc/020-2-20/_warps.txt6
-rw-r--r--npc/020-2-20/drabur.txt54
-rw-r--r--npc/020-2-20/riskim.txt152
4 files changed, 0 insertions, 217 deletions
diff --git a/npc/020-2-20/_import.txt b/npc/020-2-20/_import.txt
deleted file mode 100644
index 8bc63945..00000000
--- a/npc/020-2-20/_import.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-// Map 020-2-20: Tulimshar Inn
-// This file is generated automatically. All manually added changes will be removed when running the Converter.
-"npc/020-2-20/_warps.txt",
-"npc/020-2-20/drabur.txt",
-"npc/020-2-20/riskim.txt",
diff --git a/npc/020-2-20/_warps.txt b/npc/020-2-20/_warps.txt
deleted file mode 100644
index 3508873e..00000000
--- a/npc/020-2-20/_warps.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-// This file is generated automatically. All manually added changes will be removed when running the Converter.
-// Map 020-2-20: Tulimshar Inn warps
-020-2-20,49,38,0 warp #020-2-20_49_38 0,0,020-1,202,169
-020-2-20,35,38,0 warp #020-2-20_35_38 0,0,020-1,194,169
-020-2-20,33,22,0 warp #020-2-20_33_22 0,0,020-2-24,32,24
-020-2-20,37,21,0 warp #020-2-20_37_21 0,0,020-2-34,37,41
diff --git a/npc/020-2-20/drabur.txt b/npc/020-2-20/drabur.txt
deleted file mode 100644
index 8ebbb979..00000000
--- a/npc/020-2-20/drabur.txt
+++ /dev/null
@@ -1,54 +0,0 @@
-// The Mana World scripts.
-// Author:
-// Micksha
-// Description:
-// Drabur, the baker's salesman.
-// THIS IS A PLACEHOLDER!
-
-020-2-20,47,30,0 script Drabur NPC_GENERAL_STORE,{
- mesn;
- mesq l("Please don't interrupt my work, I am busy.");
- next;
- select
- l("Hi there."),
- l("Do you sell anything here?"),
- l("Could I lodge here?"),
- l("Goodbye.");
- mes "";
- switch (@menu) {
- case 1:
- mesn;
- mesq l("...");
- break;
- case 2:
- mesn;
- mesq l("Sure - take a look.");
- next;
- closeclientdialog;
- shop .name$;
- break;
- case 3:
- mesn;
- mesq l("Sorry, we've booked our only room to a foreigner called Kylian.");
- next;
- mesn;
- mesq l("And we got rid of the extra beds as no one was using them, so we are full at the moment. Come again later.");
- break;
- }
- close;
-
-OnInit:
- .distance = 4;
- tradertype(NST_MARKET);
-
- sellitem BlueberryCake, -1, 1+rand2(10);
- sellitem CarrotCake, -1, 1+rand2(10);
- sellitem Donut, -1, 1+rand2(10);
- end;
-
-OnClock0002:
- restoreshopitem BlueberryCake, rand2(11);
- restoreshopitem CarrotCake, rand2(11);
- restoreshopitem Donut, rand2(11);
- end;
-}
diff --git a/npc/020-2-20/riskim.txt b/npc/020-2-20/riskim.txt
deleted file mode 100644
index f68b9825..00000000
--- a/npc/020-2-20/riskim.txt
+++ /dev/null
@@ -1,152 +0,0 @@
-// The Mana World scripts.
-// Author:
-// Micksha
-// Description:
-// Riskim, the baker in Tulimshar.
-// THIS IS A PLACEHOLDER!
-
-020-2-20,49,30,0 script Riskim NPC_CHEF_LEGACY,{
- function foodQuestline;
- .@q=getq(General_Cooking);
- speech
- l("Hi there."),
- l("Need a Donut?"),
- l("Well, tell me the recipe and I will bake for you whatever you need, for a small fee."),
- l("But: No recipe, no desserts.");
- if (.@q > 10)
- foodQuestline;
- close;
-
-function foodQuestline {
- .@q=getq(General_Cooking);
- .@q2=getq2(General_Cooking);
- mes "";
- select
- rif(.@q == 11, l("Aww, but I was hoping to learn a recipe!")),
- rif(.@q >= 14, l("I needed Acorn Flour.")),
- rif(.@q >= 14, l("Do you need acorn flour yourself?")),
- rif(.@q >= 14, l("I want to cook!")),
- l("=(");
- mes "";
- switch (@menu) {
- case 1:
- mesn;
- mesq l("What? Get out of here you noob. The recipes are the pride of this inn-bakery and I'm not going to give them away just because you asked.");
- next;
- mesn;
- mesq l("Besides, I already have an apprentice - He should be cleaning the basement at this moment, including.");
- next;
- mesn;
- mesq l("Get out of my face and don't say that again.");
- setq1 General_Cooking, 12;
- break;
- case 2:
- mesn;
- mesq l("Only the best %s can make fine recipes.", getitemlink(AcornFlour));
- next;
- mesn;
- mesq l("I'm willing to make you one flour for each %d %s you bring me. Three for you, and two as commission.", 5, getitemlink(Acorn));
- next;
- mesn;
- mesq l("So, how many do you want?");
- menuint
- rif(countitem(Acorn) >= 5, l("I want %d", 1)), 1,
- rif(countitem(Acorn) >= 25, l("I want %d", 5)), 5,
- rif(countitem(Acorn) >= 50, l("I want %d", 10)), 10,
- rif(countitem(Acorn) >= 125, l("I want %d", 25)), 25,
- rif(countitem(Acorn) >= 250, l("I want %d", 50)), 50,
- rif(countitem(Acorn) >= 500, l("I want %d", 100)), 100,
- rif(countitem(Acorn) >= 5, l("As many as you can.")), countitem(Acorn)/5,
- l("Ehrm, none, thanks."), 0;
- mes "";
- if (!@menuret)
- break;
- inventoryplace AcornFlour, @menuret;
- delitem Acorn, @menuret*5;
- getitem AcornFlour, @menuret;
- mesn;
- mesq l("Here you go. A pleasure doing business with you.");
- break;
- case 3:
- // DailyQuest(lvl, cost, count, item)
- DailyQuest(20, 3, 1, AcornFlour);
- break;
- case 4:
- mesn;
- mesq l("My charge is %d E per batch.", .price);
- if (Zeny < .price)
- break;
- next;
- do
- {
- mes "##B" + l("Drag and drop the items from your inventory in the frames.") + "##b";
-
- // Crafting skin with 4 columns
- setskin "craft4";
- .@var$ = requestcraft(4); // Limit: 4 items
- .@craft = initcraft(.@var$);
- .@entry = findcraftentry(.@craft, CRAFT_COOKING);
- setskin "";
-
- // Does the recipe exist and is a sandwich?
- if (.@entry < 0)
- {
- narrator
- l("You don't know how any recipe with that."),
- l("Do you want to try again?");
- if (askyesno() == ASK_YES)
- .@tryAgain=true;
- else
- .@tryAgain=false;
- }
- else
- {
- // Did player cheat? If not, proceed with the craft
- if (!validatecraft(.@craft))
- {
- narrator
- l("Where are the ingredients?");
- .@tryAgain=true;
- }
- else
- {
- // Even if the recipe is right, if you don't have it on your
- // recipe book, it should be deemed invalid.
- if (RECIPES[.@entry])
- {
- usecraft .@craft;
- narrator
- l("Done!"),
- l("Do you want to try again?");
- }
- else
- {
- narrator
- l("You don't know how any recipe with that."),
- l("Do you want to try again?");
- }
-
- if (askyesno() == ASK_YES)
- .@tryAgain=true;
- else
- .@tryAgain=false;
- }
- }
-
- // Clear unused variables and clear the screen.
- deletecraft .@craft;
- Zeny-=.price;
- if (Zeny < .price)
- .@tryAgain = false;
- clear;
- } while (.@tryAgain);
- break;
- }
- return;
-}
-
-OnInit:
- .distance = 4;
- .price = 120;
- end;
-}