summaryrefslogtreecommitdiff
path: root/npc/functions/aurora.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/aurora.txt')
-rw-r--r--npc/functions/aurora.txt58
1 files changed, 54 insertions, 4 deletions
diff --git a/npc/functions/aurora.txt b/npc/functions/aurora.txt
index eb71f596e..8a3d932f5 100644
--- a/npc/functions/aurora.txt
+++ b/npc/functions/aurora.txt
@@ -58,6 +58,11 @@ function script FYNewEvent {
DelItemFromEveryPlayer(EventTreasure3);
DelItemFromEveryPlayer(EventFish);
DelItemFromEveryPlayer(EventOre);
+ DelItemFromEveryPlayer(BrokenMedal);
+ DelItemFromEveryPlayer(EventDreamTicket);
+ DelChrRegFromEveryPlayer(DTOWER_DAY);
+ DelChrRegFromEveryPlayer(DTOWER_ROLL);
+ DelChrRegFromEveryPlayer(DTOWER_FLOOR);
// Select the event
switch ($FYEVENT_CYCLE % 12) {
case 1:
@@ -118,9 +123,9 @@ function script FYNewEvent {
break;
default:
// FIXME: PLACEHOLDER
- $EVENT$="Mining";
- callfunc("FYEConf_Mining");
- kamibroadcast("Miners Union Research Request is now open!", "Aurora Events");
+ $EVENT$="Tower";
+ callfunc("FYEConf_Tower");
+ kamibroadcast("Dream Towers have appeared!", "Aurora Events");
break;
}
donpcevent "Aurora::OnRestore";
@@ -352,6 +357,43 @@ function script FYE_Expo {
+// Configure Dream Tower
+function script FYEConf_Tower {
+ $DREAMTOWER_SAGE$=any("Jaxad", "Mr. Saves", "Tux", "Freeyorp", "Cassy", "Crush", "Rotonen", "Kage", "Bjorn", "The Elven Sage", "Hocus Pocus the Fidibus");
+ // Bertram? (https://forums.themanaworld.org/viewtopic.php?p=105296#p105296)
+ setarray $FYREWARD_PT, 1, 3, 5, 7, 10,
+ 15, 22, 30, 45, 60,
+ 75, 100, 120, 150, 200,
+ 250, 300, 400, 500, 600,
+ 750, 1000, 1500, 2000, 2500,
+ 3000, 3500, 4000, 4500, 5000;
+ // PS. Max Est. ?
+
+ FYE_Autoset();
+ $FYLOGIN_PTS=0;
+ return;
+}
+
+// Dream Tower Ticket
+function script FYE_Tower1 {
+ .@mob=getarg(0, killedrid);
+ // Obtain the monster level and roll a hidden counter
+ .@lv=getmonsterinfo(.@mob, MOB_LV);
+ DTOWER_ROLL+=.@lv;
+
+ // There is no luck involved - Just get 1000 dream tower rolls
+ if (DTOWER_ROLL >= 1000) {
+ getitem EventDreamTicket, 1;
+ DTOWER_ROLL-=1000;
+ }
+ return;
+}
+
+
+
+
+
+
// Configure Fishing
function script FYEConf_Fishing {
@@ -456,6 +498,12 @@ function script FYE_Submit {
setq2 Q_AuroraEvent, .@pts;
delitem EventOre, countitem(EventOre);
+ } else if ($EVENT$ == "Tower") {
+ // .:: DREAM TOWER APPEARS ::.
+ .@pts+=countitem(BrokenMedal)*1;
+
+ setq2 Q_AuroraEvent, .@pts;
+ delitem EventFish, countitem(BrokenMedal);
} else {
// Wut? This is not an Aurora Event
Exception($EVENT$+" is NOT a valid Aurora Event; Misdefinition.\n\nPlease ensure that it is defined in utils, aurora, news, and command/event.\n\nFYE_Submit - FYEventUsesRanking - FYE_* - FYEConf_* - FYStopEvent", RB_DEFAULT|RB_ISFATAL);
@@ -470,7 +518,7 @@ function script FYE_Submit {
// Stops any Aurora Event
function script FYStopEvent {
- setarray .@av$, "Kamelot", "Regnum", "Expo", "Fishing", "Candor", "Mining";
+ setarray .@av$, "Kamelot", "Regnum", "Expo", "Fishing", "Candor", "Mining", "Tower";
if (array_find(.@av$, $EVENT$) >= 0) {
sClear();
$EVENT$="";
@@ -532,6 +580,8 @@ function script FYRewardEvent {
function script AuroraMobkill {
if ($EVENT$ == "Mining")
FYE_Mining(killedrid);
+ if ($EVENT$ == "Tower")
+ FYE_Tower1(killedrid);
return;
}