summaryrefslogtreecommitdiff
path: root/npc/003-1/magic.txt
blob: 1cd76a50bfb4ae1954be5bc5047e9345ca385c82 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// TMW2 scripts.
// Authors:
//    Jesusalva
// Description:
//    Controlled Warp to Magic School (+whatever magic stuff we need to add later)

003-1,34,33,0	script	#MagicSchoolGate1	NPC_HIDDEN,0,0,{
    end;
OnTouch:
    if (countitem(JesusalvaGrimorium) <= 0 || $MAGIC_LVL < 2) {
        slide 36, 39;
        percentheal -5, -10;
        dispbottom l("Powerful magic repels you away from this magic place!");
    } else {
        warp "003-0", 48, 51;
    }
    end;
}