Guild PQ + fixed negative EXP error
Implemented Guild PQ. Fixed a problem introduced earlier where negative EXP would be deemed as "integer overflow", provoking many game breaking issues as result.
This commit is contained in:
@@ -22,10 +22,13 @@
|
||||
/*
|
||||
Return from Sharen III's Grave - Guild Quest
|
||||
|
||||
@Author Lerk
|
||||
@Author Ronan
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
pi.warp(990000600, 1);
|
||||
var backPortals = [6, 8, 9, 11];
|
||||
var idx = pi.getEventInstance().gridCheck(pi.getPlayer());
|
||||
|
||||
pi.warp(990000600, backPortals[idx]);
|
||||
return true;
|
||||
}
|
||||
@@ -28,6 +28,7 @@ Save location to return.
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
pi.getEventInstance().gridInsert(pi.getPlayer(), 0);
|
||||
pi.warp(990000700, "st00");
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -28,6 +28,7 @@ Save location to return.
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
pi.getEventInstance().gridInsert(pi.getPlayer(), 1);
|
||||
pi.warp(990000700, "st00");
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -28,6 +28,7 @@ Save location to return.
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
pi.getEventInstance().gridInsert(pi.getPlayer(), 3);
|
||||
pi.warp(990000700, "st00");
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -28,6 +28,7 @@ Save location to return.
|
||||
*/
|
||||
|
||||
function enter(pi) {
|
||||
pi.getEventInstance().gridInsert(pi.getPlayer(), 2);
|
||||
pi.warp(990000700, "st00");
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ Stage 5: Door before Ergoth - Guild Quest
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.getPlayer().getMap().getReactorByName("kinggate").getState() == 1) {
|
||||
pi.warp(990000900);
|
||||
pi.warp(990000900, 1);
|
||||
if (pi.getPlayer().getEventInstance().getProperty("boss") != null && pi.getPlayer().getEventInstance().getProperty("boss").equals("true")) {
|
||||
pi.changeMusic("Bgm10/Eregos");
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.getPlayer().getMap().getReactorByName("speargate").getState() == 4) {
|
||||
pi.warp(990000401);
|
||||
pi.warp(990000401, 0);
|
||||
return true;
|
||||
} else {
|
||||
pi.getPlayer().dropMessage(5, "This way forward is not open yet.");
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
*/
|
||||
function enter(pi) {
|
||||
if (pi.getPlayer().getMap().getReactorByName("statuegate").getState() == 1) {
|
||||
pi.warp(990000301);
|
||||
pi.warp(990000301, 0);
|
||||
return true;
|
||||
} else {
|
||||
pi.getPlayer().dropMessage(5, "The gate is closed.");
|
||||
|
||||
@@ -26,7 +26,7 @@ Stage 3: Exit Door - Guild Quest
|
||||
|
||||
function enter(pi) {
|
||||
if (pi.getPlayer().getMap().getReactorByName("watergate").getState() == 1) {
|
||||
pi.warp(990000600);
|
||||
pi.warp(990000600, 1);
|
||||
return true;
|
||||
} else
|
||||
pi.getPlayer().dropMessage(5, "This way forward is not open yet.");
|
||||
|
||||
Reference in New Issue
Block a user