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 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'npc/functions/aurora.txt') 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"; -- cgit v1.2.3-70-g09d2