-
[Release] Avatar Smega Command (Let's you make other people smega!)
Hey, this is a GM command that smega's a message using an avatar smega! What's more, you choose who says the smega! Any player on the server can say it as long as they are on the same channel as you.
The syntax is !sex [name] [type] [message]
For type, you put "diablo" "love" or "cloud."
You'll have to add this at the top of CommandProcessor.java:
Code:
import java.lang.String;
And here's the code for the command:
Code:
else if (splitted[0].equals("!sex"))
{
if (splitted.length == 1)
{
mc.dropMessage("Usage: !amega [name] [type] [message], where [type] is love, cloud, or diablo.");
}
MapleCharacter victim = cserv.getPlayerStorage().getCharacterByName(splitted[1]);
String type = splitted[2];
int channel = victim.getClient().getChannel();
String text = StringUtil.joinStringFrom(splitted, 3);
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(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(victim, channel, itemID, list);
victim.getClient().getChannelServer().getWorldInterface().broadcastMessage(null, mp.getBytes());
}
catch(Exception e)
{}
}
-
Re: [Release] Avatar Smega Command (Let's you make other people smega!)
-
Re: [Release] Avatar Smega Command (Let's you make other people smega!)
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?
-
Re: [Release] Avatar Smega Command (Let's you make other people smega!)
That's probably just Netbeans being gay!
-
Re: [Release] Avatar Smega Command (Let's you make other people smega!)
I remember Sathon, he made the gm handbook for us back at odin..
-
Re: [Release] Avatar Smega Command (Let's you make other people smega!)
That's a painfully hilarious command.
-
Re: [Release] Avatar Smega Command (Let's you make other people smega!)
hmmmmmm nice command name "!sex"
its a fun command to make ppl mad lol
-
Re: [Release] Avatar Smega Command (Let's you make other people smega!)
Quote:
Originally Posted by
scttyb69
I remember Sathon, he made the gm handbook for us back at odin..
And it's since been stolen and plagiarised many, many times.
-
Re: [Release] Avatar Smega Command (Let's you make other people smega!)
ty so much for your releases sathon your a PRo UBER PRO godly person
-
Re: [Release] Avatar Smega Command (Let's you make other people smega!)
hey sathon i know this is unrelated and all but pets are not coded correct? i do see see a Maplepet.java just wondering :S like if i can even make it so it appears in game im satisfied , and :S how do you enable pins? xDDDD thanks ^^
-
Re: [Release] Avatar Smega Command (Let's you make other people smega!)
-
Re: [Release] Avatar Smega Command (Let's you make other people smega!)
Quote:
Originally Posted by
boxer1480
hey sathon i know this is unrelated and all but pets are not coded correct? i do see see a Maplepet.java just wondering :S like if i can even make it so it appears in game im satisfied , and :S how do you enable pins? xDDDD thanks ^^
Currently, there is no way for you to make pets work. I know some people have been capturing packets and writing code, but I don't believe they have released anything yet.
-
Re: [Release] Avatar Smega Command (Let's you make other people smega!)
Thanks for the release :D
-
Re: [Release] Avatar Smega Command (Let's you make other people smega!)
-
Re: [Release] Avatar Smega Command (Let's you make other people smega!)
-
Re: [Release] Avatar Smega Command (Let's you make other people smega!)
Could anyone put it in a txt file.. And upload it ?
-
Re: [Release] Avatar Smega Command (Let's you make other people smega!)
-
Re: [Release] Avatar Smega Command (Let's you make other people smega!)
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?
-
Re: [Release] Avatar Smega Command (Let's you make other people smega!)
This would be funny when framing somebody that flirting with somebody.. Or afk....
-
Re: [Release] Avatar Smega Command (Let's you make other people smega!)
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.
-
Re: [Release] Avatar Smega Command (Let's you make other people smega!)
Quote:
Originally Posted by
alex_soh
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.
-
Re: [Release] Avatar Smega Command (Let's you make other people smega!)
Quote:
Originally Posted by
Moofhead
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.
-
Re: [Release] Avatar Smega Command (Let's you make other people smega!)
Quote:
Originally Posted by
Sathon
Make sure you put it in the right place and make sure you compiled and copied the new source over properly.
Where is the right place? :O
-
Re: [Release] Avatar Smega Command (Let's you make other people smega!)
Quote:
Originally Posted by
Moofhead
Where is the right place? :O
Where the other commands are?
-
Re: [Release] Avatar Smega Command (Let's you make other people smega!)
Also put the odinms.jar in the java files.