Jump to content

Search the Community

Showing results for tags 'chat'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RuneLocus
    • News & Announcements
    • Information Booth
    • Website Support
    • Introductions
    • Chat
    • Forum Games
  • RuneScape Development
    • RSPS General
    • RuneScape Private Server (RS2)
    • RuneScape Private Server (503+)
    • RuneScape Private Server (EoC 742+)
  • Other
    • Digital Art
    • Gaming
    • Webdevelopment
    • Computers
  • Marketplace
    • RuneScape Market
    • RSPS Market
    • Others Market
    • Freelance Middleman Services
  • Super Secret Club's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 66 results

  1. So i really need help to fix the public chat when you type and enter it doesn't show the message in chat box someone please help me fix this, I've read all the posts on the public chat for 838 but i don't fully understand them, someone please without flaming and writing hate comments tell me how to fix this problem, im struggling with this. i really need this fix asap if anyone could help me please if anyone would know where i got the 838 ill post link below [URL="http://www.rune-server.org/runescape-development/rs-503-client-server/downloads/592814-matrix-838-legacy-rs3.html"]http://www.rune-server.org/runescape-development/rs-503-client-server/downloads/592814-matrix-838-legacy-rs3.html[/URL]
  2. I'm having the exact same issue as this member [url]http://www.runelocus.com/forums/showthread.php?100205-Public-Chat-not-visible[/url] [IMG]http://i.imgur.com/dk9RWDN.png[/IMG] I am using Eliminates v6. Thanks!!!! Will pay $3
  3. Alright. I've got my crowns setup to where they work in the yell, and in pm. But not regular chat? Anyone have any clue how... Source : Project-Rolex
  4. Gaabe

    Enso Chat Box

    Could someone please me help with enso chat box error this is how it looks [IMG]http://i.imgur.com/HchPFGV.png[/IMG] I need the right ID for the place Chatbox tab is sent. sendTab(73, 752); this is what I have atm, if anyone know the right ID please share with me! :( I've tried using from other sources but it seems different :(
  5. Whaleeee I need some help with clan/friends chat. I can't find the config Id's for the clan settings, or even get joining a clan to work. Here's the code for joining (packet 36, size 7) [CODE] } else if (packetId == JOIN_CLAN_CHAT_PACKET) { int hash = stream.readByte(); String name = ((char) hash) + stream.readString(); System.out.println(name); name = Player.getClan().roomName; // this is the part that throws the nullpointer [/CODE] Here's what I get when I try to join a clan: [CODE] java.lang.NullPointerException at com.rs.net.decoders.WorldPacketsDecoder.processPackets(WorldPacketsDecoder.java:366) at com.rs.net.decoders.WorldPacketsDecoder.decode(WorldPacketsDecoder.java:247) at com.rs.net.ServerChannelHandler.messageReceived(ServerChannelHandler.java:95) at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:100) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:545) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:540) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:349) at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:280) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:200) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:44) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) fdsaf ERROR! THREAD NAME: New I/O server worker #1-1 [/CODE] Here's my clan.java if you need it [SPOILER="Clan"] [CODE] package com.rs.game.player.content.clans; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import com.rs.game.player.Player; import com.rs.utils.Utils; /** * @author 'Mystic Flow */ public class Clan { public String roomName; private String roomOwner; private int joinReq = 0; private int talkReq = 0; private int kickReq = 7; private HashMap<String, Byte> ranks; private transient List<Player> members; private transient boolean lootsharing; public Clan(String owner, String name) { this.roomName = name; this.roomOwner = owner; setTransient(); } public void setTransient() { setLootsharing(false); if (kickReq == 0) { kickReq = 7; } if (members == null) { this.members = new ArrayList<Player>(); } if (ranks == null) { this.ranks = new HashMap<String, Byte>(); } } public String getName() { return roomName; } public String getOwner() { return roomOwner; } public void rankUser(String name, int rank) { if (!ranks.containsKey(name)) { ranks.put(name, (byte) rank); } else { ranks.remove(name); ranks.put(name, (byte) rank); } } public Byte getRank(Player player) { if (Utils.formatPlayerNameForProtocol(player.getUsername()).equals(roomOwner)) { return 7; } else if (player.getRights() == 2) { return 127; } else if (ranks.containsKey(player.getUsername())) { return ranks.get(player.getUsername()); } return -1; } public boolean canJoin(Player player) { byte rank = 0; if (ranks.containsKey(player.getUsername())) { rank = ranks.get(player.getUsername()); } return rank >= joinReq; } public boolean canTalk(Player player) { byte rank = 0; if (ranks.containsKey(player.getUsername())) { rank = ranks.get(player.getUsername()); } return rank >= talkReq; } public void toggleLootshare() { lootsharing = !lootsharing; String message = ""; if (lootsharing) { message = "Lootshare has been enabled."; } else { message = "Lootshare has been disabled."; } for (Player pl : members) { pl.getPackets().sendGameMessage(message); pl.getPackets().sendConfig(1083, lootsharing ? 1 : 0); } } public void addMember(Player member) { members.add(member); } public void setName(String name) { this.roomName = name; } public List<Player> getMembers() { return members; } public void removeMember(Player player) { members.remove(player); } public HashMap<String, Byte> getRanks() { return ranks; } public void setLootsharing(boolean lootsharing) { this.lootsharing = lootsharing; } public boolean isLootsharing() { return lootsharing; } public void setTalkReq(int talkReq) { this.talkReq = talkReq; } public int getTalkReq() { return talkReq; } public void setJoinReq(int joinReq) { this.joinReq = joinReq; } public int getJoinReq() { return joinReq; } public int getKickReq() { return kickReq; } } [/CODE] [/SPOILER] and settings I need the config Id's :/
  6. Does anyone know how I can add name glow for public chat to set apart donators/staff for regular players. For example, ::nameglow green would give the player name a green glow in the public chat instead of the plain black colour. Desired outcome: [ATTACH=CONFIG]10841[/ATTACH] Thanks.
  7. Hi:) problem is my crowns, They hide my name and are like really weird. Here i have a pic, if you can help me please <3 i would really appriciate it. [img]http://i.imgur.com/K6DC76i.jpg[/img] Thanks :))))
  8. Nerdix

    Clan chat Issue

    What is wrong when there is a player right that can't type anything in clan chat but everyone else can. Where should i start searching?
  9. so for dev purposes, i wanted to know how do you make it to where when i click on something in game it gives me the id of that item in the chat box so i do what i wish with the item id, so that when my players click on that item whatever action i wish to happen will happen... using asteria 2.0 if that matters (also i want this only to happen for admins+) thanks ahead of time lacero
  10. When im logging into my server it says IN THE CHAT BOX: [ATTACH=CONFIG]10663[/ATTACH] I dont know how to remove it or edit, so please help! Im using TrisidiaX source and client, if it is any help...
  11. Hi there, I managed to get my server online today, but when I speak to my friend ingame, although my message appears above my head and in the chat box, he can't see it?! When he tries to talk to me the same problem occurs. Where can I fix this?? I've tried to find the options in the src folder .java files but can't see a solution anywhere! Edit: I've looked in the client files and it looks like it's more likely to be in there but I'm still not sure where... Private chat works, and so does the yell command, but clan chat doesn't seem to function either. I'm guessing they're probably in the same place though!
  12. it keeps spamming my chatbox (only mine). Ive tried restarted the server but it didn't work. and ive also closed the client. nothing works. what can i do to make it stop. Rune-evo v3 source
  13. ok first of all the source is PI When a hidden staff member talks in normal chat or private chat there messages don't show how do i fix this? The chat will show above there head in normal chat but not in the chat box also how do i fix the icons next to a players name in private chat like me as the owner when i pm someone it shows the donator symbol
  14. Hey the donator img is not the correct one and I could not figure out how to change it
  15. Is there anyway of changing the public chat text color? Here is a picture of what it looks like. [ATTACH=CONFIG]9686[/ATTACH]
  16. 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.
  17. Kind of sad I am asking this but I don't know what the hell is going on here. [IMG]http://i.imgur.com/rxDeIzA.png[/IMG] As you see it's not updating the ranks. Even if I add someone shit doesn't happen. Yes, it is refreshing the chat. FriendChatsManager.java: [code]package org.serenity.game.player.content; import java.util.HashMap; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.CopyOnWriteArrayList; import org.serenity.Settings; import org.serenity.game.World; import org.serenity.game.minigames.clanwars.ClanWars; import org.serenity.game.player.FriendsIgnores; import org.serenity.game.player.Player; import org.serenity.game.player.QuickChatMessage; import org.serenity.io.OutputStream; import org.serenity.utils.SerializableFilesManager; import org.serenity.utils.Utils; public class FriendChatsManager { private String owner; private String ownerDisplayName; private FriendsIgnores settings; private CopyOnWriteArrayList<Player> players; private ConcurrentHashMap<String, Long> bannedPlayers; private byte[] dataBlock; private ClanWars clanWars; private static HashMap<String, FriendChatsManager> cachedFriendChats; public static void init() { cachedFriendChats = new HashMap<String, FriendChatsManager>(); } public int getRank(int rights, String username) { if (rights == 2) { return 127; } if (username.equals(owner)) { return 7; } return settings.getRank(username); } public CopyOnWriteArrayList<Player> getPlayers() { return players; } public int getWhoCanKickOnChat() { return settings.getWhoCanKickOnChat(); } public String getOwnerDisplayName() { return ownerDisplayName; } public String getOwnerName() { return owner; } public String getChannelName() { return settings.getChatName().replaceAll("<img=", ""); } private void joinChat(Player player) { synchronized (this) { if (!player.getUsername().equals(owner) && !settings.hasRankToJoin(player.getUsername()) && player.getRights() < 2) { player.getPackets().sendGameMessage("You do not have a enough rank to join this friends chat channel."); return; } if (players.size() >= 100) { player.getPackets().sendGameMessage("This chat is full."); return; } Long bannedSince = bannedPlayers.get(player.getUsername()); if (bannedSince != null) { if (bannedSince + 3600000 > Utils.currentTimeMillis()) { player.getPackets().sendGameMessage("You have been banned from this channel."); return; } bannedPlayers.remove(player.getUsername()); } joinChatNoCheck(player); } } public void leaveChat(Player player, boolean logout) { synchronized (this) { player.setCurrentFriendChat(null); players.remove(player); if (players.size() == 0) { synchronized (cachedFriendChats) { cachedFriendChats.remove(owner); } } else { refreshChannel(); } if (!logout) { player.setCurrentFriendChatOwner(null); player.getPackets().sendGameMessage("You have left the channel."); player.getPackets().sendFriendsChatChannel(); } if (clanWars != null) { clanWars.leave(player, false); } } } public Player getPlayerByDisplayName(String username) { String formatedUsername = Utils.formatPlayerNameForProtocol(username); for (Player player : players) { if (player.getUsername().equals(formatedUsername) || player.getDisplayName().equals(username)) { return player; } } return null; } public void kickPlayerFromChat(Player player, String username) { String name = ""; for (char character : username.toCharArray()) { name += Utils.containsInvalidCharacter(character) ? " " : character; } synchronized (this) { int rank = getRank(player.getRights(), player.getUsername()); if (rank < getWhoCanKickOnChat()) { return; } Player kicked = getPlayerByDisplayName(name); if (kicked == null) { player.getPackets().sendGameMessage("This player is not this channel."); return; } if (rank <= getRank(kicked.getRights(), kicked.getUsername())) { return; } kicked.setCurrentFriendChat(null); kicked.setCurrentFriendChatOwner(null); players.remove(kicked); bannedPlayers.put(kicked.getUsername(), Utils.currentTimeMillis()); kicked.getPackets().sendFriendsChatChannel(); kicked.getPackets().sendGameMessage("You have been kicked from the friends chat channel."); player.getPackets().sendGameMessage("You have kicked " + kicked.getUsername() + " from friends chat channel."); refreshChannel(); } } private void joinChatNoCheck(Player player) { synchronized (this) { players.add(player); player.setCurrentFriendChat(this); player.setCurrentFriendChatOwner(owner); player.getPackets().sendGameMessage("You are now talking in the friends chat channel " + settings.getChatName()); refreshChannel(); } } public void destroyChat() { synchronized (this) { for (Player player : players) { player.setCurrentFriendChat(null); player.setCurrentFriendChatOwner(null); player.getPackets().sendFriendsChatChannel(); player.getPackets().sendGameMessage("You have been removed from this channel!"); } } synchronized (cachedFriendChats) { cachedFriendChats.remove(owner); } } public void sendQuickMessage(Player player, QuickChatMessage message) { synchronized (this) { if (!player.getUsername().equals(owner) && !settings.canTalk(player) && player.getRights() < 2) { player.getPackets().sendGameMessage("You do not have a enough rank to talk on this friends chat channel."); return; } String formatedName = Utils.formatPlayerNameForDisplay(player.getUsername()); String displayName = player.getDisplayName(); int rights = player.getMessageIcon(); for (Player p2 : players) { p2.getPackets().receiveFriendChatQuickMessage(formatedName, displayName, rights, settings.getChatName(), message); } } } public void sendMessage(Player player, String message) { synchronized (this) { if (!player.getUsername().equals(owner) && !settings.canTalk(player) && player.getRights() < 2) { player.getPackets().sendGameMessage("You do not have a enough rank to talk on this friends chat channel."); return; } String formatedName = Utils.formatPlayerNameForDisplay(player.getUsername()); String displayName = player.getDisplayName(); int rights = player.getMessageIcon(); for (Player p2 : players) { p2.getPackets().receiveFriendChatMessage(formatedName, displayName, rights, settings.getChatName(), message); } } } public void sendDiceMessage(Player player, String message) { synchronized (this) { if (!player.getUsername().equals(owner) && !settings.canTalk(player) && player.getRights() < 2) { player.getPackets().sendGameMessage("You do not have a enough rank to talk on this friends chat channel."); return; } for (Player p2 : players) { p2.getPackets().sendGameMessage(message); } } } private void refreshChannel() { synchronized (this) { OutputStream stream = new OutputStream(); stream.writeString(ownerDisplayName); String ownerName = Utils.formatPlayerNameForDisplay(owner); stream.writeByte(getOwnerDisplayName().equals(ownerName) ? 0 : 1); if (!getOwnerDisplayName().equals(ownerName)) { stream.writeString(ownerName); } stream.writeLong(Utils.stringToLong(getChannelName())); int kickOffset = stream.getOffset(); stream.writeByte(0); stream.writeByte(getPlayers().size()); for (Player player : getPlayers()) { String displayName = player.getDisplayName(); String name = Utils.formatPlayerNameForDisplay(player.getUsername()); stream.writeString(displayName); stream.writeByte(displayName.equals(name) ? 0 : 1); if (!displayName.equals(name)) { stream.writeString(name); } stream.writeShort(1); int rank = getRank(player.getRights(), player.getUsername()); stream.writeByte(rank); stream.writeString(Settings.SERVER_NAME); } dataBlock = new byte[stream.getOffset()]; stream.setOffset(0); stream.getBytes(dataBlock, 0, dataBlock.length); for (Player player : players) { dataBlock[kickOffset] = (byte) (player.getUsername().equals(owner) ? 0 : getWhoCanKickOnChat()); player.getPackets().sendFriendsChatChannel(); } } } public byte[] getDataBlock() { return dataBlock; } private FriendChatsManager(Player player) { owner = player.getUsername(); ownerDisplayName = player.getDisplayName(); settings = player.getFriendsIgnores(); players = new CopyOnWriteArrayList<Player>(); bannedPlayers = new ConcurrentHashMap<String, Long>(); } public static void destroyChat(Player player) { synchronized (cachedFriendChats) { FriendChatsManager chat = cachedFriendChats.get(player.getUsername()); if (chat == null) { return; } chat.destroyChat(); player.getPackets().sendGameMessage("Your friends chat channel has now been disabled!"); } } public static void linkSettings(Player player) { synchronized (cachedFriendChats) { FriendChatsManager chat = cachedFriendChats.get(player.getUsername()); if (chat == null) { return; } chat.settings = player.getFriendsIgnores(); } } public static void refreshChat(Player player) { synchronized (cachedFriendChats) { FriendChatsManager chat = cachedFriendChats.get(player.getUsername()); if (chat == null) { return; } chat.refreshChannel(); } } public static void joinChat(String ownerName, Player player) { synchronized (cachedFriendChats) { if (player.getCurrentFriendChat() != null) { return; } player.getPackets().sendGameMessage("Attempting to join channel..."); String formatedName = Utils.formatPlayerNameForProtocol(ownerName); FriendChatsManager chat = cachedFriendChats.get(formatedName); if (chat == null) { Player owner = World.getPlayerByDisplayName(ownerName); if (owner == null) owner = World.getLobbyPlayerByDisplayName(ownerName); if (owner == null) { if (!SerializableFilesManager.containsPlayer(formatedName)) { player.getPackets().sendGameMessage("The channel you tried to join does not exist."); return; } owner = SerializableFilesManager.loadPlayer(formatedName); if (owner == null) { player.getPackets().sendGameMessage("The channel you tried to join does not exist."); return; } owner.setUsername(formatedName); } FriendsIgnores settings = owner.getFriendsIgnores(); if (!settings.hasFriendChat()) { player.getPackets().sendGameMessage("The channel you tried to join does not exist."); return; } if (!player.getUsername().equals(ownerName) && !settings.hasRankToJoin(player.getUsername()) && player.getRights() < 2) { player.getPackets().sendGameMessage("You do not have a enough rank to join this friends chat channel."); return; } chat = new FriendChatsManager(owner); cachedFriendChats.put(ownerName, chat); chat.joinChatNoCheck(player); } else { chat.joinChat(player); } } } /** * Gets the clanWars. * * @return The clanWars. */ public ClanWars getClanWars() { return clanWars; } /** * Sets the clanWars. * * @param clanWars * The clanWars to set. */ public void setClanWars(ClanWars clanWars) { this.clanWars = clanWars; } } [/code]
  18. Just been messing around with GUI more. [code] import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JOptionPane; import javax.swing.JTextArea; import javax.swing.JTextField; import javax.swing.UIManager; public class Application extends JFrame implements KeyListener, MouseListener, ActionListener { private static final long serialVersionUID = 7233635702464989012L; JTextField userInputText = new JTextField("Send a message", 100); JTextArea textArea = new JTextArea(); JButton sendMessageButton = new JButton("Send"); String username = ""; public static void main(String[] args) { new Application(); } private Application() { super("Skype"); this.setSize(300, 400); this.setResizable(false); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this.setLocationRelativeTo(null); this.add(userInputText); userInputText.setBounds(5, 340, 200, 25); userInputText.addKeyListener(this); userInputText.addMouseListener(this); this.add(sendMessageButton); this.sendMessageButton.setBounds(213, 339, 70, 25); this.sendMessageButton.addActionListener(this); this.add(textArea); this.textArea.setEditable(false); this.textArea.setSize(0, 0); try { UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"); String tempUsername = JOptionPane.showInputDialog(null, "What is your username?", "Skype", JOptionPane.QUESTION_MESSAGE); username = tempUsername; if (tempUsername == null) { System.exit(0); } } catch (Exception e) { e.printStackTrace(); } this.setVisible(true); } [MENTION=15855]Over[/MENTION]ride public void mouseReleased(MouseEvent event) { userInputText.setText(""); } [MENTION=15855]Over[/MENTION]ride public void keyReleased(KeyEvent event) { if (event.getKeyCode() == KeyEvent.VK_ENTER) { String parseText = userInputText.getText(); textArea.setLineWrap(true); textArea.append(username + ": " + parseText + "\n"); userInputText.setText(""); this.textArea.setSize(0, 0); } } [MENTION=15855]Over[/MENTION]ride public void actionPerformed(ActionEvent event) { String parseText = userInputText.getText(); textArea.setLineWrap(true); textArea.append(username + ": " + parseText + "\n"); userInputText.setText(""); this.textArea.setSize(0, 0); } [MENTION=15855]Over[/MENTION]ride public void keyPressed(KeyEvent event) { // TODO Auto-generated method stub } [MENTION=15855]Over[/MENTION]ride public void keyTyped(KeyEvent event) { // TODO Auto-generated method stub } [MENTION=15855]Over[/MENTION]ride public void mouseClicked(MouseEvent arg0) { // TODO Auto-generated method stub } [MENTION=15855]Over[/MENTION]ride public void mouseEntered(MouseEvent arg0) { // TODO Auto-generated method stub } [MENTION=15855]Over[/MENTION]ride public void mouseExited(MouseEvent arg0) { // TODO Auto-generated method stub } [MENTION=15855]Over[/MENTION]ride public void mousePressed(MouseEvent arg0) { // TODO Auto-generated method stub } } [/code] [IMG]http://i.imgur.com/i8PGyRy.png[/IMG] [IMG]http://i.imgur.com/d0vQi3l.png[/IMG] [MENTION=444]Stacx[/MENTION] This isn't a joke, tell me everything that needs to be improved.
  19. Gripper

    You up for a chat?

    [CENTER]When you see; [IMG]http://www.runelocus.com/forums/images/tinychat.gif[/IMG] you should know what to do... Visit [url]http://www.runelocus.com/tinychat.html[/url] for the tinychat as its active right now!!![/CENTER]
  20. [SIZE=6][CENTER][FONT=Impact]LOGGING CHAT FROM USERS[/FONT][/CENTER][/SIZE] Iv seen a few tutorials for this but people scatter around their codes, but really- this only takes 1 string of code. What this is used for is, whenever a player says ANYTHING in your server, it create a .TXT document for everything they ever say from now on in 1 file. A different file will be created for any member who says anything. In the WorldChat, there will only be 1 file that will contain every chat message anyone ever said on the server in order from time. This could be extremely useful to crack down your"Report Abuse" button and track scams, offensive language, and account scamming. [CENTER]1.)First things first, open your WorldPacketsDecoder.Java. 2.Search this in your WorldPacketsDecoder.java:[/CENTER] [CODE]Logger.log(this, "[Chat type " + chatType+"] "+player.getDisplayName()+": "+message+"");[/CODE] [CENTER]And paste this directly below it:[/CENTER] [CODE] try { DateFormat dateFormat = new SimpleDateFormat("MM/dd/yy HH:mm:ss"); Calendar cal = Calendar.getInstance(); System.out.println(dateFormat.format(cal.getTime())); final String CHAT_PATH = "data/logs/chatlogs/"; BufferedWriter writer = new BufferedWriter(new FileWriter(CHAT_PATH + player.getDisplayName() + ".txt", true)); writer.write("[Chat type " + chatType+"] "+player.getDisplayName()+": "+message+""); writer.newLine(); writer.flush(); writer.close(); } catch (IOException ioe) { } try { BufferedWriter bf = new BufferedWriter(new FileWriter( "data/logs/chatlogs/WorldChat/WorldChat.txt", true)); bf.write("[Username = " +player.getDisplayName()+ "] " +message); bf.newLine(); bf.flush(); bf.close(); } catch (IOException ignored) { }[/CODE] [CENTER]3.)Now once you have this code inside your WorldPacketsDecoder.java, go into your "com>data" folder and create a new folder called: "logs" 4.)Now create another folder called "chatlogs" inside the folder you have just created. 5.)In the "chatlogs" folder create another folder called "WorldChat" 6.)Inside the "WorldChat", Create a .TXT file named "WorldChat.txt". 7.)So the file tree should look somthing like this: [QUOTE]data>logs>chatlogs>WorldChat[/QUOTE] Your now done! If you guys get any errors, please comment it, and i will make sure to edit my post :)![/CENTER]
  21. Hey guys does anyone have the code or know how to make it where when you get a rare drop example torva platebody how to make it where everyone sees you received that drop. Also same with promotion like congratulation (username) was promoted to moderator or something along those lines. I have all the basic coding down i just need some help with this. Thanks to anyone who can help!
  22. Just pking and stuff you can see it at ustream here: [url=http://www.ustream.tv/channel/mn-pool-at-shooters]PKing marathon on soulsplit!. MMO - [COLOR="#00FF00"]IF YOU SEE THIS LINK, THE STREAM WILL BE HOSTED AT USTREAM!Click Here![/COLOR][/url] I do check this thread, and I will bump it as soon as I stream again. I have one more day of work today(August 18) then I am free to stream longer :) [B][COLOR="#FF0000"]Loot Total on date:[/COLOR][/B] [COLOR="#FF0000"]August 17th 122,090,000[/COLOR] [COLOR="#FF0000"]August 18th 66,221,400[/COLOR] [COLOR="#00FF00"]Next session:[/COLOR] [COLOR="#FF0000"]Starting Now[/COLOR] Here is the current time in my state in military time: [url]http://www.time.gov/timezone.cgi?Central/d/-6[/url] [COLOR="#FF0000"][SIZE=7]STREAMING LIVE NOW[/SIZE][/COLOR] [B][COLOR="#00FF00"]Due to the Twitch Staff being nosy, I now have to move my stream. The link above will still take you to the correct stream. :D Sorry about that![/COLOR][/B]
  23. Hey guys, I am in need of help with making new players join a specific Friends chat. I know it is in FriendsChatsManager.java but I have no idea where it would be in that file. I have taken almost everything off of Citellum 719 source and am starting from "Scratch". I still have most of the things that would be time consuming. Thanks guys, ~Poliwrath
×