summaryrefslogtreecommitdiff
path: root/world/map/npc/008-1/annualeaster.txt
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-04-02 11:06:32 -0700
committerBen Longbons <b.r.longbons@gmail.com>2014-04-02 22:21:29 -0700
commitc0ba38cd4b68491e28e467889804ebc09c9c002e (patch)
treeaf2890e6fe20990d2a9b7c94b991be58f25a5d52 /world/map/npc/008-1/annualeaster.txt
parent514a2f05cb335c1e9210fea58bc9a9a58478283f (diff)
downloadserverdata-c0ba38cd4b68491e28e467889804ebc09c9c002e.tar.gz
serverdata-c0ba38cd4b68491e28e467889804ebc09c9c002e.tar.bz2
serverdata-c0ba38cd4b68491e28e467889804ebc09c9c002e.tar.xz
serverdata-c0ba38cd4b68491e28e467889804ebc09c9c002e.zip
Clean up main scripts
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;