[Release]Vote features (no spamming @@) UPDATED!

Joined
Sep 28, 2008
Messages
599
Reaction score
291
I got the idea from "ChickenMS"(it has the @vote command) << So credits to bassoe for giving me idea..zz

First go to src/net/sf/odinms/net/channel/handler/GeneralchatHandler.java
Search for something like this
Code:
if (!CommandProcessor.getInstance().processCommand(c, text)) {
AND
add
Code:
MapleCharacter player = c.getPlayer();
        String lctext = text.toLowerCase();
        if (StringUtil.countCharacters(text, '@') > 3) {
            text = "All Vote for ServerName @ http:// ";
            if (player.spawned) {
                player.removeOne(c);
            }
        }
above it

DONE! thats all

Another method command (base by iPlayhard) << just modified it. (chickenMS has this)
Code:
  } else if (splitted[0].equals("@vote")) {
    c.getPlayer().getMap().broadcastMessage(MaplePacketCreator.getChatText(c.getPlayer().getId(), "All vote for the server at http:// or visit the forum!", false, 1));
	mc.dropMessage("This command dosent brings you to the vote page. Please go to http://  to vote...");

NO Flaming..:drool:
 
Last edited:
Re: [Release]Vote features (no spamming @@)

Code:
}else if (splitted[0].equals("@vote")) }
mc.dropMessage("www.voteforMike.com.");

Hahaha that way it will only show it to yourself only. Nice try though. You could just use this
Code:
        } else if (splitted[0].equals("!vote")) {
                c.getPlayer().getMap().broadcastMessage(MaplePacketCreator.getChatText(c.getPlayer().getId(), "Vote for the server at http://www.xtremetop100.com/in.php?site=1132264745 or visit the forum! This server rocks!", false, 1));
 
Re: [Release]Vote features (no spamming @@)

you can do like , when some one uses this command:
@vote , it will first :
- open in web browser , the vote link
- send a message to every one that he's voting
- give him some money :P

might be awesome , only i doubt that it is even possible
 
Back