summaryrefslogtreecommitdiff
path: root/npc/003-1/magic.txt
blob: 61b97c9c8bd6b7afd375f1b49f4d2d00dd22f8bd (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
// 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:
    // Event Restrictions
    if (countitem(Event1HSword)+countitem(Event2HSword)+countitem(EventBow)+countitem(EventWand)+countitem(RentCart)) {
        mesc l("You cannot enter here while you have event weapons or a cart."), 1;
        close;
    }
    // TODO: Main Quest Instance
    if (LUA_ASKED_TO_SAVE_PROFESSOR) {
        dispbottom "Runtime error.";
    }
    /*
    if (countitem(JesusalvaGrimorium) <= 0 || MAGIC_LVL < 2) {
        slide 36, 39;
        percentheal -5, -10;
        dispbottom l("Powerful magic repels you away from this magic place!");
    }
    */
    warp "003-0", 48, 51;
    end;
}