summaryrefslogtreecommitdiff
path: root/npc/001-7/barbarian.txt
blob: 0a33e8cab00341eb05e54bf63c116ab37c1e2bee (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
// TMW2 scripts.
// Authors:
//    Jesusalva
// Description:
//    Wolvern Teeth Necklace Quest. Inhabits Frostia Hills.
//    The necklace can also be dropped by the Wolvern normally. Any of those will do
//    to advance the Barbarian Necklaces plot. (Until you get the final version of it)
//    This is a BONUS QUEST and can only be done via Yeti King Quest. It is NOT
//    meant to be doable outside it. It's overrewarding, yes. It's meant to be this way.
//    Do not tell everybody about this one :> Bonus to those who explore!
// Variables:
//    FrostiaQuest_WolfNecklace  - quest var


001-7,72,39,0	script	Barbarian#Frostia	NPC_HALBERDBARBARIAN,{
    .@q = getq(FrostiaQuest_WolfNecklace);
    mesn;
    mesq l("Hello my friend.");
    if (BaseLevel < 35) goto L_Weakling;
    if (.@q == 0 && countitem(ToothNecklace)) goto L_Quest;
    if (.@q == 1) goto L_CheckItems;
    close;

L_Weakling:
    mesq l("These cliffs are no place for weak people like you. You better teleport yourself away as soon as possible!");
    close;

L_Quest:
    mesq l("Oooh, I see you have a @@ with you.", getitemlink(ToothNecklace));
    next;
    mesn;
    mesq l("It's done with @@ teethes. These drain your life and raise your strenght to SMASH your foes!", getmonsterlink(Wolvern));
    next;
    mesn;
    mesq l("If you bring me 2 @@, that Necklace, and 4000 GP, I can improve it. It'll be worth it, I warrant you!", getitemlink(WolvernTooth)); // 5% drop rate of tooth.
    setq FrostiaQuest_WolfNecklace, 1;
    close;

L_CheckItems:
    if (!countitem(ToothNecklace) || countitem(WolvernTooth) < 2 || Zeny < 4000) {
        mesn;
        mesq l("Sorry, but you don't have what I need.");
        mesq l("I need 2 @@, the @@, and 4000 GP.", getitemlink(WolvernTooth), getitemlink(ToothNecklace));
        close;
    }
    mesn;
    mesq l("Are you with what I asked for?");
    if (askyesno() == ASK_NO)
        close;
    mes "";

    // No checks because I did before and cheaters must die.
    if (Zeny < 4000) {
        Zeny=0;
        percentheal -75, -100;
        mesc l("All cheaters must die."), 1;
        close;
    }
    inventoryplace WolvernTeethNecklace, 1;
    delitem WolvernTooth, 2;
    delitem ToothNecklace, 1;
    getitem WolvernTeethNecklace, 1;
    Zeny=Zeny-4000;
    getexp 15000, 0;
    mesn;
    mesq l("Here you go, thanks for doing my SECRET quest! Eh, not much to do here. But I like life this way.");
    setq FrostiaQuest_WolfNecklace, 2;
    close;

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