Channel Services + Mob Movement patch + Portal map scripts
Refactored several schedulers within the channel class, now running within their own service modules. Fixed a case where mob movements would get mistakably processed for other than the target mob during a map transition, leading to weird movements on the mob in the entered area. Added usage of foreign key for petid's. Implemented functionality for "Hair Membership" coupons. Fixed skill Body Pressure not applying the chance to neutralise on touch. Fixed quest related to NPC Shaman Rock not completing due to unmatched progress. Fixed an issue with updating title progress "Touch the Sky".
This commit is contained in:
25
scripts/quest/2232.js
Normal file
25
scripts/quest/2232.js
Normal file
@@ -0,0 +1,25 @@
|
||||
var status = -1;
|
||||
|
||||
function start(mode, type, selection) {
|
||||
var familyEntry = qm.getPlayer().getFamilyEntry();
|
||||
if (familyEntry != null && familyEntry.getJuniorCount() > 0) {
|
||||
qm.forceCompleteQuest();
|
||||
qm.gainExp(3000);
|
||||
qm.sendNext("Good job!");
|
||||
} else {
|
||||
qm.sendNext("I see that you have not successfully find a Junior, ok?");
|
||||
}
|
||||
qm.dispose();
|
||||
}
|
||||
|
||||
function end(mode, type, selection) {
|
||||
var familyEntry = qm.getPlayer().getFamilyEntry();
|
||||
if (familyEntry != null && familyEntry.getJuniorCount() > 0) { // script found thanks to kvmba
|
||||
qm.forceCompleteQuest();
|
||||
qm.gainExp(3000);
|
||||
qm.sendNext("Good job!");
|
||||
} else {
|
||||
qm.sendNext("I see that you have not successfully find a Junior, ok?");
|
||||
}
|
||||
qm.dispose();
|
||||
}
|
||||
38
scripts/quest/2251.js
Normal file
38
scripts/quest/2251.js
Normal file
@@ -0,0 +1,38 @@
|
||||
-/*
|
||||
Author: Kevin
|
||||
Quest: Zombie Mushroom Signal 3 (2251)
|
||||
NPC: The Rememberer (1061011)
|
||||
Item: Recording Charm (4032399)
|
||||
*/
|
||||
|
||||
var status = -1; // script restored thanks to kvmba
|
||||
|
||||
function end(mode, type, selection) {
|
||||
if (mode == -1) {
|
||||
qm.dispose();
|
||||
} else {
|
||||
if(mode == 0 && type > 0) {
|
||||
qm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
if (mode == 1)
|
||||
status++;
|
||||
else
|
||||
status--;
|
||||
|
||||
if (status == 0) {
|
||||
if(!qm.haveItem(4032399, 20)) {
|
||||
qm.sendOk("Please bring me 20 #b#t4032399##k... #i4032399#");
|
||||
}
|
||||
else {
|
||||
qm.gainItem(4032399, -20);
|
||||
qm.sendOk("Oh, you brought 20 #b#t4032399##k! Thank you.");
|
||||
qm.gainExp(8000);
|
||||
qm.forceCompleteQuest();
|
||||
}
|
||||
} else if (status == 1) {
|
||||
qm.dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user