From a848c3b595c63111b6cbe95bb4738668d5671e34 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 16 May 2020 15:56:28 -0300 Subject: This sketch can give birth to World Expo Aurora Event --- npc/functions/aurora.txt | 12 ++++++++++++ npc/functions/news.txt | 12 ++++++++++++ npc/functions/treasure.txt | 4 ++++ 3 files changed, 28 insertions(+) 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")); } -- cgit v1.2.3-60-g2f50