Orbis PQ
Implemented Orbis PQ.
This commit is contained in:
@@ -83,17 +83,17 @@ function action(mode, type, selection) {
|
||||
cm.sendOk("#e#b<Party Quest: Primrose Hill>#k#n\r\nCollect primrose seeds from the flowers at the bottom part of the map and drop them by the platforms above the stage. Primrose seed color must match to grow the seeds, so test until you find the correct combination. When all the seeds have been planted, that is, starting second part of the mission, scout the Moon Bunny while it prepares Rice Cakes for the hungry Growlie. Once Growlie becomes satisfied, your mission is complete.");
|
||||
cm.dispose();
|
||||
} else {
|
||||
cm.sendYesNo("So you want to exchange #b20 #b#t4001129##k for the event-designed hat?");
|
||||
cm.sendYesNo("So you want to exchange #b20 #b#t4001158##k for the event-designed hat?");
|
||||
}
|
||||
} else {
|
||||
if(cm.hasItem(4001129, 20)) {
|
||||
if(cm.hasItem(4001158, 20)) {
|
||||
if(cm.canHold(1002798)) {
|
||||
cm.gainItem(4001129, -20);
|
||||
cm.gainItem(4001158, -20);
|
||||
cm.gainItem(1002798, 20);
|
||||
cm.sendNext("Here it is. Enjoy!");
|
||||
}
|
||||
} else {
|
||||
cm.sendNext("You don't have enough #t4001129# to buy it yet!");
|
||||
cm.sendNext("You don't have enough #t4001158# to buy it yet!");
|
||||
}
|
||||
|
||||
cm.dispose();
|
||||
|
||||
91
scripts/npc/2013000.js
Normal file
91
scripts/npc/2013000.js
Normal file
@@ -0,0 +1,91 @@
|
||||
/**
|
||||
* @author: Ronan
|
||||
* @npc: Wonky
|
||||
* @map: 200080101 - Orbis - The Unknown Tower
|
||||
* @func: Orbis PQ
|
||||
*/
|
||||
|
||||
var status = 0;
|
||||
var em = null;
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
}
|
||||
|
||||
function action(mode, type, selection) {
|
||||
if (mode == -1) {
|
||||
cm.dispose();
|
||||
} else {
|
||||
if (mode == 0 && status == 0) {
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
if (mode == 1)
|
||||
status++;
|
||||
else
|
||||
status--;
|
||||
|
||||
if(cm.getMapId() == 200080101) {
|
||||
if (status == 0) {
|
||||
em = cm.getEventManager("OrbisPQ");
|
||||
if(em == null) {
|
||||
cm.sendOk("The Orbis PQ has encountered an error.");
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
cm.sendSimple("#e#b<Party Quest: Tower of Goddess>\r\n#k#n" + em.getProperty("party") + "\r\n\r\nWould you like to assemble or join a team to solve the puzzles of the #bTower of Goddess#k? Have your #bparty leader#k talk to me or make yourself a party.#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.\r\n#L3#I would like to reclaim a prize.");
|
||||
} else if (status == 1) {
|
||||
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 if (selection == 2) {
|
||||
cm.sendOk("#e#b<Party Quest: Tower of Goddess>#k#n\r\nOur goddess has been missing since some time ago, rumor has it She has been seen last time inside the Tower of Goddess. Furthermore, our sanctuary has been seized by the overwhelming forces of the pixies, those beings that are recently wandering at the outskirts of Orbis. Their leader, Papa Pixie, currently holds the throne and may know Her whereabouts, so we urge to find a composition of brave heroes to charge into and claim back our sanctuary and rescue Her. Will you join us?\r\n");
|
||||
cm.dispose();
|
||||
}
|
||||
else {
|
||||
cm.sendSimple("So, what prize do you want to obtain?\r\n#b#L0#Give me Goddess Wristband.\r\n");
|
||||
}
|
||||
} else if (status == 2) {
|
||||
if (selection == 0) {
|
||||
if (!cm.haveItem(1082232) && cm.haveItem(4001158, 10)) {
|
||||
cm.gainItem(1082232, 1);
|
||||
cm.gainItem(4001158, -10);
|
||||
cm.dispose();
|
||||
} else {
|
||||
cm.sendOk("You either have Goddess Wristband already or you do not have 10 #t4001158#.");
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if(status == 0) {
|
||||
cm.sendYesNo("Are you going to drop out from this rescue mission?");
|
||||
} else if(status == 1) {
|
||||
cm.warp(920011200);
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
289
scripts/npc/2013001.js
Normal file
289
scripts/npc/2013001.js
Normal file
@@ -0,0 +1,289 @@
|
||||
/**
|
||||
* @author: Ronan
|
||||
* @npc: Chamberlain Eak
|
||||
* @map: Orbis - Tower of Goddess
|
||||
* @func: Orbis PQ
|
||||
*/
|
||||
|
||||
var status = 0;
|
||||
var em = null;
|
||||
|
||||
function isStatueComplete() {
|
||||
for(var i = 1; i <= 6; i++) {
|
||||
if(cm.getMap().getReactorByName("scar" + i).getState() < 1) return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function clearStage(stage, eim) {
|
||||
eim.setProperty("statusStg" + stage, "1");
|
||||
eim.showClearEffect(true);
|
||||
}
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
}
|
||||
|
||||
function action(mode, type, selection) {
|
||||
if (mode == -1) {
|
||||
cm.dispose();
|
||||
} else {
|
||||
if (mode == 0 && status == 0) {
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
if (mode == 1)
|
||||
status++;
|
||||
else
|
||||
status--;
|
||||
|
||||
if (cm.getPlayer().getMapId() == 920011200) { //exit
|
||||
cm.warp(200080101);
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
if (!cm.isLeader()) {
|
||||
if(cm.getPlayer().getMapId() == 920010000) {
|
||||
cm.warp(920010000, 2);
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
cm.sendOk("I only wish to speak to your leader!");
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
var eim = cm.getEventInstance();
|
||||
|
||||
switch(cm.getPlayer().getMapId()) {
|
||||
case 920010000:
|
||||
if(eim.getIntProperty("statusStg0") != 1) {
|
||||
eim.warpEventTeamToMapSpawnPoint(920010000, 2);
|
||||
eim.giveEventPlayersExp(3500);
|
||||
clearStage(0, eim);
|
||||
|
||||
cm.sendNext("Please save Minerva, She've been trapped in the seal by Papa Pixie, the terror of our tower! He misplaced all of our Minerva Statue's parts and we have to get it all back! Oh pardon me, I am the tower's Chamberlain, Eak. I am Minerva's royal servant.");
|
||||
}
|
||||
else {
|
||||
cm.warp(920010000, 2);
|
||||
}
|
||||
cm.dispose();
|
||||
break;
|
||||
case 920010100:
|
||||
if (isStatueComplete()) {
|
||||
if (eim.getIntProperty("statusStg7") == -1) {
|
||||
eim.warpEventTeam(920010800);
|
||||
} else if(eim.getIntProperty("statusStg8") == -1) {
|
||||
cm.sendOk("Oh! You brought the #t4001055#! Please, drop it at the base of the statue to bring Minerva back!");
|
||||
} else {
|
||||
cm.sendOk("Thank you for saving Minerva! Please, talk to her...");
|
||||
}
|
||||
} else {
|
||||
cm.sendOk("Please, save Minerva! Gather the six pieces of her statue and then talk to me to retrieve the final piece!");
|
||||
}
|
||||
break;
|
||||
case 920010200: //walkway
|
||||
if (!cm.haveItem(4001050,30)) {
|
||||
cm.sendOk("Gather the 30 Statue Pieces from the monsters in this stage, and please bring them to me so I can put them together!");
|
||||
} else {
|
||||
cm.sendOk("You got them all! Here, the 1st statue piece.");
|
||||
cm.removeAll(4001050);
|
||||
cm.gainItem(4001044,1); //first piece
|
||||
eim.giveEventPlayersExp(3500);
|
||||
clearStage(1, eim);
|
||||
}
|
||||
break;
|
||||
case 920010300: //storage
|
||||
if(eim.getIntProperty("statusStg2") != 1) {
|
||||
if(cm.getMap().countMonsters() == 0 && cm.getMap().countItems() == 0) {
|
||||
if(cm.canHold(4001045)) {
|
||||
cm.sendOk("Oh, I've found the 2nd Piece of Statue. Here, take it.");
|
||||
cm.gainItem(4001045, 1);
|
||||
eim.giveEventPlayersExp(3500);
|
||||
clearStage(2, eim);
|
||||
eim.setProperty("statusStg2", "1");
|
||||
} else {
|
||||
cm.sendOk("I've found the 2nd Piece of Statue. Get a slot available on your inventory to take it.");
|
||||
}
|
||||
} else {
|
||||
cm.sendOk("Find the 2nd Piece of Statue that is hidden in this room.");
|
||||
}
|
||||
} else {
|
||||
cm.sendOk("Well done. Go find the other statue pieces.");
|
||||
}
|
||||
|
||||
break;
|
||||
case 920010400: //lobby
|
||||
if (eim.getIntProperty("statusStg3") == -1) {
|
||||
cm.sendOk("Please, find the LP for the current day of week and place it on the music player.\r\n#v4001056# Sunday\r\n#v4001057# Monday\r\n#v4001058# Tuesday\r\n#v4001059# Wednesday\r\n#v4001060# Thursday\r\n#v4001061# Friday\r\n#v4001062# Saturday\r\n");
|
||||
} else if (eim.getIntProperty("statusStg3") == 0) {
|
||||
cm.getMap().getReactorByName("stone3").forceHitReactor(1);
|
||||
cm.sendOk("Ooh, the music... It sounds so fitting with the ambient. Nicely done, a box has appeared on the field. Retrieve the statue part from it!");
|
||||
eim.giveEventPlayersExp(3500);
|
||||
clearStage(3, eim);
|
||||
eim.setProperty("statusStg3", "2");
|
||||
|
||||
} else {
|
||||
cm.sendOk("Thank you so much!");
|
||||
}
|
||||
break;
|
||||
case 920010500: //sealed
|
||||
if (eim.getIntProperty("statusStg4") == -1) {
|
||||
var total = 3;
|
||||
for(var i = 0; i < 2; i++) {
|
||||
var rnd = Math.round(Math.random() * total);
|
||||
total -= rnd;
|
||||
|
||||
eim.setProperty("stage4_" + i, rnd);
|
||||
}
|
||||
eim.setProperty("stage4_2", "" + total);
|
||||
|
||||
eim.setProperty("statusStg4", "0");
|
||||
}
|
||||
if (eim.getIntProperty("statusStg4") == 0) {
|
||||
var players = Array();
|
||||
var total = 0;
|
||||
for (var i = 0; i < 3; i++) {
|
||||
var z = cm.getMap().getNumPlayersItemsInArea(i);
|
||||
players.push(z);
|
||||
total += z;
|
||||
}
|
||||
if (total != 3) {
|
||||
cm.sendOk("There needs to be 3 players OR items on the platforms.");
|
||||
} else {
|
||||
var num_correct = 0;
|
||||
for (var i = 0; i < 3; i++) {
|
||||
if (eim.getProperty("stage4_" + i).equals("" + players[i])) {
|
||||
num_correct++;
|
||||
}
|
||||
}
|
||||
if (num_correct == 3) {
|
||||
cm.sendOk("You found the right combination! A box has appeared on the top of this map, go retrieve the statue piece from it!");
|
||||
cm.getMap().getReactorByName("stone4").forceHitReactor(1);
|
||||
eim.giveEventPlayersExp(3500);
|
||||
clearStage(4, eim);
|
||||
} else {
|
||||
eim.showWrongEffect();
|
||||
if (num_correct > 0) {
|
||||
cm.sendOk("One of the platforms has the right number of players.");
|
||||
} else {
|
||||
cm.sendOk("All of the platforms have the wrong amount of players.");
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
cm.sendOk("Well done! Please, go fetch the other pieces and save Minerva!");
|
||||
}
|
||||
cm.dispose();
|
||||
break;
|
||||
case 920010600: //lounge
|
||||
if(eim.getIntProperty("statusStg5") == -1) {
|
||||
if (!cm.haveItem(4001052,40)) {
|
||||
cm.sendOk("Gather the 40 Statue Pieces from the monsters in this stage, and please bring them to me so I can put them together!");
|
||||
} else {
|
||||
cm.sendOk("You got them all! Here, the 5th statue piece.");
|
||||
cm.removeAll(4001052);
|
||||
cm.gainItem(4001048,1); //fifth piece
|
||||
eim.giveEventPlayersExp(3500);
|
||||
clearStage(5, eim);
|
||||
eim.setIntProperty("statusStg5", 1);
|
||||
}
|
||||
} else {
|
||||
cm.sendOk("You got them all here. Go search the others rooms of the tower.");
|
||||
}
|
||||
break;
|
||||
case 920010700: //on the way up
|
||||
if (eim.getIntProperty("statusStg6") == -1) {
|
||||
var rnd1 = Math.floor(Math.random() * 5);
|
||||
|
||||
var rnd2 = Math.floor(Math.random() * 5);
|
||||
while(rnd2 == rnd1) {
|
||||
rnd2 = Math.floor(Math.random() * 5);
|
||||
}
|
||||
|
||||
if(rnd1 > rnd2) {
|
||||
rnd1 = rnd1 ^ rnd2;
|
||||
rnd2 = rnd1 ^ rnd2;
|
||||
rnd1 = rnd1 ^ rnd2;
|
||||
}
|
||||
|
||||
var comb = "";
|
||||
for(var i = 0; i < rnd1; i++) comb += "0";
|
||||
comb += "1";
|
||||
for(var i = rnd1 + 1; i < rnd2; i++) comb += "0";
|
||||
comb += "1";
|
||||
for(var i = rnd2 + 1; i < 5; i++) comb += "0";
|
||||
|
||||
eim.setProperty("stage6_c", "" + comb);
|
||||
|
||||
eim.setProperty("statusStg6", "0");
|
||||
}
|
||||
|
||||
var comb = eim.getProperty("stage6_c");
|
||||
|
||||
if (eim.getIntProperty("statusStg6") == 0) {
|
||||
var react = "";
|
||||
var total = 0;
|
||||
for(var i = 1; i <= 5; i++) {
|
||||
if (cm.getMap().getReactorByName("" + i).getState() > 0) {
|
||||
react += "1";
|
||||
total += 1;
|
||||
} else {
|
||||
react += "0";
|
||||
}
|
||||
}
|
||||
|
||||
if (total != 2) {
|
||||
cm.sendOk("There needs to be exactly 2 levers at the top of the map pushed on.");
|
||||
} else {
|
||||
var num_correct = 0;
|
||||
var psh_correct = 0;
|
||||
for (var i = 0; i < 5; i++) {
|
||||
if (react.charCodeAt(i) == comb.charCodeAt(i)) {
|
||||
num_correct++;
|
||||
if(react.charAt(i) == '1') psh_correct++;
|
||||
}
|
||||
}
|
||||
if (num_correct == 5) {
|
||||
cm.sendOk("You found the right combination! Retrieve the statue piece from inside it!");
|
||||
cm.getMap().getReactorByName("stone6").forceHitReactor(1);
|
||||
eim.giveEventPlayersExp(3500);
|
||||
clearStage(6, eim);
|
||||
} else {
|
||||
eim.showWrongEffect();
|
||||
if (psh_correct >= 1) {
|
||||
cm.sendOk("One of the pushed levers is correct.");
|
||||
} else {
|
||||
cm.sendOk("Both of the pushed levers are wrong.");
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
cm.sendOk("Nicely done!! Go check out the rest of the pieces.");
|
||||
}
|
||||
break;
|
||||
case 920010800:
|
||||
cm.sendNext("Please, find a way to defeat Papa Pixie! Once you've found the Dark Nependeath by placing seeds, you've found Papa Pixie! Defeat it, and get the Root of Life to save Minerva!!!");
|
||||
break;
|
||||
case 920010900:
|
||||
cm.sendNext("This is the jail of the tower. You may find some goodies here, just be sure to clear the puzzles ahead as fast as possible.");
|
||||
break;
|
||||
case 920011000:
|
||||
if(cm.getMap().countMonsters() > 0) {
|
||||
cm.sendNext("This is the hidden room of the tower. After eliminating all monsters on this room, talk to me to gain access to the treasure room, leaving the center tower access behind.");
|
||||
} else {
|
||||
cm.warp(920011100);
|
||||
}
|
||||
break;
|
||||
}
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
function clear() {
|
||||
cm.showEffect(true, "quest/party/clear");
|
||||
cm.playSound(true, "Party1/Clear");
|
||||
}
|
||||
@@ -24,10 +24,6 @@
|
||||
*@author Jvlaple
|
||||
*/
|
||||
var status = 0;
|
||||
var itemArray = Array(2000004, 2000005, 2000006, 2002020, 2002021, 2002022, 2002023, 2002024, 2002025, 2002026, 2001000, 2001002, 2002015, 2050005, 2022179, 2020014, 2020015 /*End of Pots*/, 2100000, 2100001, 2100002, 2100003, 2100004, 2100005, /*End of Sacks*/
|
||||
2061003, 2060003, 2060004, 2061004 /*End of Arrows*/, 2070006, 2070005, 2070007, 2070004 /*End of Stars*/, 2210000, 2210001, 2210002 /*End of Morph items*/ );
|
||||
var itemQuan = Array(50, 20, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 5, 30, 2, 100, 50, 1, 1, 1, 1, 1, 1, 2000, 2000, 2000, 2000, 1, 1, 1, 1, 5, 5, 5);
|
||||
var PQItems = new Array(4001022, 4001023);
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
@@ -38,27 +34,36 @@ function action(mode, type, selection) {
|
||||
if (mode < 1)
|
||||
cm.dispose();
|
||||
else {
|
||||
status++;
|
||||
status++;
|
||||
if (cm.getPlayer().getMapId() == 920010100) { //Center tower
|
||||
if (status == 0)
|
||||
cm.sendNext("Thank you for not only restoring the statue, but rescuing me, Minerva, from the entrapment. May the blessing of the goddess be with you till the end...");
|
||||
cm.sendYesNo("I have lifted the spell that was blocking the access to the tower's jail storages. You may find some goodies down there... Alternatively, you may want to be leaving now. Are you ready to exit?");
|
||||
else if (status == 1) {
|
||||
var eim = cm.getPlayer().getEventInstance();
|
||||
eim.clearPQ();
|
||||
cm.warp(920011300, 0);
|
||||
cm.dispose();
|
||||
}
|
||||
|
||||
} else if (cm.getPlayer().getMapId() == 920011100) {
|
||||
if (status == 0)
|
||||
cm.sendYesNo("So, are you ready to exit?");
|
||||
else if (status == 1) {
|
||||
cm.warp(920011300, 0);
|
||||
cm.dispose();
|
||||
}
|
||||
|
||||
} else if (cm.getPlayer().getMapId() == 920011300) {
|
||||
if (status == 0)
|
||||
cm.sendNext("Thank you for not only restoring the statue, but rescuing me, Minerva, from the entrapment. May the blessing of the goddess be with you till the end...");
|
||||
cm.sendNext("Thank you for not only restoring the statue, but rescuing me, Minerva, from the entrapment. May the blessing of the goddess be with you till the end... As a token of gratitude, please accept this memento for your bravery.");
|
||||
else if (status == 1) {
|
||||
for (var i = 0; i < PQItems.length; i++)
|
||||
cm.removeAll(PQItems[i]); // Remove All PQ Items :D
|
||||
var randmm = (Math.random() * itemArray.length) | 0;
|
||||
cm.gainItem(itemArray[randmm], itemQuan[randmm]);
|
||||
cm.warp(200080101, 0);
|
||||
cm.dispose();
|
||||
if(cm.getEventInstance().giveEventReward(cm.getPlayer())) {
|
||||
cm.warp(200080101, 0);
|
||||
cm.dispose();
|
||||
}
|
||||
else {
|
||||
cm.sendOk("Please make room on your inventory first.");
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -61,53 +61,53 @@ function action(mode, type, selection) {
|
||||
cm.sendSimple("Thank you for saving me! How can I help you?\r\n#b#L0#Get me out of here.\r\n#L1#Give me Pirate Hat.");
|
||||
} else if (status == 1) {
|
||||
if (selection == 0) {
|
||||
if (!cm.canHold(4001129, 1)) {
|
||||
if (!cm.canHold(4001158, 1)) {
|
||||
cm.sendOk("Please make room in ETC.");
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
cm.gainItem(4001129, 1);
|
||||
cm.gainItem(4001158, 1);
|
||||
cm.warp(251010404,0);
|
||||
} else {
|
||||
if (cm.haveItem(1003267, 1)) {
|
||||
cm.sendOk("You have the best hat.");
|
||||
} else if (cm.haveItem(1002573, 1)) {
|
||||
if (cm.haveItem(4001129, 20)) {
|
||||
if (cm.haveItem(4001158, 20)) {
|
||||
if (cm.canHold(1003267,1)) {
|
||||
cm.gainItem(1002573, -1);
|
||||
cm.gainItem(4001129, -20);
|
||||
cm.gainItem(4001158, -20);
|
||||
cm.gainItem(1003267,1);
|
||||
cm.sendOk("I have given you the hat.");
|
||||
} else {
|
||||
cm.sendOk("Please make room in your EQUIP inventory before receiving the hat.");
|
||||
}
|
||||
} else {
|
||||
cm.sendOk("You need 20 #t4001129# to get the next hat.");
|
||||
cm.sendOk("You need 20 #t4001158# to get the next hat.");
|
||||
}
|
||||
} else if (cm.haveItem(1002572, 1)) {
|
||||
if (cm.haveItem(4001129, 20)) {
|
||||
if (cm.haveItem(4001158, 20)) {
|
||||
if (cm.canHold(1002573,1)) {
|
||||
cm.gainItem(1002572, -1);
|
||||
cm.gainItem(4001129, -20);
|
||||
cm.gainItem(4001158, -20);
|
||||
cm.gainItem(1002573,1);
|
||||
cm.sendOk("I have given you the hat.");
|
||||
} else {
|
||||
cm.sendOk("Please make room in your EQUIP inventory before receiving the hat.");
|
||||
}
|
||||
} else {
|
||||
cm.sendOk("You need 20 #t4001129# to get the next hat.");
|
||||
cm.sendOk("You need 20 #t4001158# to get the next hat.");
|
||||
}
|
||||
} else {
|
||||
if (cm.haveItem(4001129, 20)) {
|
||||
if (cm.haveItem(4001158, 20)) {
|
||||
if (cm.canHold(1002572,1)) {
|
||||
cm.gainItem(4001129, -20);
|
||||
cm.gainItem(4001158, -20);
|
||||
cm.gainItem(1002572,1);
|
||||
cm.sendOk("I have given you the hat.");
|
||||
} else {
|
||||
cm.sendOk("Please make room in your EQUIP inventory before receiving the hat.");
|
||||
}
|
||||
} else {
|
||||
cm.sendOk("You need 20 #t4001129# to get the next hat.");
|
||||
cm.sendOk("You need 20 #t4001158# to get the next hat.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ function action(mode, type, selection){
|
||||
if (status == 0) {
|
||||
cm.sendNext("To return back to the city, follow this way.");
|
||||
} else {
|
||||
cm.getPlayer().changeMap(103000000, cm.getClient().getChannelServer().getMapFactory().getMap(103000000).getRandomSpawnpoint());
|
||||
cm.getPlayer().warp(103000000, cm.getClient().getChannelServer().getMapFactory().getMap(103000000).getRandomPlayerSpawnpoint());
|
||||
cm.dispose();
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user