summaryrefslogtreecommitdiff
path: root/npc/005-7/nurse.txt
blob: 6728f412ae094b6632f4b2e75b84227c995b5ada (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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// TMW-2 Script
// Author:
//    Jesusalva
//    Crazyfefe

005-7,41,30,0	script	Candor's Nurse	NPC_FEMALE,{

    //if (sc_check(SC_POISON)) goto L_CurePoison;
    if (Hp < (MaxHp/100*90)) goto L_Heal;

    mesn;
    mesq lg("Hello, dear! I love @@, could you bring me some? They're sooooo sweet and delicious!","Hello, dear! I love @@, could you bring me some? They're sooooo sweet and delicious!", getitemlink(Candy) );
    mesq l("Ah, I can also cure you, if you need.");

    do
        {
        select
            rif(Hp < MaxHp, l("Please heal me!")),
            rif(countitem(Candy) > 0, l("Here, I have a candy!")),
            l("I'm fine, no worries...");

        switch (@menu)
        {
            case 1:
                goto L_Heal;
                break;
            case 2:
                goto L_Help;
                break;
            case 3:
                goto L_Close;
                break;
        }
        } while (@menu != 3);

L_Help:
    mes "";
    mesn;

    if (countitem(Candy) == 0)
    {
        mesq l("You don't seem to have any @@ with you!", getitemlink(.Item));
        close;
    }
    delitem .Item, 1;
    mesq l("Thanks a lot!");
    if (getq(CandorQuest_Nurse) == 0)
    {
        getexp 21,0;
        Zeny = Zeny + 200;
        setq CandorQuest_Nurse, 1;
        close;
    }
    if (getq(CandorQuest_Nurse) == 1)
    {
        getexp 11,0;
        Zeny = Zeny + 100;
        setq CandorQuest_Nurse, 2;
        close;
    }
    if (getq(CandorQuest_Nurse) == 2)
    {
        getexp 6,0;
        Zeny = Zeny + 50;
        setq CandorQuest_Nurse, 3;
        close;
    }
    getexp 5,0;
    Zeny = Zeny + 25;
    close;

L_Heal:
    Nurse(.name$, 10, 5);
    close;

L_Close:
    close;

OnInit:
    .@npcId = getnpcid(.name$);
    setunitdata(.@npcId, UDT_HEADBOTTOM, CottonShorts);
    setunitdata(.@npcId, UDT_HEADMIDDLE, ShortTankTop);
    setunitdata(.@npcId, UDT_HEADBOTTOM, NPCEyes);
    setunitdata(.@npcId, UDT_HAIRSTYLE, 12);
    setunitdata(.@npcId, UDT_HAIRCOLOR, 14);

    // quest setup
    .Item = Candy;

    .sex = G_FEMALE;
    .distance = 5;
    end;

}