diff options
author | Jesusaves <cpntb1@ymail.com> | 2024-07-31 17:35:33 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2024-07-31 17:35:33 -0300 |
commit | 4c89082ac1be0b8512f5d5e189e323e21c59ab49 (patch) | |
tree | 8fbcead5847c4b4305705269dffe3cf2723093cc | |
parent | 402a10239abae8f7070bcb588583888314c537cc (diff) | |
download | serverdata-4c89082ac1be0b8512f5d5e189e323e21c59ab49.tar.gz serverdata-4c89082ac1be0b8512f5d5e189e323e21c59ab49.tar.bz2 serverdata-4c89082ac1be0b8512f5d5e189e323e21c59ab49.tar.xz serverdata-4c89082ac1be0b8512f5d5e189e323e21c59ab49.zip |
Valentine Day: Make the color of the dress to vary each year.
For 2025 it'll be classic red, with 12% chance of Dark Red and 12% of Purple.
(You can bleach them if you want, I just wanted to be slightly less boring)
-rw-r--r-- | npc/017-3/loratay.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/npc/017-3/loratay.txt b/npc/017-3/loratay.txt index fbbbdc4ab..ddef7616d 100644 --- a/npc/017-3/loratay.txt +++ b/npc/017-3/loratay.txt @@ -23,8 +23,11 @@ close; L_Valentine: + .@dye = .colors[gettime(7) % getarraysize(.colors)]; + .@pdy = .colors[(1-gettime(7)) % getarraysize(.colors)]; + .@ndy = .colors[(1+gettime(7)) % getarraysize(.colors)]; mesn; - mesq l("It's valentine day, and I got my hands on a @@ model!", getitemlink(ValentineDress, RedDye)); + mesq l("It's valentine day, and I got my hands on a @@ model!", getitemlink(ValentineDress, .@dye)); next; // Standard date: 12~15 feb // Std price range: 288 ~ 383 points @@ -44,7 +47,8 @@ L_Valentine: setq SQuest_Valentine, gettime(GETTIME_YEAR); //if (gettime(GETTIME_YEAR) != 2020) // #VALENTINE_POINTS-=.@todayprice; - getitem2(ValentineDress, 1, 1, 0, 0, any(RedDye, RedDye, DarkRedDye, RedDye), 0,0,0); // 25% chance to get an ugly dress + // 33% chance to get a different colored dress + getitem2(ValentineDress, 1, 1, 0, 0, any(.@dye, .@dye, .@pdy, .@ndy, .@dye, .@dye), 0,0,0); getexp BaseLevel*110, JobLevel*11; mesn; mesq l("There you go, your Valentine Dress!"); @@ -133,6 +137,7 @@ L_Sorcerer: close; OnInit: + setarray .colors, RedDye, DarkRedDye, OrangeDye, PinkDye, FuschiaDye, MauveDye, CrimsonDye, MauveDye, PurpleDye; .sex=G_FEMALE; .distance=5; end; |