Implemented EllinPQ + some bug fixes
Implemented EllinPQ, adjusted several drop rates and data, fixes some bugs at quests at client-side.
This commit is contained in:
9
scripts/portal/party6_out.js
Normal file
9
scripts/portal/party6_out.js
Normal file
@@ -0,0 +1,9 @@
|
||||
function enter(pi) {
|
||||
if ((pi.getMap().getMonsters().size() == 0 || pi.getMap().getMonsterById(9300183) != null) && (pi.getMap().getReactorByName("") == null || pi.getMap().getReactorByName("").getState() == 1)) {
|
||||
pi.warp(930000800,0);
|
||||
return true;
|
||||
} else {
|
||||
pi.playerMessage(5, "Please eliminate the Poison Golem.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
30
scripts/portal/party6_stage.js
Normal file
30
scripts/portal/party6_stage.js
Normal file
@@ -0,0 +1,30 @@
|
||||
function enter(pi) {
|
||||
switch(pi.getMapId()) {
|
||||
case 930000000:
|
||||
pi.warp(930000100,0);
|
||||
return true;
|
||||
break;
|
||||
case 930000100:
|
||||
if (pi.getMap().getMonsters().size() == 0) {
|
||||
pi.warp(930000200,0);
|
||||
return true;
|
||||
} else {
|
||||
pi.playerMessage(5, "Eliminate all the monsters.");
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
case 930000200:
|
||||
if (pi.getMap().getReactorByName("spine") != null && pi.getMap().getReactorByName("spine").getState() < 4) {
|
||||
pi.playerMessage(5, "The spine blocks the way.");
|
||||
return false;
|
||||
} else {
|
||||
pi.warp(930000300,0); //assuming they cant get past reactor without it being gone
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
pi.playerMessage(5, "This portal leads to an unbound path.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
9
scripts/portal/party6_stage501.js
Normal file
9
scripts/portal/party6_stage501.js
Normal file
@@ -0,0 +1,9 @@
|
||||
function enter(pi) {
|
||||
if (java.lang.Math.random() < 0.1) {
|
||||
pi.warp(930000300,"16st");
|
||||
} else {
|
||||
pi.warp(930000300, "02st");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
9
scripts/portal/party6_stage502.js
Normal file
9
scripts/portal/party6_stage502.js
Normal file
@@ -0,0 +1,9 @@
|
||||
function enter(pi) {
|
||||
if (java.lang.Math.random() < 0.1) {
|
||||
pi.warp(930000300,"16st");
|
||||
} else {
|
||||
pi.warp(930000300, "03st");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
9
scripts/portal/party6_stage503.js
Normal file
9
scripts/portal/party6_stage503.js
Normal file
@@ -0,0 +1,9 @@
|
||||
function enter(pi) {
|
||||
if (java.lang.Math.random() < 0.1) {
|
||||
pi.warp(930000300,"16st");
|
||||
} else {
|
||||
pi.warp(930000300, "04st");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
9
scripts/portal/party6_stage504.js
Normal file
9
scripts/portal/party6_stage504.js
Normal file
@@ -0,0 +1,9 @@
|
||||
function enter(pi) {
|
||||
if (java.lang.Math.random() < 0.1) {
|
||||
pi.warp(930000300,"16st");
|
||||
} else {
|
||||
pi.warp(930000300, "05st");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
9
scripts/portal/party6_stage505.js
Normal file
9
scripts/portal/party6_stage505.js
Normal file
@@ -0,0 +1,9 @@
|
||||
function enter(pi) {
|
||||
if (java.lang.Math.random() < 0.1) {
|
||||
pi.warp(930000300,"16st");
|
||||
} else {
|
||||
pi.warp(930000300, "06st");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
9
scripts/portal/party6_stage506.js
Normal file
9
scripts/portal/party6_stage506.js
Normal file
@@ -0,0 +1,9 @@
|
||||
function enter(pi) {
|
||||
if (java.lang.Math.random() < 0.1) {
|
||||
pi.warp(930000300,"16st");
|
||||
} else {
|
||||
pi.warp(930000300, "07st");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
9
scripts/portal/party6_stage507.js
Normal file
9
scripts/portal/party6_stage507.js
Normal file
@@ -0,0 +1,9 @@
|
||||
function enter(pi) {
|
||||
if (java.lang.Math.random() < 0.1) {
|
||||
pi.warp(930000300,"16st");
|
||||
} else {
|
||||
pi.warp(930000300, "08st");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
9
scripts/portal/party6_stage508.js
Normal file
9
scripts/portal/party6_stage508.js
Normal file
@@ -0,0 +1,9 @@
|
||||
function enter(pi) {
|
||||
if (java.lang.Math.random() < 0.1) {
|
||||
pi.warp(930000300,"16st");
|
||||
} else {
|
||||
pi.warp(930000300, "09st");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
9
scripts/portal/party6_stage509.js
Normal file
9
scripts/portal/party6_stage509.js
Normal file
@@ -0,0 +1,9 @@
|
||||
function enter(pi) {
|
||||
if (java.lang.Math.random() < 0.1) {
|
||||
pi.warp(930000300,"16st");
|
||||
} else {
|
||||
pi.warp(930000300, "10st");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
9
scripts/portal/party6_stage510.js
Normal file
9
scripts/portal/party6_stage510.js
Normal file
@@ -0,0 +1,9 @@
|
||||
function enter(pi) {
|
||||
if (java.lang.Math.random() < 0.1) {
|
||||
pi.warp(930000300,"16st");
|
||||
} else {
|
||||
pi.warp(930000300, "11st");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
9
scripts/portal/party6_stage511.js
Normal file
9
scripts/portal/party6_stage511.js
Normal file
@@ -0,0 +1,9 @@
|
||||
function enter(pi) {
|
||||
if (java.lang.Math.random() < 0.1) {
|
||||
pi.warp(930000300,"16st");
|
||||
} else {
|
||||
pi.warp(930000300, "12st");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
9
scripts/portal/party6_stage512.js
Normal file
9
scripts/portal/party6_stage512.js
Normal file
@@ -0,0 +1,9 @@
|
||||
function enter(pi) {
|
||||
if (java.lang.Math.random() < 0.1) {
|
||||
pi.warp(930000300,"16st");
|
||||
} else {
|
||||
pi.warp(930000300, "13st");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
9
scripts/portal/party6_stage513.js
Normal file
9
scripts/portal/party6_stage513.js
Normal file
@@ -0,0 +1,9 @@
|
||||
function enter(pi) {
|
||||
if (java.lang.Math.random() < 0.1) {
|
||||
pi.warp(930000300,"16st");
|
||||
} else {
|
||||
pi.warp(930000300, "14st");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
9
scripts/portal/party6_stage514.js
Normal file
9
scripts/portal/party6_stage514.js
Normal file
@@ -0,0 +1,9 @@
|
||||
function enter(pi) {
|
||||
if (java.lang.Math.random() < 0.1) {
|
||||
pi.warp(930000300,"16st");
|
||||
} else {
|
||||
pi.warp(930000300, "15st");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
9
scripts/portal/party6_stage515.js
Normal file
9
scripts/portal/party6_stage515.js
Normal file
@@ -0,0 +1,9 @@
|
||||
function enter(pi) {
|
||||
if (java.lang.Math.random() < 0.1) {
|
||||
pi.warp(930000300,"16st");
|
||||
} else {
|
||||
pi.warp(930000300, "01st");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
19
scripts/portal/party6_stage800.js
Normal file
19
scripts/portal/party6_stage800.js
Normal file
@@ -0,0 +1,19 @@
|
||||
function enter(pi) {
|
||||
pi.removeAll(4001162);
|
||||
pi.removeAll(4001163);
|
||||
pi.removeAll(4001164);
|
||||
pi.removeAll(4001169);
|
||||
pi.removeAll(2270004);
|
||||
|
||||
if(pi.getMap().getReactorByName("") != null && pi.getMap().getReactorByName("").getState() == 1) {
|
||||
if(!pi.canHold(4001198, 1)) {
|
||||
pi.playerMessage(5, "Check for a free space on your ETC inventory before entering this portal.");
|
||||
return false;
|
||||
}
|
||||
|
||||
pi.gainItem(4001198, 1);
|
||||
}
|
||||
|
||||
pi.warp(300030100,0);
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user