summaryrefslogtreecommitdiff
path: root/npc/009-2/scholar.txt
blob: dd62806c9833d36ee6bee602eb1a5b82a4a1a69f (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
// TMW2/LoF scripts.
// Authors:
//    TMW-LoF Team
//    Jesusalva
// Description:
//    Permanently repeatable quest, without any special limit
// 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 having born with magic, you need a Mana Stone... And there are none left...");
    mesc l("*sigh*");
    if (.@q < 1)
        goto L_Intro;
    close;

L_NotEnough:
    if (BaseLevel < $MANA_BLVL+MAGIC_LVL*rand(18,22)) {
        mesq l("Out of my experience, your level may not be enough.");
    }
    if (JobLevel < $MANA_JLVL+MAGIC_LVL*rand(12,26)) {
        mesq l("Out of my experience, your job may not be enough.");
    }
    if (readparam(bInt) < $MANA_BINT+MAGIC_LVL*rand(18,22)) {
        mesq l("Out of my experience, your base intelligence may not be enough.");
    }
    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;

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