summaryrefslogtreecommitdiff
path: root/npc/airports/lighthalzen.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/airports/lighthalzen.txt')
-rw-r--r--npc/airports/lighthalzen.txt83
1 files changed, 39 insertions, 44 deletions
diff --git a/npc/airports/lighthalzen.txt b/npc/airports/lighthalzen.txt
index 64bfe03a9..551ae93e8 100644
--- a/npc/airports/lighthalzen.txt
+++ b/npc/airports/lighthalzen.txt
@@ -3,7 +3,7 @@
//===== By: ==================================================
//= L0ne_W0lf, Muad_Dib
//===== Current Version: =====================================
-//= 1.2
+//= 1.3
//===== Compatible With: =====================================
//= eAthena Revision 3000+
//===== Description: =========================================
@@ -12,6 +12,7 @@
//= 1.0 Cloned from einbroch.txt [Justin84]
//= 1.1 Removed Duplicates [Silent]
//= 1.2 Fixed syntax errors for duplicate [KarLaeda]
+//= 1.3 Removed use of goto. [L0ne_W0lf]
//============================================================
@@ -20,38 +21,34 @@ lhz_airport,126,43,4 script Airport Staff#1::AirportL 90,{
mes "Welcome to the Airport.";
mes "How may I help you?";
next;
- menu "Board the Airship",-,"Cancel",L_Cancel;
-
- mes "[Airport Staff]";
- mes "The Airship boarding fee";
- mes "is 1,200 zeny, but if you've";
- mes "got a Free Ticket for Airship,";
- mes "the fee will be waived. Will";
- mes "you board the Airship?";
- next;
- menu "Yes",-,"No",L_Cancel;
-
- if(countitem(7311) > 0) goto GotTicket;
- if(zeny < 1200) goto L_NoZeny;
- set Zeny,zeny-1200;
- warp "lhz_airport",148,51;
- close;
-
- GotTicket:
- delitem 7311,1;
- warp "lhz_airport",148,51;
- close;
-
- L_NoZeny:
- mes "[Airport Staff]";
- mes "You don't have enough zeny.";
- close;
-
- L_Cancel:
+ if (select("Board the Airship:Cancel") == 1) {
mes "[Airport Staff]";
- mes "Thank you and";
- mes "have a nice day.";
- close;
+ mes "The Airship boarding fee";
+ mes "is 1,200 zeny, but if you've";
+ mes "got a Free Ticket for Airship,";
+ mes "the fee will be waived. Will";
+ mes "you board the Airship?";
+ next;
+ if (select("Yes:No") == 1) {
+ if(countitem(7311) > 0) {
+ delitem 7311,1;
+ warp "lhz_airport",148,51;
+ close;
+ }
+ if(zeny >= 1200) {
+ set Zeny,zeny-1200;
+ warp "lhz_airport",148,51;
+ close;
+ }
+ mes "[Airport Staff]";
+ mes "You don't have enough zeny.";
+ close;
+ }
+ }
+ mes "[Airport Staff]";
+ mes "Thank you and";
+ mes "have a nice day.";
+ close;
}
lhz_airport,143,43,4 duplicate(AirportL) Airport Staff#2 90
@@ -63,8 +60,7 @@ lhz_airport,126,51,4 script Airport Staff#4::AirportL2 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";
@@ -73,18 +69,17 @@ lhz_airport,126,51,4 script Airport Staff#4::AirportL2 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 "lhz_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;
}
lhz_airport,143,51,4 duplicate(AirportL2) Airport Staff#5 90