summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-02-18 22:09:15 -0300
committerJesusaves <cpntb1@ymail.com>2021-02-18 22:09:15 -0300
commit33810bc2d3007371349de313b7f70478da5646c4 (patch)
tree11a43494c9f3ae18fdd344f5119cde38de0dc1d4
parenta17f1de2e8e8d671e27448b460ccc11577f16ffe (diff)
downloadserverdata-33810bc2d3007371349de313b7f70478da5646c4.tar.gz
serverdata-33810bc2d3007371349de313b7f70478da5646c4.tar.bz2
serverdata-33810bc2d3007371349de313b7f70478da5646c4.tar.xz
serverdata-33810bc2d3007371349de313b7f70478da5646c4.zip
Add Yuko, the Fortress Island Greedy Shopkeeper. _(His full name is Yuko Cuf.)_
-rw-r--r--db/re/item_db.conf2
-rw-r--r--npc/025-1/_import.txt1
-rw-r--r--npc/025-1/ctrl.c2
-rw-r--r--npc/025-1/yuko.txt43
4 files changed, 47 insertions, 1 deletions
diff --git a/db/re/item_db.conf b/db/re/item_db.conf
index 82bc793cf..915d8b1cb 100644
--- a/db/re/item_db.conf
+++ b/db/re/item_db.conf
@@ -16446,7 +16446,7 @@ item_db: (
Delay: 2500
Script: <"
// Reset homunculus stats
- homshuffle(); // FIXME
+ homshuffle();
dispbottom l("Homunculus stats were reset!");
">
},
diff --git a/npc/025-1/_import.txt b/npc/025-1/_import.txt
index f225107b2..c373e0463 100644
--- a/npc/025-1/_import.txt
+++ b/npc/025-1/_import.txt
@@ -14,3 +14,4 @@
"npc/025-1/selim.txt",
"npc/025-1/teleporter.txt",
"npc/025-1/xovilam.txt",
+"npc/025-1/yuko.txt",
diff --git a/npc/025-1/ctrl.c b/npc/025-1/ctrl.c
index 748da88f5..f6559ddf4 100644
--- a/npc/025-1/ctrl.c
+++ b/npc/025-1/ctrl.c
@@ -46,6 +46,7 @@ function script FTCleanup {
// Main gate
if ($FORTRESS_STATE) {
hideonnpc "Gate#F";
+ enablenpc "Yuko";
enablenpc "Ihclot";
enablenpc "Salohnic";
enablenpc "Xovilam";
@@ -60,6 +61,7 @@ function script FTCleanup {
donpcevent "#025-1_99_112::OnDisable";
} else {
hideoffnpc "Gate#F";
+ disablenpc "Yuko";
disablenpc "Ihclot";
disablenpc "Salohnic";
disablenpc "Xovilam";
diff --git a/npc/025-1/yuko.txt b/npc/025-1/yuko.txt
new file mode 100644
index 000000000..ad61472d2
--- /dev/null
+++ b/npc/025-1/yuko.txt
@@ -0,0 +1,43 @@
+// TMW2 Script
+// Author:
+// Jesusalva
+// Yuko Cuf is YuckFou
+
+025-1,143,59,0 script Yuko NPC_PLAYER,{
+ mesn;
+ mesq l("Cuf! Cuf!"); // --TRANSLATORS: NOT A TYPO
+ next;
+ mesn;
+ mesq l("Can I help you somehow today?");
+ next;
+ closeclientdialog;
+ shop .name$;
+ goodbye;
+ close;
+
+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;
+
+ tradertype(NST_MARKET);
+ sellitem HomunResetPotion, -1, 5;
+ sellitem PurificationPotion, -1, 20;
+ sellitem EmptyBox, -1, 30;
+ end;
+
+OnClock1149:
+OnClock2359:
+ restoreshopitem HomunResetPotion, 5;
+ restoreshopitem PurificationPotion, 20;
+ restoreshopitem EmptyBox, 30;
+ end;
+}
+