summaryrefslogtreecommitdiff
path: root/npc/005-1/ayasha.txt
blob: adc39cf3e4845b16de89085a834dc41fd41bba30 (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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
// Author:
//    Crazyfefe




005-1,52,81,0	script	Ayasha	NPC_PLAYER,{

    
    function quest_findAllKids
    {
        setq CandorQuest_HAS, 1;
        speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
            l("Good luck !");
        close;
    }

    .@has = getq(CandorQuest_HAS);
    if (.@has == 0)
    {
        speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
            l("Hello can you help me for find all kids");
        do
        {
            select
                l("Yes"),
                menuaction(l("Quit"));

            switch (@menu)
            {
                case 1:
                    quest_findAllKids;
                    break;
            }
        } while (@menu != 2);
    }
    else if (.@has == 1)
    {
        speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
            l("You don't find all of them yet.");
        close;
    }
    else if (.@has == 2)
    {
        speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
            l("Thank you, there is your reward");
            narrator("You receive 30 exp.");
        getexp 30, 0;
        setq CandorQuest_HAS, 3;
        close;
    }
    else
    {
        speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
            l("Thank you for your help.");
        close;
    }

    closedialog;
    goodbye;
    close;

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


function	script	CheckEnfant	{
    .questCheck = .questCheck + 1;
            l("Oh Welcome then.");
        speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
            l("Oh! You found me well played !.");
            narrator("You receive 5 exp.");
    if (.questCheck == 5)
    {
        setq CandorQuest_HAS, 2;
    }
    getexp 5,0;
    close;
}
005-1,69,90,0	script	Charda	451,{
    if (getq(CandorQuest_HAS) == 1)
    {
        CheckEnfant();
    }
    end;
OnInit:
    .sex = G_OTHER;
    .distance = 1;
    end;
}
005-1,23,84,0	script	Faris	451,{
    if (getq(CandorQuest_HAS) == 1)
    {
        CheckEnfant();
    }
    end;
OnInit:
    .sex = G_OTHER;
    .distance = 1;
    end;
}
005-1,84,21,0	script	Ghada	445,{
    if (getq(CandorQuest_HAS) == 1)
    {
        CheckEnfant();
    }
    end;
OnInit:
    .sex = G_OTHER;
    .distance = 1;
    end;
}
005-1,38,58,0	script	Latif	445,{
    if (getq(CandorQuest_HAS) == 1)
    {
        CheckEnfant();
    }
    end;
OnInit:
    .sex = G_OTHER;
    .distance = 1;
    end;
}
005-1,18,43,0	script	Rasin	445,{
    if (getq(CandorQuest_HAS) == 1)
    {
        CheckEnfant();
    }
    end;
OnInit:
    .sex = G_OTHER;
    .distance = 1;
    end;
}