From 0d9b1ca88800b854d12b696308bf477304a11aa6 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 18 Oct 2021 21:10:38 -0300 Subject: Add Henry's Quest --- npc/020-4/_import.txt | 1 + npc/020-4/henry.txt | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 npc/020-4/henry.txt (limited to 'npc/020-4') diff --git a/npc/020-4/_import.txt b/npc/020-4/_import.txt index 15c48c3bd..aef7c4458 100644 --- a/npc/020-4/_import.txt +++ b/npc/020-4/_import.txt @@ -3,3 +3,4 @@ "npc/020-4/_warps.txt", "npc/020-4/baktar.txt", "npc/020-4/gambler.txt", +"npc/020-4/henry.txt", diff --git a/npc/020-4/henry.txt b/npc/020-4/henry.txt new file mode 100644 index 000000000..8fee40d4a --- /dev/null +++ b/npc/020-4/henry.txt @@ -0,0 +1,83 @@ +// TMW2 Script. +// Author: +// Jesusalva +// Description: +// Questmaker Handbook 14.0 + +020-4,24,38,0 script Henry NPC_HENRY,{ + function newQuest; + function checkQuest; + if (BaseLevel < 70) + end; + .@q=getq(NivalisQuest_Henry); + switch (.@q) { + case 0: + newQuest(); break; + case 1: + checkQuest(); break; + default: + npctalk3 l("*whistles*"); + } + close; + +function newQuest { + mesn; + mesq l("Hey, psst! Come over here!"); + next; + mesn; + mesq l("I need a favor! For certain... reasons... I ran out of poison! And For certain... reasons... I am in dire need of them!"); + next; + mesn; + mesq l("So if you bring me %d %s, I'll pay you awesomely! Whaddaya say?!", 24, getitemlink(NymphPoison)); + next; + select + l("Sure, I'll be right back."), + l("Erm, for certain... reasons... I cannot help you right now!"); + mes ""; + if (@menu == 2) { + closeclientdialog; + return; + } + mesn; + mesq l("Thanks, I knew I could count on you!"); + setq NivalisQuest_Henry, 1; + return; +} + +function checkQuest { + mesn; + mesq l("Did you brought me the %d/%d %s?", countitem(NymphPoison), 24, getitemlink(NymphPoison)); + select + l("Yes, here!"), + l("Sorry, I'll be back."); + mes ""; + if (@menu == 2) { + closeclientdialog; + return; + } + if (countitem(NymphPoison) < 24) { + mesn; + mesq l("Ooh, many thanks! Lemme just grab something for you..."); + next; + mesc l("%s stabs you to the chest!", l("Henry")), 1; + mesn; + mesq l("Foolish kid, thinking they can fool me, Henry S., from all the people...!"); + die(); + return; + } + delitem NymphPoison, 24; + Mobpt+=10000; + getexp 100000, 0; + setq NivalisQuest_Henry, 2; + mesn; + mesq l("Hehehe... Thanks. Here, take these %s Monster Points... This exchange has never happened.", fnum(10000)); + return; +} + + +OnInit: + .sex = G_MALE; + .distance = 5; + end; +} + -- cgit v1.2.3-60-g2f50