Jump to content
Sign in to follow this  
Keiron

Auto chat colors

Recommended Posts

Would be nice for a donator benefits or something, what you're adding;
Instead of doing cyan: talk here, you can just do ;;color 1 and you will always use that color.

Example:
[IMG]http://gyazo.com/ed1f5f598912065ef84eac95a1300f66.gif[/IMG]


List of colors;
[CODE]Red = 1
Green = 2
Cyan = 3
Purple = 4
White = 5
[/CODE]

player.java

[CODE] private int ColorID;

public void setColorID(int ColorID) {
this.ColorID = ColorID;
}

public int getColorID() {
return ColorID;
}[/CODE]

WorldsPacketDecoder.java
in
[CODE]else if (packetId == CHAT_PACKET) {[/CODE]

Add
[CODE] if (player.getColorID() > 0) {
colorEffect = player.getColorID();
}[/CODE]

A command to toggle it from 1-5

Commands.java

[CODE] case "color":
int colorID = Integer.parseInt(cmd[1]);
if (colorID > 5) {
player.getPackets().sendGameMessage("Invalid Color Id.");
return false;
}
player.setColorID(colorID);
return true;[/CODE]

Really easy to do, never seen anyone do it on 718 so I thought I would just quickly do it and release for the lols.

Share this post


Link to post
Share on other sites
Never would of thought of this.

Thanks for your contribution! :)

Share this post


Link to post
Share on other sites
never really thought about coloured chats lol, nice contribution

Share this post


Link to post
Share on other sites
Good job Keiron!

Share this post


Link to post
Share on other sites
Thank's guys, I'll think of more things and release.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×