summaryrefslogtreecommitdiff
path: root/npc/005-1/zegas.txt
blob: 72d3a6b5728648c5f771d61573f78fcf5969ed0b (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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
// TMW2 Script
// Author:
//   Unknown
// Description:
//   Saxso's widow. Asks new players to trigger a bug bomb on the storehouse.

005-1,42,87,0	script	Zegas	NPC_MONA,{
    .ItemCreate = CandorShorts;
    .@q = getq(CandorQuest_Barrel);
    if (BaseLevel < 5)
        goto L_Weak;
    if (.@q == 1)
        goto L_Find;
    if (.@q == 2)
        goto L_Looking;
    if (.@q == 3)
        goto L_QuestEnd;
    if (.@q == 4)
        goto L_Thanks;
    goto L_Meet;

L_Weak:
    mesn;
    mesq l("Do not enter on this storehouse, the maggots there will kill you.");
    close;

L_Meet:
    mesn;
    mesq l("Hey do you have a second?");
    next;
    mesq l("The storehouse here is overrun with house maggots.");
    next;
    mesq l("Wouldn't you know it, the bug bomb Eomie gave us is in one of the store room barrels.");
    next;
    mesq l("Can you search ##Bthe barrels##b for the bug bomb and set it off when you find it?");
    setq CandorQuest_Barrel, 1;
    menu
        l("Sure."),L_Start,
        l("Maybe some other time."),L_Close;

L_Find:
    mesn;
    mesq l("The storehouse is still over run with house maggots.");
    next;
    mesq l("Please help me find the bug bomb Eomie gave us is in one of the store room barrels?");
    menu
        l("Sure."),L_Start,
        l("Maybe some other time."),L_Close;

L_Start:
    mesn;
    mesq l("Thanks, come back and see me once you found the bug bomb and set it off.");
    setq CandorQuest_Barrel, 2;
    goto L_Close;

L_Looking:
    mesn;
    mesq l("Still haven't found it? Well, keep looking the barrels at this storehouse. I know it's in there, somewhere.");
    goto L_Close;

L_QuestEnd:
    mesn;
    mesq l("From the smell I can see you found the bug bomb!");
    mesq l("Thanks once again, I know it's not much but here is @@ GP for your troubles.", 350);
    getexp 63, 0;
    getitem .ItemCreate, 1;
    Zeny = (Zeny + 350);
    setq CandorQuest_Barrel, 4;
    goto L_Close;

L_Thanks:
    mesn;
    mesq l("Thanks for Helping with clear out the store room!");
    goto L_Close;

L_Close:
    close;

OnInit:
    .sex = G_FEMALE;
    .distance = 4;
    end;
}

005-1,32,73,0	script	ZegasDebug	NPC_MONA,{
    showavatar NPC_MONA;  // this is handled by avatars.xml
    mesn;
    mesq l("Reset?");
    next;
    menu
        l("Yes."),  L_Reset,
        l("No."),   L_Close;

L_Reset:
    setq CandorQuest_Barrel, 0;
    STARTAREA = STARTAREA &~ (1 << 2);
    STARTAREA = STARTAREA &~ (1 << 3);
    STARTAREA = STARTAREA &~ (1 << 4);
    STARTAREA = STARTAREA &~ (1 << 5);
    STARTAREA = STARTAREA &~ (1 << 6);
    STARTAREA = STARTAREA &~ (1 << 7);
    STARTAREA = STARTAREA &~ (1 << 8);
    STARTAREA = STARTAREA &~ (1 << 9);
    mes l("Reset!");
    goto L_Close;

L_Close:
    //showavatar;  // Use this to hide the showavatar
    close;

// Use @shownpc to enable ZegasDebug
OnInit:
    if (!debug)
        disablenpc "ZegasDebug";
    end;
}