Portal sound effects + Improved skillbook drops

Added portal crossing sound effect on several scripted portals which were missing it.
Added a few more scrolls on Spindle.
Added several skill/mastery book drops, making "4th job skill questing" somewhat more viable.
This commit is contained in:
ronancpl
2018-02-14 18:25:49 -02:00
parent 10dc1f03e7
commit 278b5e8140
43 changed files with 1876 additions and 1284 deletions

View File

@@ -31,6 +31,7 @@ function enter(pi) {
if (pi.isLeader()) {
for (var i = 0; i < dungeons; i++) {
if(pi.startDungeonInstance(dungeonid + i)) {
pi.playPortalSound();
pi.warpParty(dungeonid + i);
return true;
}
@@ -42,6 +43,7 @@ function enter(pi) {
} else {
for (var i = 0; i < dungeons; i++) {
if(pi.startDungeonInstance(dungeonid + i)) {
pi.playPortalSound();
pi.warp(dungeonid + i);
return true;
}

View File

@@ -33,6 +33,7 @@ function enter(pi) {
if (pi.isLeader()) {
for (var i = 0; i < dungeons; i++) {
if(pi.startDungeonInstance(dungeonid + i)) {
pi.playPortalSound();
pi.warpParty(dungeonid + i);
return true;
}
@@ -44,6 +45,7 @@ function enter(pi) {
} else {
for (var i = 0; i < dungeons; i++) {
if(pi.startDungeonInstance(dungeonid + i)) {
pi.playPortalSound();
pi.warp(dungeonid + i);
return true;
}

View File

@@ -33,6 +33,7 @@ function enter(pi) {
if (pi.isLeader()) {
for (var i = 0; i < dungeons; i++) {
if(pi.startDungeonInstance(dungeonid + i)) {
pi.playPortalSound();
pi.warpParty(dungeonid + i);
return true;
}
@@ -44,6 +45,7 @@ function enter(pi) {
} else {
for (var i = 0; i < dungeons; i++) {
if(pi.startDungeonInstance(dungeonid + i)) {
pi.playPortalSound();
pi.warp(dungeonid + i);
return true;
}

View File

@@ -33,6 +33,7 @@ function enter(pi) {
if (pi.isLeader()) {
for (var i = 0; i < dungeons; i++) {
if(pi.startDungeonInstance(dungeonid + i)) {
pi.playPortalSound();
pi.warpParty(dungeonid + i);
return true;
}
@@ -44,6 +45,7 @@ function enter(pi) {
} else {
for (var i = 0; i < dungeons; i++) {
if(pi.startDungeonInstance(dungeonid + i)) {
pi.playPortalSound();
pi.warp(dungeonid + i);
return true;
}

View File

@@ -33,6 +33,7 @@ function enter(pi) {
if (pi.isLeader()) {
for (var i = 0; i < dungeons; i++) {
if(pi.startDungeonInstance(dungeonid + i)) {
pi.playPortalSound();
pi.warpParty(dungeonid + i);
return true;
}
@@ -44,6 +45,7 @@ function enter(pi) {
} else {
for (var i = 0; i < dungeons; i++) {
if(pi.startDungeonInstance(dungeonid + i)) {
pi.playPortalSound();
pi.warp(dungeonid + i);
return true;
}

View File

@@ -33,6 +33,7 @@ function enter(pi) {
if (pi.isLeader()) {
for (var i = 0; i < dungeons; i++) {
if(pi.startDungeonInstance(dungeonid + i)) {
pi.playPortalSound();
pi.warpParty(dungeonid + i);
return true;
}
@@ -44,6 +45,7 @@ function enter(pi) {
} else {
for (var i = 0; i < dungeons; i++) {
if(pi.startDungeonInstance(dungeonid + i)) {
pi.playPortalSound();
pi.warp(dungeonid + i);
return true;
}

View File

@@ -31,6 +31,7 @@ function enter(pi) {
if (pi.isLeader()) {
for (var i = 0; i < dungeons; i++) {
if(pi.startDungeonInstance(dungeonid + i)) {
pi.playPortalSound();
pi.warpParty(dungeonid + i);
return true;
}
@@ -42,6 +43,7 @@ function enter(pi) {
} else {
for (var i = 0; i < dungeons; i++) {
if(pi.startDungeonInstance(dungeonid + i)) {
pi.playPortalSound();
pi.warp(dungeonid + i);
return true;
}

View File

@@ -31,6 +31,7 @@ function enter(pi) {
if (pi.isLeader()) {
for (var i = 0; i < dungeons; i++) {
if(pi.startDungeonInstance(dungeonid + i)) {
pi.playPortalSound();
pi.warpParty(dungeonid + i);
return true;
}
@@ -42,6 +43,7 @@ function enter(pi) {
} else {
for (var i = 0; i < dungeons; i++) {
if(pi.startDungeonInstance(dungeonid + i)) {
pi.playPortalSound();
pi.warp(dungeonid + i);
return true;
}

View File

@@ -31,6 +31,7 @@ function enter(pi) {
if (pi.isLeader()) {
for (var i = 0; i < dungeons; i++) {
if(pi.startDungeonInstance(dungeonid + i)) {
pi.playPortalSound();
pi.warpParty(dungeonid + i);
return true;
}
@@ -42,6 +43,7 @@ function enter(pi) {
} else {
for (var i = 0; i < dungeons; i++) {
if(pi.startDungeonInstance(dungeonid + i)) {
pi.playPortalSound();
pi.warp(dungeonid + i);
return true;
}

View File

@@ -31,6 +31,7 @@ function enter(pi) {
if (pi.isLeader()) {
for (var i = 0; i < dungeons; i++) {
if(pi.startDungeonInstance(dungeonid + i)) {
pi.playPortalSound();
pi.warpParty(dungeonid + i);
return true;
}
@@ -42,6 +43,7 @@ function enter(pi) {
} else {
for (var i = 0; i < dungeons; i++) {
if(pi.startDungeonInstance(dungeonid + i)) {
pi.playPortalSound();
pi.warp(dungeonid + i);
return true;
}

View File

@@ -31,6 +31,7 @@ function enter(pi) {
if (pi.isLeader()) {
for (var i = 0; i < dungeons; i++) {
if(pi.startDungeonInstance(dungeonid + i)) {
pi.playPortalSound();
pi.warpParty(dungeonid + i);
return true;
}
@@ -42,6 +43,7 @@ function enter(pi) {
} else {
for (var i = 0; i < dungeons; i++) {
if(pi.startDungeonInstance(dungeonid + i)) {
pi.playPortalSound();
pi.warp(dungeonid + i);
return true;
}

View File

@@ -31,6 +31,7 @@ function enter(pi) {
if (pi.isLeader()) {
for (var i = 0; i < dungeons; i++) {
if(pi.startDungeonInstance(dungeonid + i)) {
pi.playPortalSound();
pi.warpParty(dungeonid + i);
return true;
}
@@ -42,6 +43,7 @@ function enter(pi) {
} else {
for (var i = 0; i < dungeons; i++) {
if(pi.startDungeonInstance(dungeonid + i)) {
pi.playPortalSound();
pi.warp(dungeonid + i);
return true;
}

View File

@@ -2,7 +2,7 @@
function enter(pi) {
if (pi.getPlayer().getEvents().getGagaRescue().fallAndGet() > 3) {
pi.warp(922240200, 0);
pi.playPortalSound(); pi.warp(922240200, 0);
pi.getPlayer().cancelEffect(2360002);
} else
pi.playPortalSound(); pi.warp(pi.getPlayer().getMapId(), 0);

View File

@@ -2,7 +2,7 @@
function enter(pi) {
if (pi.getPlayer().getEvents().getGagaRescue().fallAndGet() > 3) {
pi.warp(922240200, 0);
pi.playPortalSound(); pi.warp(922240200, 0);
pi.getPlayer().cancelEffect(2360002);
} else
pi.playPortalSound(); pi.warp(pi.getPlayer().getMapId(), 0);

View File

@@ -2,7 +2,7 @@
function enter(pi) {
if (pi.getPlayer().getEvents().getGagaRescue().fallAndGet() > 3) {
pi.warp(922240200, 0);
pi.playPortalSound(); pi.warp(922240200, 0);
pi.getPlayer().cancelEffect(2360002);
} else
pi.playPortalSound(); pi.warp(pi.getPlayer().getMapId(), 0);

View File

@@ -2,7 +2,7 @@
function enter(pi) {
if (pi.getPlayer().getEvents().getGagaRescue().fallAndGet() > 3) {
pi.warp(922240200, 0);
pi.playPortalSound(); pi.warp(922240200, 0);
pi.getPlayer().cancelEffect(2360002);
} else
pi.playPortalSound(); pi.warp(pi.getPlayer().getMapId(), 0);

View File

@@ -24,5 +24,6 @@ function enter(pi) {
}
}
pi.message("A mysterious force won't let you in.");
return false;
}

View File

@@ -53,11 +53,11 @@ function enter(pi) {
}
} else {
pi.getPlayer().message("You received " + pi.getPlayer().addDojoPointsByMap(pi.getMapId()) + " training points. Your total training points score is now " + pi.getPlayer().getDojoPoints() + ".");
pi.warp(pi.getPlayer().getMap().getId() + 100, 0);
pi.playPortalSound(); pi.warp(pi.getPlayer().getMap().getId() + 100, 0);
}
} else {
pi.getPlayer().message("You received " + pi.getPlayer().addDojoPointsByMap(pi.getMapId()) + " training points. Your total training points score is now " + pi.getPlayer().getDojoPoints() + ".");
pi.warp(pi.getPlayer().getMap().getId() + 100, 0);
pi.playPortalSound(); pi.warp(pi.getPlayer().getMap().getId() + 100, 0);
}
} else {
pi.playPortalSound(); pi.warp(925020003, 0);

View File

@@ -1,6 +1,6 @@
function enter(pi) {
if(pi.isQuestCompleted(20730) || pi.isQuestCompleted(21734)) { // puppeteer defeated, newfound secret path
pi.warp(105070300,3);
pi.playPortalSound(); pi.warp(105070300,3);
return true;
} else if(pi.isQuestStarted(21734)) {
pi.playPortalSound(); pi.warp(910510100,0);

View File

@@ -9,7 +9,7 @@ function enter(pi) {
mapobj2.spawnMonsterOnGroundBelow(Packages.server.life.MapleLifeFactory.getMonster(9300348), new Packages.java.awt.Point(591, -34));
pi.warp(920030000,2);
pi.playPortalSound(); pi.warp(920030000,2);
return true;
} else {
pi.message("Someone is already challenging the area.");

View File

@@ -1,5 +1,5 @@
function enter(pi) {
pi.playPortalSound();
pi.playPortalSound();
pi.warp(100030200, "east00");
return true;
}

View File

@@ -1,5 +1,5 @@
function enter(pi) {
pi.playPortalSound();
pi.playPortalSound();
pi.warp(100030102, "in00");
return true;
}

View File

@@ -2,7 +2,7 @@ function enter(pi) {
var map = pi.getPlayer().getMap();
if(pi.getPortal().getName() == "female00") {
if (pi.getPlayer().getGender() == 1) {
pi.warp(map.getId(), "female01");
pi.playPortalSound(); pi.warp(map.getId(), "female01");
return true;
} else {
pi.message("This portal leads to the girls' area, try the portal at the other side.");

View File

@@ -22,7 +22,7 @@
function enter(pi) {
if (pi.getPlayer().getMapId() == 240060000) {
if(pi.getEventInstance().getIntProperty("defeatedHead") >= 1) {
pi.warp(240060100, 0);
pi.playPortalSound(); pi.warp(240060100, 0);
return true;
} else {
pi.getPlayer().dropMessage(6, "Horntail\'s Seal is Blocking this Door.");

View File

@@ -20,7 +20,7 @@
function enter(pi) {
if(!pi.isQuestStarted(3309) || pi.haveItem(4031708, 1)) {
pi.warp(261020700, "down00");
pi.playPortalSound(); pi.warp(261020700, "down00");
} else {
pi.playPortalSound(); pi.warp(926120000, "out00");
}

View File

@@ -22,7 +22,7 @@
function enter(pi) {
try {
var toMap = pi.getPlayer().getSavedLocation("FREE_MARKET");
pi.warp(toMap, pi.getMarketPortalId(toMap));
pi.playPortalSound(); pi.warp(toMap, pi.getMarketPortalId(toMap));
} catch(err) {
pi.playPortalSound(); pi.warp(100000000, 0);
}

View File

@@ -25,11 +25,11 @@ function enter(pi) {
return false;
}
if (pi.getPlayer().getMapId() == 240010100) {
pi.gainItem(4031346, -1);
pi.warp(101010000, "minar00");
pi.gainItem(4031346, -1);
pi.playPortalSound(); pi.warp(101010000, "minar00");
return true;
} else if (pi.getPlayer().getMapId() == 101010000) {
pi.gainItem(4031346, -1);
pi.gainItem(4031346, -1);
pi.playPortalSound(); pi.warp(240010100, "elli00");
return true;
}

View File

@@ -9,21 +9,21 @@ function enter(pi) {
pi.warp(130000100, 4); //or 130000101
break;
case 140010100:
pi.warp(140010110, 0); //or 140010111
break;
pi.warp(140010110, 0); //or 140010111
break;
case 120000101:
pi.warp(120000105, 0);
break;
pi.warp(120000105, 0);
break;
case 103000003:
pi.warp(103000008, 0); //or 103000009
break;
pi.warp(103000008, 0); //or 103000009
break;
case 100000201:
pi.warp(100000204, 0); //or 100000205
break;
pi.warp(100000204, 0); //or 100000205
break;
default:
pi.warp(pi.getMapId() + 1, 0); //or + 2
break;
pi.warp(pi.getMapId() + 1, 0); //or + 2
break;
}
return true;
return true;
}

View File

@@ -27,7 +27,7 @@ function enter(pi) {
if(pi.isQuestStarted(6134)) {
if(pi.canHold(4031448)) {
pi.gainItem(4031448, 1);
pi.warp(220070400, 3);
pi.playPortalSound(); pi.warp(220070400, 3);
return true;
} else {