Files
sweetgum-server/scripts/portal/TD_MC_first.js
ronancpl 61292f5c9b Medal quest system tweak + Proximity check on quests + DB leak fix
Rebalanced the EXTREMELY low level section of the equipment level up system.
Added support code for quests on Kerning Square and Mushroom Castle.
Added quest scripts for many missing scripted quests.
Refactored medal quests, now using a default script system for uncoded medal questid's.
Fixed a DB leak regarding quest status and medal maps tables.
Added proximity check for NPCs to start/complete quests that doesn't use the lightbulb system.
Added "debuff" command, that debuffs people nearby.
2018-04-27 11:14:45 -03:00

20 lines
905 B
JavaScript

function enter(pi) {
if (pi.isQuestCompleted(2260) ||
pi.isQuestStarted(2300) || pi.isQuestCompleted(2300) ||
pi.isQuestStarted(2301) || pi.isQuestCompleted(2301) ||
pi.isQuestStarted(2302) || pi.isQuestCompleted(2302) ||
pi.isQuestStarted(2303) || pi.isQuestCompleted(2303) ||
pi.isQuestStarted(2304) || pi.isQuestCompleted(2304) ||
pi.isQuestStarted(2305) || pi.isQuestCompleted(2305) ||
pi.isQuestStarted(2306) || pi.isQuestCompleted(2306) ||
pi.isQuestStarted(2307) || pi.isQuestCompleted(2307) ||
pi.isQuestStarted(2308) || pi.isQuestCompleted(2308) ||
pi.isQuestStarted(2309) || pi.isQuestCompleted(2309) ||
pi.isQuestStarted(2310) || pi.isQuestCompleted(2310)) {
pi.playPortalSound();
pi.warp(106020000, 0);
return true;
}
pi.playerMessage(5, "A strange force is blocking you from entering.");
return false;
}