summaryrefslogtreecommitdiff
path: root/world/map/npc/029-1/zegas.txt
blob: b25bd6c9f1173f5ad765a59018869f7606a8ec89 (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
// Barrels
// Author: Wushin
// Npc
029-1,45,85,0|script|Zegas|165
{
    set @npc_distance, 2;
    callfunc "PCtoNPCRange";
    if(@npc_check) end;

    if (QL_ZEGAS == 1)
        goto L_Find;
    if (QL_ZEGAS == 2)
        goto L_Looking;
    if (QL_ZEGAS == 3)
        goto L_QuestEnd;
    if (QL_ZEGAS == 4)
        goto L_Thanks;
    goto L_Meet;

L_Meet:
    mes "[Zegas]";
    mes "\"Hey do you have a second?\"";
    next;
    mes "\"The storehouse here is over run with house maggots.\"";
    next;
    mes "\"Wouldn't you know it, the bug bomb Eomie gave us is in one of the store room barrels.\"";
    next;
    mes "\"Can you search the barrels for the bug bomb and set it off when you find it?\"";
    set QL_ZEGAS, 1;
    menu
        "Sure.",L_Start,
        "Maybe some other time.",L_Close;

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

L_Start:
    mes "[Zegas]";
    set QL_ZEGAS, 2;
    mes "\"Thanks, come back and see me once you found the bug bomb and set it off.\"";
    goto L_Close;

L_Looking:
    mes "[Zegas]";
    mes "\"Still haven't found it? Well keep looking I know it's in there some where.\"";
    goto L_Close;

L_QuestEnd:
    mes "[Zegas]";
    mes "\"From the smell I can see you found the bug bomb!\"";
    mes "\"Thanks once again, I know it's not much but here is 50 GP for your troubles.\"";
    getexp 50, 0;
    set Zeny, (Zeny + 50);
    set QL_ZEGAS, 4;
    goto L_Close;

L_Thanks:
    mes "[Zegas]";
    mes "\"Thanks for Helping with clear out the store room!\"";
    goto L_Close;

L_Close:
    close;
}
029-1,47,86,0|script|ZegasDebug|165
{
    mes "[Zegas Debug]";
    mes "Reset ?";
    menu
        "Yes.", L_Reset,
        "No.", L_Close;

L_Reset:
    set QL_ZEGAS, 0;
    set STARTAREA, STARTAREA &~ (1 << 20);
    set STARTAREA, STARTAREA &~ (1 << 21);
    set STARTAREA, STARTAREA &~ (1 << 22);
    set STARTAREA, STARTAREA &~ (1 << 23);
    set STARTAREA, STARTAREA &~ (1 << 24);
    set STARTAREA, STARTAREA &~ (1 << 25);
    set STARTAREA, STARTAREA &~ (1 << 26);
    set STARTAREA, STARTAREA &~ (1 << 27);
    mes "Reset!";
    goto L_Close;

L_Close:
    close;

OnInit:
    if (!debug)
        disablenpc "ZegasDebug";
    end;
}