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.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
function enter(pi) {
|
||||
if (pi.isQuestStarted(2300) || pi.isQuestCompleted(2300) ||
|
||||
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) ||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
importPackage(java.util);
|
||||
|
||||
function enter(pi) {
|
||||
if(pi.isQuestStarted(2224) || pi.isQuestStarted(2226) || pi.isQuestCompleted(2227)) {
|
||||
var hourDay = pi.getHourOfDay();
|
||||
|
||||
@@ -20,6 +20,11 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
function enter(pi) {
|
||||
pi.playPortalSound(); pi.warp(240040611, "out00");
|
||||
if(!pi.isQuestCompleted(3706)) {
|
||||
pi.playPortalSound(); pi.warp(240040611, "out00");
|
||||
} else {
|
||||
pi.playPortalSound(); pi.warp(240040612, "out00");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -1,4 +1,9 @@
|
||||
function enter(pi) {
|
||||
pi.playPortalSound(); pi.warp(105100101, "in00");
|
||||
return true;
|
||||
if(pi.isQuestCompleted(2238)) {
|
||||
pi.playPortalSound(); pi.warp(105100101, "in00");
|
||||
return true;
|
||||
} else {
|
||||
pi.message("A mysterious force won't let you in.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user