Reading approximated unitPrice value from WZ in such a fashion that the new double value can be represented in float point without losing too much data. Fixed rechargeables with quantity 0 set on the playershop/hiredmerchant being handed back to the owner with quantity 1. Solved many concurrecy issues related with items on the field and playershop/hiredmerchant. Fixed anomalies with waiting time before picking up other players items, now acting GMS-like. Added/patched copyleft claims in files that are from my own authorship. Please see backtrack_licenses/readme.txt for more info about this move. Fixed issues with item retrieval when using bundles on playershop/hiredmerchant. Fixed some exploits with playershop/hiredmerchant. Fixed a glitch with npcshop when trying to recharge/buy items without having enough mesos. Added portal sound effect for some scripted portals that still lacked it. Fixed some exploits with NPCs Fredrick and Duey. Fixed Body Pressure not displaying damage to other players. Added a flag that permits town scrolls to act like a "banish" for players. This renders the antibanish scroll effect available.
159 lines
5.0 KiB
JavaScript
159 lines
5.0 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;
|
|
|
|
// make sure the server names are lexicograffically EQUALS to the correspondent function.
|
|
var servers = ["HeavenMS", "MapleSolaxia", "MoopleDEV", "MetroMS", "BubblesDEV", "ThePackII", "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_HeavenMS() {
|
|
addPerson("Ronan", "Developer");
|
|
addPerson("Vcoc", "Freelance Developer");
|
|
|
|
setHistory(2015, 2018);
|
|
}
|
|
|
|
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("conan513", "Administrator");
|
|
addPerson("kevintjuh93", "Developer");
|
|
setHistory(2010, 2012);
|
|
}
|
|
|
|
function writeServerStaff_MetroMS() {
|
|
addPerson("Moongra", "Developer");
|
|
setHistory(2009, 2010);
|
|
}
|
|
|
|
function writeServerStaff_BubblesDEV() {
|
|
addPerson("Deagan", "Administrator");
|
|
addPerson("XxOsirisxX", "Developer");
|
|
setHistory(2009, 2009);
|
|
}
|
|
|
|
function writeServerStaff_ThePackII() {
|
|
addPerson("Hofer", "Developer");
|
|
setHistory(2008, 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("Jvlaple", "Contributor");
|
|
addPerson("Stereo", "Contributor");
|
|
addPerson("Lerk", "Contributor");
|
|
addPerson("Leifde", "Contributor");
|
|
addPerson("ThreeStep", "Contributor");
|
|
addPerson("RMZero213", "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];
|
|
eval("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();
|
|
}
|
|
}
|
|
}
|