From 272ce93ee24d8edc1ef426063591942024e93bae Mon Sep 17 00:00:00 2001 From: daegaladh Date: Sat, 4 Aug 2012 10:13:48 +0000 Subject: Fixed and cleaned Izlude Arena and some other scripts. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16574 54d463be-8e91-2dee-dedb-b68131a5f0ec --- npc/other/mail.txt | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) (limited to 'npc/other/mail.txt') diff --git a/npc/other/mail.txt b/npc/other/mail.txt index 8d98f87e2..8b236fc76 100644 --- a/npc/other/mail.txt +++ b/npc/other/mail.txt @@ -3,7 +3,7 @@ //===== By: ================================================== //= L0ne_W0lf //===== Current Version: ===================================== -//= 1.7 +//= 1.8 //===== Compatible With: ===================================== //= rAthena SVN //===== Description: ========================================= @@ -19,6 +19,7 @@ //= 1.5 Moved Morroc Mail boxes to Morroc Ruins. [L0ne_W0lf] //= 1.6 Duplicates now spawn from floating NPCs. [L0ne_W0lf] //= 1.7 Updated Script from the Official. [Elias] +//= 1.8 Optimized a bit. [Daegaladh] //============================================================ // Floating mailbox npc that all NPCs duplicate from. @@ -29,28 +30,22 @@ mes "to pay 130 zeny."; mes "Would you like to use the service?"; next; - switch(select("Yes.","No.")) { - case 1: + mes "[Mailbox]"; + if (select("Yes.:No.") == 1) { if (Zeny < 130) { - mes "[Mailbox]"; mes "I am sorry, but you do not have enough money."; mes "To use the mailbox service, you are required"; mes "to pay 130 zeny."; - break; - } else { - mes "[Mailbox]"; - mes "Thank you, please come again."; - set Zeny,(Zeny - 130); - openmail; - break; + close; } - - case 2: - mes "[Mailbox]"; mes "Thank you, please come again."; - break; + set Zeny,(Zeny - 130); + close2; + openmail; + end; } -close; + mes "Thank you, please come again."; + close; } // Prontera -- cgit v1.2.3-70-g09d2