diff options
Diffstat (limited to 'npc/functions/aurora.txt')
-rw-r--r-- | npc/functions/aurora.txt | 55 |
1 files changed, 53 insertions, 2 deletions
diff --git a/npc/functions/aurora.txt b/npc/functions/aurora.txt index d02f7747c..859bdd48f 100644 --- a/npc/functions/aurora.txt +++ b/npc/functions/aurora.txt @@ -39,6 +39,16 @@ // // $WORLDEXPO_ENEMY$ // Name of the enemy responsible for ruining the World's Expo +// $RAIDING_BOSS$ +// Name of the enemy who is raiding down the world +// $DREAMTOWER_SAGE$ +// Name of the sage who owns the Dream Towers +// DTOWER_DAY (CharReg) +// Player variable which controls Dream Tower reset +// DTOWER_ROLL (CharReg) +// Player variable which controls Dream Ticket drop rate +// DTOWER_FLOOR (CharReg) +// Player variable which controls current Dream Tower floor // AEF: BEGIN @@ -60,9 +70,11 @@ function script FYNewEvent { DelItemFromEveryPlayer(EventOre); DelItemFromEveryPlayer(BrokenMedal); DelItemFromEveryPlayer(EventDreamTicket); + DelItemFromEveryPlayer(EventNaftalin); DelChrRegFromEveryPlayer(DTOWER_DAY); DelChrRegFromEveryPlayer(DTOWER_ROLL); DelChrRegFromEveryPlayer(DTOWER_FLOOR); + DelChrRegFromEveryPlayer(FYRAID_LV); // Select the event switch ($FYEVENT_CYCLE % 12) { case 1: @@ -122,7 +134,6 @@ function script FYNewEvent { kamibroadcast("Candor Battle Season is now open!", "Aurora Events"); break; default: - // FIXME: PLACEHOLDER $EVENT$="Tower"; callfunc("FYEConf_Tower"); kamibroadcast("Dream Towers have appeared!", "Aurora Events"); @@ -394,6 +405,40 @@ function script FYE_Tower1 { +// Configure Boss Raid +function script FYEConf_Raid { + $RAIDING_BOSS$=any("Xakabael the Dark", "Janeb the Evil", "Platyna the Red", "Benjamin the Frost", "Reid the Terrific", "Nu'Rem the Destroyer", "Golbenez the Cruel", "King of Typos"); + deletearray $FYRAID_OWNER; + deletearray $FYRAID_TIME; + deletearray $FYRAID_HP; + deletearray $FYRAID_LV; + setarray $FYREWARD_PT, 10, 25, 50, 100, 150, + 200, 300, 500, 750, 1000, + 1250, 1500, 1750, 2000, 2500, + 3000, 3500, 4000, 5000, 6000, + 7500, 9000, 11000, 15000, 20000, + 25000, 30000, 35000, 40000, 50000; + // PS. Max Est. ? + + FYE_Autoset(); + $FYLOGIN_PTS=rand2(1, 2); + return; +} + +// Boss Raid Appears! +function script FYE_Raid { + .@mob=getarg(0, killedrid); + // Obtain the monster level and roll a hidden counter + .@lv=getmonsterinfo(.@mob, MOB_LV); + DTOWER_ROLL+=.@lv; + return; +} + + + + + + // Configure Fishing function script FYEConf_Fishing { @@ -504,6 +549,12 @@ function script FYE_Submit { setq2 Q_AuroraEvent, .@pts; delitem BrokenMedal, countitem(BrokenMedal); + } else if ($EVENT$ == "Raid") { + // .:: BOSS RAID ::. + .@pts+=countitem(EventNaftalin)*1; + + setq2 Q_AuroraEvent, .@pts; + delitem EventNaftalin, countitem(EventNaftalin); } 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); @@ -518,7 +569,7 @@ function script FYE_Submit { // Stops any Aurora Event function script FYStopEvent { - setarray .@av$, "Kamelot", "Regnum", "Expo", "Fishing", "Candor", "Mining", "Tower"; + setarray .@av$, "Kamelot", "Regnum", "Expo", "Fishing", "Candor", "Mining", "Tower", "Raid"; if (array_find(.@av$, $EVENT$) >= 0) { sClear(); $EVENT$=""; |