summaryrefslogtreecommitdiff
path: root/npc/031-7
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-10-23 21:44:22 -0300
committerJesusaves <cpntb1@ymail.com>2022-10-23 21:44:22 -0300
commita7c45a192268da2601cef47a4cdba987ae2327ca (patch)
treec5fb5b97db109fe7106496dd96498c475881046b /npc/031-7
downloadserverdata-a7c45a192268da2601cef47a4cdba987ae2327ca.tar.gz
serverdata-a7c45a192268da2601cef47a4cdba987ae2327ca.tar.bz2
serverdata-a7c45a192268da2601cef47a4cdba987ae2327ca.tar.xz
serverdata-a7c45a192268da2601cef47a4cdba987ae2327ca.zip
Initial commit (Moubootaur Legends fork)
Diffstat (limited to 'npc/031-7')
-rw-r--r--npc/031-7/_import.txt4
-rw-r--r--npc/031-7/_warps.txt3
-rw-r--r--npc/031-7/tametomo.txt87
3 files changed, 94 insertions, 0 deletions
diff --git a/npc/031-7/_import.txt b/npc/031-7/_import.txt
new file mode 100644
index 0000000..dfa82e0
--- /dev/null
+++ b/npc/031-7/_import.txt
@@ -0,0 +1,4 @@
+// Map 031-7: Aethyr Townhall
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+"npc/031-7/_warps.txt",
+"npc/031-7/tametomo.txt",
diff --git a/npc/031-7/_warps.txt b/npc/031-7/_warps.txt
new file mode 100644
index 0000000..2a08698
--- /dev/null
+++ b/npc/031-7/_warps.txt
@@ -0,0 +1,3 @@
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+// Map 031-7: Aethyr Townhall warps
+031-7,56,52,0 warp #031-7_56_52 0,0,031-1,56,48
diff --git a/npc/031-7/tametomo.txt b/npc/031-7/tametomo.txt
new file mode 100644
index 0000000..fcd314f
--- /dev/null
+++ b/npc/031-7/tametomo.txt
@@ -0,0 +1,87 @@
+// TMW2 scripts.
+// Authors:
+// Jesusalva
+// Description:
+// Questmaker Handbook 14.0 (F = Favorable)
+
+031-7,76,49,2 script Tametomo NPC_SAVIOR,{
+ if (BaseLevel < 90) {
+ mesc l("The wizard seems busy. He ignores you.");
+ close;
+ }
+ .@q = getq(AethyrQuest_Tametomo);
+ .@bt = (.@q & 1);
+ .@lp = (.@q & 2);
+
+ // Generate the dialog
+ .@m$=" ";
+ if (!.@bt)
+ .@m$+="unless you have a "+getitemlink(Butterfly)+",";
+ if (!.@q)
+ .@m$+=" or ";
+ if (!.@lp)
+ .@m$+="unless you have a "+getitemlink(LavaManaPearl)+",";
+
+ mesn;
+ mesq l("Go away,%s can't you see I'm busy?", .@m$);
+
+ // Generate the menu
+ if (!.@bt && countitem(Butterfly))
+ .@showbt=true;
+ if (!.@lp && countitem(LavaManaPearl))
+ .@showlp=true;
+ if (!.@showbt && !.@showlp)
+ close;
+
+ // Display the menu if pertinent
+ next;
+ select
+ l("Sure, sure, I'm going..."),
+ rif(.@showbt, l("I have a butterfly.")),
+ rif(.@showlp, l("I have a lava mana pearl."));
+ mes "";
+ .@opt = @menu;
+ switch (@menu) {
+ case 2:
+ case 3:
+ mesn;
+ mesq l("%s Monster Points, and a %s. That's my final offer.", fnum(35000), getitemlink(EquipmentBlueprintE));
+ next;
+ inventoryplace EquipmentBlueprintE, 1;
+ mesc l("Accept offer?");
+
+ if (askyesno() == ASK_NO) break;
+
+ if (.@opt == 2 && !.@bt) {
+ delitem Butterfly, 1;
+ setq AethyrQuest_Tametomo, .@q | 1;
+ Mobpt+=35000;
+ getitem EquipmentBlueprintE, 1;
+ }
+
+ if (.@opt == 3 && !.@lp) {
+ delitem LavaManaPearl, 1;
+ setq AethyrQuest_Tametomo, .@q | 2;
+ Mobpt+=35000;
+ getitem EquipmentBlueprintE, 1;
+ }
+
+ mesn;
+ mesq l("Hmpf. A pleasure doing business with you.");
+ }
+ close;
+
+OnInit:
+ .@npcId = getnpcid(.name$);
+ setunitdata(.@npcId, UDT_HEADBOTTOM, GraduationRobe);
+ setunitdata(.@npcId, UDT_HEADMIDDLE, ManaGloves);
+ setunitdata(.@npcId, UDT_HEADTOP, ImperialCrown);
+ setunitdata(.@npcId, UDT_HAIRSTYLE, 9);
+ setunitdata(.@npcId, UDT_HAIRCOLOR, 18);
+ npcsit;
+
+ .sex = G_MALE;
+ .distance = 5;
+ end;
+}
+