// 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; }