Files
sweetgum-server/scripts/portal/curseforest.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

15 lines
578 B
JavaScript

function enter(pi) {
if(pi.isQuestStarted(2224) || pi.isQuestStarted(2226) || pi.isQuestCompleted(2227)) {
var hourDay = pi.getHourOfDay();
if(!((hourDay >= 0 && hourDay < 7) || hourDay >= 17)) {
pi.getPlayer().dropMessage(5, "You cannot access this area right now.");
return false;
} else {
pi.playPortalSound(); pi.warp(pi.isQuestCompleted(2227) ? 910100001 : 910100000,"out00");
return true;
}
}
pi.getPlayer().dropMessage(5, "You cannot access this area.");
return false;
}