Missing Pirate questlines + Find & MoveLife update + Party-Map patch

Implemented missing scripts for Aerial Strike, Hypnotize and Time Leap skill questlines.
Fixed an deadlock issue within player's inventory and status.
Fixed skill spam detection disconnecting players when legitimatelly spamming Flash Jump or Heal.
Fixed party members map location not being properly updated after changing maps.
Rehauled MoveLife handler. Improved packet read of attack and skill elements, properly reflecting incoming actions to other player on the map.
Reviewed an issue with equipments MaxHP/MaxMP getting unsynced with player's MaxHP/MaxMP, resulting in differences within server-client view of a player's pool.
Fixed mobs not being spawned by dojo bosses after enough spawn actions were instanced.
Implemented proper Mob.wz linked mob data support.
Fixed /find not identifying a player's channel properly.
Fixed Echo of Hero not affecting other player in the map.
Fixed commands warp and goto not taking player off events/expeditions properly.
Fixed storage expansion not being registered on DB when buying the cash item.
Fixed party leadership being reassigned after changing channels.
Implemented suggested level range limit between party members on the EXP share system. Players whose level range from the attacker exceeds the estipulated threshold will not receive any EXP from the action.

Happy Thanksgiving Day everyone!!!
This commit is contained in:
ronancpl
2018-11-22 16:16:21 -02:00
parent 5ee0cd1c98
commit 0910dc2428
163 changed files with 4618 additions and 3186 deletions

View File

@@ -1453,4 +1453,33 @@ Refatorado packets que lidam com respostas a comandos de pets.
Corrigido drop data de Ultra Gray com item inexistente.
Corrigido quest de meteoritos mudando estado da quest mesmo quando jogador não recebe o item devido a inventário cheio.
Corrigido quest de Maker lv1 retirando mesos além da quantidade esperada, ao realizar ações da quest.
Adicionado server flag que lida com utilização de features NPCs custom.
Adicionado server flag que lida com utilização de features NPCs custom.
11 Novembro 2018,
Implementado questline para as skills Hypnotize e Time Leap.
Corrigido um problema de deadlock envolvendo inventários e locks de status de jogadores.
Corrigido detecção de spam de Flash Jump desconectando jogadores que tentam usá-lo em rampas.
Corrigido mapa no 4o estágio de Tera Gate com footholds irregulares.
12 - 14 Novembro 2018,
Método de update de cupons dos jogadores agora atua de forma mais otimizada, evitando execuções desnecessárias.
Corrigido update de mapas não atuando corretamente para jogadores de party.
Revisado leitura de uso de skills e ataques de mobs, agora aplicando os limites para detecção de ataque/skill de uma forma mais correta.
Corrigido caso onde registros de MaxHP e MaxMP de jogadores se tornariam inconsistentes após equipamento aumentar de nível.
Corrigido mobs parando de ser spawnados em mapas de Dojo após diversos usos de MobSkill.
Implementado suporte apropriado para mobs linkados. Registros de mobs base são propagados para seus links, para eventualmente ter informações sobrescritas.
Corrigido MoveLife não lançando corretamente pacotes para outros jogadores em diversos cenários, diversas vezes tornando a jogabilidade inconstante no multiplayer.
15 - 17 Novembro 2018,
Corrigido /find não identificando canal do jogador-alvo corretamente.
Corrigido lider de party sendo passado para outro membro no mapa ao mudar canais.
Corrigido Echo of Hero não atuando em outros jogadores no mapa.
Corrigido quest inicial de Mushroom Castle não levando jogadores à área diretamente.
Corrigido comandos warp e goto não retirando jogadores corretamente de eventos/expedição ao mudar de mapas.
Implementado script para questline de skill Aerial Strike.
20 - 21 Novembro 2018,
Corrigido limite do Cash Shop storage não atualizando corretamente quando jogador compra expansão de 8.
Atualizado guild rank de jogadores ao resetar guildid dos mesmos, agora evitando jogadores com rank acima de 5 mesmo sem guild.
Adicionado restrição no sistema de partilha de EXP. Jogadores que possuem uma diferença de nível com o last hitter satisfatoriamente grande não recebe este ganho.
Modificado nome de skill Maple Hero destacados em quest e itens para Maple Warrior.

View File

@@ -1181,7 +1181,7 @@
2280000 - Lava Bottle - A glass bottle that contains an actual lava, which is waiting to be spilled out. Drink this lava, and the lava will consume the body with fire, which will enable the drinker to master Fire Demon.
2280001 - Black Cloud Machine - A mechanical device that produces black clouds. Enables the character to acquire the Smokescreen skill using the clouds.
2280002 - Firm Hand - A stimulant packaged inside a bottle that resembles a clenched fist. Drinking the stimulant will allow the character to acquire The Will of a Warrior.
2280003 - [Skill Book] Maple Hero - You can learn #cMaple Hero# with this book.rnJob : All 4th jobsrnCondition : #cMaple Hero# not acquired.
2280003 - [Skill Book] Maple Warrior - You can learn #cMaple Warrior# with this book.rnJob : All 4th jobsrnCondition : #cMaple Warrior# not acquired.
2280004 - [Skill Book] Infinity - You can learn #Infinity# with this book.rnJob : 4th Advancement MagicianrnCondition : #cInfinity# not acquired
2280005 - [Skill Book] Dragon's Breath - You can learn #cDragon's Breath# with this book.wnJob : 4th Advancement BowmanrnCondition : #cDragon's Breath# not acquired
2280006 - [Skill Book] Taunt - You can learn #cTaunt# with this book.rnJob : 4th Advancement ThiefrnCondition : #cTaunt# not acquired
@@ -1287,7 +1287,7 @@
2290093 - [Mastery Book] Assassinate - This increases the master level of #cAssassinate# up to 30 with 50% of chance.rnClass : ShadowerrnCondition : Skill level above 15
2290094 - [Mastery Book] Smokescreen - This increases the master level of #cSmokescreen# up to 20 with 70% of chance.rnClass : ShadowerrnCondition : Skill level above 5
2290095 - [Mastery Book] Smokescreen - This increases the master level of #cSmokescreen# up to 30 with 50% of chance.rnClass : ShadowerrnCondition : Skill level above 15
2290096 - [Mastery Book] Maple Hero 20 - This increases the master level of #cMaple Hero# up to 20 with 70% of chance.rnJob : All 4th Advancement JobsrnCondition : Skill level above 5
2290096 - [Mastery Book] Maple Warrior 20 - This increases the master level of #cMaple Warrior# up to 20 with 70% of chance.rnJob : All 4th Advancement JobsrnCondition : Skill level above 5
2290097 - [Mastery Book] Dragon Strike - With a 70% success rate, it raises the Master Level of #cDragon Strike# to 20.nJob : BuccaneernRequirement : At least Level 5 in this skill
2290098 - [Mastery Book] Dragon Strike - With a 50% success rate, it raises the Master Level of #cDragon Strike# to 30.nJob : BuccaneernRequirement : At least Level 15 in this skill
2290099 - [Mastery Book] Energy Orb - With a 70% success rate, it raises the Master Level of #cEnergy Orb# to 20.nJob : BuccaneernRequirement : At least Level 5 in this skill
@@ -1316,7 +1316,7 @@
2290122 - [Mastery Book] Battleship Torpedo - With a 50% success rate, it raises the Master Level of #cBattleship Torpedo# to 30.nJob : CorsairnRequirement : At least Level 15 in this skill
2290123 - [Mastery Book] Hypnotize - With a 70% success rate, it raises the Master Level of #cHypnotize# to 20.nJob : CorsairnRequirement : At least Level 5 in this skill
2290124 - [Mastery Book] Bullseye - With a 70% success rate, it raises the Master Level of #cBullseye# to 20.nJob : CorsairnRequirement : At least Level 5 in this skill
2290125 - [Mastery Book] Maple Hero 30 - This increases the master level of #cMaple Hero# up to 30 with 50% of chance.rnJob : All 4th Advancement JobsrnCondition : Skill level above 15
2290125 - [Mastery Book] Maple Warrior 30 - This increases the master level of #cMaple Warrior# up to 30 with 50% of chance.rnJob : All 4th Advancement JobsrnCondition : Skill level above 15
2310000 - The Owl of Minerva - #cThe Owl of Minerva#, which represents wisdom, can be used to search for items sold at the Free Market. #cDisappears right after showing the results of the item search#.
2320000 - Teleport Rock - Remembers 5 maps of your choice. This rock will enable you to #cteleport to the map you remembered#. It can even allow you to #cmove to the map where a certain character is#, provided that the person is in the same channel at the same world.
2330000 - Bullet - A bullet made out of steel. A set contains numerous bullets and once they are used up, they'll need to be recharged.\nAttack + 10

109
scripts/event/4jaerial.js Normal file
View File

@@ -0,0 +1,109 @@
/*
This file is part of the HeavenMS MapleStory Server
Copyleft (L) 2016 - 2018 RonanLana
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
* Event - Jonathan's Test Quest
**/
var entryMap = 912020000;
var exitMap = 120000102;
var minMapId = 912020000;
var maxMapId = 912020000;
var eventTime = 2; //2 minutes
var lobbyRange = [0, 0];
function setLobbyRange() {
return lobbyRange;
}
function init() {
em.setProperty("noEntry","false");
}
function setup(level, lobbyid) {
var eim = em.newInstance("4jaerial_" + lobbyid);
eim.setProperty("level", level);
eim.setProperty("boss", "0");
eim.setProperty("canLeave", "0");
eim.getInstanceMap(entryMap).resetPQ(level);
eim.getInstanceMap(entryMap).shuffleReactors();
respawnStages(eim);
eim.startEventTimer(eventTime * 60000);
return eim;
}
function afterSetup(eim) {}
function respawnStages(eim) {}
function playerEntry(eim, player) {
var map = eim.getMapInstance(entryMap);
player.changeMap(map, map.getPortal(0));
}
function playerUnregistered(eim, player) {}
function playerExit(eim, player) {
eim.unregisterPlayer(player);
eim.dispose();
em.setProperty("noEntry","false");
}
function playerLeft(eim, player) {}
function scheduledTimeout(eim) {
var player = eim.getPlayers().get(0);
playerExit(eim, player);
player.changeMap(exitMap);
}
function playerDisconnected(eim, player) {
playerExit(eim, player);
}
function changedMap(eim, chr, mapid) {
if(mapid < minMapId || mapid > maxMapId) playerExit(eim, chr);
}
function clearPQ(eim) {
eim.stopEventTimer();
eim.setEventCleared();
}
function monsterKilled(mob, eim) {}
function leftParty(eim, player) {}
function disbandParty(eim) {}
function monsterValue(eim, mobId) {
return 1;
}
function allMonstersDead(eim) {}
function cancelSchedule() {}
function dispose() {}

View File

@@ -23,7 +23,7 @@
-- Odin JavaScript --------------------------------------------------------------------------------
Bamboo Warrior Spawner
-- Edited by --------------------------------------------------------------------------------------
Ronan (based on xQuasar's King Clang spawner)
Ronan - based on xQuasar's King Clang spawner
**/
function init() {

View File

@@ -23,7 +23,7 @@
-- Odin JavaScript --------------------------------------------------------------------------------
Centipede Spawner
-- Edited by --------------------------------------------------------------------------------------
Ronan (based on xQuasar's King Clang spawner)
Ronan - based on xQuasar's King Clang spawner
**/
function init() {

View File

@@ -23,7 +23,7 @@
-- Odin JavaScript --------------------------------------------------------------------------------
Deo Spawner
-- Edited by --------------------------------------------------------------------------------------
ThreeStep (based on xQuasar's King Clang spawner)
ThreeStep - based on xQuasar's King Clang spawner
**/
function init() {

View File

@@ -23,7 +23,7 @@
-- Odin JavaScript --------------------------------------------------------------------------------
Dyle Spawner
-- Edited by --------------------------------------------------------------------------------------
ThreeStep (based on xQuasar's King Clang spawner)
ThreeStep - based on xQuasar's King Clang spawner
**/
importPackage(Packages.server.life);

View File

@@ -23,7 +23,7 @@
-- Odin JavaScript --------------------------------------------------------------------------------
Eliza1 Spawner
-- Edited by --------------------------------------------------------------------------------------
ThreeStep (based on xQuasar's King Clang spawner)
ThreeStep - based on xQuasar's King Clang spawner
**/

View File

@@ -23,7 +23,7 @@
-- Odin JavaScript --------------------------------------------------------------------------------
Faust1 Spawner
-- Edited by --------------------------------------------------------------------------------------
ThreeStep (based on xQuasar's King Clang spawner)
ThreeStep - based on xQuasar's King Clang spawner
**/

View File

@@ -23,7 +23,7 @@
-- Odin JavaScript --------------------------------------------------------------------------------
Faust2 Spawner
-- Edited by --------------------------------------------------------------------------------------
ThreeStep (based on xQuasar's King Clang spawner)
ThreeStep - based on xQuasar's King Clang spawner
**/

View File

@@ -23,7 +23,7 @@
-- Odin JavaScript --------------------------------------------------------------------------------
Chimera/Kimera Spawner
-- Edited by --------------------------------------------------------------------------------------
ThreeStep (based on xQuasar's King Clang spawner)
ThreeStep - based on xQuasar's King Clang spawner
**/

View File

@@ -23,7 +23,7 @@
-- Odin JavaScript --------------------------------------------------------------------------------
King Clang Spawner
-- Edited by --------------------------------------------------------------------------------------
ThreeStep (based on xQuasar's King Clang spawner)
ThreeStep - based on xQuasar's King Clang spawner
**/

View File

@@ -23,7 +23,7 @@
-- Odin JavaScript --------------------------------------------------------------------------------
King Sage Cat Spawner
-- Edited by --------------------------------------------------------------------------------------
ThreeStep (based on xQuasar's King Clang spawner)
ThreeStep - based on xQuasar's King Clang spawner
**/

View File

@@ -23,7 +23,7 @@
-- Odin JavaScript --------------------------------------------------------------------------------
Leviathan Spawner
-- Edited by --------------------------------------------------------------------------------------
ThreeStep (based on xQuasar's King Clang spawner)
ThreeStep - based on xQuasar's King Clang spawner
**/

View File

@@ -23,7 +23,7 @@
-- Odin JavaScript --------------------------------------------------------------------------------
Mano Spawner
-- Edited by --------------------------------------------------------------------------------------
ThreeStep (based on xQuasar's King Clang spawner)
ThreeStep - based on xQuasar's King Clang spawner
**/
importPackage(Packages.client);

View File

@@ -23,7 +23,7 @@
-- Odin JavaScript --------------------------------------------------------------------------------
Nine Tailed Fox (Old Fox) Spawner
-- Edited by --------------------------------------------------------------------------------------
ThreeStep (based on xQuasar's King Clang spawner)
ThreeStep - based on xQuasar's King Clang spawner
**/

View File

@@ -24,7 +24,7 @@
-- Odin JavaScript --------------------------------------------------------------------------------
Seruf Spawner
-- Edited by --------------------------------------------------------------------------------------
ThreeStep (based on xQuasar's King Clang spawner)
ThreeStep - based on xQuasar's King Clang spawner
**/

View File

@@ -23,7 +23,7 @@
-- Odin JavaScript --------------------------------------------------------------------------------
Snack Bar Spawner
-- Edited by --------------------------------------------------------------------------------------
Ronan (based on xQuasar's King Clang spawner)
Ronan - based on xQuasar's King Clang spawner
**/
function init() {

View File

@@ -23,7 +23,7 @@
-- Odin JavaScript --------------------------------------------------------------------------------
Stumpy Spawner
-- Edited by --------------------------------------------------------------------------------------
ThreeStep (based on xQuasar's King Clang spawner)
ThreeStep - based on xQuasar's King Clang spawner
**/

View File

@@ -23,7 +23,7 @@
-- Odin JavaScript --------------------------------------------------------------------------------
Tae Roon Spawner
-- Edited by --------------------------------------------------------------------------------------
ThreeStep (based on xQuasar's King Clang spawner)
ThreeStep - based on xQuasar's King Clang spawner
**/

View File

@@ -23,7 +23,7 @@
-- Odin JavaScript --------------------------------------------------------------------------------
Timer1 Spawner
-- Edited by --------------------------------------------------------------------------------------
ThreeStep (based on xQuasar's King Clang spawner)
ThreeStep - based on xQuasar's King Clang spawner
**/
importPackage(Packages.client);

View File

@@ -23,7 +23,7 @@
-- Odin JavaScript --------------------------------------------------------------------------------
Timer2 Spawner
-- Edited by --------------------------------------------------------------------------------------
ThreeStep (based on xQuasar's King Clang spawner)
ThreeStep - based on xQuasar's King Clang spawner
**/

View File

@@ -24,7 +24,7 @@
-- Odin JavaScript --------------------------------------------------------------------------------
Timer3 Spawner
-- Edited by --------------------------------------------------------------------------------------
ThreeStep (based on xQuasar's King Clang spawner)
ThreeStep - based on xQuasar's King Clang spawner
**/

View File

@@ -24,7 +24,7 @@
-- Odin JavaScript --------------------------------------------------------------------------------
Zeno Spawner
-- Edited by --------------------------------------------------------------------------------------
ThreeStep (based on xQuasar's King Clang spawner)
ThreeStep - based on xQuasar's King Clang spawner
**/
function init() {
scheduleNew();

View File

@@ -29,8 +29,8 @@
1.5 - Fix for infinity looping [Information]
1.4 - Ship/boat is now showed
- Removed temp message[Information]
- Credit to Snow/superraz777 for old source
- Credit to Titan/Kool for the ship/boat packet
- Credits to Snow, superraz777 for old source
- Credits to Titan, Kool for the ship/boat packet
1.3 - Removing some function since is not needed [Information]
- Remove register player menthod [Information]
1.2 - It should be 2 ships not 1 [Information]

View File

@@ -0,0 +1,209 @@
/*
This file is part of the HeavenMS MapleStory Server
Copyleft (L) 2016 - 2018 RonanLana
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
* @event: Delli Battle
*/
var isPq = true;
var minPlayers = 1, maxPlayers = 2;
var minLevel = 120, maxLevel = 255;
var entryMap = 925010300;
var exitMap = 925010200;
var recruitMap = 925010200;
var minMapId = 925010300;
var maxMapId = 925010300;
var eventTime = 6; // 6 minutes
var lobbyRange = [0, 0];
function init() {
setEventRequirements();
}
function setLobbyRange() {
return lobbyRange;
}
function setEventRequirements() {
var reqStr = "";
reqStr += "\r\n Number of players: ";
if(maxPlayers - minPlayers >= 1) reqStr += minPlayers + " ~ " + maxPlayers;
else reqStr += minPlayers;
reqStr += "\r\n Level range: ";
if(maxLevel - minLevel >= 1) reqStr += minLevel + " ~ " + maxLevel;
else reqStr += minLevel;
reqStr += "\r\n Time limit: ";
reqStr += eventTime + " minutes";
em.setProperty("party", reqStr);
}
function getEligibleParty(party) { //selects, from the given party, the team that is allowed to attempt this event
var eligible = [];
var hasLeader = false;
if(party.size() > 0) {
var partyList = party.toArray();
for(var i = 0; i < party.size(); i++) {
var ch = partyList[i];
if(ch.getMapId() == recruitMap && ch.getLevel() >= minLevel && ch.getLevel() <= maxLevel) {
if(ch.isLeader()) hasLeader = true;
eligible.push(ch);
}
}
}
if(!(hasLeader && eligible.length >= minPlayers && eligible.length <= maxPlayers)) eligible = [];
return eligible;
}
function setup(level, lobbyid) {
var eim = em.newInstance("Delli" + lobbyid);
eim.setProperty("level", level);
respawnStages(eim);
eim.startEventTimer(eventTime * 60000);
eim.getMapInstance(entryMap).toggleDrops();
return eim;
}
function afterSetup(eim) {}
function respawnStages(eim) {
eim.getMapInstance(entryMap).instanceMapRespawn();
eim.schedule("respawnStages", 15 * 1000);
}
function playerEntry(eim, player) {
var map = eim.getMapInstance(entryMap);
player.changeMap(map, map.getPortal(0));
}
function scheduledTimeout(eim) {
eim.getMapInstance(entryMap).killAllMonstersNotFriendly();
eim.showClearEffect();
clearPQ(eim);
}
function playerUnregistered(eim, player) {}
function playerExit(eim, player) {
eim.unregisterPlayer(player);
player.changeMap(exitMap, 0);
}
function playerLeft(eim, player) {
if(!eim.isEventCleared()) {
playerExit(eim, player);
}
}
function changedMap(eim, player, mapid) {
if (mapid < minMapId || mapid > maxMapId) {
if (eim.isEventTeamLackingNow(true, minPlayers, player)) {
eim.unregisterPlayer(player);
end(eim);
}
else
eim.unregisterPlayer(player);
}
}
function changedLeader(eim, leader) {
var mapid = leader.getMapId();
if (!eim.isEventCleared() && (mapid < minMapId || mapid > maxMapId)) {
end(eim);
}
}
function playerDead(eim, player) {}
function playerRevive(eim, player) { // player presses ok on the death pop up.
if (eim.isEventTeamLackingNow(true, minPlayers, player)) {
eim.unregisterPlayer(player);
end(eim);
}
else
eim.unregisterPlayer(player);
}
function playerDisconnected(eim, player) {
if (eim.isEventTeamLackingNow(true, minPlayers, player)) {
eim.unregisterPlayer(player);
end(eim);
}
else
eim.unregisterPlayer(player);
}
function leftParty(eim, player) {
if (eim.isEventTeamLackingNow(false, minPlayers, player)) {
end(eim);
}
else
playerLeft(eim, player);
}
function disbandParty(eim) {
if (!eim.isEventCleared()) {
end(eim);
}
}
function monsterValue(eim, mobId) {
return 1;
}
function friendlyKilled(mob, eim) {
if (mob.getId() == 9300162) {
end(eim);
}
}
function end(eim) {
var party = eim.getPlayers();
for (var i = 0; i < party.size(); i++) {
playerExit(eim, party.get(i));
}
eim.dispose();
}
function clearPQ(eim) {
eim.stopEventTimer();
eim.setEventCleared();
}
function monsterKilled(mob, eim) {}
function allMonstersDead(eim) {}
function cancelSchedule() {}
function dispose(eim) {}

View File

@@ -25,7 +25,7 @@
-- By ---------------------------------------------------------------------------------------------
Unknown
-- Version Info -----------------------------------------------------------------------------------
1.2 - Clean up by Moogra
1.2 - Cleanup by Moogra
1.1 - Statement fix [Information]
1.0 - First Version by Unknown
---------------------------------------------------------------------------------------------------

View File

@@ -48,7 +48,7 @@ function start() {
cm.teachSkill(5121003, 0, 10, -1);
cm.forceCompleteQuest(6330);
cm.sendNext("Congratulations. You have managed to pass my test. I'll teach you a new skill called \"Super Transformation\".\r\n\r\n #s5221003# #b#q5221003##k");
cm.sendNext("Congratulations. You have managed to pass my test. I'll teach you a new skill called \"Super Transformation\".\r\n\r\n #s5121003# #b#q5121003##k");
}
} else if (cm.isQuestStarted(6370)) {
if (cm.getEventInstance() != null) {

View File

@@ -38,8 +38,15 @@ function action(mode, type, selection) {
else
status--;
if(status == 0) {
cm.sendOk("Hey, do you have any business with me?");
if (status == 0) {
if (!cm.isQuestStarted(6410)) {
cm.sendOk("Hey, do you have any business with me?");
cm.dispose();
} else {
cm.sendYesNo("Let's go save #r#p2095000##k?");
}
} else if (status == 1) {
cm.warp(925010000, 0);
cm.dispose();
}
}

View File

@@ -23,7 +23,9 @@
-- JavaScript -----------------
Jack - Nautilus' Port
-- Created By --
Cody/Cyndicate, totally recoded by Moogra
Cody (Cyndicate)
-- totally recoded By --
Moogra
-- Function --
No specific function, useless text.
-- GMS LIKE --

View File

@@ -4,6 +4,8 @@
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
Copyleft (L) 2016 - 2018 RonanLana (HeavenMS)
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
@@ -18,19 +20,97 @@
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/>.
*/
/*
-- JavaScript -----------------
Lord Jonathan - Nautilus' Port
-- Created By --
Cody/Cyndicate
-- Totally Recreated by Moogra--
Cody (Cyndicate)
-- Totally Recreated by --
Moogra
-- And Quest Script by --
Ronan
-- Function --
No specific function, useless text.
-- GMS LIKE --
*/
var status;
var seagullProgress;
var seagullIdx = -1;
var seagullQuestion = ["One day, I went to the ocean and caught 62 Octopi for dinner. But then some kid came by and gave me 10 Octopi as a gift! How many Octopi do I have then, in total?"];
var seagullAnswer = ["72"];
function start() {
cm.sendOk("Who are you talking to me? If you're just bored, go bother somebody else.");
cm.dispose();
status = -1;
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) { // missing script for skill test found thanks to Lost(tm)
if (!cm.isQuestStarted(6400)) {
cm.sendOk("Who are you talking to me? If you're just bored, go bother somebody else.");
cm.dispose();
} else {
seagullProgress = cm.getQuestProgress(6400, 0);
if (seagullProgress == 0) {
seagullIdx = Math.floor(Math.random() * seagullQuestion.length);
// string visibility thanks to ProXAIMeRx & Glvelturall
cm.sendNext("Ok then! I'll give you the first question now! You better be ready because this one's a hard one. Even the seagulls here think this one's pretty tough. It's a pretty difficult problem.");
} else if (seagullProgress == 1) {
cm.sendNext("Now~ Let's go onto the next question. This one is really difficult. I am going to have Bart help me on this one. You know Bart, right?");
} else {
cm.sendNext("Ohhhh! Now that was impressive! I considered my test quite difficult, and for you to pass that... you are indeed an integral member of the Pirate family, and a friend of seagulls. We are now bonded by the mutual friendship that will last a lifetime! And, most of all, friends are there to help you out when you are in dire straits. If you are in a state of emergency, call us seagulls.");
}
}
} else if (status == 1) {
if (seagullProgress == 0) {
cm.sendGetText(seagullQuestion[seagullIdx]);
} else if (seagullProgress == 1) {
cm.sendNextPrev("I'm going to send you to an empty room in The Nautilus. You will see 9 Barts there. Hahaha~ Are they twins? No, no, certainly not. I've used a bit of magic for this test of will.");
} else {
cm.sendNextPrev("Notify us using the skill Air Strike, and we will be there to help you out, because that's what friends are for.\r\n\r\n #s5221003# #b#q5221003##k");
}
} else if (status == 2) {
if (seagullIdx > -1) {
var answer = cm.getText();
if (answer == seagullAnswer[seagullIdx]) {
cm.sendNext("What! I can't believe how incredibly smart you are! Incredible! In the seagull world, that kind of intellingence would give you a Ph.D. and then some. You're really amazing... I can't believe it... I simply can't believe it!");
cm.setQuestProgress(6400, 0, 1);
cm.dispose();
} else {
cm.sendOk("Hmm, that's not quite how I recall it. Try again!");
cm.dispose();
}
} else if (seagullProgress != 2) {
cm.sendNextPrev("Anyway, only one of 9 Barts is the real Bart. You know that Pirates are known for the strength of their friendships and camaraderie with their fellow pirates. If you're a true pirate, you should be able to find your own mate with ease. Alright then, I'll send you to the room where Bart is.");
} else {
cm.gainExp(1000000);
cm.teachSkill(5221003, 0, 10, -1);
cm.forceCompleteQuest(6400);
cm.dispose();
}
} else if (status == 3) {
var em = cm.getEventManager("4jaerial");
if(!em.startInstance(cm.getPlayer())) {
cm.sendOk("Another player is already challenging the test in this channel. Please try another channel, or wait for the current player to finish.");
}
cm.dispose();
}
}
}

View File

@@ -23,7 +23,7 @@
-- JavaScript -----------------
Bart - Nautilus' Port
-- Created By --
Cody/Cyndicate
Cody (Cyndicate)
-- Function --
No specific function, useless text.
-- GMS LIKE --

48
scripts/npc/1095000.js Normal file
View File

@@ -0,0 +1,48 @@
/*
This file is part of the HeavenMS MapleStory Server
Copyleft (L) 2016 - 2018 RonanLana
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/>.
*/
var status;
function start() {
status = -1;
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) {
cm.sendYesNo("#b#p2095000##k must be some way up this cliff, according to our latest reports... Or are you saying you want to #rleave here#k?");
} else if (status == 1) {
cm.warp(120000104);
cm.dispose();
}
}
}

View File

@@ -4,8 +4,7 @@
1100003 Kiriru (To Victoria Island From Ereve)
-------Credits:-------------------------------------------------------------------
*MapleSanta
Credits to: MapleSanta
----------------------------------------------------------------------------------
**/

View File

@@ -4,8 +4,7 @@
1100004 Kiru (To Orbis)
-------Credits:-------------------------------------------------------------------
*MapleSanta
Credits to: MapleSanta
----------------------------------------------------------------------------------
**/
var menu = new Array("Orbis");

View File

@@ -4,8 +4,7 @@
1100005 Kiriru (On boat between Ereve and Victoria Island)
-------Credits:-------------------------------------------------------------------
*MapleSanta
Credits to: MapleSanta
----------------------------------------------------------------------------------
**/

View File

@@ -4,8 +4,7 @@
1100006 Kiru (On boat between Ereve and Orbis)
-------Credits:-------------------------------------------------------------------
*MapleSanta
Credits to: MapleSanta
----------------------------------------------------------------------------------
**/

View File

@@ -4,8 +4,7 @@
1100007 Kiriru (Victoria Island Station to Ereve)
-------Credits:-------------------------------------------------------------------
*MapleSanta
Credits to: MapleSanta
----------------------------------------------------------------------------------
**/

View File

@@ -4,8 +4,7 @@
1100008 Kiru (Orbis Station)
-------Credits:-------------------------------------------------------------------
*MapleSanta
Credits to: MapleSanta
----------------------------------------------------------------------------------
**/

View File

@@ -4,8 +4,7 @@
1200003 Puro
-------Credits:-------------------------------------------------------------------
*MapleSanta
Credits to: MapleSanta
----------------------------------------------------------------------------------
**/

View File

@@ -4,8 +4,7 @@
1200004 Puro
-------Credits:-------------------------------------------------------------------
*MapleSanta
Credits to: MapleSanta
----------------------------------------------------------------------------------
**/

View File

@@ -4,8 +4,7 @@
1200005 Puro
-------Credits:-------------------------------------------------------------------
*MapleSanta
Credits to: MapleSanta
----------------------------------------------------------------------------------
**/

View File

@@ -4,8 +4,7 @@
1200006 Puro
-------Credits:-------------------------------------------------------------------
*MapleSanta
Credits to: MapleSanta
----------------------------------------------------------------------------------
**/

View File

@@ -25,7 +25,7 @@
-- By ---------------------------------------------------------------------------------------------
Unknown
-- Version Info -----------------------------------------------------------------------------------
1.2 - Now Official method (action(x,0,0) is weak) by Moogra.
1.2 - Now Official method (action(x,0,0) is weak) by Moogra.
1.1 - Official Text and Method [Information]
1.0 - First Version by Unknown
---------------------------------------------------------------------------------------------------

View File

@@ -23,7 +23,7 @@
-- Odin JavaScript --------------------------------------------------------------------------------
Alcaster - El Nath Market (211000100)
-- By ---------------------------------------------------------------------------------------------
Unknown/Information/xQuasar
Unknown & Information & xQuasar
-- Version Info -----------------------------------------------------------------------------------
1.3 - Fixed up completely [xQuasar]
1.2 - Add a missing text part [Information]

View File

@@ -20,7 +20,7 @@
*/
/*
* @Author Stereo, xQuasar, <<XkelvinchiaX@Kelvin(For make it Fully Working.)>>
* @Author Stereo, xQuasar, XkelvinchiaX (Kelvin) - For make it Fully Working.
*
* Adobis - El Nath: Entrance to Zakum Altar (211042400)
*

View File

@@ -1,4 +1,4 @@
/* Author: aaroncsn <(MapleSea Like)(Need to add creation of minigame)>
/* Author: aaroncsn - MapleSea Like, Need to add creation of minigame
NPC Name: Wisp
Map(s): Ludibrium: Eos Tower Entrance(220000400)
Description: Pet Master

52
scripts/npc/2043000.js Normal file
View File

@@ -0,0 +1,52 @@
/*
This file is part of the HeavenMS MapleStory Server
Copyleft (L) 2016 - 2018 RonanLana
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/>.
*/
/* Papulatus
Origin of Clock Tower (922020300)
Time Leap quest NPC.
*/
var status;
function start() { // thanks iPunchEm for NPC visibility
status = -1;
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) {
cm.sendNext("You don't belong to this world... Return now.");
} else if(status == 1) {
cm.warp(220080000);
cm.dispose();
}
}
}

96
scripts/npc/2095000.js Normal file
View File

@@ -0,0 +1,96 @@
/*
This file is part of the HeavenMS MapleStory Server
Copyleft (L) 2016 - 2018 RonanLana
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/>.
*/
/* Delli
Looking for Delli 3 (925010200)
Hypnotize skill quest NPC.
*/
var status;
function start() {
status = -1;
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) {
if (cm.getMapId() != 925010400) {
em = cm.getEventManager("DelliBattle");
if(em == null) {
cm.sendOk("The Delli Battle has encountered an error.");
cm.dispose();
return;
} else if(cm.isUsingOldPqNpcStyle()) {
action(1, 0, 0);
return;
}
cm.sendSimple("#e#b<Party Quest: Save Delli>\r\n#k#n" + em.getProperty("party") + "\r\n\r\nAh, #r#p1095000##k sent you here? Is she worried about me? ... I'm terribly sorry to hear that, but I can't really go back just yet, some monsters are under the Black Mage's influence, and it's up to me to liberate them! ... It seems you're not going to accept that either, huh? Would you like to collaborate with party members to help me? If so, please have your #bparty leader#k talk to me.#b\r\n#L0#I want to participate in the party quest.\r\n#L1#I want to find party members.\r\n#L2#I would like to hear more details.");
} else {
cm.sendYesNo("The mission succeeded, thanks for escorting me! I can lead you to #b#m120000104##k, are you ready?");
}
} else if (status == 1) {
if (cm.getMapId() != 925010400) {
if (selection == 0) {
if (cm.getParty() == null) {
cm.sendOk("You can participate in the party quest only if you are in a party.");
cm.dispose();
} else if(!cm.isLeader()) {
cm.sendOk("Your party leader must talk to me to start this party quest.");
cm.dispose();
} else {
var eli = em.getEligibleParty(cm.getParty());
if(eli.size() > 0) {
if(!em.startInstance(cm.getParty(), cm.getPlayer().getMap(), 1)) {
cm.sendOk("Another party has already entered the #rParty Quest#k in this channel. Please try another channel, or wait for the current party to finish.");
}
}
else {
cm.sendOk("You cannot start this party quest yet, because either your party is not in the range size, some of your party members are not eligible to attempt it or they are not in this map. If you're having trouble finding party members, try Party Search.");
}
cm.dispose();
}
} else if (selection == 1) {
cm.sendOk("Try using a Super Megaphone or asking your buddies or guild to join!");
cm.dispose();
} else {
cm.sendOk("#e#b<Party Quest: Save Delli>#k#n\r\n A ambush is under way! I must stand on the field for around 6 minutes to complete the liberation, please protect me during that time so that my mission is completed.");
cm.dispose();
}
} else {
cm.warp(120000104);
cm.dispose();
}
}
}
}

View File

@@ -1,4 +1,4 @@
/* Author: aaroncsn <(MapleSea Like)(Incomplete- Needs skin id)>
/* Author: aaroncsn - MapleSea Like, Incomplete, Needs skin id
NPC Name: Laila
Map(s): The Burning Road: Ariant(2600000000)
Description: Skin Care Specialist

View File

@@ -1,4 +1,4 @@
/* Author: aaroncsn <(MapleSea Like)(Incomplete)>
/* Author: aaroncsn - MapleSea Like, Incomplete
NPC Name: Athena Pierce
Map(s): Altair Camp: Conference Hall(300000010)
Description: Unknown

View File

@@ -1,4 +1,4 @@
/* Author: aaroncsn <(MapleSea Like)(Incomplete)>
/* Author: aaroncsn - MapleSea Like, Incomplete
NPC Name: Euryth
Map(s): Elin Forest:Altair Camp(300000000)
Description: Unknown

View File

@@ -1,4 +1,4 @@
/* Author: aaroncsn <(MapleSea Like)(Incomplete)>
/* Author: aaroncsn - MapleSea Like, Incomplete
NPC Name: Kanderun
Map(s): Elin Forest:Entrance to Rocky Mountain(300010400)
Description: Unknown

View File

@@ -19,7 +19,7 @@
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/>.
*/
/* Edited by: kevintjuh93
/* Credits to: kevintjuh93
NPC Name: Jean
Map(s): Victoria Road : Lith Harbour (104000000)
Description: Event Assistant

View File

@@ -20,7 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* Fredrick NPC (9030000)
* By kevintjuh93
* @author kevintjuh93
*/
var status;

View File

@@ -23,8 +23,9 @@
Debbie
-- By ---------------------------------------------------------------------------------------------
Angel (get31720 ragezone)
-- Extra Info -------------------------------------------------------------------------------------
Fixed by [happydud3] & [XotiCraze]
-- Version Info -----------------------------------------------------------------------------------
1.0 - First Version by Angel
2.0 - Second Version by happydud3 & XotiCraze
---------------------------------------------------------------------------------------------------
**/

View File

@@ -23,10 +23,10 @@
Assistant Nancy
-- By ---------------------------------------------------------------------------------------------
Angel (get31720 ragezone)
-- Extra Info -------------------------------------------------------------------------------------
Fixed by [happydud3] & [XotiCraze]
-- Content Improved by ----------------------------------------------------------------------------
RonanLana (HeavenMS)
-- Version Info -----------------------------------------------------------------------------------
1.0 - First Version by Angel
2.0 - Second Version by happydud3 & XotiCraze
3.0 - Third Version by RonanLana (HeavenMS)
---------------------------------------------------------------------------------------------------
**/

View File

@@ -23,10 +23,10 @@
Assistant Nancy
-- By ---------------------------------------------------------------------------------------------
Angel (get31720 ragezone)
-- Extra Info -------------------------------------------------------------------------------------
Fixed by [happydud3] & [XotiCraze]
-- Content Improved by ----------------------------------------------------------------------------
RonanLana (HeavenMS)
-- Version Info -----------------------------------------------------------------------------------
1.0 - First Version by Angel
2.0 - Second Version by happydud3 & XotiCraze
3.0 - Third Version by RonanLana (HeavenMS)
---------------------------------------------------------------------------------------------------
**/

View File

@@ -23,8 +23,10 @@
Assistant Travis
-- By ---------------------------------------------------------------------------------------------
Angel (get31720 ragezone)
-- Extra Info -------------------------------------------------------------------------------------
Fixed by [happydud3] & [XotiCraze]
-- Version Info -----------------------------------------------------------------------------------
1.0 - First Version by Angel
2.0 - Second Version by happydud3 & XotiCraze
3.0 - Third Version by RonanLana (HeavenMS)
---------------------------------------------------------------------------------------------------
**/

View File

@@ -23,9 +23,10 @@
Pila Present
-- By ---------------------------------------------------------------------------------------------
Angel (get31720 ragezone)
-- Extra Info -------------------------------------------------------------------------------------
Fixed by [happydud3] & [XotiCraze]
Improved by [RonanLana]
-- Version Info -----------------------------------------------------------------------------------
1.0 - First Version by Angel
2.0 - Second Version by happydud3 & XotiCraze
3.0 - Third Version by RonanLana (HeavenMS)
---------------------------------------------------------------------------------------------------
**/

View File

@@ -1,9 +1,25 @@
/* Jack
Refining NPC:
* ITEMMAKE
*
* By RonanLana
/*
This file is part of the HeavenMS MapleStory Server
Copyleft (L) 2016 - 2018 RonanLana
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/>.
*/
/* Jack - Refining NPC
@author RonanLana
*/
var status = 0;
var selectedType = -1;

View File

@@ -21,7 +21,7 @@
*/
/* Noel
Singapore Random Face Changer
Credits to aaron and cody
@Author AAron (aaroncsn), Cody
Side note by aaron [If there is something wrong PM me on fMS]
*/
var status = 0;

View File

@@ -21,7 +21,7 @@
*/
/* Kelvin
SingaPore VIP Face changer
Made by aaron and cody
@Author AAron (aaroncsn), Cody
*/
var status = 0;
var beauty = 0;

View File

@@ -21,7 +21,7 @@
*/
/* Eric
Singapore VIP Hair/Color Changer
MADE BY AAron and Cody from the FlowsionMS Forums
@Author AAron, Cody (FlowsionMS) Forums
*/
var status = 0;
var beauty = 0;

View File

@@ -21,7 +21,8 @@
*/
/* Jimmy
Singa Random Hair/Color Changer
Credits to Cody and AAron from FlowsionMS
@Author Cody (FlowsionMS)
@Author AAron (FlowsionMS)
*/
var status = 0;
var beauty = 0;

View File

@@ -98,6 +98,7 @@ function writeServerStaff_Contributors() {
addPerson("xQuasar", "Contributor");
addPerson("Xterminator", "Contributor");
addPerson("XoticStory", "Contributor");
addPerson("Masterrulax", "Contributor");
}
function writeAllServerStaffs() {

View File

@@ -23,28 +23,34 @@
/* @author RonanLana */
function enter(pi) {
var em = pi.getEventManager("PapulatusBattle");
if (!((pi.isQuestStarted(6361) && pi.haveItem(4031870, 1)) || (pi.isQuestCompleted(6361) && !pi.isQuestCompleted(6363)))) {
var em = pi.getEventManager("PapulatusBattle");
if (pi.getParty() == null) {
pi.playerMessage(5, "You are currently not in a party, create one to attempt the boss.");
return false;
} else if(!pi.isLeader()) {
pi.playerMessage(5, "Your party leader must enter the portal to start the battle.");
return false;
} else {
var eli = em.getEligibleParty(pi.getParty());
if(eli.size() > 0) {
if(!em.startInstance(pi.getParty(), pi.getPlayer().getMap(), 1)) {
pi.playerMessage(5, "The battle against the boss has already begun, so you may not enter this place yet.");
if (pi.getParty() == null) {
pi.playerMessage(5, "You are currently not in a party, create one to attempt the boss.");
return false;
} else if(!pi.isLeader()) {
pi.playerMessage(5, "Your party leader must enter the portal to start the battle.");
return false;
} else {
var eli = em.getEligibleParty(pi.getParty());
if(eli.size() > 0) {
if(!em.startInstance(pi.getParty(), pi.getPlayer().getMap(), 1)) {
pi.playerMessage(5, "The battle against the boss has already begun, so you may not enter this place yet.");
return false;
}
}
else { //this should never appear
pi.playerMessage(5, "You cannot start this battle yet, because either your party is not in the range size, some of your party members are not eligible to attempt it or they are not in this map. If you're having trouble finding party members, try Party Search.");
return false;
}
}
else { //this should never appear
pi.playerMessage(5, "You cannot start this battle yet, because either your party is not in the range size, some of your party members are not eligible to attempt it or they are not in this map. If you're having trouble finding party members, try Party Search.");
return false;
}
pi.playPortalSound();
return true;
}
} else {
pi.playPortalSound();
pi.warp(922020300);
return true;
}
}
}

View File

@@ -20,7 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
By kevintjuh93
@author kevintjuh93
*/
function enter(pi) {
pi.blockPortal();

View File

@@ -20,7 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
By kevintjuh93
@author kevintjuh93
*/
function enter(pi) {
pi.blockPortal();

View File

@@ -20,7 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
By kevintjuh93
@author kevintjuh93
*/
function enter(pi) {
pi.blockPortal();

View File

@@ -20,7 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
By kevintjuh93
@author kevintjuh93
*/
function enter(pi) {
pi.blockPortal();

View File

@@ -20,7 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
By kevintjuh93
@author kevintjuh93
*/
function enter(pi) {
pi.blockPortal();

View File

@@ -20,7 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
By kevintjuh93
@author kevintjuh93
*/
function enter(pi) {
pi.blockPortal();

View File

@@ -20,7 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
By kevintjuh93
@author kevintjuh93
*/
function enter(pi) {
pi.blockPortal();

View File

@@ -20,7 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
By kevintjuh93
@author kevintjuh93
*/
function enter(pi) {
pi.blockPortal();

View File

@@ -20,7 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
By kevintjuh93
@author kevintjuh93
*/
function enter(pi) {
pi.blockPortal();

View File

@@ -20,7 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
By kevintjuh93
@author kevintjuh93
*/
function enter(pi) {
pi.blockPortal();

View File

@@ -20,7 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
By kevintjuh93
@author kevintjuh93
*/
function enter(pi) {
pi.blockPortal();

View File

@@ -20,7 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
By kevintjuh93
@author kevintjuh93
*/
function enter(pi) {
pi.blockPortal();

View File

@@ -16,7 +16,7 @@
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/>.
Edited by: Kevin
Credits to: Kevin
*/
function enter(pi) {
if(pi.isQuestStarted(20718)){

View File

@@ -20,7 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
By kevintjuh93
@author kevintjuh93
*/
function enter(pi) {
pi.showInstruction("Once you leave this area you won't be able to return.", 150, 5);

View File

@@ -20,7 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
By kevintjuh93
@author kevintjuh93
*/
function enter(pi) {
if (pi.isQuestStarted(1031))

View File

@@ -20,7 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
By kevintjuh93
@author kevintjuh93
*/
function enter(pi) {
if (pi.isQuestStarted(1035))

View File

@@ -20,7 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
By kevintjuh93
@author kevintjuh93
*/
function enter(pi) {
if (pi.isQuestCompleted(1008))

View File

@@ -20,7 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
By kevintjuh93
@author kevintjuh93
*/
function enter(pi) {
if (pi.isQuestCompleted(1035))

View File

@@ -0,0 +1,33 @@
/*
This file is part of the HeavenMS MapleStory Server
Copyleft (L) 2016 - 2018 RonanLana
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/>.
*/
function enter(pi) {
if (!pi.getEventInstance().isEventCleared()) {
pi.message("You have to clear this mission before entering this portal.");
return false;
} else {
if (pi.isQuestStarted(6410)) {
pi.setQuestProgress(6410, 0, 1);
}
pi.playPortalSound();
pi.warp(925010400);
return true;
}
}

View File

@@ -23,9 +23,11 @@ function enter(pi) {
pi.message("You have to wait one minute before you can leave this place.");
return false;
} else if (exit == 2) {
pi.playPortalSound();
pi.warp(912010200);
return true;
} else {
pi.playPortalSound();
pi.warp(120000101);
return true;
}

View File

@@ -23,9 +23,11 @@ function enter(pi) {
pi.message("You have to wait one minute before you can leave this place.");
return false;
} else if (exit == 2) {
pi.playPortalSound();
pi.warp(912010200);
return true;
} else {
pi.playPortalSound();
pi.warp(120000101);
return true;
}

View File

@@ -1,4 +1,4 @@
//credits to kevintjuh93
//@author kevintjuh93
var status = -1;

View File

@@ -1,5 +1,5 @@
/*
Author: DietStory dev team
Author: DietStory v1.02 dev team
NPC: Matthias
Quest: Hidden Inside the Trash Can
*/

View File

@@ -76,7 +76,7 @@ function end(mode, type, selection) {
} else if (status == 5) {
qm.sendYesNo("Now do you understand? Every action comes with consequences, and pets are no exception. The egg of the snail shall hatch soon.");
} else if (status == 6) {
qm.gainItem(5000054, 1, false, true, 5 * 60 * 60 * 1000); // rune snail (5hrs)
qm.gainItem(5000054, 1, false, true, 5 * 60 * 60 * 1000); // rune snail (5hrs), missing expiration time detected thanks to cljnilsson
qm.gainItem(4032086, -1); // Mysterious Egg * -1
qm.forceCompleteQuest();

View File

@@ -4,62 +4,101 @@
Description: Quest - Kingdom of Mushroom in Danger
=============================================================
Version 1.0 - Script Done.(17/7/2010)
Version 2.0 - Script Reworked by Ronan.(16/11/2018)
=============================================================
*/
var status = -1;
function start(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
if(status == 0){
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
return;
} else if(status == 3){
qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
qm.forceStartQuest();
return;
}
}
}
if(status == 0)
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
if(status == 1)
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
if(status == 2)
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
if(status == 3)
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
if(status == 4){
qm.gainItem(4032375, 1);
qm.forceStartQuest();
qm.dispose();
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
if (status != 3) {
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
} else {
if (qm.canHold(4032375, 1)) {
qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
qm.dispose();
}
}
status++;
} else {
if (mode == 1)
status++;
else
status--;
if (status == 0) {
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
} else if (status == 1) {
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
} else if (status == 2) {
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
} else if (status == 3) {
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
} else if (status == 4) {
if (qm.canHold(4032375, 1)) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.warp(106020000, 0);
qm.forceStartQuest();
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
}
qm.dispose();
return;
} else if (status == 5) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.forceStartQuest();
qm.dispose();
return;
}
}
}
}
function end(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
qm.dispose();
return;
}
}
if(status == 0)
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
if(status == 1)
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
if(status == 2){
qm.gainItem(4032375, -1);
qm.gainExp(6000);
qm.forceCompleteQuest();
qm.forceStartQuest(2312);
qm.dispose();
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
qm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
if (!qm.haveItem(4032375, 1)) {
qm.sendNext("What do you want, hmmm?");
qm.dispose();
return;
}
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
} else if (status == 1) {
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
} else if (status == 2) {
qm.gainItem(4032375, -1);
qm.gainExp(6000);
qm.forceCompleteQuest();
qm.forceStartQuest(2312);
qm.dispose();
}
}
}

View File

@@ -4,61 +4,101 @@
Description: Quest - Kingdom of Mushroom in Danger
=============================================================
Version 1.0 - Script Done.(17/7/2010)
Version 2.0 - Script Reworked by Ronan.(16/11/2018)
=============================================================
*/
var status = -1;
function start(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
//if(status == 0){
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
return;
//} else if(status == 3){
//qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
//qm.forceStartQuest();
//return;
}
}
//}
if(status == 0)
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
if(status == 1)
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
if(status == 2)
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
if(status == 3)
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
if(status == 4){
qm.gainItem(4032375, 1);
qm.forceStartQuest();
qm.dispose();
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
if (status != 3) {
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
} else {
if (qm.canHold(4032375, 1)) {
qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
qm.dispose();
}
}
status++;
} else {
if (mode == 1)
status++;
else
status--;
if (status == 0) {
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
} else if (status == 1) {
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
} else if (status == 2) {
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
} else if (status == 3) {
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
} else if (status == 4) {
if (qm.canHold(4032375, 1)) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.warp(106020000, 0);
qm.forceStartQuest();
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
}
qm.dispose();
return;
} else if (status == 5) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.forceStartQuest();
qm.dispose();
return;
}
}
}
}
function end(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
qm.dispose();
return;
}
}
if(status == 0)
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
if(status == 1)
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
if(status == 2){
qm.forceCompleteQuest();
qm.gainItem(4032375, -1);
qm.forceStartQuest(2312);
qm.dispose();
}
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
qm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
if (!qm.haveItem(4032375, 1)) {
qm.sendNext("What do you want, hmmm?");
qm.dispose();
return;
}
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
} else if (status == 1) {
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
} else if (status == 2) {
qm.gainItem(4032375, -1);
qm.gainExp(6000);
qm.forceCompleteQuest();
qm.forceStartQuest(2312);
qm.dispose();
}
}
}

View File

@@ -4,61 +4,101 @@
Description: Quest - Kingdom of Mushroom in Danger
=============================================================
Version 1.0 - Script Done.(17/7/2010)
Version 2.0 - Script Reworked by Ronan.(16/11/2018)
=============================================================
*/
var status = -1;
function start(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
//if(status == 0){
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
return;
//} else if(status == 3){
//qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
//qm.forceStartQuest();
//return;
}
}
//}
if(status == 0)
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
if(status == 1)
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
if(status == 2)
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
if(status == 3)
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
if(status == 4){
qm.gainItem(4032375, 1);
qm.forceStartQuest();
qm.dispose();
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
if (status != 3) {
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
} else {
if (qm.canHold(4032375, 1)) {
qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
qm.dispose();
}
}
status++;
} else {
if (mode == 1)
status++;
else
status--;
if (status == 0) {
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
} else if (status == 1) {
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
} else if (status == 2) {
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
} else if (status == 3) {
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
} else if (status == 4) {
if (qm.canHold(4032375, 1)) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.warp(106020000, 0);
qm.forceStartQuest();
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
}
qm.dispose();
return;
} else if (status == 5) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.forceStartQuest();
qm.dispose();
return;
}
}
}
}
function end(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
qm.dispose();
return;
}
}
if(status == 0)
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
if(status == 1)
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
if(status == 2){
qm.forceCompleteQuest();
qm.gainItem(4032375, -1);
qm.forceStartQuest(2312);
qm.dispose();
}
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
qm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
if (!qm.haveItem(4032375, 1)) {
qm.sendNext("What do you want, hmmm?");
qm.dispose();
return;
}
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
} else if (status == 1) {
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
} else if (status == 2) {
qm.gainItem(4032375, -1);
qm.gainExp(6000);
qm.forceCompleteQuest();
qm.forceStartQuest(2312);
qm.dispose();
}
}
}

View File

@@ -4,60 +4,101 @@
Description: Quest - Kingdom of Mushroom in Danger
=============================================================
Version 1.0 - Script Done.(17/7/2010)
Version 2.0 - Script Reworked by Ronan.(16/11/2018)
=============================================================
*/
var status = -1;
function start(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
//if(status == 0){
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
return;
//} else if(status == 3){
//qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
//qm.forceStartQuest();
//return;
}
}
//}
if(status == 0)
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
if(status == 1)
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
if(status == 2)
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
if(status == 3)
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
if(status == 4){
qm.gainItem(4032375, 1);
qm.forceStartQuest();
qm.dispose();
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
if (status != 3) {
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
} else {
if (qm.canHold(4032375, 1)) {
qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
qm.dispose();
}
}
status++;
} else {
if (mode == 1)
status++;
else
status--;
if (status == 0) {
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
} else if (status == 1) {
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
} else if (status == 2) {
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
} else if (status == 3) {
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
} else if (status == 4) {
if (qm.canHold(4032375, 1)) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.warp(106020000, 0);
qm.forceStartQuest();
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
}
qm.dispose();
return;
} else if (status == 5) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.forceStartQuest();
qm.dispose();
return;
}
}
}
}
function end(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
qm.dispose();
return;
}
}
if(status == 0)
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
if(status == 1)
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
if(status == 2){
qm.forceCompleteQuest();
qm.gainItem(4032375, -1);
qm.forceStartQuest(2312);
qm.dispose();
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
qm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
if (!qm.haveItem(4032375, 1)) {
qm.sendNext("What do you want, hmmm?");
qm.dispose();
return;
}
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
} else if (status == 1) {
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
} else if (status == 2) {
qm.gainItem(4032375, -1);
qm.gainExp(6000);
qm.forceCompleteQuest();
qm.forceStartQuest(2312);
qm.dispose();
}
}
}

View File

@@ -4,61 +4,101 @@
Description: Quest - Kingdom of Mushroom in Danger
=============================================================
Version 1.0 - Script Done.(17/7/2010)
Version 2.0 - Script Reworked by Ronan.(16/11/2018)
=============================================================
*/
var status = -1;
function start(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
//if(status == 0){
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
return;
//} else if(status == 3){
//qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
//qm.forceStartQuest();
//return;
}
}
//}
if(status == 0)
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
if(status == 1)
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
if(status == 2)
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
if(status == 3)
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
if(status == 4){
qm.gainItem(4032375, 1);
qm.forceStartQuest();
qm.dispose();
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
if (status != 3) {
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
} else {
if (qm.canHold(4032375, 1)) {
qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
qm.dispose();
}
}
status++;
} else {
if (mode == 1)
status++;
else
status--;
if (status == 0) {
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
} else if (status == 1) {
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
} else if (status == 2) {
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
} else if (status == 3) {
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
} else if (status == 4) {
if (qm.canHold(4032375, 1)) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.warp(106020000, 0);
qm.forceStartQuest();
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
}
qm.dispose();
return;
} else if (status == 5) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.forceStartQuest();
qm.dispose();
return;
}
}
}
}
function end(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
qm.dispose();
return;
}
}
if(status == 0)
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
if(status == 1)
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
if(status == 2){
qm.forceCompleteQuest();
qm.gainItem(4032375, -1);
qm.forceStartQuest(2312);
qm.dispose();
}
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
qm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
if (!qm.haveItem(4032375, 1)) {
qm.sendNext("What do you want, hmmm?");
qm.dispose();
return;
}
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
} else if (status == 1) {
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
} else if (status == 2) {
qm.gainItem(4032375, -1);
qm.gainExp(6000);
qm.forceCompleteQuest();
qm.forceStartQuest(2312);
qm.dispose();
}
}
}

View File

@@ -4,61 +4,101 @@
Description: Quest - Kingdom of Mushroom in Danger
=============================================================
Version 1.0 - Script Done.(17/7/2010)
Version 2.0 - Script Reworked by Ronan.(16/11/2018)
=============================================================
*/
var status = -1;
function start(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
//if(status == 0){
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
return;
//} else if(status == 3){
//qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
//qm.forceStartQuest();
//return;
}
}
//}
if(status == 0)
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
if(status == 1)
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
if(status == 2)
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
if(status == 3)
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
if(status == 4){
qm.gainItem(4032375, 1);
qm.forceStartQuest();
qm.dispose();
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
if (status != 3) {
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
} else {
if (qm.canHold(4032375, 1)) {
qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
qm.dispose();
}
}
status++;
} else {
if (mode == 1)
status++;
else
status--;
if (status == 0) {
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
} else if (status == 1) {
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
} else if (status == 2) {
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
} else if (status == 3) {
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
} else if (status == 4) {
if (qm.canHold(4032375, 1)) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.warp(106020000, 0);
qm.forceStartQuest();
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
}
qm.dispose();
return;
} else if (status == 5) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.forceStartQuest();
qm.dispose();
return;
}
}
}
}
function end(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
qm.dispose();
return;
}
}
if(status == 0)
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
if(status == 1)
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
if(status == 2){
qm.forceCompleteQuest();
qm.gainItem(4032375, -1);
qm.forceStartQuest(2312);
qm.dispose();
}
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
qm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
if (!qm.haveItem(4032375, 1)) {
qm.sendNext("What do you want, hmmm?");
qm.dispose();
return;
}
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
} else if (status == 1) {
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
} else if (status == 2) {
qm.gainItem(4032375, -1);
qm.gainExp(6000);
qm.forceCompleteQuest();
qm.forceStartQuest(2312);
qm.dispose();
}
}
}

View File

@@ -4,61 +4,101 @@
Description: Quest - Kingdom of Mushroom in Danger
=============================================================
Version 1.0 - Script Done.(17/7/2010)
Version 2.0 - Script Reworked by Ronan.(16/11/2018)
=============================================================
*/
var status = -1;
function start(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
//if(status == 0){
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
return;
//} else if(status == 3){
//qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
//qm.forceStartQuest();
//return;
}
}
//}
if(status == 0)
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
if(status == 1)
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
if(status == 2)
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
if(status == 3)
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
if(status == 4){
qm.gainItem(4032375, 1);
qm.forceStartQuest();
qm.dispose();
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
if (status != 3) {
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
} else {
if (qm.canHold(4032375, 1)) {
qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
qm.dispose();
}
}
status++;
} else {
if (mode == 1)
status++;
else
status--;
if (status == 0) {
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
} else if (status == 1) {
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
} else if (status == 2) {
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
} else if (status == 3) {
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
} else if (status == 4) {
if (qm.canHold(4032375, 1)) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.warp(106020000, 0);
qm.forceStartQuest();
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
}
qm.dispose();
return;
} else if (status == 5) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.forceStartQuest();
qm.dispose();
return;
}
}
}
}
function end(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
qm.dispose();
return;
}
}
if(status == 0)
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
if(status == 1)
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
if(status == 2){
qm.forceCompleteQuest();
qm.gainItem(4032375, -1);
qm.forceStartQuest(2312);
qm.dispose();
}
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
qm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
if (!qm.haveItem(4032375, 1)) {
qm.sendNext("What do you want, hmmm?");
qm.dispose();
return;
}
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
} else if (status == 1) {
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
} else if (status == 2) {
qm.gainItem(4032375, -1);
qm.gainExp(6000);
qm.forceCompleteQuest();
qm.forceStartQuest(2312);
qm.dispose();
}
}
}

View File

@@ -4,61 +4,101 @@
Description: Quest - Kingdom of Mushroom in Danger
=============================================================
Version 1.0 - Script Done.(17/7/2010)
Version 2.0 - Script Reworked by Ronan.(16/11/2018)
=============================================================
*/
var status = -1;
function start(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
//if(status == 0){
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
return;
//} else if(status == 3){
//qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
//qm.forceStartQuest();
//return;
}
}
//}
if(status == 0)
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
if(status == 1)
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
if(status == 2)
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
if(status == 3)
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
if(status == 4){
qm.gainItem(4032375, 1);
qm.forceStartQuest();
qm.dispose();
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
if (status != 3) {
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
} else {
if (qm.canHold(4032375, 1)) {
qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
qm.dispose();
}
}
status++;
} else {
if (mode == 1)
status++;
else
status--;
if (status == 0) {
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
} else if (status == 1) {
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
} else if (status == 2) {
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
} else if (status == 3) {
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
} else if (status == 4) {
if (qm.canHold(4032375, 1)) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.warp(106020000, 0);
qm.forceStartQuest();
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
}
qm.dispose();
return;
} else if (status == 5) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.forceStartQuest();
qm.dispose();
return;
}
}
}
}
function end(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
qm.dispose();
return;
}
}
if(status == 0)
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
if(status == 1)
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
if(status == 2){
qm.forceCompleteQuest();
qm.gainItem(4032375, -1);
qm.forceStartQuest(2312);
qm.dispose();
}
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
qm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
if (!qm.haveItem(4032375, 1)) {
qm.sendNext("What do you want, hmmm?");
qm.dispose();
return;
}
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
} else if (status == 1) {
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
} else if (status == 2) {
qm.gainItem(4032375, -1);
qm.gainExp(6000);
qm.forceCompleteQuest();
qm.forceStartQuest(2312);
qm.dispose();
}
}
}

View File

@@ -4,61 +4,101 @@
Description: Quest - Kingdom of Mushroom in Danger
=============================================================
Version 1.0 - Script Done.(17/7/2010)
Version 2.0 - Script Reworked by Ronan.(16/11/2018)
=============================================================
*/
var status = -1;
function start(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
//if(status == 0){
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
return;
//} else if(status == 3){
//qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
//qm.forceStartQuest();
//return;
}
}
//}
if(status == 0)
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
if(status == 1)
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
if(status == 2)
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
if(status == 3)
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
if(status == 4){
qm.gainItem(4032375, 1);
qm.forceStartQuest();
qm.dispose();
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
if (status != 3) {
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
} else {
if (qm.canHold(4032375, 1)) {
qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
qm.dispose();
}
}
status++;
} else {
if (mode == 1)
status++;
else
status--;
if (status == 0) {
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
} else if (status == 1) {
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
} else if (status == 2) {
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
} else if (status == 3) {
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
} else if (status == 4) {
if (qm.canHold(4032375, 1)) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.warp(106020000, 0);
qm.forceStartQuest();
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
}
qm.dispose();
return;
} else if (status == 5) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.forceStartQuest();
qm.dispose();
return;
}
}
}
}
function end(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
qm.dispose();
return;
}
}
if(status == 0)
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
if(status == 1)
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
if(status == 2){
qm.forceCompleteQuest();
qm.gainItem(4032375, -1);
qm.forceStartQuest(2312);
qm.dispose();
}
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
qm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
if (!qm.haveItem(4032375, 1)) {
qm.sendNext("What do you want, hmmm?");
qm.dispose();
return;
}
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
} else if (status == 1) {
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
} else if (status == 2) {
qm.gainItem(4032375, -1);
qm.gainExp(6000);
qm.forceCompleteQuest();
qm.forceStartQuest(2312);
qm.dispose();
}
}
}

Some files were not shown because too many files have changed in this diff Show More