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

@@ -19,8 +19,9 @@
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 : Raz
@ Author : Raz, Ronan
@
@ NPC = Pink Balloon
@ Map = Hidden-Street <Stage B>
@@ -37,39 +38,23 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();//ExitChat
}else if (mode == 0){
cm.sendOk("Wise choice. Who wouldn't want free mesos from the #bBonus Stage#k.");
cm.dispose();//No
} else {
if (mode == 1)
status++;
else
status--;
var eim = cm.getPlayer().getEventInstance();
if (status == 0)
cm.sendYesNo("Would you like to leave the bonus?");
else if (status == 1) {
if(isLeader())
cm.sendOk("Ok, Your loss");
else{
cm.sendOk("Ask your #bParty-Leader#k to come talk to me.");
cm.dispose();
}
}else if (status == 2) {
var map = eim.getMapInstance(922011100);
var party = eim.getPlayers();
cm.warpMembers(map, "st00", party);
cm.dispose();
if (mode == -1) {
cm.dispose();//ExitChat
}else if (mode == 0){
cm.sendOk("Wise choice. Who wouldn't want free mesos from the #bBonus Stage#k?");
cm.dispose();//No
} else {
if (mode == 1)
status++;
else
status--;
if(status == 0) {
cm.sendYesNo("Would you like to leave the bonus stage?");
}
else {
cm.warp(922011100);
cm.dispose();
}
}
}
}
function isLeader(){
if(cm.getParty() == null){
return false;
}else{
return cm.isLeader();
}
}
}