• 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]Magic Barrel in FM

Newbie Spellweaver
Joined
Mar 2, 2011
Messages
28
Reaction score
5
This is a Mini Version of Magic Barrel
My friend told me that some server had a Magic Barrel and you stand on it and say I want blahblahblah and it drops. I decided to make a mini version.
You stand on the barrel in FM and type @roids @specs @snailme or @GM-Hat and it drops
Copy and paste this is PlayerCommands.java and compile.
PHP:
} else if (splitted[0].equals("roids") || splitted[0].equals("specs") || splitted[0].equals("snailme") || splitted[0].equals("GM-Hat")) {
    if (player.getMap().getId() == 910000000) {
        if (player.getPosition().y > -17 && player.getPosition().x >= 335 && player.getPosition().x <= 365) {
            int itemId = splitted[0].equals("roids") ? 2022162 : splitted[0].equals("specs") ? 1022082 : splitted[0].equals("snailme") ? 2210006 : 1002140;
            player.getMap().spawnItemDrop(player.getObjectId(), player.getPosition(), player, new Item(itemId, (byte) 0, (short) 1), player.getPosition(), true, true);
            player.dropMessage("Your wish is my command.");
        } else {
            player.dropMessage("You must be on the magic barrel.");
        }
    } else {
        player.dropMessage("You must be on the Free Market.");
    }
}
I'm pretty sure this works. If theres any problems let me know.
 
Last edited by a moderator:
Newbie Spellweaver
Joined
Aug 1, 2008
Messages
94
Reaction score
2
Re: Magic Barrel in FM

So basically, this just makes things drop?
 
Newbie Spellweaver
Joined
Mar 2, 2011
Messages
28
Reaction score
5
Re: Magic Barrel in FM

Yeah if theyre standing on the FM barrel :D
 
Custom Title Activated
Loyal Member
Joined
Aug 21, 2009
Messages
1,149
Reaction score
598
Re: Magic Barrel in FM

Kind of huge though. Also, this is wrong, it will drop if someone else is over the barrel and even, if no one is over the barrel it will say "Your wish is my command.".

PHP:
} else if (splitted[0].equals("roids") || splitted[0].equals("specs") || splitted[0].equals("snailme") || splitted[0].equals("GM-Hat")) {
    if (player.getMap().getId() == 910000000) {
	    if (player.getPosition().y > -17 && player.getPosition().x >= 335 && player.getPosition().x <= 365) {
		    int itemId = splitted[0].equals("roids") ? 2022162 : splitted[0].equals("specs") ? 1022082 : splitted[0].equals("snailme") ? 2210006 : 1002140;
			player.getMap().spawnItemDrop(player.getObjectId(), player.getPosition(), player, new Item(itemId, (byte) 0, (short) 1), player.getPosition(), true, true);
			player.dropMessage("Your wish is my command.");
		} else {
		    player.dropMessage("You must be on the magic barrel.");
		}
    } else {
        player.dropMessage("You must be on the Free Market.");
    }
}
 
Legendary Battlemage
Loyal Member
Joined
Dec 13, 2010
Messages
649
Reaction score
140
Re: Magic Barrel in FM

First of all, where is the barrel. Is it an actual image? Or is it just figurative o-o.

Secondly I dont get the point of it IF you have to use commands, its just over complicating the drop command. The original version and this arent alike at all from what i can see.

Nice try I suppose, but the "!drop" command was already invented.
 
Newbie Spellweaver
Joined
Jul 21, 2008
Messages
7
Reaction score
1
Re: Magic Barrel in FM

First of all, where is the barrel. Is it an actual image? Or is it just figurative o-o.

Secondly I dont get the point of it IF you have to use commands, its just over complicating the drop command. The original version and this arent alike at all from what i can see.

Nice try I suppose, but the "!drop" command was already invented.


I don't think it's meant for GM's.
 
Custom Title Activated
Loyal Member
Joined
Aug 21, 2009
Messages
1,149
Reaction score
598
Re: Magic Barrel in FM

LOL he just copied what I posted...
 
Initiate Mage
Joined
Mar 9, 2011
Messages
2
Reaction score
0
Re: Magic Barrel in FM

} else if (splitted[0].equals("roids") || splitted[0].equals("specs") || splitted[0].equals("snailme") || splitted[0].equals("GM-Hat")) {
if (player.getMap().getId() == 910000000) {
if (player.getPosition().y > -17 && player.getPosition().x >= 335 && player.getPosition().x <= 365) {
int itemId = splitted[0].equals("roids") ? 2022162 : splitted[0].equals("specs") ? 1022082 : splitted[0].equals("snailme") ? 2210006 : 1002140;
player.getMap().spawnItemDrop(player.getObjectId(), player.getPosition(), player, new Item(itemId, (byte) 0, (short) 1), player.getPosition(), true, true);
player.dropMessage("Your wish is my command.");
} else {
player.dropMessage("You must be on the magic barrel.");
}
} else {
player.dropMessage("You must be on the Free Market.");
}
}

this doesnt work for moopledev v83.
 
return null;
Loyal Member
Joined
Dec 21, 2008
Messages
805
Reaction score
130
Re: Magic Barrel in FM

} else if (splitted[0].equals("roids") || splitted[0].equals("specs") || splitted[0].equals("snailme") || splitted[0].equals("GM-Hat")) {
if (player.getMap().getId() == 910000000) {
if (player.getPosition().y > -17 && player.getPosition().x >= 335 && player.getPosition().x <= 365) {
int itemId = splitted[0].equals("roids") ? 2022162 : splitted[0].equals("specs") ? 1022082 : splitted[0].equals("snailme") ? 2210006 : 1002140;
player.getMap().spawnItemDrop(player.getObjectId(), player.getPosition(), player, new Item(itemId, (byte) 0, (short) 1), player.getPosition(), true, true);
player.dropMessage("Your wish is my command.");
} else {
player.dropMessage("You must be on the magic barrel.");
}
} else {
player.dropMessage("You must be on the Free Market.");
}
}

this doesnt work for moopledev v83.
Thank you for being so accurate.
 
Banned
Banned
Joined
Jan 4, 2009
Messages
230
Reaction score
32
Re: Magic Barrel in FM

First of all, where is the barrel. Is it an actual image? Or is it just figurative o-o.

Secondly I dont get the point of it IF you have to use commands, its just over complicating the drop command. The original version and this arent alike at all from what i can see.

Nice try I suppose, but the "!drop" command was already invented.

In the FM, the little barrel next to the tele arrow
 
Interesting...
Loyal Member
Joined
Oct 25, 2008
Messages
1,372
Reaction score
604
Re: Magic Barrel in FM

} else if (splitted[0].equals("roids") || splitted[0].equals("specs") || splitted[0].equals("snailme") || splitted[0].equals("GM-Hat")) {
if (player.getMap().getId() == 910000000) {
if (player.getPosition().y > -17 && player.getPosition().x >= 335 && player.getPosition().x <= 365) {
int itemId = splitted[0].equals("roids") ? 2022162 : splitted[0].equals("specs") ? 1022082 : splitted[0].equals("snailme") ? 2210006 : 1002140;
player.getMap().spawnItemDrop(player.getObjectId(), player.getPosition(), player, new Item(itemId, (byte) 0, (short) 1), player.getPosition(), true, true);
player.dropMessage("Your wish is my command.");
} else {
player.dropMessage("You must be on the magic barrel.");
}
} else {
player.dropMessage("You must be on the Free Market.");
}
}

this doesnt work for moopledev v83.

Uhh, change some stuff around? Like player to chr for one. I got it to work.
 
Initiate Mage
Joined
Mar 9, 2011
Messages
2
Reaction score
0
Re: Magic Barrel in FM

chr instead of player works until player.getMap().spawnItemDrop(player.getObjectId(), player.getPosition(), player, new Item(itemId, (byte) 0, (short) 1),
could u post the edited code for moopledev.?
 
Newbie Spellweaver
Joined
Feb 21, 2011
Messages
44
Reaction score
31
Re: Magic Barrel in FM

I don't really understand the point of this... players are going to stand on the magic barrel all day spamming the command @specs.
 
Joined
Feb 23, 2008
Messages
507
Reaction score
361
Re: Magic Barrel in FM

You could easily just put it in MovePlayerHandler.java. Whether or not this is safe performance-wise is not clear. I doubt it'll slow down the server that much, though.
 
Newbie Spellweaver
Joined
Mar 2, 2011
Messages
28
Reaction score
5
Re: Magic Barrel in FM

I think my x and y positions are wrong. Find the positions of the barrel in FM. Sorry D:
 
Mythic Archon
Loyal Member
Joined
Jul 14, 2008
Messages
712
Reaction score
164
Kindly tell me what Magic Barrel is?
I gues its no in MapleSEA, seem never heard of it
 
(O_o(o_O(O_O)o_O)O_o)
Loyal Member
Joined
Apr 9, 2009
Messages
1,088
Reaction score
322
Lol @ people who don´t know the barrel...

It is just that standard map item of all free markets in (probably) all maplestory versions. it is located at the left side of FM portal 1 (witch is at the left of 2).
 
Mythic Archon
Loyal Member
Joined
Jul 14, 2008
Messages
712
Reaction score
164
lol
that "wine" barrel thing 0.o

okay i tot it was an item or portal at this thread =-=
anyway, thanks for telling

but what is magic barrel? custom system? or official system?
 
(O_o(o_O(O_O)o_O)O_o)
Loyal Member
Joined
Apr 9, 2009
Messages
1,088
Reaction score
322
did you ever play maplestory?

becouse i believe that nexon doesnt give away free gm hats when people stand on a barrel and use a stupid command. So its obviously custom.!
 
Back
Top