Files
sweetgum-server/scripts/npc/credits.js
ronancpl efbce82a8b Pooled Io Write + EXP loss & Detached morph patch + Storages in World
Fixed autocommit getting called early/unavailable in a few catch blocks, when trying to save player.
Fixed the missing variable declaration in several quest scripts that were recently formatted.
Reworked the EXP loss formula applied at a knock-out. The new formula follows past discussions in several MS forums.
Fixed a deadlock issue related with party HP and party doors management.
Refactored management of packets sent to client through an IoSession. New system no longer makes use of a synchronized statement when calling announce(packet), rather makes use of dedicated threads to send queued packets for the respective players.
Fixed SP reset allowing increase of unexpected skills.
Refactored storages, no longer instantiated as coupled with the character, rather instantiated in a map within the world object, with accountid as key.
Reviewed usage of character objects of offline party members, that weren't being properly checked.
Fixed some unexpected cases with buffs and morphs (within the enhanced buff system) making the latter show up as another morph figure.
Added a "priority buff" perspective within the enhanced buff system, to let such priority items/skills take awareness over other buffs. (This would be vital for some quests, as the one reported in #514 )
Fixed EXP gains in certain scenarios showing up with less amount than the expected (due to float point operations).
Fixed a critical bug that have emerged in a recent mount-skill update, issue happened due to an improper object initialization.
Fixed mount information packet not being relayed to the player at world login time, rendering some quests not startable until the mob levels up.
2019-08-28 03:49:05 -03:00

180 lines
5.7 KiB
JavaScript

/* @Author Ronan
Name: Heracle
Map(s): Guild Headquarters
Info: Hall of Fame
Script: credits.js
*/
var status;
var name_tree = [];
var role_tree = [];
var name_cursor, role_cursor;
// new server names are to be appended at the start of the name stack, building up the chronology.
// make sure the server names are lexicograffically equivalent to their correspondent function.
var servers = ["HeavenMS", "MapleSolaxia", "MoopleDEV", "MetroMS", "BubblesDEV", "OdinMS", "Contributors"];
var servers_history = [];
function addPerson(name, role) {
name_cursor.push(name);
role_cursor.push(role);
}
function setHistory(from, to) {
servers_history.push([from, to]);
}
/*
function writeServerStaff_MapleNext() {
addPerson("John Doe", "The role");
setHistory(INITIAL_YEAR [, CURRENT_YEAR]);
}
*/
function writeServerStaff_HeavenMS() {
addPerson("Ronan", "Developer");
addPerson("Vcoc", "Freelance Developer");
addPerson("Thora", "Contributor");
addPerson("GabrielSin", "Contributor");
addPerson("Masterrulax", "Contributor");
addPerson("MedicOP", "Adjunct Developer");
setHistory(2015, 2019);
}
function writeServerStaff_MapleSolaxia() {
addPerson("Aria", "Administrator");
addPerson("Twdtwd", "Administrator");
addPerson("Exorcist", "Developer");
addPerson("SharpAceX", "Developer");
addPerson("Zygon", "Freelance Developer");
addPerson("SourMjolk", "Game Master");
addPerson("Kanade", "Game Master");
addPerson("Kitsune", "Game Master");
setHistory(2014, 2015);
}
function writeServerStaff_MoopleDEV() {
addPerson("kevintjuh93", "Developer");
addPerson("hindie93", "Contributor");
addPerson("JuniarZ-", "Contributor");
setHistory(2010, 2012);
}
function writeServerStaff_MetroMS() {
addPerson("David!", "Developer");
addPerson("XxOsirisxX", "Contributor");
addPerson("Generic", "Contributor");
setHistory(2009, 2010);
}
function writeServerStaff_BubblesDEV() {
addPerson("David!", "Developer");
addPerson("Moogra", "Developer");
addPerson("XxOsirisxX", "Contributor");
addPerson("MrMysterious", "Contributor");
setHistory(2009, 2009);
}
function writeServerStaff_OdinMS() {
addPerson("Serpendiem", "Administrator");
addPerson("Frz", "Developer");
addPerson("Patrick", "Developer");
addPerson("Matze", "Developer");
addPerson("Vimes", "Developer");
setHistory(2007, 2008);
}
function writeServerStaff_Contributors() {
addPerson("Jayd", "Contributor");
addPerson("Dragohe4rt", "Contributor");
addPerson("Jvlaple", "Contributor");
addPerson("Stereo", "Contributor");
addPerson("AngelSL", "Contributor");
addPerson("Lerk", "Contributor");
addPerson("Leifde", "Contributor");
addPerson("ThreeStep", "Contributor");
addPerson("RMZero213", "Contributor");
addPerson("ExtremeDevilz", "Contributor");
addPerson("aaroncsn", "Contributor");
addPerson("xQuasar", "Contributor");
addPerson("Xterminator", "Contributor");
addPerson("XoticStory", "Contributor");
}
function writeAllServerStaffs() {
for(var i = 0; i < servers.length; i++) {
name_cursor = [];
role_cursor = [];
var srvName = servers[i];
this["writeServerStaff_" + srvName]();
name_tree.push(name_cursor);
role_tree.push(role_cursor);
}
}
function start() {
status = -1;
writeAllServerStaffs();
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) {
var sendStr = "There is the history tree of all participating parties on the build of this server:\r\n\r\n";
for(var i = 0; i < servers.length; i++) {
var hist = servers_history[i];
if(hist && hist.length > 0) {
sendStr += "#L" + i + "##b" + servers[i] + "#k -- " + ((hist[0] != hist[1]) ? hist[0] + " ~ " + hist[1] : hist[0]) + "#l\r\n";
} else {
sendStr += "#L" + i + "##b" + servers[i] + "#k#l\r\n";
}
}
cm.sendSimple(sendStr);
} else if(status == 1) {
var lvName, lvRole;
for(var i = 0; i < servers.length; i++) {
if(selection == i) {
lvName = name_tree[i];
lvRole = role_tree[i];
break;
}
}
var sendStr = "The staff of #b" + servers[selection] + "#k:\r\n\r\n";
for(var i = 0; i < lvName.length; i++) {
sendStr += " #L" + i + "# " + lvName[i] + " - " + lvRole[i];
sendStr += "#l\r\n";
}
cm.sendPrev(sendStr);
} else {
cm.dispose();
}
}
}