Jump to content

Search the Community

Showing results for tags 'message'.



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 51 results

  1. Made this and posted it at Rune-Server. This took me about 5 minutes to write. Its nothing fancy and it's simple as the title says, it works and could be useful. Its not much of a system...but we'll consider it as one Colors: [COLOR=#ff0000]RED [/COLOR][COLOR=#0000ff]BLUE [/COLOR][COLOR=#ffd700]YELLOW [/COLOR][COLOR=#ffa500]ORANGE [/COLOR][COLOR=#800080]PURPLE [/COLOR][COLOR=#ffffff]WHITE [/COLOR][COLOR=#000000]BLACK[/COLOR] [B]NEW CODE: [/B] Slight adjustments, such as crowns and a better way of using colors. Message.java [CODE] /** * [MENTION=117450]Des[/MENTION]cription Uses the stream to send new messages using color and/or crown icons * [MENTION=11342]Tit[/MENTION]le Message.java * @author iExample, Devo and GTFO * [MENTION=3812]Link[/MENTION] [url]http://www.rune-server.org/[/url] */ public class Message { /** * Sends message with crowns or color. * [MENTION=75098]Para[/MENTION]m c * [MENTION=75098]Para[/MENTION]m color * [MENTION=75098]Para[/MENTION]m message * [MENTION=75098]Para[/MENTION]m rankIcons * [MENTION=75098]Para[/MENTION]m crownNumber * [MENTION=184045]return[/MENTION] */ public static boolean out(Client c, String color, String message, int crownNumber, boolean rankIcons) { if (c.getOutStream() != null) { c.outStream.createFrameVarSize(253); if(rankIcons == true) { c.outStream.writeString("<img="+getCrown(crownNumber)+"><col="+getColor(color)+">"+message+"</col>"); } else { c.outStream.writeString("<col="+getColor(color)+">"+message+"</col>"); } c.outStream.endFrameVarSize(); } return false; } /** * Crowns. * [MENTION=75098]Para[/MENTION]m crownNumber * [MENTION=184045]return[/MENTION] */ public static MessageCrowns getCrown(int crownNumber) { return getCrown(crownNumber); } /** * Colors. * [MENTION=75098]Para[/MENTION]m color * [MENTION=184045]return[/MENTION] */ public static MessageColor getColor(String color) { return getColor(color); } } [/CODE] MessageColor.java [CODE] package server.world.messages; public enum MessageColor { RED("FF0000"), GREEN("00FF00"), YELLOW("FFFF00"), BLUE("0000FF"), ORANGE("FF7F00"), PURPLE("800080"), WHITE("FFFFFF"), BLACK("0"), CYAN("65535"), LIME("65280"), GREY("808080"); private String hex; private MessageColor(String color) { this.hex = color; } public String getColor() { return this.hex; } } [/CODE] MessageCrowns.java: [CODE] package server.world.messages; public enum MessageCrowns { /** * You might have to update the int(s) to the correct crown id. */ OWNER(1), MODERATOR(2), DONATOR(3); private int iconName; private MessageCrowns(int icon) { this.iconName = icon; } public int getRanking() { return this.iconName; } } [/CODE] Use(The boolean represents the use of crowns and the int represents the crown id): [CODE] Message.out(c, "RED", "Your message goes here", 1, true); [/CODE] [B]OLD LAME CODE:[/B] [CODE] import server.model.players.Client; public class Message { public final static String RED = "ff0000", GREEN = "00ff00", YELLOW = "ffff00", BLUE = "0000ff", ORANGE = "ff7f00", PURPLE = "800080", WHITE = "ffffff", GREY = "808080", BLACK = "000000"; public static boolean out(Client player, String color, String message) { if (player.getOutStream() != null) { player.outStream.createFrameVarSize(253); player.outStream.writeString("<col="+color+">"+message+"</col>"); player.outStream.endFrameVarSize(); } return false; } } [/CODE] Use: [CODE] Message.out(c, Message.RED, "Your message goes here"); [/CODE][COLOR=#000000] [/COLOR]
  2. Dear RuneLocus users, i've recently got into developing again after taking a one and a half year break of it. The reason why I quit developing was because it basicley started to take over my life, I was sitting to much on my laptop and desktop trying to make my server so much enjoyable before releasing it. Then sudenly my laptop crashed and lost al my work, I got mad and also quitted because of this. Anyways, i'm starting to get into it again and there is this " Code " that I will always remember since alot of friend have of asked me for this that are newcomers to Runescape Private Servers. They wanted to basicley notify their players when a staff member has logged in. So this Tutorial will be about how to implent an staff message when one of your staff members has logged in. Go into your Source > Client.Java And search for : [code] if (addStarter) getPA().addStarter();[/code] Then under this line you are going to implent the following : [code]if(playerRights == 3) { for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendMessage("<shad=16776960>Owner " +playerName+ " has just logged in.</shad>"); } } } if(playerRights == 2) { for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendMessage("<shad=255>Administrator " +playerName+ " has just logged in.</shad>"); } } } if(playerRights == 1) { for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendMessage("<shad=65289>Moderator " +playerName+ " has just logged in.</shad>"); } } }[/code] You can edit the display message to anything that you like, also in this tutorial i've used the < shad > < /shad > because my server didn't allow the " @color [email protected] " so I had to switch everything to shad color codes. [B][COLOR="#FF0000"]NOTE[/COLOR][/B]: I know that this is an easy guide for those who have been developing for quiet some time, but this might be helpfull for those who just started and wanted to implent this into their server. Also, I do not know if there has been a tutorial created for this already, if there has been then I apologize for this since I did not ment to " copy " someones work. Hope this maybe has helped you out in your future server if you're planning on creating one. Kind Regards, Amelia.
  3. Hello guys. On my server double XP is activated as it is weekend, but there are no messages saying that double xp is activated. I know that double XP is activated because the lamps gave me x2 xp this is the code on the player.java [QUOTE]if (TimeManager.isWeekend() || Settings.MANUAL_DXP) getPackets().sendGameMessage("<img=7><col=ff8c38>D ouble EXP is now live for ALL players all weekend! ");[/QUOTE] and on TimeManager.java [QUOTE]package com.foxtrot.game.player.content.custom; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import com.foxtrot.utils.Utils; public class TimeManager { private static Calendar cal = Calendar.getInstance(); final static int SUNDAY = 1; final static int MONDAY = 2; final static int TUESDAY = 3; final static int WEDNESDAY = 4; final static int THURSDAY = 5; final static int FRIDAY = 6; final static int SATURDAY = 7; public static String getTime() { SimpleDateFormat format = new SimpleDateFormat("h:mm a zzz"); return format.format(new Date()); } public static boolean isEaster() { cal.setTimeInMillis(Utils.currentTimeMillis()); return cal.get(Calendar.MONTH) == Calendar.APRIL && getCurrentDay() == 20; } public static int getCurrentMonth() { cal.setTimeInMillis(Utils.currentTimeMillis()); return cal.get(Calendar.MONTH); } public static int getCurrentDay() { cal.setTimeInMillis(Utils.currentTimeMillis()); return cal.get(Calendar.DAY_OF_MONTH); } public static int dayOfWeek() { cal.setTimeInMillis(Utils.currentTimeMillis()); return cal.get(Calendar.DAY_OF_WEEK); } public static boolean isMidWeek() { return dayOfWeek() == WEDNESDAY; } public static boolean isWeekend() { return dayOfWeek() == SUNDAY ? true: dayOfWeek() == FRIDAY ? true: dayOfWeek() == SATURDAY ? true: false; } }[/QUOTE] Please help me with this, I want it like it is a message when you log in, on the weekends.
  4. 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...
  5. i want that my server announces when someone reaches level 99 in skill, but i cant find anywhere how to do it.
  6. can any one tell me how to add server message when someone achieves level 99 in a skill? i seen a few tutorials but they are all missing the imports and stuff.. pls help
  7. I've known about this bug for a bit now but haven't really had the time to report it. When you go to a users profile and click on the visitor messages tab, it shows page one fine, but when you try to go to the next page of the VM tab, it redirects you to the user's default profile page, assuming it went to the second page. Not sure if it's a big bug or a simple fix, but you can try it on anyone. [url]http://www.runelocus.com/forums/member.php?217-Dean[/url]
  8. when changing the welcome message server sided it doesnt change at all when i join the game in my client. i compiled everything. but nothing seems to work for me?
  9. Honestly, I don't even know if this was released because I've only been coding for 2weeks now. I go to Runelocus,Moparscape,and Rune-Server to look up codes and add it to my server. I haven't seen this for a private servers in any of previous games I've played nor seen anyone with a command like this for it.But I'll just put it anyways. It's useful in a sort of way for an RSPS :). So i was grabbing codes and learning more about how a code works and this is what I came up with.I've been getting errors and I just work my way around how to fix it,etc. What the code does is.When any staff members type ::jail (username) it automatically sends a message to the whole server saying (moderator blahblahblah) has jailed that (the player name being jailed) (player name blahblahblah) has been jailed for breaking the rules. Use ::mock to go see the jailed player/players Then of cource for the player getting jailed itll say "you have been jailed by (staff member name)" And for the staff member jailing the person they get a message saying "You have jailed "playername" The dung one,prevents your staff members to jail/unjail players if your staff member is in Dungeoneering.Same goes for Wilderness.They can't jail/unjail players. :) It's a simple command,i get it(i know majority will say this).But it's useful for other,you know :)? So that way they don't have to go to their chatlogs and see if the staff member really jailed the player for no reason.Instead just see the post in forums or have other staff members say that the player abused the command,etc. And will just get automatically demoted or something :) [CODE] if(playerCommand.startsWith("jail")) { if(c.InDung()) { c.sendMessage("<shad=15695415>DO NOT ABUSE</col>, You can not jail when inside Dungeoneering"); return; } if(c.inWild()) { c.sendMessage("<shad=16745472>[Server]</col><shad=65288> get out of the wild to jail-unjail!"); return; } try { String playerToBan = playerCommand.substring(5); for(int i = 0; i < Config.MAX_PLAYERS; i++) { if(Server.playerHandler.players[i] != null) { if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToBan)) { Client c2 = (Client)Server.playerHandler.players[i]; if(c2.InDung()) { c.sendMessage("You cannot Jail/Unjail somone in Dung."); } int randomjail = Misc.random(3); if (randomjail == 1) { c2.getPA().startTeleport(3228, 3407, 0, "modern"); } if (randomjail == 2) { c2.getPA().startTeleport(3230, 3407, 0, "modern"); } if (randomjail == 3) { c2.getPA().startTeleport(3226, 3407, 0, "modern"); } if (randomjail == 0) { c2.getPA().startTeleport(3228, 3407, 0, "modern"); } c2.Jail = true; c2.sendMessage("You have been jailed by "+c.playerName+""); c.sendMessage("You have Jailed "+c2.playerName+"."); PlayerHandler.sendAll("<shad=16745472>"+c.playerName+"</col> has jailed "+c2.playerName+""); PlayerHandler.sendAll("<shad=15007744>"+c2.playerName+" HAS BEEN JAILED FOR BREAKING RULES!</col>"); PlayerHandler.sendAll("Use ::mock to go see the JAILED PLAYER/PLAYERS!"); } } } } catch(Exception e) { c.sendMessage("Player Must Be Offline."); } } [/CODE] If it's released recently or a few months back,then sorry.Otherwise enjoy the code.Just thought it would be useful for other servers. :D Even though I'm still making my own :P [URL=http://imageshack.us/photo/my-images/543/090g.png/][IMG]http://img543.imageshack.us/img543/9406/090g.png[/img][/URL] Uploaded with [URL=http://imageshack.us]ImageShack.us[/URL] [URL=http://imageshack.us/photo/my-images/801/22qm.png/][IMG]http://img801.imageshack.us/img801/774/22qm.png[/img][/URL] Uploaded with [URL=http://imageshack.us]ImageShack.us[/URL]
  10. hey guys, please check out my new edit then message me on runelocus and I will do you a edit or an intro for free! [url]http://www.youtube.com/watch?v=yVwNEDdPUck[/url] please like comment and subscribe :)
  11. I keep getting this error [IMG]http://i42.tinypic.com/334t26q.png[/IMG] What does it mean and how can I fix it>?
  12. Okay so i changed my welcome message then keep trying to compile and i keep getting error saying "client.java:11410:error: not a statement welcomeMessage<>; Galaxy; Welcomes You; 1 error Press any kkey to continue. . ." Idfk what it means Please someone help soon... If you want you can be an admin on server or co -owner if you make it lol but yeah i really need help making this sever its a 317 and i have tv
  13. Hi, I'm fairly new to coding but I know that welcome messages can be place in client.java. But I don't see the message there, so perhaps it's in a different spot. Does anybody know where it may be? Any help is appreciated, thank you.
  14. Running the starter pack I originally got a error message saying "Javac" And the client would start but I couldn't connect to the server. I tried to change my enviorment controls and it didn't do anything except change the error message to "Java" and now the server wont even start. I have the most recent Jdk (1.7.0_10) Any help here? Skype is Dementia.hd, just message me if you know a fix. I'm new to coding and would like to progress.. but yea..
  15. When I run the client for my RSPS, I get this long error message: [CODE]Unable to open SCSI controller 0:[\] , error code: 0x5 Unable to open SCSI controller 1:[\] , error code: 0x2 Error: jn.a() fb.d() lk.a() client.er() | Class225.method2094:57 Class125.method 1401:283 Class275.method2573:59 client.method2806:3711 client.method2773:641 Cla ss291.method2764:641 Class291.method2759:457 Class291.run:384 java.lang.Thread.r un | java.lang.RuntimeException | null 0,0,0,0 0,0,0, 2 0 2 765,503 0 0 0 0 0 0 248 12 -1 hAJWGrsaETglRjuwxMwnlA/d5W6EgYWx java.io.FileNotFoundException: http://127.0.0.1/clienterror.ws?c=718&cs=1&u=0&v1 =Oracle+Corporation&v2=1.7.0_07&e=jn.a%28%29+fb.d%28%29+lk.a%28%29+client.er%28% 29+%7C+Class225.method2094%3A57+Class125.method1401%3A283+Class275.method2573%3A 59+client.method2806%3A3711+client.method2773%3A641+Class291.method2764%3A641+Cl ass291.method2759%3A457+Class291.run%3A384+java.lang.Thread.run+%7C+java.lang.Ru ntimeException+%7C+null++0%2C0%2C0%2C0+0%2C0%2C0%2C+2+0+2+765%2C503+0+0+0+0+0+0+ 248+12+-1+hAJWGrsaETglRjuwxMwnlA%2Fd5W6EgYWx at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So urce) at java.net.URL.openStream(Unknown Source) at IPAddress.method6062(IPAddress.java:171) at client.method2773(client.java:645) at Class291.method2764(Class291.java:641) at Class291.method2759(Class291.java:457) at Class291.run(Class291.java:384) at java.lang.Thread.run(Unknown Source) Error: nk.a() wr.fe() pk.fk() pj.fw() client.ae() mc.m() mc.e() | Class322.metho d3931:46 Class365_Sub1_Sub5_Sub2.method4533:488 Class371.method4584:201 Class370 .method4578:92 client.method2773:650 Class291.method2764:641 Class291.method2759 :457 Class291.run:384 java.lang.Thread.run | java.lang.NullPointerException | 0 ,0,0,0 0,0,0, 2 0 2 765,503 0 0 0 0 0 0 248 12 -1 hAJWGrsaETglRjuwxMwnlA/d5W6EgY Wx java.io.FileNotFoundException: http://127.0.0.1/clienterror.ws?c=718&cs=1&u=0&v1 =Oracle+Corporation&v2=1.7.0_07&e=nk.a%28%29+wr.fe%28%29+pk.fk%28%29+pj.fw%28%29 +client.ae%28%29+mc.m%28%29+mc.e%28%29+%7C+Class322.method3931%3A46+Class365_Sub 1_Sub5_Sub2.method4533%3A488+Class371.method4584%3A201+Class370.method4578%3A92+ client.method2773%3A650+Class291.method2764%3A641+Class291.method2759%3A457+Clas s291.run%3A384+java.lang.Thread.run+%7C+java.lang.NullPointerException+%7C++0%2C 0%2C0%2C0+0%2C0%2C0%2C+2+0+2+765%2C503+0+0+0+0+0+0+248+12+-1+hAJWGrsaETglRjuwxMw nlA%2Fd5W6EgYWx at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So urce) at java.net.URL.openStream(Unknown Source) at IPAddress.method6062(IPAddress.java:171) at Class291.run(Class291.java:388) at java.lang.Thread.run(Unknown Source) error_game_crash [/CODE] If anyone knows the fix for this, could you please help?
  16. [CENTER][SIZE=2]Welcome Runelocus! I Downloaded a Source from the Runelocus download section, tried to run it and it comes up with this error... I will upload a picture below. I have the newest Java download it Yesterday (Java 7 Update 9) [ATTACH=CONFIG]6714[/ATTACH] Picture Uploaded below or above Reward on my server if you can help me fix this error[/SIZE][/CENTER]
  17. Need help changing login message ex: [url]http://gyazo.com/ab1ba1030dfbb79914fc7dbc4b346f00[/url] Already changed welcome to zenith in player.java skype: rscookiezown
  18. Logging in after 24 hours (when you get your spins back) [QUOTE]player.out("You have received your daily spins for the Squeal of Fortune");[/QUOTE] When you claim a prize that happens to be money [QUOTE]player.out("Your reward has been added to your money pouch.");[/QUOTE] When you claim a prize that is a lamp [QUOTE]player.out("Your prize has been placed in your inventory.");[/QUOTE] When you claim any other prize [QUOTE]player.out("Your prize has been placed in your bank.");[/QUOTE] When you close the "Yelps!" interface [QUOTE]player.out("You can access the Squeal of Fortune from the side pannel, and you can show the"); player.out("button again by logging out and back in.");[/QUOTE] Have fun :)
  19. Well i've trying to remove this gay problem , every time i clik to a object it say's the id and coords of it. ex: objectId 1519 objectX:2891 object 3510 Can any help me? Thanks cya ^^
  20. Hello. I have 317 PI, Mostly Based on InsidiaX and I'd like to know how to remove that: ''objectid: **** objectX: **** objectY: ****'' always appearing when I click object, It's really annoying and only causes spam in Message Box. Please Help soon as possible. Image about what I mean. [IMG]http://i49.tinypic.com/2rf7inq.png[/IMG] Thanks.
  21. Pyroz HD

    667 Trade Message

    Hey guys, I am trying to add a simple message that opens up in green when you open the trade screen. What I mean by this, when players trade, it is really buggy and items are lost if they are not careful. So I would like to make a message pop up in the chatbox preventing players from losing items. My question to you guys is, well how do I do this? Where would I place the code, and what would it look like? Thanks in advance (:
  22. Can it be increased to perhaps 100? Not just exclusively donating / VIP members but to the global community? not to like 10k or anything drastic like that, but just so I don't need to empty it as frequently.
×