summaryrefslogtreecommitdiff
path: root/npc/airports/einbroch.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/airports/einbroch.txt')
-rw-r--r--npc/airports/einbroch.txt69
1 files changed, 32 insertions, 37 deletions
diff --git a/npc/airports/einbroch.txt b/npc/airports/einbroch.txt
index 8aa8222c6..eb4fddd57 100644
--- a/npc/airports/einbroch.txt
+++ b/npc/airports/einbroch.txt
@@ -3,7 +3,7 @@
//===== By: ==================================================
//= L0ne_W0lf, Muad_Dib
//===== Current Version: =====================================
-//= 1.3
+//= 1.4
//===== Compatible With: =====================================
//= eAthena Revision 3000+
//===== Description: =========================================
@@ -13,6 +13,7 @@
//= 1.1 Fixed wrong check, added extra condition [Justin84]
//= 1.2 Removed Duplicates [Silent]
//= 1.3 Fixed syntax errors for duplicate [KarLaeda]
+//= 1.4 Removed use of goto. [L0ne_W0lf]
//============================================================
@@ -21,8 +22,7 @@ airport,126,43,4 script Airport Staff#01::AirportE 90,{
mes "Welcome to the Airport.";
mes "How may I help you?";
next;
- menu "Board the Airship",-,"Cancel",L_Cancel;
-
+ if (select("Board the Airship:Cancel") == 1) {
mes "[Airport Staff]";
mes "The Airship boarding fee";
mes "is 1,200 zeny, but if you've";
@@ -30,29 +30,26 @@ airport,126,43,4 script Airport Staff#01::AirportE 90,{
mes "the fee will be waived. Will";
mes "you board the Airship?";
next;
- menu "Yes",-,"No",L_Cancel;
-
- if(countitem(7311) > 0) goto L_GotTicket;
- if(Zeny < 1200) goto L_NoZeny;
- set Zeny, Zeny - 1200;
- warp "airport",148,51;
- close;
-
- L_GotTicket:
- delitem 7311,1;
- warp "airport",148,51;
+ if (select("Yes:No") == 1) {
+ if(countitem(7311) > 0) {
+ delitem 7311,1;
+ warp "airport",148,51;
+ close;
+ }
+ if(Zeny >= 1200) {
+ set Zeny, Zeny - 1200;
+ warp "airport",148,51;
+ close;
+ }
+ mes "[Airport Staff]";
+ mes "You don't have enough zeny.";
close;
-
- L_NoZeny:
- mes "[Airport Staff]";
- mes "You don't have enough zeny.";
- close;
-
- L_Cancel:
- mes "[Airport Staff]";
- mes "Thank you and";
- mes "have a nice day.";
- close;
+ }
+ }
+ mes "[Airport Staff]";
+ mes "Thank you and";
+ mes "have a nice day.";
+ close;
}
airport,143,43,4 duplicate(AirportE) Airport Staff#02 90
@@ -64,8 +61,7 @@ airport,126,51,4 script Airport Staff#04::AirportE2 90,{
mes "Please head this";
mes "way to board the Airship.";
next;
- menu "Exit to Main Terminal",-,"Cancel",L_Cancel;
-
+ if (select("Exit to Main Terminal:Cancel") == 1) {
mes "[Airport Staff]";
mes "If you leave the";
mes "main terminal, you'll";
@@ -74,18 +70,17 @@ airport,126,51,4 script Airport Staff#04::AirportE2 90,{
mes "the Airship. Are you sure";
mes "that you want to exit?";
next;
- menu "Yes",-,"No",L_Cancel;
-
+ if (select("Yes:No") == 1) {
warp "airport",142,40;
close;
-
- L_Cancel:
- mes "[Airport Staff]";
- mes "Alright, thank you";
- mes "for your patronage";
- mes "and I hope you have";
- mes "a pleasant flight~";
- close;
+ }
+ }
+ mes "[Airport Staff]";
+ mes "Alright, thank you";
+ mes "for your patronage";
+ mes "and I hope you have";
+ mes "a pleasant flight~";
+ close;
}
airport,143,51,4 duplicate(AirportE2) Airport Staff#05 90