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.
23 lines
555 B
JavaScript
23 lines
555 B
JavaScript
/**
|
|
*
|
|
* @author Arnah, Ronan
|
|
*/
|
|
|
|
function start(mode, type, selection) {
|
|
qm.forceStartQuest();
|
|
qm.forceCompleteQuest();
|
|
|
|
var medalname = qm.getMedalName();
|
|
qm.message("<" + medalname + "> has been awarded.");
|
|
qm.earnTitle("<" + medalname + "> has been awarded.");
|
|
qm.dispose();
|
|
}
|
|
|
|
function complete(mode, type, selection) {
|
|
qm.forceCompleteQuest();
|
|
|
|
var medalname = qm.getMedalName();
|
|
qm.message("<" + medalname + "> has been awarded.");
|
|
qm.earnTitle("<" + medalname + "> has been awarded.");
|
|
qm.dispose();
|
|
} |