summaryrefslogtreecommitdiff
path: root/npc/009-2/scholar.txt
blob: ff5227e3efb13b2413dc40f6cba8f538b957a583 (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
// TMW2/LoF scripts.
// Authors:
//    TMW-LoF Team
//    Jesusalva
// Description:
//    Permanently repeatable quest, without any special limit

009-2,51,54,0	script	Bella, the Scholar	NPC_BELLA,{
    mesn;
    mesq l("I am Bella, the Scholar.");
    if (!mstone($MAGIC_TIER)) 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*");
    close;

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

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