Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Release] Avatar Smega Command (Let's you make other people smega!)

Junior Spellweaver
Joined
Feb 23, 2008
Messages
111
Reaction score
1
do u really nid to add this?
Code:
import java.lang.String;
i mean is't the java.lang package included automatically in all java file?
so wads the point of adding that in?

java.lang is only included if you import it, and my CommandProcessor didn't have it imported, so I needed to add it. I don't know if newer repacks already have it included, but mine didn't, so I told people to do it. If you're a programmer and know that you don't need it in your CommandProcessor, then you can leave it out.
 
Junior Spellweaver
Joined
Feb 23, 2008
Messages
111
Reaction score
1
Doesn't work. :(

I put in CommandProcessor. Compiled, no errors. Then I build Main Project. Move the new .jar to my odinms dist folder. And started up server. It is always

"command !sex not found"

Any help?

Edit: I get errors now.

Make sure you put it in the right place and make sure you compiled and copied the new source over properly.
 
Newbie Spellweaver
Joined
Jun 28, 2008
Messages
48
Reaction score
0
Its better to do it when they are afk. Otherwise ppl would catch on pretty quick.
 
Newbie Spellweaver
Joined
Jun 23, 2008
Messages
77
Reaction score
0
OMIGOD thanks!!!111!!!!11!
I could use this to lag the poop out of my server >.<
 
Newbie Spellweaver
Joined
Apr 18, 2007
Messages
12
Reaction score
0
I get this error when i compile...

init:
deps-jar:
Compiling 307 source files to C:\Program Files\MySQL\build\classes
C:\Program Files\MySQL\SeanSource V.5.9\src\net\sf\odinms\client\messages\CommandProcessor.java:1612: illegal start of type
} else if (splitted[0].equals("!mega")
C:\Program Files\MySQL\SeanSource V.5.9\src\net\sf\odinms\client\messages\CommandProcessor.java:1612: ';' expected
} else if (splitted[0].equals("!mega")
C:\Program Files\MySQL\SeanSource V.5.9\src\net\sf\odinms\client\messages\CommandProcessor.java:1612: illegal start of type
} else if (splitted[0].equals("!mega")
C:\Program Files\MySQL\SeanSource V.5.9\src\net\sf\odinms\client\messages\CommandProcessor.java:1612: ']' expected
} else if (splitted[0].equals("!mega")
C:\Program Files\MySQL\SeanSource V.5.9\src\net\sf\odinms\client\messages\CommandProcessor.java:1612: illegal start of type
} else if (splitted[0].equals("!mega")
C:\Program Files\MySQL\SeanSource V.5.9\src\net\sf\odinms\client\messages\CommandProcessor.java:1612: <identifier> expected
} else if (splitted[0].equals("!mega")
C:\Program Files\MySQL\SeanSource V.5.9\src\net\sf\odinms\client\messages\CommandProcessor.java:1612: ';' expected
} else if (splitted[0].equals("!mega")
C:\Program Files\MySQL\SeanSource V.5.9\src\net\sf\odinms\client\messages\CommandProcessor.java:1612: illegal start of type
} else if (splitted[0].equals("!mega")
C:\Program Files\MySQL\SeanSource V.5.9\src\net\sf\odinms\client\messages\CommandProcessor.java:1612: <identifier> expected
} else if (splitted[0].equals("!mega")
C:\Program Files\MySQL\SeanSource V.5.9\src\net\sf\odinms\client\messages\CommandProcessor.java:1612: ';' expected
} else if (splitted[0].equals("!mega")
10 errors
BUILD FAILED (total time: 0 seconds)Any help please?
 
Experienced Elementalist
Joined
Jul 8, 2008
Messages
246
Reaction score
0
init:
deps-jar:
Compiling 1 source file to C:\Documents and Settings\Administrator\Desktop\Final2\build\classes
Note: C:\Documents and Settings\Administrator\Desktop\New Folder (18)\src\net\sf\odinms\client\messages\CommandProcessor.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
compile:
Building jar: C:\Documents and Settings\Administrator\Desktop\Final2\dist\JavaProject64.jar
jar:
BUILD SUCCESSFUL (total time: 2 seconds)
normal right?

it says build successful...
 
Newbie Spellweaver
Joined
Jun 27, 2008
Messages
20
Reaction score
0
Code:
C:\Documents and Settings\Bryan\Desktop\Rev 988\src\net\sf\odinms\client\messages\CommandProcessor.java:1341: 'else' without 'if'
                                                  else if (splitted[0].equals("!sex"))
1 error
BUILD FAILED (total time: 1 second)
Can anyone help?
 
Newbie Spellweaver
Joined
May 29, 2008
Messages
39
Reaction score
0
thx for the release..^^
PHP:
}else if (splitted[0].equals(";mega"))
            {
                if (splitted.length == 1)
                {
                    mc.dropMessage("Usage: ;mega [type] [message], where [type] is love, cloud, or diablo.");
                    mc.dropMessage("Each mega cost 5m~ more expensive ofcos^^");
                }
                
                String type = splitted[1];
                int channel = player.getClient().getChannel();
                int cost = 5000000;
                String text = StringUtil.joinStringFrom(splitted, 2);
                
                int itemID = 0;
                
                
                
                    if(type.equals("love"))
                        itemID = 5390002;
                
                    else if(type.equals("cloud"))
                        itemID = 5390001;
                    
                    else if(type.equals("diablo"))
                        itemID = 5390000;
                
                    else
                    {
                        mc.dropMessage("Invalid type (use love, cloud, or diablo)");
                        return true;
                    }
                
                    String[] lines = {"", "", "", ""};
                    
                    if (player.getMeso() > cost) { 
                
                    if(text.length() > 30)
                    {
                        lines[0] = text.substring(0, 10);
                        lines[1] = text.substring(10, 20);
                        lines[2] = text.substring(20, 30);
                        lines[3] = text.substring(30);
                    }
                
                    else if(text.length() > 20)
                    {
                        lines[0] = text.substring(0, 10);
                        lines[1] = text.substring(10, 20);
                        lines[2] = text.substring(20);
                    }
                
                    else if(text.length() > 10)
                    {
                        lines[0] = text.substring(0, 10);
                        lines[1] = text.substring(10);
                    }
                
                    else if(text.length() <= 10)
                    {
                        lines[0] = text;
                    }
                
                    LinkedList list = new LinkedList();
                    list.add(lines[0]);
                    list.add(lines[1]);
                    list.add(lines[2]);
                    list.add(lines[3]);
                
                    try
                            
                    {
                        MaplePacket mp = MaplePacketCreator.getAvatarMega(player, channel, itemID, list);
                        player.getClient().getChannelServer().getWorldInterface().broadcastMessage(null, mp.getBytes());
                        player.gainMeso(-cost, true);
                    }
                    catch(Exception e){
                    
                    }
                 }else{
                        mc.dropMessage("You Don't have enought mesos...");
                    
                }
i changed it to player mode~
each mega cost 5m..
usefull for the ppl lazy to buy mega^^
tried b4~
working

to change price
Code:
int cost = yourprice;
 
IHF
Joined
Apr 7, 2008
Messages
312
Reaction score
0
thx for the release..^^
PHP:
}else if (splitted[0].equals(";mega"))
            {
                if (splitted.length == 1)
                {
                    mc.dropMessage("Usage: ;mega [type] [message], where [type] is love, cloud, or diablo.");
                    mc.dropMessage("Each mega cost 5m~ more expensive ofcos^^");
                }
                
                String type = splitted[1];
                int channel = player.getClient().getChannel();
                int cost = 5000000;
                String text = StringUtil.joinStringFrom(splitted, 2);
                
                int itemID = 0;
                
                
                
                    if(type.equals("love"))
                        itemID = 5390002;
                
                    else if(type.equals("cloud"))
                        itemID = 5390001;
                    
                    else if(type.equals("diablo"))
                        itemID = 5390000;
                
                    else
                    {
                        mc.dropMessage("Invalid type (use love, cloud, or diablo)");
                        return true;
                    }
                
                    String[] lines = {"", "", "", ""};
                    
                    if (player.getMeso() > cost) { 
                
                    if(text.length() > 30)
                    {
                        lines[0] = text.substring(0, 10);
                        lines[1] = text.substring(10, 20);
                        lines[2] = text.substring(20, 30);
                        lines[3] = text.substring(30);
                    }
                
                    else if(text.length() > 20)
                    {
                        lines[0] = text.substring(0, 10);
                        lines[1] = text.substring(10, 20);
                        lines[2] = text.substring(20);
                    }
                
                    else if(text.length() > 10)
                    {
                        lines[0] = text.substring(0, 10);
                        lines[1] = text.substring(10);
                    }
                
                    else if(text.length() <= 10)
                    {
                        lines[0] = text;
                    }
                
                    LinkedList list = new LinkedList();
                    list.add(lines[0]);
                    list.add(lines[1]);
                    list.add(lines[2]);
                    list.add(lines[3]);
                
                    try
                            
                    {
                        MaplePacket mp = MaplePacketCreator.getAvatarMega(player, channel, itemID, list);
                        player.getClient().getChannelServer().getWorldInterface().broadcastMessage(null, mp.getBytes());
                        player.gainMeso(-cost, true);
                    }
                    catch(Exception e){
                    
                    }
                 }else{
                        mc.dropMessage("You Don't have enought mesos...");
                    
                }
i changed it to player mode~
each mega cost 5m..
usefull for the ppl lazy to buy mega^^
tried b4~
working

to change price
Code:
int cost = yourprice;
Thanks for the release ^^
 
I'm sexy and I know it :)
Joined
Oct 21, 2008
Messages
811
Reaction score
350
I get the same as the kid who said the command wasn't in game yet,,
it's like where should I add it if it aint correct...0.o
srry for this noobish question I just dont know why it doesnt work for me,,I use seanrepacl
 
Getting into Graphics
Joined
Jun 22, 2008
Messages
173
Reaction score
0
O snap....
Another bump....
Guys, please don't bump 5 month old threads. (Almost)
Read the Rules....

And to answer you....
COMPILE....
 
Newbie Spellweaver
Joined
Jan 7, 2007
Messages
29
Reaction score
0
PHP:
init:
deps-clean:
Deleting directory C:\Documents and Settings\Administrator\Desktop\SmexyStoryV3\odinms\build
clean:
init:
deps-jar:
Created dir: C:\Documents and Settings\Administrator\Desktop\SmexyStoryV3\odinms\build\classes
Compiling 351 source files to C:\Documents and Settings\Administrator\Desktop\SmexyStoryV3\odinms\build\classes
C:\Documents and Settings\Administrator\Desktop\SmexyStoryV3\WonderStoryv62\ThePack\src\net\sf\odinms\client\messages\GMCommand.java:1441: getAvatarMega(net.sf.odinms.client.MapleCharacter,int,int,java.util.List<java.lang.String>,boolean) in net.sf.odinms.tools.MaplePacketCreator cannot be applied to (net.sf.odinms.client.MapleCharacter,int,int,java.util.LinkedList)
                    MaplePacket mp = MaplePacketCreator.getAvatarMega(victim, channel, itemID, list);
Note: C:\Documents and Settings\Administrator\Desktop\SmexyStoryV3\WonderStoryv62\ThePack\src\net\sf\odinms\client\messages\GMCommand.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
BUILD FAILED (total time: 8 seconds)

Can someone help me fix this bug/error? Thanks at advance!
 
Junior Spellweaver
Joined
Jul 6, 2008
Messages
180
Reaction score
0
Nice ... this old is so damn old =/ Most repacks already have the commands inside already.
 
Back
Top