summaryrefslogtreecommitdiff
path: root/npc/003-1/constableperry.txt
blob: b529727c3eb612f56d88e7c29dc499c7759fab13 (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
// TMW2 Scripts.
// Author:
//    Saulc
//    Jesusalva
// Description:
//    Constable Perry invites players to the TMW2 Project
//    Part of the THIEF/MERCHANT branches

003-1,47,75,0	script	Constable Perry	NPC_MOUBOO,{
    if (JobLevel > 20 && THIEF_RANK == 0) goto L_Quest;
//hello;
    mesn;
    mesq l("Hello there! I am a constable. I keep law and order here.");
    next;
    mesq l("Yes, I am a mouboo. Why? Can't a mouboo be a law and order enforcer?!");
    next;
    mesq l("Anyway, you can check our [@@https://gitlab.com/TMW2/Docs/wikis/home|Wiki@@] to find awesome stuff!");
    mesc l("(To see the rules, use ##B@rules##b.)");
    next;
    mesq l("You can even join the project there. Contributors are greatly appreciated! %%N");
    close;

L_Quest:
    if (MERC_RANK == 0)
        goto L_Recruit;
    mesn;
    mesq l("Hello there, @@, protector of law and order.", mercrank());
    mesq l("I see you have collected some experience. Let me try to rank you up!");
    next;
    if (MERC_EXP > (MERC_RANK+1)**5) {
        MERC_EXP-=(MERC_RANK+1)**5;
        MERC_RANK+=1;
        mesn;
        mesq l("Congrats! You rank up! You are now a(n) @@!", mercrank());
    } else {
        mesn;
        mesq l("Well, you need more experience. Keep trying!");
    }
    close;

L_Recruit:
    mesn;
    mesq l("You seem to be doing some money. Would you consider fighting for good, and against all thiefs?");
    mesq l("...Of course, Hasan is an exception.");
    close;

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