From 112b7b6871749c06f7f53dceeeaf4ccadbfa87d5 Mon Sep 17 00:00:00 2001 From: euphyy Date: Sun, 13 Jan 2013 01:37:40 +0000 Subject: * Updated WOE Controller script to v1.5, which overhauls the rewards system (with many new features). * Fixed another Renewal Izlude coordinate (bugreport:7169). * Fixed a mail bug, since r16574. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17096 54d463be-8e91-2dee-dedb-b68131a5f0ec --- npc/other/mail.txt | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'npc/other') diff --git a/npc/other/mail.txt b/npc/other/mail.txt index 8b236fc76..edd4af17b 100644 --- a/npc/other/mail.txt +++ b/npc/other/mail.txt @@ -26,26 +26,29 @@ //============================================================ - script Mailbox#dummy::MailBox -1,{ mes "[Mailbox]"; - mes "To use the mailbox service, you are required"; - mes "to pay 130 zeny."; + mes "To use the mailbox service,"; + mes "you are required to pay 130 zeny."; mes "Would you like to use the service?"; next; - mes "[Mailbox]"; - if (select("Yes.:No.") == 1) { + switch(select("Yes.:No.")) { + case 1: + mes "[Mailbox]"; if (Zeny < 130) { 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."; + mes "To use the mailbox service,"; + mes "you are required to pay 130 zeny."; close; } mes "Thank you, please come again."; - set Zeny,(Zeny - 130); + set Zeny, Zeny - 130; close2; openmail; end; + case 2: + mes "[Mailbox]"; + mes "Thank you, please come again."; + close; } - mes "Thank you, please come again."; - close; } // Prontera -- cgit v1.2.3-70-g09d2