summaryrefslogtreecommitdiff
path: root/npc/001-5/worker.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/001-5/worker.txt')
-rw-r--r--npc/001-5/worker.txt22
1 files changed, 13 insertions, 9 deletions
diff --git a/npc/001-5/worker.txt b/npc/001-5/worker.txt
index 92a7e561a..500f46e33 100644
--- a/npc/001-5/worker.txt
+++ b/npc/001-5/worker.txt
@@ -28,9 +28,9 @@
alreadyFinished();
mesn;
- mesq l("Hey dude. During this event you can trade one @@ for more... useful items.", getitemlink(Pearl));
+ mesq l("Hey dude. During this event you can trade one @@ for more... useful items.", getitemlink(.item));
mesc l("Attempts for today: %d/%d", .@attempts, BaseLevel/10);
- if (countitem(Pearl) == 0)
+ if (countitem(.item) == 0)
close;
next;
select(
@@ -38,32 +38,32 @@
l("2x Snake Egg"),
l("2x Bronze Gift"),
l("1600 GP"),
- rif(countitem(Pearl) >= 2, l("Trade 2 Pearl for a Silver Gift + a Bronze Gift")),
+ rif(countitem(.item) >= 2, l("Trade 2 %s for a Silver Gift + a Bronze Gift", getitemname(.item))),
l("Nothing right now.")
);
switch (@menu) {
case 1:
- delitem Pearl, 1;
+ delitem .item, 1;
getitem StrangeCoin, 12;
setq2 SQuest_WorkerDay, .@attempts+1;
break;
case 2:
- delitem Pearl, 1;
+ delitem .item, 1;
getitem SnakeEgg, 2;
setq2 SQuest_WorkerDay, .@attempts+1;
break;
case 3:
- delitem Pearl, 1;
+ delitem .item, 1;
getitem BronzeGift, 2;
setq2 SQuest_WorkerDay, .@attempts+1;
break;
case 4:
- delitem Pearl, 1;
+ delitem .item, 1;
Zeny=Zeny+1600;
setq2 SQuest_WorkerDay, .@attempts+1;
break;
case 5:
- delitem Pearl, 2;
+ delitem .item, 2;
getitem SilverGift, 1;
getitem BronzeGift, 1;
setq2 SQuest_WorkerDay, .@attempts+1;
@@ -75,10 +75,14 @@
close;
function alreadyFinished {
- mesc l("I already got enough %s, thank you.", getitemlink(Pearl)), 1;
+ mesc l("I already got enough %s, thank you.", getitemlink(.item)), 1;
close;
}
+OnInit:
+ .item=Pearl;
+ .distance=4;
+ end;
}