CWKPQ inclusion

Added some CWKPQ imports for the server. Enabled basic mechanics for a
run, but still WIP.
This commit is contained in:
ronancpl
2017-06-26 01:34:56 -03:00
parent 6b2b3616d6
commit a7beff1bb4
101 changed files with 4455 additions and 3821 deletions

View File

@@ -0,0 +1,3 @@
function act() {
rm.dropItems();
}

View File

@@ -0,0 +1,29 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
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/>.
*/
/*@author Ronan
*6102002.js
*Drops CWKPQ chest bonuses...
*/
function act() {
rm.dropItems(true, 1, 90, 360, 15);
}

View File

@@ -0,0 +1,29 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
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/>.
*/
/*@author Ronan
*6102003.js
*Drops CWKPQ chest bonuses...
*/
function act() {
rm.dropItems(true, 1, 90, 360, 15);
}

View File

@@ -0,0 +1,29 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
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/>.
*/
/*@author Ronan
*6102004.js
*Drops CWKPQ chest bonuses...
*/
function act() {
rm.dropItems(true, 1, 90, 360, 15);
}

View File

@@ -0,0 +1,29 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
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/>.
*/
/*@author Ronan
*6102005.js
*Drops CWKPQ chest bonuses...
*/
function act() {
rm.dropItems(true, 1, 90, 360, 15);
}

View File

@@ -0,0 +1,27 @@
function act() {
var eim = rm.getEventInstance();
if (eim != null) {
var mapId = rm.getMap().getId();
if (mapId == 610030200) {
eim.dropMessage(6, "The Warrior Sigil has been activated!");
eim.setIntProperty("glpq2", eim.getIntProperty("glpq2") + 1);
if (eim.getIntProperty("glpq2") == 5) { //all 5 done
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(mapId, "2pt", 2);
}
} else if (mapId == 610030300) {
eim.dropMessage(6, "The Warrior Sigil has been activated! You hear gears turning! The Menhir Defense System is active! Run!");
eim.setIntProperty("glpq3", eim.getIntProperty("glpq3") + 1);
rm.getMap().moveEnvironment("menhir0", 1);
if (eim.getIntProperty("glpq3") == 5 && eim.getIntProperty("glpq3_p") == 5) {
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(mapId, "3pt", 2);
}
}
}
//rm.getMap().moveEnvironment("menhir0", 1);
}

View File

@@ -0,0 +1,24 @@
function act() {
var eim = rm.getEventInstance();
if (eim != null) {
var mapId = rm.getMap().getId();
if (mapId == 610030200) {
eim.dropMessage(6, "The Archer Sigil has been activated!");
eim.setIntProperty("glpq2", eim.getIntProperty("glpq2") + 1);
if (eim.getIntProperty("glpq2") == 5) { //all 5 done
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(mapId, "2pt", 2);
}
} else if (mapId == 610030300) {
eim.dropMessage(6, "The Archer Sigil has been activated! You hear gears turning! The Menhir Defense System is active! Run!");
eim.setIntProperty("glpq3", eim.getIntProperty("glpq3") + 1);
rm.getMap().moveEnvironment("menhir1", 1);
rm.getMap().moveEnvironment("menhir2", 1);
if (eim.getIntProperty("glpq3") == 5 && eim.getIntProperty("glpq3_p") == 5) {
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(mapId, "3pt", 2);
}
}
}
}

View File

@@ -0,0 +1,23 @@
function act() {
var eim = rm.getEventInstance();
if (eim != null) {
var mapId = rm.getMap().getId();
if (mapId == 610030200) {
eim.dropMessage(6, "The Mage Sigil has been activated!");
eim.setIntProperty("glpq2", eim.getIntProperty("glpq2") + 1);
if (eim.getIntProperty("glpq2") == 5) { //all 5 done
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(mapId, "2pt", 2);
}
} else if (mapId == 610030300) {
eim.dropMessage(6, "The Mage Sigil has been activated! You hear gears turning! The Menhir Defense System is active! Run!");
eim.setIntProperty("glpq3", eim.getIntProperty("glpq3") + 1);
rm.getMap().moveEnvironment("menhir3", 1);
if (eim.getIntProperty("glpq3") == 5 && eim.getIntProperty("glpq3_p") == 5) {
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(mapId, "3pt", 2);
}
}
}
}

View File

@@ -0,0 +1,23 @@
function act() {
var eim = rm.getEventInstance();
if (eim != null) {
var mapId = rm.getMap().getId();
if (mapId == 610030200) {
eim.dropMessage(6, "The Thief Sigil has been activated!");
eim.setIntProperty("glpq2", eim.getIntProperty("glpq2") + 1);
if (eim.getIntProperty("glpq2") == 5) { //all 5 done
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(mapId, "2pt", 2);
}
} else if (mapId == 610030300) {
eim.dropMessage(6, "The Thief Sigil has been activated! You hear gears turning! The Menhir Defense System is active! Run!");
eim.setIntProperty("glpq3", eim.getIntProperty("glpq3") + 1);
rm.getMap().moveEnvironment("menhir4", 1);
if (eim.getIntProperty("glpq3") == 5 && eim.getIntProperty("glpq3_p") == 5) {
rm.mapMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(mapId, "3pt", 2);
}
}
}
}

View File

@@ -0,0 +1,23 @@
function act() {
var eim = rm.getEventInstance();
if (eim != null) {
var mapId = rm.getMap().getId();
if (mapId == 610030200) {
eim.dropMessage(6, "The Pirate Sigil has been activated!");
eim.setIntProperty("glpq2", eim.getIntProperty("glpq2") + 1);
if (eim.getIntProperty("glpq2") == 5) { //all 5 done
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(mapId, "2pt", 2);
}
} else if (mapId == 610030300) {
eim.dropMessage(6, "The Pirate Sigil has been activated! You hear gears turning! The Menhir Defense System is active! Run!");
eim.setIntProperty("glpq3", eim.getIntProperty("glpq3") + 1);
rm.getMap().moveEnvironment("menhir5", 1);
if (eim.getIntProperty("glpq3") == 5 && eim.getIntProperty("glpq3_p") == 5) {
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(mapId, "3pt", 2);
}
}
}
}

View File

@@ -0,0 +1,11 @@
function act() {
var eim = rm.getEventInstance();
if (eim != null) {
eim.dropMessage(6, "A weapon has been restored to the Relic of Mastery!");
eim.setIntProperty("glpq5", eim.getIntProperty("glpq5") + 1);
if (eim.getIntProperty("glpq5") == 5) { //all 5 done
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(610030500, "5pt", 2);
}
}
}

View File

@@ -0,0 +1,11 @@
function act() {
var eim = rm.getEventInstance();
if (eim != null) {
eim.dropMessage(6, "A weapon has been restored to the Relic of Mastery!");
eim.setIntProperty("glpq5", eim.getIntProperty("glpq5") + 1);
if (eim.getIntProperty("glpq5") == 5) { //all 5 done
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(610030500, "5pt", 2);
}
}
}

View File

@@ -0,0 +1,11 @@
function act() {
var eim = rm.getEventInstance();
if (eim != null) {
eim.dropMessage(6, "A weapon has been restored to the Relic of Mastery!");
eim.setIntProperty("glpq5", eim.getIntProperty("glpq5") + 1);
if (eim.getIntProperty("glpq5") == 5) { //all 5 done
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(610030500, "5pt", 2);
}
}
}

View File

@@ -0,0 +1,11 @@
function act() {
var eim = rm.getEventInstance();
if (eim != null) {
eim.dropMessage(6, "A weapon has been restored to the Relic of Mastery!");
eim.setIntProperty("glpq5", eim.getIntProperty("glpq5") + 1);
if (eim.getIntProperty("glpq5") == 5) { //all 5 done
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(610030500, "5pt", 2);
}
}
}

View File

@@ -0,0 +1,11 @@
function act() {
var eim = rm.getEventInstance();
if (eim != null) {
eim.dropMessage(6, "A weapon has been restored to the Relic of Mastery!");
eim.setIntProperty("glpq5", eim.getIntProperty("glpq5") + 1);
if (eim.getIntProperty("glpq5") == 5) { //all 5 done
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(610030500, "5pt", 2);
}
}
}

View File

@@ -0,0 +1,11 @@
function act() {
var eim = rm.getEventInstance();
if (eim != null) {
eim.dropMessage(6, "The Warrior Sigil has been activated!");
eim.setIntProperty("glpq4", eim.getIntProperty("glpq4") + 1);
if (eim.getIntProperty("glpq4") == 5) { //all 5 done
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(610030400, "4pt", 2);
}
}
}

View File

@@ -0,0 +1,11 @@
function act() {
var eim = rm.getEventInstance();
if (eim != null) {
eim.dropMessage(6, "The Archer Sigil has been activated!");
eim.setIntProperty("glpq4", eim.getIntProperty("glpq4") + 1);
if (eim.getIntProperty("glpq4") == 5) { //all 5 done
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(610030400, "4pt", 2);
}
}
}

View File

@@ -0,0 +1,11 @@
function act() {
var eim = rm.getEventInstance();
if (eim != null) {
eim.dropMessage(6, "The Mage Sigil has been activated!");
eim.setIntProperty("glpq4", eim.getIntProperty("glpq4") + 1);
if (eim.getIntProperty("glpq4") == 5) { //all 5 done
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(610030400, "4pt", 2);
}
}
}

View File

@@ -0,0 +1,11 @@
function act() {
var eim = rm.getEventInstance();
if (eim != null) {
eim.dropMessage(6, "The Thief Sigil has been activated!");
eim.setIntProperty("glpq4", eim.getIntProperty("glpq4") + 1);
if (eim.getIntProperty("glpq4") == 5) { //all 5 done
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(610030400, "4pt", 2);
}
}
}

View File

@@ -0,0 +1,11 @@
function act() {
var eim = rm.getEventInstance();
if (eim != null) {
eim.dropMessage(6, "The Pirate Sigil has been activated!");
eim.setIntProperty("glpq4", eim.getIntProperty("glpq4") + 1);
if (eim.getIntProperty("glpq4") == 5) { //all 5 done
eim.dropMessage(6, "The Antellion grants you access to the next portal! Proceed!");
eim.showClearEffect(610030400, "4pt", 2);
}
}
}