Reworked equip lvlup + Reactor quest item drop + ToT quests fix
Rebalanced the way equipment exp is gained (about 100~200 same-level range mobs to pass equip level 1 to 2). Fixed reactors dropping quest items to player if they don't have the quest started. Fixed broken Temple of Time quests.
This commit is contained in:
@@ -23,12 +23,46 @@
|
||||
* The sorcerer who sells emotions
|
||||
*/
|
||||
|
||||
importPackage(Packages.client);
|
||||
|
||||
function start(mode, type, selection) {
|
||||
if(qm.getPlayer().getMeso() >= 1000000) {
|
||||
if(qm.canHold(2022337, 1)) {
|
||||
qm.gainItem(2022337, 1);
|
||||
qm.gainMeso(-1000000);
|
||||
|
||||
//qm.sendOk("Nice doing business with you~~.");
|
||||
qm.startQuest(3514);
|
||||
} else {
|
||||
qm.sendOk("Check out for a slot on your USE inventory first.");
|
||||
}
|
||||
} else {
|
||||
qm.sendOk("Oy, you don't have the money. I charge #r1,000,000 mesos#k for the emotion potion. No money, no deal.");
|
||||
}
|
||||
|
||||
qm.dispose();
|
||||
}
|
||||
|
||||
function usedPotion(ch) {
|
||||
return ch.getBuffSource(MapleBuffStat.HPREC) == 2022337;
|
||||
}
|
||||
|
||||
function end(mode, type, selection) {
|
||||
if(qm.haveItem(2022337)) {
|
||||
qm.sendOk("Are you scared to drink the potion? I can assure you it's only a minor #rside effect#k.");
|
||||
if(!usedPotion(qm.getPlayer())) {
|
||||
if(qm.haveItem(2022337)) {
|
||||
qm.sendOk("Are you scared to drink the potion? I can assure you it has only a minor #rside effect#k.");
|
||||
} else {
|
||||
if(qm.canHold(2022337)) {
|
||||
qm.gainItem(2022337, 1);
|
||||
qm.sendOk("Lost it? Luckily for you I managed to recover it back. Take it.");
|
||||
} else {
|
||||
qm.sendOk("Lost it? Luckily for you I managed to recover it back. Make a room to get it.");
|
||||
}
|
||||
}
|
||||
} else {
|
||||
qm.sendOk("It seems the potion worked and your emotions are no longer frozen.");
|
||||
qm.sendOk("It seems the potion worked and your emotions are no longer frozen. And, oh, my... You're ailing bad, #bpurge#k that out quickly.");
|
||||
qm.gainExp(891500 * qm.getPlayer().getExpRate());
|
||||
qm.completeQuest(3514);
|
||||
}
|
||||
qm.dispose();
|
||||
qm.dispose();
|
||||
}
|
||||
Reference in New Issue
Block a user