summaryrefslogtreecommitdiff
path: root/npc/014-5-1/objects.txt
blob: 72dae07945e69089b2dc4f74be4de1077b57571b (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
// TMW2 scripts.
// Authors:
//    Jesusalva
// Description:
//    Sagratha household items

014-5-1,33,38,0	script	Pan#Saggy	NPC_NO_SPRITE,{
    @qsagratha=@qsagratha|1;
    mesn;
    mesc l("The pan is empty, but it smells like fresh cookies.");
    close;
OnInit:
    .distance=5;
    disablenpc .name$;
    end;
}


014-5-1,33,34,0	script	Painting#Saggy	NPC_NO_SPRITE,{
    @qsagratha=@qsagratha|2;
    mesn;
    mesc l("Definitely not suspcious at all.");
    if (@qsagratha >= 31) {
        next;
        mesn;
        mesc l("Thinking well... There's something behind it! A secret window!");
        if (getq(HurnscaldQuest_Sagratha) <= 2) {
            setq3 HurnscaldQuest_Sagratha, 1;
        } else {
            next;
            mesn l("Secret Window");
            mesc l("Enter though the window to the secret caves?");
            next;
            if (askyesno() == ASK_YES) {
                .@mapn$="sgt2@"+getcharid(0);
                warp .@mapn$, 99, 178;
                closeclientdialog;
                end;
            }
        }
        next;
        mesn l("Secret Window");
        mesc l("The window appears to be unlocked. It might have been open some time ago.");
    }
    close;
OnInit:
    .distance=5;
    disablenpc .name$;
    end;
}


014-5-1,29,37,0	script	Fireplace#Saggy	NPC_NO_SPRITE,{
    @qsagratha=@qsagratha|4;
    mesn;
    mesc l("Some smoke still remains, but the fire seems to have died.");
    close;
OnInit:
    .distance=5;
    disablenpc .name$;
    end;
}




014-5-1,29,39,0	script	Book#Saggy	NPC_NO_SPRITE,{
    @qsagratha=@qsagratha|8;
    mesn;
    mesc l("Seems to be a recipe book about apple cookies.");
    close;
OnInit:
    .distance=5;
    disablenpc .name$;
    end;
}




014-5-1,29,41,0	script	Bed#Saggy	NPC_NO_SPRITE,{
    @qsagratha=@qsagratha|16;
    mesn;
    mesc l("Smells like mouboos.");
    close;
OnInit:
    .distance=5;
    disablenpc .name$;
    end;
}