From 4c89082ac1be0b8512f5d5e189e323e21c59ab49 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 31 Jul 2024 17:35:33 -0300 Subject: 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) --- npc/017-3/loratay.txt | 9 +++++++-- 1 file 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; -- cgit v1.2.3-70-g09d2