Missing Pirate questlines + Find & MoveLife update + Party-Map patch

Implemented missing scripts for Aerial Strike, Hypnotize and Time Leap skill questlines.
Fixed an deadlock issue within player's inventory and status.
Fixed skill spam detection disconnecting players when legitimatelly spamming Flash Jump or Heal.
Fixed party members map location not being properly updated after changing maps.
Rehauled MoveLife handler. Improved packet read of attack and skill elements, properly reflecting incoming actions to other player on the map.
Reviewed an issue with equipments MaxHP/MaxMP getting unsynced with player's MaxHP/MaxMP, resulting in differences within server-client view of a player's pool.
Fixed mobs not being spawned by dojo bosses after enough spawn actions were instanced.
Implemented proper Mob.wz linked mob data support.
Fixed /find not identifying a player's channel properly.
Fixed Echo of Hero not affecting other player in the map.
Fixed commands warp and goto not taking player off events/expeditions properly.
Fixed storage expansion not being registered on DB when buying the cash item.
Fixed party leadership being reassigned after changing channels.
Implemented suggested level range limit between party members on the EXP share system. Players whose level range from the attacker exceeds the estipulated threshold will not receive any EXP from the action.

Happy Thanksgiving Day everyone!!!
This commit is contained in:
ronancpl
2018-11-22 16:16:21 -02:00
parent 5ee0cd1c98
commit 0910dc2428
163 changed files with 4618 additions and 3186 deletions

View File

@@ -25,7 +25,7 @@
-- By ---------------------------------------------------------------------------------------------
Unknown
-- Version Info -----------------------------------------------------------------------------------
1.2 - Clean up by Moogra
1.2 - Cleanup by Moogra
1.1 - Statement fix [Information]
1.0 - First Version by Unknown
---------------------------------------------------------------------------------------------------

View File

@@ -48,7 +48,7 @@ function start() {
cm.teachSkill(5121003, 0, 10, -1);
cm.forceCompleteQuest(6330);
cm.sendNext("Congratulations. You have managed to pass my test. I'll teach you a new skill called \"Super Transformation\".\r\n\r\n #s5221003# #b#q5221003##k");
cm.sendNext("Congratulations. You have managed to pass my test. I'll teach you a new skill called \"Super Transformation\".\r\n\r\n #s5121003# #b#q5121003##k");
}
} else if (cm.isQuestStarted(6370)) {
if (cm.getEventInstance() != null) {

View File

@@ -38,8 +38,15 @@ function action(mode, type, selection) {
else
status--;
if(status == 0) {
cm.sendOk("Hey, do you have any business with me?");
if (status == 0) {
if (!cm.isQuestStarted(6410)) {
cm.sendOk("Hey, do you have any business with me?");
cm.dispose();
} else {
cm.sendYesNo("Let's go save #r#p2095000##k?");
}
} else if (status == 1) {
cm.warp(925010000, 0);
cm.dispose();
}
}

View File

@@ -23,7 +23,9 @@
-- JavaScript -----------------
Jack - Nautilus' Port
-- Created By --
Cody/Cyndicate, totally recoded by Moogra
Cody (Cyndicate)
-- totally recoded By --
Moogra
-- Function --
No specific function, useless text.
-- GMS LIKE --

View File

@@ -4,6 +4,8 @@
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
Copyleft (L) 2016 - 2018 RonanLana (HeavenMS)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3
as published by the Free Software Foundation. You may not use, modify
@@ -18,19 +20,97 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
-- JavaScript -----------------
Lord Jonathan - Nautilus' Port
-- Created By --
Cody/Cyndicate
-- Totally Recreated by Moogra--
Cody (Cyndicate)
-- Totally Recreated by --
Moogra
-- And Quest Script by --
Ronan
-- Function --
No specific function, useless text.
-- GMS LIKE --
*/
var status;
var seagullProgress;
var seagullIdx = -1;
var seagullQuestion = ["One day, I went to the ocean and caught 62 Octopi for dinner. But then some kid came by and gave me 10 Octopi as a gift! How many Octopi do I have then, in total?"];
var seagullAnswer = ["72"];
function start() {
cm.sendOk("Who are you talking to me? If you're just bored, go bother somebody else.");
cm.dispose();
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (mode == 0 && type > 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) { // missing script for skill test found thanks to Lost(tm)
if (!cm.isQuestStarted(6400)) {
cm.sendOk("Who are you talking to me? If you're just bored, go bother somebody else.");
cm.dispose();
} else {
seagullProgress = cm.getQuestProgress(6400, 0);
if (seagullProgress == 0) {
seagullIdx = Math.floor(Math.random() * seagullQuestion.length);
// string visibility thanks to ProXAIMeRx & Glvelturall
cm.sendNext("Ok then! I'll give you the first question now! You better be ready because this one's a hard one. Even the seagulls here think this one's pretty tough. It's a pretty difficult problem.");
} else if (seagullProgress == 1) {
cm.sendNext("Now~ Let's go onto the next question. This one is really difficult. I am going to have Bart help me on this one. You know Bart, right?");
} else {
cm.sendNext("Ohhhh! Now that was impressive! I considered my test quite difficult, and for you to pass that... you are indeed an integral member of the Pirate family, and a friend of seagulls. We are now bonded by the mutual friendship that will last a lifetime! And, most of all, friends are there to help you out when you are in dire straits. If you are in a state of emergency, call us seagulls.");
}
}
} else if (status == 1) {
if (seagullProgress == 0) {
cm.sendGetText(seagullQuestion[seagullIdx]);
} else if (seagullProgress == 1) {
cm.sendNextPrev("I'm going to send you to an empty room in The Nautilus. You will see 9 Barts there. Hahaha~ Are they twins? No, no, certainly not. I've used a bit of magic for this test of will.");
} else {
cm.sendNextPrev("Notify us using the skill Air Strike, and we will be there to help you out, because that's what friends are for.\r\n\r\n #s5221003# #b#q5221003##k");
}
} else if (status == 2) {
if (seagullIdx > -1) {
var answer = cm.getText();
if (answer == seagullAnswer[seagullIdx]) {
cm.sendNext("What! I can't believe how incredibly smart you are! Incredible! In the seagull world, that kind of intellingence would give you a Ph.D. and then some. You're really amazing... I can't believe it... I simply can't believe it!");
cm.setQuestProgress(6400, 0, 1);
cm.dispose();
} else {
cm.sendOk("Hmm, that's not quite how I recall it. Try again!");
cm.dispose();
}
} else if (seagullProgress != 2) {
cm.sendNextPrev("Anyway, only one of 9 Barts is the real Bart. You know that Pirates are known for the strength of their friendships and camaraderie with their fellow pirates. If you're a true pirate, you should be able to find your own mate with ease. Alright then, I'll send you to the room where Bart is.");
} else {
cm.gainExp(1000000);
cm.teachSkill(5221003, 0, 10, -1);
cm.forceCompleteQuest(6400);
cm.dispose();
}
} else if (status == 3) {
var em = cm.getEventManager("4jaerial");
if(!em.startInstance(cm.getPlayer())) {
cm.sendOk("Another player is already challenging the test in this channel. Please try another channel, or wait for the current player to finish.");
}
cm.dispose();
}
}
}

View File

@@ -23,7 +23,7 @@
-- JavaScript -----------------
Bart - Nautilus' Port
-- Created By --
Cody/Cyndicate
Cody (Cyndicate)
-- Function --
No specific function, useless text.
-- GMS LIKE --

48
scripts/npc/1095000.js Normal file
View File

@@ -0,0 +1,48 @@
/*
This file is part of the HeavenMS MapleStory Server
Copyleft (L) 2016 - 2018 RonanLana
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3 as published by
the Free Software Foundation. You may not use, modify or distribute
this program under any other version of the GNU Affero General Public
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
var status;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (mode == 0 && type > 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if(status == 0) {
cm.sendYesNo("#b#p2095000##k must be some way up this cliff, according to our latest reports... Or are you saying you want to #rleave here#k?");
} else if (status == 1) {
cm.warp(120000104);
cm.dispose();
}
}
}

View File

@@ -4,8 +4,7 @@
1100003 Kiriru (To Victoria Island From Ereve)
-------Credits:-------------------------------------------------------------------
*MapleSanta
Credits to: MapleSanta
----------------------------------------------------------------------------------
**/

View File

@@ -4,8 +4,7 @@
1100004 Kiru (To Orbis)
-------Credits:-------------------------------------------------------------------
*MapleSanta
Credits to: MapleSanta
----------------------------------------------------------------------------------
**/
var menu = new Array("Orbis");

View File

@@ -4,8 +4,7 @@
1100005 Kiriru (On boat between Ereve and Victoria Island)
-------Credits:-------------------------------------------------------------------
*MapleSanta
Credits to: MapleSanta
----------------------------------------------------------------------------------
**/

View File

@@ -4,8 +4,7 @@
1100006 Kiru (On boat between Ereve and Orbis)
-------Credits:-------------------------------------------------------------------
*MapleSanta
Credits to: MapleSanta
----------------------------------------------------------------------------------
**/

View File

@@ -4,8 +4,7 @@
1100007 Kiriru (Victoria Island Station to Ereve)
-------Credits:-------------------------------------------------------------------
*MapleSanta
Credits to: MapleSanta
----------------------------------------------------------------------------------
**/

View File

@@ -4,8 +4,7 @@
1100008 Kiru (Orbis Station)
-------Credits:-------------------------------------------------------------------
*MapleSanta
Credits to: MapleSanta
----------------------------------------------------------------------------------
**/

View File

@@ -4,8 +4,7 @@
1200003 Puro
-------Credits:-------------------------------------------------------------------
*MapleSanta
Credits to: MapleSanta
----------------------------------------------------------------------------------
**/

View File

@@ -4,8 +4,7 @@
1200004 Puro
-------Credits:-------------------------------------------------------------------
*MapleSanta
Credits to: MapleSanta
----------------------------------------------------------------------------------
**/

View File

@@ -4,8 +4,7 @@
1200005 Puro
-------Credits:-------------------------------------------------------------------
*MapleSanta
Credits to: MapleSanta
----------------------------------------------------------------------------------
**/

View File

@@ -4,8 +4,7 @@
1200006 Puro
-------Credits:-------------------------------------------------------------------
*MapleSanta
Credits to: MapleSanta
----------------------------------------------------------------------------------
**/

View File

@@ -25,7 +25,7 @@
-- By ---------------------------------------------------------------------------------------------
Unknown
-- Version Info -----------------------------------------------------------------------------------
1.2 - Now Official method (action(x,0,0) is weak) by Moogra.
1.2 - Now Official method (action(x,0,0) is weak) by Moogra.
1.1 - Official Text and Method [Information]
1.0 - First Version by Unknown
---------------------------------------------------------------------------------------------------

View File

@@ -23,7 +23,7 @@
-- Odin JavaScript --------------------------------------------------------------------------------
Alcaster - El Nath Market (211000100)
-- By ---------------------------------------------------------------------------------------------
Unknown/Information/xQuasar
Unknown & Information & xQuasar
-- Version Info -----------------------------------------------------------------------------------
1.3 - Fixed up completely [xQuasar]
1.2 - Add a missing text part [Information]

View File

@@ -20,7 +20,7 @@
*/
/*
* @Author Stereo, xQuasar, <<XkelvinchiaX@Kelvin(For make it Fully Working.)>>
* @Author Stereo, xQuasar, XkelvinchiaX (Kelvin) - For make it Fully Working.
*
* Adobis - El Nath: Entrance to Zakum Altar (211042400)
*

View File

@@ -1,4 +1,4 @@
/* Author: aaroncsn <(MapleSea Like)(Need to add creation of minigame)>
/* Author: aaroncsn - MapleSea Like, Need to add creation of minigame
NPC Name: Wisp
Map(s): Ludibrium: Eos Tower Entrance(220000400)
Description: Pet Master

52
scripts/npc/2043000.js Normal file
View File

@@ -0,0 +1,52 @@
/*
This file is part of the HeavenMS MapleStory Server
Copyleft (L) 2016 - 2018 RonanLana
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3 as published by
the Free Software Foundation. You may not use, modify or distribute
this program under any other version of the GNU Affero General Public
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* Papulatus
Origin of Clock Tower (922020300)
Time Leap quest NPC.
*/
var status;
function start() { // thanks iPunchEm for NPC visibility
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (mode == 0 && type > 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if(status == 0) {
cm.sendNext("You don't belong to this world... Return now.");
} else if(status == 1) {
cm.warp(220080000);
cm.dispose();
}
}
}

96
scripts/npc/2095000.js Normal file
View File

@@ -0,0 +1,96 @@
/*
This file is part of the HeavenMS MapleStory Server
Copyleft (L) 2016 - 2018 RonanLana
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3 as published by
the Free Software Foundation. You may not use, modify or distribute
this program under any other version of the GNU Affero General Public
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* Delli
Looking for Delli 3 (925010200)
Hypnotize skill quest NPC.
*/
var status;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (mode == 0 && type > 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
if (cm.getMapId() != 925010400) {
em = cm.getEventManager("DelliBattle");
if(em == null) {
cm.sendOk("The Delli Battle has encountered an error.");
cm.dispose();
return;
} else if(cm.isUsingOldPqNpcStyle()) {
action(1, 0, 0);
return;
}
cm.sendSimple("#e#b<Party Quest: Save Delli>\r\n#k#n" + em.getProperty("party") + "\r\n\r\nAh, #r#p1095000##k sent you here? Is she worried about me? ... I'm terribly sorry to hear that, but I can't really go back just yet, some monsters are under the Black Mage's influence, and it's up to me to liberate them! ... It seems you're not going to accept that either, huh? Would you like to collaborate with party members to help me? If so, please have your #bparty leader#k talk to me.#b\r\n#L0#I want to participate in the party quest.\r\n#L1#I want to find party members.\r\n#L2#I would like to hear more details.");
} else {
cm.sendYesNo("The mission succeeded, thanks for escorting me! I can lead you to #b#m120000104##k, are you ready?");
}
} else if (status == 1) {
if (cm.getMapId() != 925010400) {
if (selection == 0) {
if (cm.getParty() == null) {
cm.sendOk("You can participate in the party quest only if you are in a party.");
cm.dispose();
} else if(!cm.isLeader()) {
cm.sendOk("Your party leader must talk to me to start this party quest.");
cm.dispose();
} else {
var eli = em.getEligibleParty(cm.getParty());
if(eli.size() > 0) {
if(!em.startInstance(cm.getParty(), cm.getPlayer().getMap(), 1)) {
cm.sendOk("Another party has already entered the #rParty Quest#k in this channel. Please try another channel, or wait for the current party to finish.");
}
}
else {
cm.sendOk("You cannot start this party quest yet, because either your party is not in the range size, some of your party members are not eligible to attempt it or they are not in this map. If you're having trouble finding party members, try Party Search.");
}
cm.dispose();
}
} else if (selection == 1) {
cm.sendOk("Try using a Super Megaphone or asking your buddies or guild to join!");
cm.dispose();
} else {
cm.sendOk("#e#b<Party Quest: Save Delli>#k#n\r\n A ambush is under way! I must stand on the field for around 6 minutes to complete the liberation, please protect me during that time so that my mission is completed.");
cm.dispose();
}
} else {
cm.warp(120000104);
cm.dispose();
}
}
}
}

View File

@@ -1,4 +1,4 @@
/* Author: aaroncsn <(MapleSea Like)(Incomplete- Needs skin id)>
/* Author: aaroncsn - MapleSea Like, Incomplete, Needs skin id
NPC Name: Laila
Map(s): The Burning Road: Ariant(2600000000)
Description: Skin Care Specialist

View File

@@ -1,4 +1,4 @@
/* Author: aaroncsn <(MapleSea Like)(Incomplete)>
/* Author: aaroncsn - MapleSea Like, Incomplete
NPC Name: Athena Pierce
Map(s): Altair Camp: Conference Hall(300000010)
Description: Unknown

View File

@@ -1,4 +1,4 @@
/* Author: aaroncsn <(MapleSea Like)(Incomplete)>
/* Author: aaroncsn - MapleSea Like, Incomplete
NPC Name: Euryth
Map(s): Elin Forest:Altair Camp(300000000)
Description: Unknown

View File

@@ -1,4 +1,4 @@
/* Author: aaroncsn <(MapleSea Like)(Incomplete)>
/* Author: aaroncsn - MapleSea Like, Incomplete
NPC Name: Kanderun
Map(s): Elin Forest:Entrance to Rocky Mountain(300010400)
Description: Unknown

View File

@@ -19,7 +19,7 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* Edited by: kevintjuh93
/* Credits to: kevintjuh93
NPC Name: Jean
Map(s): Victoria Road : Lith Harbour (104000000)
Description: Event Assistant

View File

@@ -20,7 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* Fredrick NPC (9030000)
* By kevintjuh93
* @author kevintjuh93
*/
var status;

View File

@@ -23,8 +23,9 @@
Debbie
-- By ---------------------------------------------------------------------------------------------
Angel (get31720 ragezone)
-- Extra Info -------------------------------------------------------------------------------------
Fixed by [happydud3] & [XotiCraze]
-- Version Info -----------------------------------------------------------------------------------
1.0 - First Version by Angel
2.0 - Second Version by happydud3 & XotiCraze
---------------------------------------------------------------------------------------------------
**/

View File

@@ -23,10 +23,10 @@
Assistant Nancy
-- By ---------------------------------------------------------------------------------------------
Angel (get31720 ragezone)
-- Extra Info -------------------------------------------------------------------------------------
Fixed by [happydud3] & [XotiCraze]
-- Content Improved by ----------------------------------------------------------------------------
RonanLana (HeavenMS)
-- Version Info -----------------------------------------------------------------------------------
1.0 - First Version by Angel
2.0 - Second Version by happydud3 & XotiCraze
3.0 - Third Version by RonanLana (HeavenMS)
---------------------------------------------------------------------------------------------------
**/

View File

@@ -23,10 +23,10 @@
Assistant Nancy
-- By ---------------------------------------------------------------------------------------------
Angel (get31720 ragezone)
-- Extra Info -------------------------------------------------------------------------------------
Fixed by [happydud3] & [XotiCraze]
-- Content Improved by ----------------------------------------------------------------------------
RonanLana (HeavenMS)
-- Version Info -----------------------------------------------------------------------------------
1.0 - First Version by Angel
2.0 - Second Version by happydud3 & XotiCraze
3.0 - Third Version by RonanLana (HeavenMS)
---------------------------------------------------------------------------------------------------
**/

View File

@@ -23,8 +23,10 @@
Assistant Travis
-- By ---------------------------------------------------------------------------------------------
Angel (get31720 ragezone)
-- Extra Info -------------------------------------------------------------------------------------
Fixed by [happydud3] & [XotiCraze]
-- Version Info -----------------------------------------------------------------------------------
1.0 - First Version by Angel
2.0 - Second Version by happydud3 & XotiCraze
3.0 - Third Version by RonanLana (HeavenMS)
---------------------------------------------------------------------------------------------------
**/

View File

@@ -23,9 +23,10 @@
Pila Present
-- By ---------------------------------------------------------------------------------------------
Angel (get31720 ragezone)
-- Extra Info -------------------------------------------------------------------------------------
Fixed by [happydud3] & [XotiCraze]
Improved by [RonanLana]
-- Version Info -----------------------------------------------------------------------------------
1.0 - First Version by Angel
2.0 - Second Version by happydud3 & XotiCraze
3.0 - Third Version by RonanLana (HeavenMS)
---------------------------------------------------------------------------------------------------
**/

View File

@@ -1,9 +1,25 @@
/* Jack
Refining NPC:
* ITEMMAKE
*
* By RonanLana
/*
This file is part of the HeavenMS MapleStory Server
Copyleft (L) 2016 - 2018 RonanLana
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3 as published by
the Free Software Foundation. You may not use, modify or distribute
this program under any other version of the GNU Affero General Public
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* Jack - Refining NPC
@author RonanLana
*/
var status = 0;
var selectedType = -1;

View File

@@ -21,7 +21,7 @@
*/
/* Noel
Singapore Random Face Changer
Credits to aaron and cody
@Author AAron (aaroncsn), Cody
Side note by aaron [If there is something wrong PM me on fMS]
*/
var status = 0;

View File

@@ -21,7 +21,7 @@
*/
/* Kelvin
SingaPore VIP Face changer
Made by aaron and cody
@Author AAron (aaroncsn), Cody
*/
var status = 0;
var beauty = 0;

View File

@@ -21,7 +21,7 @@
*/
/* Eric
Singapore VIP Hair/Color Changer
MADE BY AAron and Cody from the FlowsionMS Forums
@Author AAron, Cody (FlowsionMS) Forums
*/
var status = 0;
var beauty = 0;

View File

@@ -21,7 +21,8 @@
*/
/* Jimmy
Singa Random Hair/Color Changer
Credits to Cody and AAron from FlowsionMS
@Author Cody (FlowsionMS)
@Author AAron (FlowsionMS)
*/
var status = 0;
var beauty = 0;

View File

@@ -98,6 +98,7 @@ function writeServerStaff_Contributors() {
addPerson("xQuasar", "Contributor");
addPerson("Xterminator", "Contributor");
addPerson("XoticStory", "Contributor");
addPerson("Masterrulax", "Contributor");
}
function writeAllServerStaffs() {