- Joined
- Aug 12, 2009
- Messages
- 1,810
- Reaction score
- 606
/*
*@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));
}
/*
*@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);
}
}
/*
*@Author: iAkira
*@Map(s): 922240000
*@Function: warps if you reach gaga
*/
function enter(pi) {
pi.warp(922240100);
}
/*
*@Author: iAkira
*@Map(s): 922240000
*@Function: Handles the warping and times fallen
*/
function enter(pi) {
pi.getPlayer().addCount();
}
/*
*@Author: iAkira
*@Map(s): 922240000
*@Function: Handles the warping and times fallen
*/
function enter(pi) {
pi.getPlayer().addCount();
}
/*
*@Author: iAkira
*@Map(s): 922240000
*@Function: Handles the warping and times fallen
*/
function enter(pi) {
pi.getPlayer().addCount();
}
/*
*@Author: iAkira
*@Map(s): 922240000
*@Function: Handles the warping and times fallen
*/
function enter(pi) {
pi.getPlayer().addCount();
}
public int counts = 0;
public void addCount() {
if(this.counts > 3) {
this.counts = 0;
changeMap(922240200);
} else {
changeMap(922240000);
this.counts++;
}
}
There are several portals that warp you out. It counts when you fall. Because you may only fall 3 times within the 3 minutes given to you.Nice job!
But I didn't understand something, in the counter, how he knows when to count? I mean when you fall off the map, how he know about that and add a count? and why did you create 3 files of 'Out'? Thanks for anwsering
There are several portals that warp you out. It counts when you fall. Because you may only fall 3 times within the 3 minutes given to you.
Anyways Akira, storing this in ChannelServer is really bad. If more people do this. They get randomly warped out? Lol
I'm going to make something for all gms events
Why not, Well I'll check if the grandpa works for now I'll be coding the baby bunnyAkira, do I have you on msn? If not add me, kevin_kal@hotmail.com
Anyways, I found the buff out. Created an event for this, now fixing some bugs... Wanna help Akira?
<imgdir name="BuffZone">
<imgdir name="test">
<int name="x1" value="-8" />
<int name="y1" value="779" />
<int name="x2" value="15042" />
<int name="y2" value="933" />
<int name="ItemID" value="2430004" />
<int name="Interval" value="1" />
<int name="Duration" value="60" />
</imgdir>
</imgdir>
<imgdir name="timeMob">
<int name="id" value="9300338" />
<string name="message" value="A suspicious spaceship appears and shoots a rainbow-colored ray of light on Gaga. " />
</imgdir>
</imgdir>