summaryrefslogtreecommitdiff
path: root/npc/009-2/scholar.txt
blob: 138008b6bb7b9df9e11e9f2a70a01758d07bb7a0 (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
// TMW2/LoF scripts.
// Authors:
//    TMW-LoF Team
//    Jesusalva
// Description:
//    Encourages players to get magic and keep the game interesting
// HalinarzoQuest_MageEquipment
//  0 - Haven't started
//  1 - Listened to intro about mage equipments.
//  2 - NYI: A quest to obtain more powerful magic equipment.

009-2,51,54,0	script	Bella, the Scholar	NPC_BELLA,{
    .@q=getq(HalinarzoQuest_MageEquipment);
    mesn;
    mesq l("I am Bella, the Scholar.");
    if (!mstone(MAGIC_LVL)) goto L_NotEnough;
    mesq l("Out of my experience, you are ready to learn magic.");
    next;
    mesn;
    mesq l("A pity that without being born with magic, you need a Mana Stone... And there are none left...");
    mesc l("*sigh*");
    if (.@q < 1)
        goto L_Intro;
    if (.@q && getq(General_Narrator) == 7)
        goto L_NeedHelp;
    close;

L_NotEnough:
    if (BaseLevel < $MANA_BLVL+MAGIC_LVL*rand(15,17)) {
        mesq l("Out of my experience, your level may not be enough.");
    }
    if (JobLevel < $MANA_JLVL+MAGIC_LVL*rand(10,12)) {
        mesq l("Out of my experience, your job may not be enough.");
    }
    if (readparam(bInt) < $MANA_BINT+MAGIC_LVL*rand(10,13)) {
        mesq l("Out of my experience, your base intelligence may not be enough.");
        if (!.@q)
            mesc l("You should reset your stats and allocate some points at intelligence.");
    }
    if (.@q < 1)
        goto L_Intro;
    close;

L_Intro:
    next;
    mesn;
    mesq l("I'll only say you this once. Mages can, of course, go to battlefield in heavy armor and stuff.");
    next;
    mesn;
    mesq l("But if a mage wants to be a warrior, they won't be able to use their full magic skills.");
    next;
    mesn;
    mesq l("Mages should use equipment designed for them. Those may be lacking on defense, but will raise MP and Magic Attack.");
    mesq l("I must, however, remember that the most powerful magical equipment ##B may require intelligence ##b to use.");
    next;
    mesn;
    mesq l("Without magic attack, using a fireball at an enemy will be like throwing a stone.");
    mesq l("And without proper MP-raising equipment, you'll be exausthed after your first fireball.");
    next;
    mesn;
    mesq l("Mage equipment also raises MP recovery. So yes, a mage can use a sword and heavy armor, but...");
    mesq l("...If they decide to do so, they'll have to deal with weak magical attacks, and with quick mana depletion.");
    next;
    inventoryplace TrainingWand, 1;
    mesn;
    mesq l("Thanks for listening to my rambles. I'll gift you a @@. Of course, having a wand won't give you magic...", getitemlink(TrainingWand));
    mesq l("...You need to learn magic before this equipment being useful to you in any way.");
    setq HalinarzoQuest_MageEquipment, 1;
    getitem TrainingWand, 1;
    close;

L_NeedHelp:
    next;
    mesn;
    mesq l("Did you knew some crazy adventurers insists there is a Mana Stone on the danerous caves inside the town?");
    next;
    mesn;
    mesq l("I mean, that's absurd! If there was one, it would have been taken already. Unless if grew some sencience or something.");
    next;
    mesn;
    mesq l("Anyway, if you ever feel bored and wanna see what I mean by yourself, just leave the building and head west, then north. There's a small entrance there.");
    close;

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