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:
ronancpl
2017-04-22 16:35:27 -03:00
parent 72ef73a949
commit 828a8a02a2
82 changed files with 753 additions and 386 deletions

View 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;
}
}

View 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;
}
}

View 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;
}

View 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;
}

View 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;
}

View 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;
}

View 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;
}

View 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;
}

View 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;
}

View 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;
}

View 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;
}

View 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;
}

View 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;
}

View 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;
}

View 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;
}

View 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;
}

View 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;
}

View 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;
}