[Release] !call

Newbie Spellweaver
Joined
Apr 13, 2008
Messages
91
Reaction score
1
I really don't see the need in private servers anymore; they are dead, or in the corner licking their wounds. This is probably going to be my LAST release. I might release my neon.systems cms later this year, or something.


This isn't tested, so bear with me.
Code:
} else if (splitted[0].equals("!call")) {

                 for (ChannelServer cservs : ChannelServer.getAllInstances()) {

                     for (MapleCharacter players : cservs.getPlayerStorage().getAllCharacters()) {

                         if (players.isGM() && players.getGmChatEnabled()) {

                             players.getClient().getSession().write(MaplePacketCreator.serverNotice(2, player.getName() + " : We Need your help at the event! Warp to me!"));

                         }

                     }

                 }

What this basically will do is when a GM uses !call or any thing you make it to be, it will broadcast a message to the online GMs' saying: I need your help, yada, yada, yada. This was supposed to be with my !event command, but i stopped working on it.

Have a nice life, Private servers; and best regards...
-Matty
 
this is ind of like !gmschat or w/e the command is called :P

Any good release :]
 
I upgraded it a bit tell me what you guys think :
Code:
else if (splitted[0].equals("!call")) {
if(splitted[1]==null){
mc.dropMessage("Please use the sentence in thef ollowing way : !call <name of GM> <massage to other GM> , if <name of GM> is empthy it will be sent to all GMs");
}else{
for (ChannelServer cservs : ChannelServer.getAllInstances()) {
for (MapleCharacter players : cservs.getPlayerStorage().getAllCharacters()) {
if (players.isGM()&&player.getName().equals(splitted[1])&&splitted[2]!=null) {
players.getClient().getSession().write(MaplePacketCreator.serverNotice(2, player.getName() + " "+ StringUtil.joinStringFrom(splitted, 2)));
}else if(player.isGM()&&splitted[2]==null){
players.getClient().getSession().write(MaplePacketCreator.serverNotice(2, player.getName() + " "+ StringUtil.joinStringFrom(splitted, 1)));
}}}}
}
now it enables you to write what you want to GM and the option to send to specified GM or all of them
BTW nice release very usable

Edit : fixed it before it only showed the first word you wanted now it shows whole sentence
 
Last edited:
Back