[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!)