summaryrefslogtreecommitdiff
path: root/npc/airports/hugel.txt
blob: 7d4b3f85adb95a5c1ebbc82ccb50ea4f9a087bd0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//===== Hercules Script ======================================
//= Hugel Airport NPCs
//===== By: ==================================================
//= Hercules Dev Team
//===== Description: =========================================
//= Hugel Airport NPCs
//===== Additional Comments: =================================
//= Official NPCs.
//============================================================

hugel,178,142,0	script	toairplane#hugel	WARPNPC,1,1,{
	end;
OnTouch:
	mes "To use the airship, you are required to pay 1,200 zeny or a Free Airship Ticket.";
	mes "Would you like to use the service?";
	next;
	if (select("Yes:No") == 1) {
		if (countitem(7311) > 0) {
			delitem 7311,1; //Free_Flying_Ship_Ticket
			warp "airplane",244,58;
			end;
		}
		if (Zeny >= 1200) {
			Zeny -= 1200;
			warp "airplane",244,58;
			end;
		}
		mes "I am sorry, but you do not have enough money.";
		mes "Please remember, you are required to pay 1,200 zeny to use the service.";
		close;
	}
	mes "Thank you, please come again.";
	close;
}