From b915c9809e69f6300d1a878988c08fdb94ee04bb Mon Sep 17 00:00:00 2001 From: Vincent Petithory Date: Sun, 24 Mar 2013 17:07:02 +0100 Subject: Easter fix: play the FX_GETITEM particle effect whenever the player receives an object --- world/map/npc/008-1/annualeaster.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'world/map') diff --git a/world/map/npc/008-1/annualeaster.txt b/world/map/npc/008-1/annualeaster.txt index bbd11759..fa0a0aa1 100644 --- a/world/map/npc/008-1/annualeaster.txt +++ b/world/map/npc/008-1/annualeaster.txt @@ -34,6 +34,7 @@ function|script|AnnualEasterEvent|{ if (@random < @tmp) getitem $@SmallAnnualEasterItems$[@random], rand(1, 2); if (@random == @tmp) getexp rand(200), 0; if (@random == @tmp + 1) set Zeny, Zeny + rand(50); + misceffect FX_GETITEM, strcharinfo(0); // give out a better reward occasionally: // standard case is branch taken, so only if rand yields 0, medium rewarding. @@ -42,6 +43,7 @@ function|script|AnnualEasterEvent|{ set @random, rand(getarraysize($@MediumAnnualEasterRewards$)); getitem $@MediumAnnualEasterRewards$[@random], 1; + misceffect FX_GETITEM, strcharinfo(0); NoEasterEgg: @@ -72,6 +74,7 @@ NoEasterEgg: // now hand out the specific item: set @rewardindex, @rewardindex % getarraysize($@FinalAnnualEasterReward$); getitem $@FinalAnnualEasterReward$[@rewardindex], 1; + misceffect FX_GETITEM, strcharinfo(0); message strcharinfo(0), "This is really special. You won't find anything like this again."; goto L_End1; @@ -90,6 +93,7 @@ L_EndTooYoung: L_WarmUp: set @eastertimepenalty, gettimetick(2); getitem "GreenApple", 1; + misceffect FX_GETITEM, strcharinfo(0); message strcharinfo(0), "Hmmm eggs! Maybe you can find something nice there!"; goto L_End1; -- cgit v1.2.3-70-g09d2