summaryrefslogtreecommitdiff
path: root/npc/003-10/officer.txt
blob: 789eeabab00a334a0e7a76300c13a31a2247bf1a (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
// TMW2 scripts.
// Authors:
//    Jesusalva
// Description:
//    Wooden Sword quest. Pays back earlier players

003-10,30,79,4	script	Veteran Officer	NPC_PLAYER_ARGAES,{
    .@q=getq(TulimsharQuest_WoodenSword);
    if (.@q >= 2 || BaseLevel < 18) {
        legiontalk;
        close;
    }
    if (.@q == 0) {
        mesn;
        mesq l("Hey. If you want to kill monsters, you need a good sword. I think, a %s would be the perfect fit for you.", getitemlink(WoodenSword));
        next;
        mesn;
        mesq l("I think, for just 25 %s I could arrange one for you. Eh... Just don't think that you have an amazing weapon, alright?", getitemlink(RawLog));
        next;
        mesn;
        mesq l("You can kill %s in the desert canyon. It's a dangerous area though, so take care.", getmonsterlink(DesertLogHead));
        setq TulimsharQuest_WoodenSword, 1;
    } else {
        mesn;
        mesq l("I think, for just 25, %s I could arrange a %s for you.", getitemlink(RawLog), getitemlink(WoodenSword));
    }
    mes "";
    select
        rif(countitem(RawLog) >= 25, l("Here they are!")),
        l("Maybe later.");
    mes "";
    if (@menu == 1) {
        delitem RawLog, 25;
        //getitem WoodenSword, 1;
        CsysNpcCraft(WoodenSword, IOPT_EXPGAIN, 10, IOPT_RICHNESS, 10);
        setq TulimsharQuest_WoodenSword, 2;
        getexp 580, 20;
        mesn;
        mesq lg("Here's your sword, son. Now go kill some monsters.");
    }
    close;

OnInit:
    .@npcId = getnpcid(.name$);
    setunitdata(.@npcId, UDT_HEADTOP, DesertHelmet);
    setunitdata(.@npcId, UDT_HEADMIDDLE, BromenalChest);
    setunitdata(.@npcId, UDT_HEADBOTTOM, WoodenSword);
    setunitdata(.@npcId, UDT_WEAPON, JeansShorts);
    setunitdata(.@npcId, UDT_HAIRSTYLE, 2);
    setunitdata(.@npcId, UDT_HAIRCOLOR, 4);

    npcsit;
    .sex=G_MALE;
    .distance=5;
    end;
}