• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[Add-On] Gaga goes missing Event [MoopleDEV Dedication]

may web.very maple.pls.
Loyal Member
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+!

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:
Legendary Battlemage
Loyal Member
Joined
Sep 28, 2008
Messages
600
Reaction score
291
re: [Add-On]Gaga goes missing Event [MoopleDEV Dedication]

Ahh, this is what I was trying to do a few months back, but didn't do lols. I thought there's an additional packet. >.< Didn't know that it was event/space/start.

Anyway, Awesome! :D
 
Legendary Battlemage
Loyal Member
Joined
Dec 13, 2010
Messages
649
Reaction score
140
re: [Add-On]Gaga goes missing Event [MoopleDEV Dedication]

Sincerely nice job Akira.
 
Custom Title Activated
Loyal Member
Joined
Jun 30, 2008
Messages
3,451
Reaction score
1,616
re: [Add-On]Gaga goes missing Event [MoopleDEV Dedication]

Haha, thanks.
The effects are buffs. The hardest part will be the reactors changing color when using the mount skill...
 
may web.very maple.pls.
Loyal Member
Joined
Aug 12, 2009
Messages
1,810
Reaction score
606
re: [Add-On]Gaga goes missing Event [MoopleDEV Dedication]

Well I did all I could do, but I'm gonna work on the NPCs for this, and see if I can find the reactor for the spaceship colors :]
 
Experienced Elementalist
Joined
Sep 2, 2008
Messages
271
Reaction score
4
Re: [Add-On]Gaga goes missing Event [MoopleDEV Dedication]

nice ":D
 
Newbie Spellweaver
Joined
Mar 17, 2010
Messages
48
Reaction score
13
Re: [Add-On]Gaga goes missing Event [MoopleDEV Dedication]

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 :)
 
Custom Title Activated
Loyal Member
Joined
Jun 30, 2008
Messages
3,451
Reaction score
1,616
Re: [Add-On]Gaga goes missing Event [MoopleDEV Dedication]

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 :)
 
Newbie Spellweaver
Joined
Mar 17, 2010
Messages
48
Reaction score
13
Re: [Add-On]Gaga goes missing Event [MoopleDEV Dedication]

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 :)

Ugh fine, but how the code know the map? And still, I can't see where it coded
if(player.fall == 1) {
player.addCount();
}
cuz it's not coded like that and I can't understand how is that works :S
 
Newbie Spellweaver
Joined
Aug 1, 2008
Messages
94
Reaction score
2
Re: [Add-On]Gaga goes missing Event [MoopleDEV Dedication]

Nice release, bro.
 
Custom Title Activated
Loyal Member
Joined
Jun 30, 2008
Messages
3,451
Reaction score
1,616
Re: [Add-On]Gaga goes missing Event [MoopleDEV Dedication]

Coding the npc won't work. The npc had a time limit. So you can't use any scripts on the Grandpa T_T
 
may web.very maple.pls.
Loyal Member
Joined
Aug 12, 2009
Messages
1,810
Reaction score
606
Re: [Add-On]Gaga goes missing Event [MoopleDEV Dedication]

Akira, 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?
Why not, Well I'll check if the grandpa works for now I'll be coding the baby bunny

---------- Post added at 03:51 PM ---------- Previous post was at 03:47 PM ----------

Added you :]
 
Custom Title Activated
Loyal Member
Joined
Jun 30, 2008
Messages
3,451
Reaction score
1,616
Re: [Add-On]Gaga goes missing Event [MoopleDEV Dedication]

I need your msn, my msn never shows invites T_T

Anyways, the baby bunny won't work either. I think the baby bunny contains the end info too. I need to brainstorm about a way to store events....
 
may web.very maple.pls.
Loyal Member
Joined
Aug 12, 2009
Messages
1,810
Reaction score
606
Re: [Add-On]Gaga goes missing Event [MoopleDEV Dedication]

Well I found out the answer to all of my notes (Hopefully):
-In the xml I found this prop called buffzone:
PHP:
  <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>
and the animation kevin found out, but I'm pretty sure is this timemob I kept trying to figure out how to use:
PHP:
    <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>
 
Custom Title Activated
Loyal Member
Joined
Jun 30, 2008
Messages
3,451
Reaction score
1,616
Re: [Add-On]Gaga goes missing Event [MoopleDEV Dedication]

If you had responded on msn, i woul have told you everything I know...
 
Back
Top