summaryrefslogtreecommitdiff
path: root/npc/003-8
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-07-14 23:58:55 -0300
committerJesusaves <cpntb1@ymail.com>2019-07-14 23:58:55 -0300
commitc9c62fa1c01197a06aa1d7f85fe858fbc2f38570 (patch)
treee7872c49d5485d0b48cff224a396e17d543f5ebf /npc/003-8
parent6882ac86efef0fb48d4732d2ffd7927eee3f8dcd (diff)
downloadserverdata-c9c62fa1c01197a06aa1d7f85fe858fbc2f38570.tar.gz
serverdata-c9c62fa1c01197a06aa1d7f85fe858fbc2f38570.tar.bz2
serverdata-c9c62fa1c01197a06aa1d7f85fe858fbc2f38570.tar.xz
serverdata-c9c62fa1c01197a06aa1d7f85fe858fbc2f38570.zip
Redesign Intense Beard for new Crafting System which allows you at level 15.
Diffstat (limited to 'npc/003-8')
-rw-r--r--npc/003-8/intensebeard.txt70
1 files changed, 58 insertions, 12 deletions
diff --git a/npc/003-8/intensebeard.txt b/npc/003-8/intensebeard.txt
index 8b4b9ecf4..3d7a94c85 100644
--- a/npc/003-8/intensebeard.txt
+++ b/npc/003-8/intensebeard.txt
@@ -7,6 +7,10 @@
003-8,27,42,4 script Intense Beard NPC_HUMAN_M_ARTIS,{
if (BaseLevel < 15)
goto L_SemNivel;
+ if (!CRAFTQUEST)
+ goto L_SemQuest;
+ if (!getskilllv(TMW2_CRAFT))
+ goto L_Learn;
if (!countitem(RecipeBook))
goto L_SemLivro;
mesn;
@@ -41,6 +45,8 @@
.@opt$+=":"+csysGUI_OptLearnMenu(CRGROUP_FINAL);
+ .@opt$+=":I would like a tutorial";
+
select (.@opt$);
mes "";
switch (@menu) {
@@ -132,6 +138,9 @@
else
mesc l("Not enough Monster Points!"), 1;
break;
+ default:
+ IntenseBeardTutorial();
+ break;
}
// Update boolean
@@ -146,18 +155,17 @@ L_SemNivel:
close;
L_SemLivro:
- if (CRAFTQUEST || !is_admin())
- goto L_SemNivel;
mesn;
mesq l("Heya, noob. Where is your @@? Are you really so noob to have forgot such important book?!", getitemlink(RecipeBook));
next;
- /*
mesn;
mesq l("That's too bad, because I could teach you some amazing craft skills! This will need to wait another day, I guess. Oh well.");
- next;
+ close;
+
+L_SemQuest:
mesn;
- mesq l("Better ask your parents for one... Failing that, maybe someone can gift you one. Not sure what you'll need to do for that, though!");
- */
+ mesq l("Heya, noob. Where is your @@? Are you really so noob to have forgot such important book?!", getitemlink(RecipeBook));
+ next;
mesn strcharinfo(0);
mesc l("Was I supposed to have one? How should I reply?");
mes "";
@@ -195,19 +203,57 @@ L_SemLivro:
mesq l("While we're at that, do you know how to craft? No? First, you'll need a Cauldron, in case you've rented a house. Otherwise, you can rent a work table on this Forge.");
next;
mesn;
- mesq l("You need to read this recipe. Without the essential crafting skill you won't go very far.");
+ mesq l("You need to read this recipe. Without the essential crafting skill you won't go very far. There will be no bonuses on the items you craft because you are not a craftsman.");
// Obtain a blueprint and a recipe book
inventoryplace EquipmentBlueprintA, 1, RecipeBook, 1;
getitem EquipmentBlueprintA, 1;
getitem RecipeBook, 1;
+ CRAFTQUEST=1;
+ next;
+
+L_Learn:
+ mesn;
+ mesq l("I see you don't know how to craft. Do you want me to teach the basic for you? I'll charge 1000 GP.");
+ if (Zeny < 1000)
+ close;
+ next;
+ if (askyesno() == ASK_YES) {
+ // Pay the money
+ Zeny-=1000;
+
+ // Give you the craft skill itself
+ skill TMW2_CRAFT, 1, 0;
+
+ // We should aid you getting basic skills - for free!
+ if (!CRAFTSYS[CRGROUP_BASE])
+ CRAFTSYS[CRGROUP_BASE]+=1;
+ if (!CRAFTSYS_CURRENT)
+ CRAFTSYS_CURRENT=CRAFTSYS_CURRENT|CRGROUP_BASE;
- // We should aid you getting basic skills - for free!
- if (!CRAFTSYS[CRGROUP_BASE])
- CRAFTSYS[CRGROUP_BASE]+=1;
- if (!CRAFTSYS_CURRENT)
- CRAFTSYS_CURRENT=CRAFTSYS_CURRENT|CRGROUP_BASE;
+ mesn;
+ mesq l("There, now you can not only craft items, but craft AWESOME ITEMS!");
+ }
close;
+function IntenseBeardTutorial {
+ mesn;
+ mesq l("Well, first of, you'll need an @@ and an Equipment Recipe.", getitemlink(RecipeBook));
+ next;
+ mesn;
+ mesq l("You can craft items in forges. You can use it on your house, or within this forge for a tax.");
+ next;
+ mesn;
+ mesq l("That will help you to make your very first first craft! Remember to use @@ to change which bonuses can be applied to your craft items.", b("@ucp"));
+ next;
+ mesn;
+ mesq l("I can teach you these bonuses, but more powerful bonuses require more skill to learn... And I don't know anyone who could improve your crafting skill...");
+ next;
+ mesn;
+ mesq l("...The ones who know a lot are dwarves, but they don't live here - they live with elves, it seems.");
+ next;
+ return;
+}
+
OnInit:
.sex=G_MALE;
.distance=5;