summaryrefslogtreecommitdiff
path: root/world/map/npc/002-2/eurni.txt
blob: c9735ad0f30928403a975f0ce2462439940d99b6 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
//

002-2,22,77,0|script|Eurni|136
{
    set @SERVICES_ZENY, 10000;

    set @halloween_npc_id, $@halloween_npc_eurni;
    callfunc "TrickOrTreat";

    if (BaseLevel < 10) goto L_TooYoung;
    if (Zeny < @SERVICES_ZENY) goto L_NoMoney;

    mes "[Eurni the Surgeon]";
    mes "\"Are you tired of who you are?\"";
    next;
    mes "\"Would you be interested in changing your sex?";
    mes "It'll cost ##B" + @SERVICES_ZENY + " GP##b.\"";
    next;

    menu
        "Please do.", L_Change_Menu,
        "Leave my family treasures alone!", L_Close;

L_Change_Menu:
    menu
        "Female.", L_Female,
        "Male.", L_Male,
        "Non-binary.", L_NonBinary;

L_Female:
    set @sex, 0;
    goto L_Change;

L_Male:
    set @sex, 1;
    goto L_Change;

L_NonBinary:
    set @sex, 3;
    goto L_Change;

L_Change:
    if (Sex == @sex)
        goto L_Already_Change;
    if (Zeny < @SERVICES_ZENY)
        goto L_NoMoney;
    set Zeny, Zeny - @SERVICES_ZENY;
    set Sex, @sex;
    close;

L_Already_Change:
    mes "[Eurni the Surgeon]";
    mes "\"Umm, you are that gender already.\"";
    close;

L_TooYoung:
    mes "[Eurni the Surgeon]";
    mes "\"Move along, kid.\"";
    close;

L_NoMoney:
    mes "[Eurni the Surgeon]";
    mes "\"You don't have the kind of money to pay for my services.\"";
    close;

L_Close:
    close;
}