Ludibrium PQ + MapleIdRetriever

Implemented LPQ. New application tool that realizes fetches by names and
returns respective ids, over all items depicted in the GM handbook.
This commit is contained in:
ronancpl
2017-05-13 15:24:02 -03:00
parent ed6121dd5f
commit b26469301d
94 changed files with 36729 additions and 1186 deletions

View File

@@ -31,5 +31,8 @@ function enter(pi) {
pi.getPlayer().changeMap(target, target.getPortal("st00"));
return true;
}
return false;
else {
pi.getPlayer().dropMessage(5, "The portal is not opened yet.");
return false;
}
}

View File

@@ -31,5 +31,8 @@ function enter(pi) {
pi.getPlayer().changeMap(target, target.getPortal("st00"));
return true;
}
return false;
else {
pi.getPlayer().dropMessage(5, "The portal is not opened yet.");
return false;
}
}

View File

@@ -30,5 +30,8 @@ function enter(pi) {
pi.getPlayer().changeMap(target, target.getPortal("st00"));
return true;
}
return false;
else {
pi.getPlayer().dropMessage(5, "The portal is not opened yet.");
return false;
}
}

View File

@@ -21,7 +21,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Kerning PQ: 3rd stage to 4th stage portal
Kerning PQ: 4th stage to last stage portal
*/
function enter(pi) {
@@ -31,5 +31,8 @@ function enter(pi) {
pi.getPlayer().changeMap(target, target.getPortal("st00"));
return true;
}
return false;
else {
pi.getPlayer().dropMessage(5, "The portal is not opened yet.");
return false;
}
}

View File

@@ -20,7 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Kerning PQ: 4th stage to final stage portal
Kerning PQ: last stage to bonus stage portal
*/
function enter(pi) {
@@ -30,5 +30,8 @@ function enter(pi) {
pi.getPlayer().changeMap(target, target.getPortal("st00"));
return true;
}
return false;
else {
pi.getPlayer().dropMessage(5, "The portal is not opened yet.");
return false;
}
}

View File

@@ -25,18 +25,17 @@ LudiPQ - 1 - 2 Portal
*/
function enter(pi) {
var nextMap = 922010900;
var eim = pi.getPlayer().getEventInstance()
var target = eim.getMapInstance(nextMap);
var targetPortal = target.getPortal("st00");
// only let people through if the eim is ready
var avail = eim.getProperty("8stageclear");
if (avail == null) {
// can't go thru eh?
pi.getPlayer().dropMessage(5, "Some seal is blocking this door.");
return false; }
else {
pi.getPlayer().changeMap(target, targetPortal);
return true;
}
var nextMap = 922010200;
var eim = pi.getPlayer().getEventInstance();
var target = eim.getMapInstance(nextMap);
var targetPortal = target.getPortal("st00");
var avail = eim.getProperty("1stageclear");
if (avail == null) {
pi.getPlayer().dropMessage(5, "Some seal is blocking this door.");
return false;
}
else {
pi.getPlayer().changeMap(target, targetPortal);
return true;
}
}

View File

@@ -1,14 +1,15 @@
/*
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>
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 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.
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
@@ -18,17 +19,23 @@
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/>.
*/
/*
Ludi PQ: 1st stage to 2nd stage portal
LudiPQ - 1 - 2 Portal
@author Jvlaple
*/
function enter(pi) {
var eim = pi.getPlayer().getEventInstance()
var target = eim.getMapInstance(922010200);
if (eim.getProperty("1stageclear") != null) {
pi.getPlayer().changeMap(target, target.getPortal("st00"));
return true
} else
return false;
}
var nextMap = 922010300;
var eim = pi.getPlayer().getEventInstance();
var target = eim.getMapInstance(nextMap);
var targetPortal = target.getPortal("st00");
var avail = eim.getProperty("2stageclear");
if (avail == null) {
pi.getPlayer().dropMessage(5, "Some seal is blocking this door.");
return false;
}
else {
pi.getPlayer().changeMap(target, targetPortal);
return true;
}
}

View File

@@ -1,15 +1,14 @@
/*
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>
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.
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
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
@@ -25,17 +24,19 @@ LudiPQ - 1 - 2 Portal
*/
function enter(pi) {
var nextMap = 922010300;
var eim = pi.getPlayer().getEventInstance()
var target = eim.getMapInstance(nextMap);
var targetPortal = target.getPortal("st00");
var avail = eim.getProperty("2stageclear");
if (avail == null) {
pi.getPlayer().dropMessage(5, "Some seal is blocking this door.");
return false;
}
else {
pi.getPlayer().changeMap(target, targetPortal);
return true;
}
var nextMap = 922010400;
var eim = pi.getPlayer().getEventInstance();
var target = eim.getMapInstance(nextMap);
var targetPortal = target.getPortal("st00");
// only let people through if the eim is ready
var avail = eim.getProperty("3stageclear");
if (avail == null) {
// can't go thru eh?
pi.getPlayer().dropMessage(5, "Some seal is blocking this door.");
return false;
}
else {
pi.getPlayer().changeMap(target, targetPortal);
return true;
}
}

View File

@@ -24,16 +24,17 @@ LudiPQ - 1 - 2 Portal
*/
function enter(pi) {
var nextMap = 922010400;
var eim = pi.getPlayer().getEventInstance()
var nextMap = 922010500;
var eim = pi.getPlayer().getEventInstance();
var target = eim.getMapInstance(nextMap);
var targetPortal = target.getPortal("st00");
// only let people through if the eim is ready
var avail = eim.getProperty("3stageclear");
var avail = eim.getProperty("4stageclear");
if (avail == null) {
// can't go thru eh?
pi.getPlayer().dropMessage(5, "Some seal is blocking this door.");
return false; }
return false;
}
else {
pi.getPlayer().changeMap(target, targetPortal);
return true;

View File

@@ -24,16 +24,17 @@ LudiPQ - 1 - 2 Portal
*/
function enter(pi) {
var nextMap = 922010500;
var eim = pi.getPlayer().getEventInstance()
var nextMap = 922010600;
var eim = pi.getPlayer().getEventInstance();
var target = eim.getMapInstance(nextMap);
var targetPortal = target.getPortal("st00");
// only let people through if the eim is ready
var avail = eim.getProperty("4stageclear");
var avail = eim.getProperty("5stageclear");
if (avail == null) {
// can't go thru eh?
pi.getPlayer().dropMessage(5, "Some seal is blocking this door.");
return false; }
return false;
}
else {
pi.getPlayer().changeMap(target, targetPortal);
return true;

View File

@@ -18,13 +18,14 @@
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/>.
*/
/*
LudiPQ - 1 - 2 Portal
@author Jvlaple
*/
function enter(pi) {
var nextMap = 922010600;
var nextMap = 922010700;
var eim = pi.getPlayer().getEventInstance()
var target = eim.getMapInstance(nextMap);
var targetPortal = target.getPortal("st00");
@@ -33,8 +34,12 @@ function enter(pi) {
if (avail == null) {
// can't go thru eh?
pi.getPlayer().dropMessage(5, "Some seal is blocking this door.");
return false; }
return false;
}
else {
if(eim.getProperty("6stageclear") == null) {
eim.setProperty("6stageclear", "true");
}
pi.getPlayer().changeMap(target, targetPortal);
return true;
}

View File

@@ -20,27 +20,15 @@
*/
/*
LudiPQ - 1 - 2 Portal
@author Jvlaple
Ludi PQ: 5th stage to 6th stage portal
*/
function enter(pi) {
var nextMap = 922010700;
var eim = pi.getPlayer().getEventInstance()
var target = eim.getMapInstance(nextMap);
var targetPortal = target.getPortal("st00");
// only let people through if the eim is ready
var avail = eim.getProperty("5stageclear");
if (avail == null) {
// can't go thru eh?
pi.getPlayer().dropMessage(5, "Some seal is blocking this door.");
return false; }
else {
if(eim.getProperty("6stageclear") == null) {
eim.setProperty("6stageclear", "done");
pi.givePartyExp("LudiPQ6th");
}
pi.getPlayer().changeMap(target, targetPortal);
var eim = pi.getPlayer().getEventInstance();
var target = eim.getMapInstance(922010800);
if (eim.getProperty("7stageclear") != null) {
pi.getPlayer().changeMap(target, target.getPortal("st00"));
return true;
}
} else
return false;
}

View File

@@ -20,15 +20,24 @@
*/
/*
Ludi PQ: 5th stage to 6th stage portal
LudiPQ - 1 - 2 Portal
@author Jvlaple
*/
function enter(pi) {
var eim = pi.getPlayer().getEventInstance()
var target = eim.getMapInstance(922010800);
if (eim.getProperty("7stageclear") != null) {
pi.getPlayer().changeMap(target, target.getPortal("st00"));
return true;
} else
var nextMap = 922010900;
var eim = pi.getPlayer().getEventInstance();
var target = eim.getMapInstance(nextMap);
var targetPortal = target.getPortal("st00");
// only let people through if the eim is ready
var avail = eim.getProperty("8stageclear");
if (avail == null) {
// can't go thru eh?
pi.getPlayer().dropMessage(5, "Some seal is blocking this door.");
return false;
}
else {
pi.getPlayer().changeMap(target, targetPortal);
return true;
}
}

View File

@@ -1,42 +0,0 @@
/*
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 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/>.
*/
/*
LudiPQ - 1 - 2 Portal
@author Jvlaple
*/
function enter(pi) {
var nextMap = 922010900;
var eim = pi.getPlayer().getEventInstance();
var target = eim.getMapInstance(nextMap);
var targetPortal = target.getPortal("st00");
// only let people through if the eim is ready
var avail = eim.getProperty("8stageclear");
if (avail == null) {
// can't go thru eh?
pi.getPlayer().dropMessage(5, "Some seal is blocking this door.");
return false;
}
else {
pi.getPlayer().changeMap(target, targetPortal);
return true;
}
}