summaryrefslogtreecommitdiff
path: root/world/map/npc/009-3/warp.txt
blob: 9bb9ab28dc7d4ab86d8eba7d33c1bfb9c576a36f (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
009-3.gat,162,80,0|script|#PVPCaveBarrier|45,0,0,{
    mes "Do you want to enter the PVP cave? It costs 150GP.";
    menu
        "No.", L_Exit,
        "Yes.", -;
    if (Zeny < 150)
        goto L_NotEnoughMoney;
    if (Zeny >= 150)
        goto L_Pay;

L_Exit:
    close;

L_Pay:
    set Zeny, Zeny - 150;
    warp "009-6.gat", 36, 47;
    close;

L_NotEnoughMoney:
    mes "You don't have enough money!";
    close;

}