Fix Gaga Rescue (#350)
This commit is contained in:
@@ -34,7 +34,7 @@ function start() {
|
|||||||
cm.sendYesNo("Don't worry if you fail. You'll have 3 chances. Do you still want to give up?");
|
cm.sendYesNo("Don't worry if you fail. You'll have 3 chances. Do you still want to give up?");
|
||||||
} else if (cm.getPlayer().getMapId() >= 922240100 && cm.getPlayer().getMapId() <= 922240119) {
|
} else if (cm.getPlayer().getMapId() >= 922240100 && cm.getPlayer().getMapId() <= 922240119) {
|
||||||
var text = "You went through so much trouble to rescue Gaga, but it looks like we're back to square one. ";
|
var text = "You went through so much trouble to rescue Gaga, but it looks like we're back to square one. ";
|
||||||
var rgaga = cm.getPlayer().getEvents().getGagaRescue();
|
var rgaga = cm.getPlayer().getEvents().get("rescueGaga");
|
||||||
if (rgaga.getCompleted() == 10 || rgaga.getCompleted() == 20) {
|
if (rgaga.getCompleted() == 10 || rgaga.getCompleted() == 20) {
|
||||||
text += "Please don't give up untill Gaga is rescued. To show you my appreciation for what you've accomplished thus far, I've given you a Spaceship. It's rather worn out, but it should still be operational. Check your #bSkill Window#k.";
|
text += "Please don't give up untill Gaga is rescued. To show you my appreciation for what you've accomplished thus far, I've given you a Spaceship. It's rather worn out, but it should still be operational. Check your #bSkill Window#k.";
|
||||||
rgaga.giveSkill(cm.getPlayer());
|
rgaga.giveSkill(cm.getPlayer());
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
//Author: kevintjuh93
|
//Author: kevintjuh93
|
||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
if (pi.getPlayer().getEvents().getGagaRescue().fallAndGet() > 3) {
|
if (pi.getPlayer().getEvents().get("rescueGaga").fallAndGet() > 3) {
|
||||||
pi.playPortalSound(); pi.warp(922240200, 0);
|
pi.playPortalSound(); pi.warp(922240200, 0);
|
||||||
pi.getPlayer().cancelEffect(2360002);
|
pi.getPlayer().cancelEffect(2360002);
|
||||||
} else
|
} else
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
//Author: kevintjuh93
|
//Author: kevintjuh93
|
||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
if (pi.getPlayer().getEvents().getGagaRescue().fallAndGet() > 3) {
|
if (pi.getPlayer().getEvents().get("rescueGaga").fallAndGet() > 3) {
|
||||||
pi.playPortalSound(); pi.warp(922240200, 0);
|
pi.playPortalSound(); pi.warp(922240200, 0);
|
||||||
pi.getPlayer().cancelEffect(2360002);
|
pi.getPlayer().cancelEffect(2360002);
|
||||||
} else
|
} else
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
//Author: kevintjuh93
|
//Author: kevintjuh93
|
||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
if (pi.getPlayer().getEvents().getGagaRescue().fallAndGet() > 3) {
|
if (pi.getPlayer().getEvents().get("rescueGaga").fallAndGet() > 3) {
|
||||||
pi.playPortalSound(); pi.warp(922240200, 0);
|
pi.playPortalSound(); pi.warp(922240200, 0);
|
||||||
pi.getPlayer().cancelEffect(2360002);
|
pi.getPlayer().cancelEffect(2360002);
|
||||||
} else
|
} else
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
//Author: kevintjuh93
|
//Author: kevintjuh93
|
||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
if (pi.getPlayer().getEvents().getGagaRescue().fallAndGet() > 3) {
|
if (pi.getPlayer().getEvents().get("rescueGaga").fallAndGet() > 3) {
|
||||||
pi.playPortalSound(); pi.warp(922240200, 0);
|
pi.playPortalSound(); pi.warp(922240200, 0);
|
||||||
pi.getPlayer().cancelEffect(2360002);
|
pi.getPlayer().cancelEffect(2360002);
|
||||||
} else
|
} else
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
//Author: kevintjuh93
|
//Author: kevintjuh93
|
||||||
|
|
||||||
function enter(pi) {
|
function enter(pi) {
|
||||||
pi.getPlayer().getEvents().getGagaRescue().complete();
|
pi.getPlayer().getEvents().get("rescueGaga").complete();
|
||||||
pi.playPortalSound(); pi.warp(922240100 + (pi.getPlayer().getMapId() - 922240000));
|
pi.playPortalSound(); pi.warp(922240100 + (pi.getPlayer().getMapId() - 922240000));
|
||||||
pi.getPlayer().cancelEffect(2360002);
|
pi.getPlayer().cancelEffect(2360002);
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user