summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2025-01-11 17:53:45 -0300
committerJesusaves <cpntb1@ymail.com>2025-01-11 17:53:45 -0300
commita5fe71dce720b541d406fbe212fb0e2948295e61 (patch)
treed272765558e13cc5c1305a925358d05c27651bcb
parent4efed5fce379cbad20685c551405e61dabb97a03 (diff)
downloadserverdata-a5fe71dce720b541d406fbe212fb0e2948295e61.tar.gz
serverdata-a5fe71dce720b541d406fbe212fb0e2948295e61.tar.bz2
serverdata-a5fe71dce720b541d406fbe212fb0e2948295e61.tar.xz
serverdata-a5fe71dce720b541d406fbe212fb0e2948295e61.zip
Ofelia may now give Dyes. Also, add more rares, truly rare ones.
-rw-r--r--npc/019-4-1/ofelia.txt40
1 files changed, 36 insertions, 4 deletions
diff --git a/npc/019-4-1/ofelia.txt b/npc/019-4-1/ofelia.txt
index 289723bd4..bdf5589c9 100644
--- a/npc/019-4-1/ofelia.txt
+++ b/npc/019-4-1/ofelia.txt
@@ -38,8 +38,8 @@ L_Reward:
mesc b(l("Do you want to spin the wheel and claim your rewards now? Make sure you have enough space for everything and a stable internet connection!")), 1;
if (askyesno() == ASK_NO) { closeclientdialog; close; }
// Some explanation and last chance for regrets
- mesc l("Prizes are divided in 8 categories: Food, Tea, Cake, Potions, Paper, Exploration, Boxes and Rares. You'll do %d pulls in total.", .@progress);
- mesc l("All categories have an equal chance of being selected, except for Rares, which are always the 15th and 30th pull. Every 5 pulls, you'll also get some Strange Coins as a memento.");
+ mesc l("Prizes are divided in 9 categories: Food, Tea, Cake, Potions, Paper, Exploration, Boxes, Dyes and Rares. You'll do %d pulls in total.", .@progress);
+ mesc l("All categories have an equal chance of being selected, except for Rares, which are always the 15th and 30th pull. Every 5 non-rare pulls, you'll also get some Strange Coins as a memento.");
mesc l("If you're ready I'll begin now.");
next;
// We eliminate your saved data NOW
@@ -165,7 +165,7 @@ function _spin {
getitem StrangeCoin, .@pull / 5;
mesc l("This is your %dth pull. You have received %d %s as a memento.", .@pull, (.@pull/5), getitemlink(StrangeCoin)), 2;
}
- .@type$ = any("Box", "Food", "Tea", "Cake", "Potion", "Exploration Utility", "Paper");
+ .@type$ = any("Box", "Dye", "Food", "Tea", "Cake", "Potion", "Exploration Utility", "Paper");
.@amount = 1;
if (.@type$ == "Food") {
.@item = relative_array_random(.food);
@@ -187,6 +187,8 @@ function _spin {
.@item = relative_array_random(.boxes);
} else if (.@type$ == "Paper") {
.@item = relative_array_random(.paper);
+ } else if (.@type$ == "Dye") {
+ .@item = relative_array_random(.dyes);
} else {
Exception(sprintf("Unknown Ofelia Item Class: %s. Using fallback.", .@type$), RB_SPEECH|RB_PLEASEREPORT|RB_DEBUGMES|RB_IRCBROADCAST);
.@item = any(CreasedShirt, CreasedShorts, XmasGift);
@@ -420,6 +422,33 @@ OnInit:
);
//////////////////////////////////////////
// Always give 1
+ setarray(.dyes, 0,
+ PurpleDye, 2,
+ DarkRedDye, 2,
+ BlackDye, 2,
+ SilverDye, 4,
+ NavyBlueDye, 4,
+ BlueGrayDye, 4,
+ FuschiaDye, 4,
+ BrownDye, 4,
+ MauveDye, 4,
+ RedDye, 6,
+ CamelDye, 6,
+ CrimsonDye, 6,
+ KhakiDye, 6,
+ MintDye, 6,
+ TealDye, 8,
+ PinkDye, 8,
+ GreenDye, 8,
+ LimeDye, 8,
+ BlueDye, 10,
+ YellowDye, 10,
+ ChocolateDye, 10,
+ OrangeDye, 10,
+ ArcmageBoxset, 1
+ );
+ //////////////////////////////////////////
+ // Always give 1
setarray(.rare, 0,
Manapple, 3,
DivineApple, 2,
@@ -453,7 +482,10 @@ OnInit:
Arcanum, 1,
Brain, 1,
IceGladius, 1,
- Kanabo, 1
+ Kanabo, 1,
+ SmileyCap, 1,
+ ClericCap, 1,
+ Barrel, 1
);
//////////////////////////////////////////
// Gives 1~3x