diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-05-16 15:41:25 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-05-16 15:41:25 -0300 |
commit | d86605b17166e8da846cdef38297dfa3c5b3e45e (patch) | |
tree | 49ab5887f1b8fe07a481f0dcef8ac7d6b8d83c2c | |
parent | 1431ce06df820b913114b1ac47c14ff6ff6512aa (diff) | |
download | serverdata-d86605b17166e8da846cdef38297dfa3c5b3e45e.tar.gz serverdata-d86605b17166e8da846cdef38297dfa3c5b3e45e.tar.bz2 serverdata-d86605b17166e8da846cdef38297dfa3c5b3e45e.tar.xz serverdata-d86605b17166e8da846cdef38297dfa3c5b3e45e.zip |
Update Simon (Worker's Day Cave) so we can, in future, change the requeriment every year.
-rw-r--r-- | npc/001-5/worker.txt | 22 |
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; } |