summaryrefslogtreecommitdiff
path: root/world/map/npc/008-1/annualeaster.txt
diff options
context:
space:
mode:
Diffstat (limited to 'world/map/npc/008-1/annualeaster.txt')
-rw-r--r--world/map/npc/008-1/annualeaster.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/world/map/npc/008-1/annualeaster.txt b/world/map/npc/008-1/annualeaster.txt
index a06099a1..0f8e55c0 100644
--- a/world/map/npc/008-1/annualeaster.txt
+++ b/world/map/npc/008-1/annualeaster.txt
@@ -43,6 +43,7 @@ function|script|AnnualEasterEvent|,
set @random, rand(getarraysize($@MediumAnnualEasterRewards$));
getitem $@MediumAnnualEasterRewards$[@random], 1;
misceffect FX_GETITEM, strcharinfo(0);
+ goto NoEasterEgg;
NoEasterEgg:
@@ -101,6 +102,8 @@ L_End2:
set @eastertimepenalty, @eastertimepenalty + 5;
if (@eastertimepenalty > gettimetick(2))
set @eastertimepenalty, gettimetick(2);
+ goto L_End1;
+
L_End1:
set @rewardindex, 0;
set @easter_year, 0;
@@ -114,18 +117,21 @@ L_End1:
{
set @EasterEggID, 0;
callfunc("AnnualEasterEvent");
+ end;
}
008-1.gat,65,40,0|script|#TestEgg1|375,
{
set @EasterEggID, 1;
callfunc("AnnualEasterEvent");
+ end;
}
008-1.gat,65,40,0|script|#TestEgg2|375,
{
set @EasterEggID, 2;
callfunc("AnnualEasterEvent");
+ end;
}
@@ -198,6 +204,7 @@ L_done_update:
set $@EggID, 2;
callsub S_relocateEasterEgg;
// intentional fallthrough to L_End
+ goto L_End;
L_End:
set $@AEASTER_mapcount, 0;
@@ -225,6 +232,7 @@ S_relocateEasterEgg:
set $@eastereggPos, rand(getarraysize($@easteregg_posx));
npcwarp $@easteregg_posx[$@eastereggPos], $@easteregg_posy[$@eastereggPos], "#TestEgg" + $@EggID;
+ goto L_Return;
L_Return:
return;