summaryrefslogtreecommitdiff
path: root/npc/025-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-01-13 03:50:28 -0300
committerJesusaves <cpntb1@ymail.com>2021-01-13 03:50:28 -0300
commit185f8fdf2cd8e3d07eeea2a22bd6904710e86e48 (patch)
treee02affd106e867c3381737b4e2f1f7aad0ea9cec /npc/025-1
parentc56be51bba494bd3662e34b54ec12040546c4c29 (diff)
downloadserverdata-185f8fdf2cd8e3d07eeea2a22bd6904710e86e48.tar.gz
serverdata-185f8fdf2cd8e3d07eeea2a22bd6904710e86e48.tar.bz2
serverdata-185f8fdf2cd8e3d07eeea2a22bd6904710e86e48.tar.xz
serverdata-185f8fdf2cd8e3d07eeea2a22bd6904710e86e48.zip
Xovilam, Fortress Island Status Reset NPC.
Remove some unused clutter from Malivox and Wyara
Diffstat (limited to 'npc/025-1')
-rw-r--r--npc/025-1/_import.txt1
-rw-r--r--npc/025-1/ctrl.c2
-rw-r--r--npc/025-1/xovilam.txt47
3 files changed, 49 insertions, 1 deletions
diff --git a/npc/025-1/_import.txt b/npc/025-1/_import.txt
index 8077fd8b5..2d7aab78d 100644
--- a/npc/025-1/_import.txt
+++ b/npc/025-1/_import.txt
@@ -5,3 +5,4 @@
"npc/025-1/ctrl.c",
"npc/025-1/ihclot.txt",
"npc/025-1/salohcin.txt",
+"npc/025-1/xovilam.txt",
diff --git a/npc/025-1/ctrl.c b/npc/025-1/ctrl.c
index 8c1cdc8e5..7128a5bf2 100644
--- a/npc/025-1/ctrl.c
+++ b/npc/025-1/ctrl.c
@@ -21,7 +21,7 @@
// TODO: Provide a way to resume failed attempts. Move Phoenix inside.
// TODO: Testing.
// Use setwall() instead of builtin collision? (Deprecates out NPC)
-// TODO: NPCs from inside: Tolchi. Phoenix. Free Status Reset. Aeros Shop. Etc.
+// TODO: NPCs from inside: Phoenix. Aeros Shop. Etc.
// TODO: Spawn inside and outside when siege begins.
// TODO: Heartbeat - (Re)Spawn monsters inside every X seconds
diff --git a/npc/025-1/xovilam.txt b/npc/025-1/xovilam.txt
new file mode 100644
index 000000000..886b03850
--- /dev/null
+++ b/npc/025-1/xovilam.txt
@@ -0,0 +1,47 @@
+// TMW2 Script
+// Author:
+// Jesusalva
+
+025-1,143,59,0 script Xovilam NPC_PLAYER,{
+
+ speech S_LAST_NEXT,
+ l("I am @@, an alchemist specialized in reset potions.", .name$);
+
+ select
+ l("Can you reset my stats please?"),
+ l("You are weird, I have to go sorry.");
+
+ switch (@menu)
+ {
+ case 1:
+ goto L_ResetStats;
+ case 2:
+ goto L_Quit;
+ }
+
+L_ResetStats:
+ mesn;
+ mesq l("Status point reset can't be undone. Do you really want this?");
+
+L_ConfirmReset:
+ ConfirmStatusReset(1000, false);
+ goto L_Quit;
+
+
+L_Quit:
+ goodbye;
+ end;
+
+OnInit:
+ .@npcId = getnpcid(.name$);
+ setunitdata(.@npcId, UDT_HEADTOP, FancyHat);
+ setunitdata(.@npcId, UDT_HEADMIDDLE, SailorShirt);
+ setunitdata(.@npcId, UDT_HEADBOTTOM, BromenalPants);
+ setunitdata(.@npcId, UDT_WEAPON, LousyMoccasins); // Boots
+ setunitdata(.@npcId, UDT_HAIRSTYLE, 7);
+ setunitdata(.@npcId, UDT_HAIRCOLOR, 17);
+
+ .sex = G_MALE;
+ .distance = 4;
+ end;
+}