OSDN Git Service

First version
[st-ro/stro.git] / npc / airports / rachel.txt
1 //===== rAthena Script ======================================= 
2 //= Rachel Airport NPCs
3 //===== By: ================================================== 
4 //= rAthena Dev Team
5 //===== Current Version: =====================================
6 //= 1.0
7 //===== Compatible With: ===================================== 
8 //= rAthena Project
9 //===== Description: ========================================= 
10 //= Rachel Airport NPCs
11 //===== Additional Comments: ================================= 
12 //= 1.0 First version.
13 //============================================================ 
14
15 ra_fild12,295,208,0     script  toairplane#rachel       45,1,1,{
16         end;
17 OnTouch:
18         mes "To use the airship, you are required to pay 1,200 zeny or a Free Airship Ticket.";
19         mes "Would you like to use the service?";
20         next;
21         if (select("Yes:No") == 1) {
22                 if (countitem(7311) > 0) {
23                         delitem 7311,1; //Free_Flying_Ship_Ticket
24                         warp "airplane_01",245,60;
25                         end;
26                 }
27                 if (Zeny >= 1200) {
28                         set Zeny, Zeny - 1200;
29                         warp "airplane_01",245,60;
30                         end;
31                 }
32                 mes "I am sorry, but you do not have enough money.";
33                 mes "Please remember, you are required to pay 1,200 zeny to use the service.";
34                 close;
35         }
36         mes "Thank you, please come again.";
37         close;
38 }