diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-02-08 23:48:52 -0200 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-02-08 23:48:52 -0200 |
commit | e270acd927459a0ee9ea480d51272bdb1edf8393 (patch) | |
tree | 755eb7a7ba9522959a9165d4969423b550d1da24 /npc/017-3 | |
parent | 86389b43c807e0f21af88867ed7ad9e668e41ed3 (diff) | |
download | serverdata-e270acd927459a0ee9ea480d51272bdb1edf8393.tar.gz serverdata-e270acd927459a0ee9ea480d51272bdb1edf8393.tar.bz2 serverdata-e270acd927459a0ee9ea480d51272bdb1edf8393.tar.xz serverdata-e270acd927459a0ee9ea480d51272bdb1edf8393.zip |
Valentine Day accessory functionality finished.
Diffstat (limited to 'npc/017-3')
-rw-r--r-- | npc/017-3/loratay.txt | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/npc/017-3/loratay.txt b/npc/017-3/loratay.txt index d2da01b54..c9f640b4b 100644 --- a/npc/017-3/loratay.txt +++ b/npc/017-3/loratay.txt @@ -21,11 +21,26 @@ close; L_Valentine: - // Lorem ipsum dolor sit amet - close; + mesn; + mesq l("It's valentine day, and I got my hands on a @@ model!", getitemlink(ValentineDress, RedDye)); + next; + // Standard date: 12~15 feb + // Std price range: 288 ~ 383 points + .@todayprice=(gettime(GETTIME_DAYOFMONTH)*24)+gettime(GETTIME_HOUR); + mesn; + mesq l("You currently have @@ event points, but for ONLY @@ points I can make a dress for you!", #VALENTINE_POINTS, .@todayprice); + mesc l("The price raises hourly, don't leave to make it on the last day!"); + if (#VALENTINE_POINTS < .@todayprice) + close; + next; + mesn; + mesq l("Do you want to trade your points? The demand keep raising, and so does the price!"); + if (askyesno() == ASK_NO) + close; setq SQuest_Valentine, gettime(GETTIME_YEAR); - getitem2(ValentineDress, 1, 1, 0, 0, any(DarkRedDye, RedDye), 0,0,0); + #VALENTINE_POINTS-=.@todayprice; + getitem2(ValentineDress, 1, 1, 0, 0, any(RedDye, RedDye, DarkRedDye, RedDye), 0,0,0); // 25% chance to get an ugly dress getexp BaseLevel*110, JobLevel*11; mesn; mesq l("There you go, your Valentine Dress!"); |