diff options
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/aurora.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/npc/functions/aurora.txt b/npc/functions/aurora.txt index fbad772e7..fc131bef4 100644 --- a/npc/functions/aurora.txt +++ b/npc/functions/aurora.txt @@ -53,6 +53,7 @@ // AEF: BEGIN function script FYNewEvent { + consolebug "FYNewEvent %d", gettimetick(0); debugmes "\033[1mFY event is set to happen...\033[0m"; // Aurora Events only begin after Liberation Day if ($GAME_STORYLINE < 1) @@ -96,6 +97,7 @@ function script FYNewEvent { deletearray $FYRAID_TIME; deletearray $FYRAID_HP; deletearray $FYRAID_LV; + consolebug "FYNewEvent Select %d", gettimetick(0); // Select the event switch ($FYEVENT_CYCLE % 12) { case 1: @@ -159,7 +161,9 @@ function script FYNewEvent { kamibroadcast($DREAMTOWER_SAGE$+"'s Dream Towers have appeared!", "Aurora Events"); break; } + consolebug "FYNewEvent Restore %d", gettimetick(0); donpcevent "Aurora::OnRestore"; + consolebug "FYNewEvent end %d", gettimetick(0); return; } @@ -172,6 +176,7 @@ function script FYNewEvent { // types: misc, bp, warp, pot, heal, ore, magic, gift // maxlv: 3 5 2 3 - 6 - 5 function script FYT { + consolebug "FYT %d - %d", getarg(1, 0), gettimetick(0); .@t=getarg(0); .@l=getarg(1, 0); switch (.@t) { @@ -263,9 +268,11 @@ function script FYT { function script FYE_Autoset { + consolebug "FYAutoset %d", gettimetick(0); // Sets 30 ranked rewards .@b=FY_BP; .@g=FY_GIFT; .@h=FY_HEAL; .@m=FY_MISC; .@mg=FY_MAGIC; .@o=FY_ORE; .@p=FY_POT; .@w=FY_WARP; + consolebug "FYAutoset Set %d", gettimetick(0); setarray $FYREWARD_ID, FYT(.@g, 1), StrangeCoin, FYT(.@m, 1), FYT(.@b, 1), FYT(.@p, 1), FYT(.@h, 1), FYT(.@o, 1), FYT(.@o, 6), FYT(.@g, 2), FYT(.@w, 1), @@ -274,6 +281,7 @@ function script FYE_Autoset { FYT(.@w, 2), StrangeCoin, FYT(.@b, 4), FYT(.@p, 3), AncientBlueprint, FYT(.@g, 4), FYT(.@o, 4), FYT(.@b, 5), FYT(.@o, 5), FYT(.@g, 5); + consolebug "FYAutoset IAT %d", gettimetick(0); // Item Amount Table .@hv=rand2(1,3); .@p1=any(1,2); .@p2=(.@p1 == 1 ? 2 : 1); @@ -734,17 +742,20 @@ function script FYE_Submit { // Stops any Aurora Event function script FYStopEvent { + consolebug "FYStopEvent %d", gettimetick(0); setarray .@av$, "Kamelot", "Regnum", "Expo", "Fishing", "Candor", "Mining", "Tower", "Raid", "Olympics", "Celestia", "Rebirth", "Siege", "Gemini"; if (array_find(.@av$, $EVENT$) >= 0) { sClear(); $EVENT$=""; } + consolebug "FYStopEvent end %d", gettimetick(0); return; } // Handle the ending of Aurora Events (see also functions/util.txt) function script FYRewardEvent { + consolebug "FYRewardEvent %d", gettimetick(0); if (FYEventUsesRanking()) { debugmes("Rewards are due"); // This code absolutely can't fail: @@ -788,6 +799,7 @@ function script FYRewardEvent { if ($@aurora_charid[1] > 0) rodex_sendmail($@aurora_charid[1], "Hocus Pocus", "A Small Gift", "Here is some noob cake for a bright mind.", 0, ApanaCake, 1, ScholarshipTuition, 1); } + consolebug "FYRewardEvent due %d", gettimetick(0); // Destroy the quest DelQuestFromEveryPlayer(Q_AuroraEvent); deletearray $@aurora_name$; @@ -801,6 +813,7 @@ function script FYRewardEvent { DelItemFromEveryPlayer(EventOre); */ } + consolebug "FYRewardEvent end %d", gettimetick(0); return; } |