summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/functions/aurora.txt12
-rw-r--r--npc/functions/news.txt12
-rw-r--r--npc/functions/treasure.txt4
3 files changed, 28 insertions, 0 deletions
diff --git a/npc/functions/aurora.txt b/npc/functions/aurora.txt
index 8d26cdfb8..962e9409e 100644
--- a/npc/functions/aurora.txt
+++ b/npc/functions/aurora.txt
@@ -87,6 +87,7 @@ function script FYNewEvent {
return;
}
+
// Modify Kamelot
function script FYE_Kamelot {
.@g=getcharid(2);
@@ -138,6 +139,17 @@ function script FYE_Regnum {
return;
}
+
+// Modify Treasure Chests
+function script FYE_Expo {
+ // TODO: Merit-based random formula
+ getitem EventTreasure1, rand2(6);
+ getitem EventTreasure2, rand2(4);
+ getitem EventTreasure3, rand2(2);
+ return;
+}
+
+
// Stops any Aurora Event
function script FYStopEvent {
setarray .@av$, "Kamelot", "Regnum";
diff --git a/npc/functions/news.txt b/npc/functions/news.txt
index 9fbb3ed6f..786183189 100644
--- a/npc/functions/news.txt
+++ b/npc/functions/news.txt
@@ -472,6 +472,18 @@ function script EventHelp {
mes l("Farm there and get the best experience value!");
mesc l("Location: %s", $@REGNUM_BLESSMAP_H$), 3;
/////////////////////////////////////////////////////////////////////////
+ } else if ($EVENT$ == "Expo") {
+ mesc ".:: " + l("World Expo") + " ::.", 2;
+ mes "";
+ mes l("yadda yadda yadda");
+ mes l("Collect the treasured crystals from treasure chests");
+ mes "";
+ mes l("yadda yadda yadda");
+ mes l("Return them at the event NPC in Tulimshar");
+ mes "";
+ mes l("This exposition has to be a success!");
+ mesc l("Location: Treasure Chests, hidden inside dungeons."), 3;
+ /////////////////////////////////////////////////////////////////////////
} else {
mesc l("There's no help available for this event.");
/////////////////////////////////////////////////////////////////////////
diff --git a/npc/functions/treasure.txt b/npc/functions/treasure.txt
index e333e4bcb..fe3017b52 100644
--- a/npc/functions/treasure.txt
+++ b/npc/functions/treasure.txt
@@ -52,6 +52,10 @@ function script TreasureBox {
// Get Monster points for treasure hunting (20% from job level)
if (MPQUEST)
Mobpt+=(JobLevel/5);
+
+ // World Expo Event
+ if ($EVENT$ == "Expo")
+ FYE_Expo();
} else {
mesc l("You find @@ inside!", l("nothing"));
}