From d374cb9af05ebc44bb6ff66e9fbc024c90345a0d Mon Sep 17 00:00:00 2001 From: wushin Date: Sat, 26 Mar 2016 12:32:33 -0500 Subject: Add range check --- world/map/npc/008-1/annualeaster.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'world') diff --git a/world/map/npc/008-1/annualeaster.txt b/world/map/npc/008-1/annualeaster.txt index 1030fcd3..6af6f8d0 100644 --- a/world/map/npc/008-1/annualeaster.txt +++ b/world/map/npc/008-1/annualeaster.txt @@ -115,6 +115,9 @@ L_End1: 008-1,65,40,0|script|#TestEgg0|375 { + callfunc "PCtoNPCRange"; + if(@npc_check) end; + set @EasterEggID, 0; callfunc("AnnualEasterEvent"); end; @@ -122,6 +125,9 @@ L_End1: 008-1,65,40,0|script|#TestEgg1|375 { + callfunc "PCtoNPCRange"; + if(@npc_check) end; + set @EasterEggID, 1; callfunc("AnnualEasterEvent"); end; @@ -129,6 +135,9 @@ L_End1: 008-1,65,40,0|script|#TestEgg2|375 { + callfunc "PCtoNPCRange"; + if(@npc_check) end; + set @EasterEggID, 2; callfunc("AnnualEasterEvent"); end; -- cgit v1.2.3-70-g09d2