summaryrefslogtreecommitdiff
path: root/npc/002-4/elmo.txt
blob: a789489af19d978aa2f13c2505ef8fc401901a15 (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
// TMW2 Script.
// Authors:
//    Jesusalva
// Description:
//    Elmo's second dialog. He is Nard's deputy and second-in-command.
//    Elmo was created in Evol by Qwerty Dragon and Reid

002-4,27,27,0	script	Elmo	NPC_ELMO,{
    showavatar NPC_ELMO;  // this is handled by avatars.xml

    if (LOCATION$ == "") sailortalk;
    if (getq(CandorQuest_Sailors) == 2) goto L_Party;

    if (getq(General_Narrator) >= 1) sailortalk;

    mesn;
    mes l("\"Hey, have you already got the money necessary for the travel?");
    mes l("If you haven't, maybe there are a few things you can do besides selling items.\"");
    next;

    mes "";

    // Barrel Quest
    .@q=getq(CandorQuest_Barrel);
    if (.@q < 4)
        mes l("- I think you can help the storehouse for some quick cash.");
    if (getgmlevel() == 99 && .@q > 0 && .q < 4)
        mes l("Please, Game Master, help Zegas @@!", getquestlink(CandorQuest_Barrel));

    // Kids Quest
    .@q=getq(CandorQuest_HAS);
    if (.@q < 4)
        mes l("- You can always play with kids. Not very profitable, though.");

    // Sailors Quest
    .@q=getq(CandorQuest_Sailors);
    if (.@q < 3)
        mes l("- Some of our crew are missing. They're probably wasting their time at beach.");

    // Vincent Quest
    .@q=getq(CandorQuest_Vincent);
    if (.@q < 2)
        mes l("- I overheard rumors about a festival. Maybe someone needs help with their figurine?");

    // Valon Quest
    .@q=getq(CandorQuest_Trainer);
    if (.@q < 12)
        mes l("- Inside the big house is someone who can train you. All experience is handy!");

    close2;
    goodbye;
    end; // Just for good measure

L_Party:
    mesn;
    mesq l("What? A party?");
    next;
    setq CandorQuest_Sailors, 3;
    getexp 10, 0;
    Zeny = (Zeny + 1000);
    mesq l("Alright, I'll show up later. Thanks for calling me. Here's 1000 GP for your efforts."); // With this, the final cost is 50 GP
    close;

OnInit:
    .sex = G_MALE;
    .distance = 5;
    end;
}