diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-05-16 15:56:28 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-05-16 15:56:28 -0300 |
commit | a848c3b595c63111b6cbe95bb4738668d5671e34 (patch) | |
tree | 9b7fb7d71f760c4fb328bc5c1ba0bff4e3ee8a23 /npc | |
parent | d86605b17166e8da846cdef38297dfa3c5b3e45e (diff) | |
download | serverdata-a848c3b595c63111b6cbe95bb4738668d5671e34.tar.gz serverdata-a848c3b595c63111b6cbe95bb4738668d5671e34.tar.bz2 serverdata-a848c3b595c63111b6cbe95bb4738668d5671e34.tar.xz serverdata-a848c3b595c63111b6cbe95bb4738668d5671e34.zip |
This sketch can give birth to World Expo Aurora Event
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/aurora.txt | 12 | ||||
-rw-r--r-- | npc/functions/news.txt | 12 | ||||
-rw-r--r-- | npc/functions/treasure.txt | 4 |
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")); } |