- Joined
- Aug 12, 2009
- Messages
- 1,810
- Reaction score
- 606
Gaga goes missing Event
Well this event was made by Nexon around v79-83 or something? I saw this event in youtube and I liked it and I manage to code most of the event's features, hope you enjoy and I also dedicate this to Kevin for his hard work on MoopleDEV, congratz on reaching rev100+!
scripts -> map -> onFirstUserEnter -> spaceGaGa_sMap.js
scripts -> map -> onFirstUserEnter -> spaceGaGa_start.js
scripts -> portals-> gaga_success.js
scripts -> portals-> Spacegaga_out0.js
scripts -> portals-> Spacegaga_out1.js
scripts -> portals-> Spacegaga_out2.js
scripts -> portals-> Spacegaga_out3.js
MapleCharacter.java
Well this event was made by Nexon around v79-83 or something? I saw this event in youtube and I liked it and I manage to code most of the event's features, hope you enjoy and I also dedicate this to Kevin for his hard work on MoopleDEV, congratz on reaching rev100+!
NOTICE - some may say its badly coded, but I don't really care, my main goal is to get it working..
scripts -> map -> onFirstUserEnter -> spaceGaGa_sMap.js
PHP:
/*
*@Author: iAkira
*@Map(s): 922240100
*@Function: Clock[anything else?]
*/
importPackage(Packages.tools);
function start(ms) {
ms.getPlayer().resetEnteredScript();
ms.getClient().getSession().write(MaplePacketCreator.getClock(180));
}
scripts -> map -> onFirstUserEnter -> spaceGaGa_start.js
PHP:
/*
*@Author: iAkira
*@Map(s): 922240000
*@Function: Handles all map-related effects
*/
importPackage(Packages.tools);
function start(ms) {
try {
ms.getPlayer().resetEnteredScript();
ms.getClient().getSession().write(MaplePacketCreator.showEffect("event/space/start"));
ms.getClient().getSession().write(MaplePacketCreator.getClock(180));
ms.getPlayer().startMapEffect("Please rescue Gaga within the time limit.", 5120027);
} catch(err) {
ms.getPlayer().dropMessage(err);
}
}
scripts -> portals-> gaga_success.js
PHP:
/*
*@Author: iAkira
*@Map(s): 922240000
*@Function: warps if you reach gaga
*/
function enter(pi) {
pi.warp(922240100);
}
scripts -> portals-> Spacegaga_out0.js
PHP:
/*
*@Author: iAkira
*@Map(s): 922240000
*@Function: Handles the warping and times fallen
*/
function enter(pi) {
pi.getPlayer().addCount();
}
scripts -> portals-> Spacegaga_out1.js
PHP:
/*
*@Author: iAkira
*@Map(s): 922240000
*@Function: Handles the warping and times fallen
*/
function enter(pi) {
pi.getPlayer().addCount();
}
scripts -> portals-> Spacegaga_out2.js
PHP:
/*
*@Author: iAkira
*@Map(s): 922240000
*@Function: Handles the warping and times fallen
*/
function enter(pi) {
pi.getPlayer().addCount();
}
scripts -> portals-> Spacegaga_out3.js
PHP:
/*
*@Author: iAkira
*@Map(s): 922240000
*@Function: Handles the warping and times fallen
*/
function enter(pi) {
pi.getPlayer().addCount();
}
MapleCharacter.java
PHP:
public int counts = 0;
public void addCount() {
if(this.counts > 3) {
this.counts = 0;
changeMap(922240200);
} else {
changeMap(922240000);
this.counts++;
}
}
Thanks if you like it :]!
Last edited: