From 36a3a6ea0a2f16329f9d6fba5bab1f5a0a9e9988 Mon Sep 17 00:00:00 2001 From: Lupus Date: Wed, 20 Sep 2006 05:43:48 +0000 Subject: fixed typos, added missing NEXT;, optimized Niflheim. Clear nif vars garbage git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8819 54d463be-8e91-2dee-dedb-b68131a5f0ec --- npc/cities/einbroch.txt | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'npc/cities/einbroch.txt') diff --git a/npc/cities/einbroch.txt b/npc/cities/einbroch.txt index c5ca2401f..121bcded2 100644 --- a/npc/cities/einbroch.txt +++ b/npc/cities/einbroch.txt @@ -123,6 +123,7 @@ s_Tower2: s_Apple: if(Zeny < 20)goto s_NEnough; + set Zeny,Zeny - 20; mes "["+ @Tower_Name$ +"]"; mes "Before I guide you to"; mes "the tower, let me check"; @@ -130,7 +131,6 @@ s_Apple: mes "your safety before I give"; mes "you the Apple Combo Set."; next; - set Zeny,Zeny - 20; getitem 512,1; goto s_Tower2; @@ -221,11 +221,17 @@ s_Goback: mes "Thank you for using"; mes "our services."; close2; - set @towerwarp,rand(1,3); - if(@towerwarp == 0)warp "einbroch.gat",218,196; - if(@towerwarp == 1)warp "einbroch.gat",178,172; - if(@towerwarp == 3)warp "einbroch.gat",172,228; - end; + switch(rand(1,3)){ + case 0: + warp "einbroch.gat",218,196; + end; + case 1: + warp "einbroch.gat",178,172; + end; + case 3: + warp "einbroch.gat",172,228; + end; + } OnHide: specialeffect 16; @@ -278,7 +284,6 @@ OnUnhide: misceffect 215; end; - } einbroch.gat,232,255,5 script Khowropher 847,{ -- cgit v1.2.3-70-g09d2