Jump to content

Search the Community

Showing results for tags 'announcement'.



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

  1. [B]I seen this a lot on Servers and I Decided it would be pretty cool if this was added onto my server aswelll[/B] [IMG]http://i48.tinypic.com/enarn.png[/IMG] If anyone can help me code that in, When a New user signs up and it announces to the whole server i'll [B]pay $5-$8[/B] Credits to Tizenx For the example!
  2. Right then. I am needing some help... I am wanting to get a server announcement out for when somebody reaches 200m xp in any skill. I have recently done it so when someone gets 2496 total it says about comp cape, and when they have at least level 99 in all skills it says about max cape. However, as a lot of people are getting 200m's now, I would like an announcement for that Anybody know how to do this? Heres the code currently used to add xp [CODE] public void addXp(int skill, double exp) { player.getControlerManager().trackXP(skill, (int) exp); if (skill != ATTACK && skill != DEFENCE && skill != STRENGTH && skill != MAGIC && skill != RANGE && skill != HITPOINTS) exp *= player.isDonator() ? Settings.XP_RATE + 100000 : Settings.XP_RATE; if (player.getAuraManager().usingWisdom()) exp *= 1.025; if (skill != PRAYER) exp *= 75000; int oldLevel = getLevelForXp(skill); xp[skill] += exp; xpCounter += exp; refreshXpCounter(); if (xp[skill] > MAXIMUM_EXP) { xp[skill] = MAXIMUM_EXP; } int newLevel = getLevelForXp(skill); int levelDiff = newLevel - oldLevel; if (newLevel > oldLevel) { level[skill] += levelDiff; player.getDialogueManager().startDialogue("L*****p", skill); if (skill == HITPOINTS) player.heal(levelDiff * 10); if (skill == PRAYER) player.getPrayer().restorePrayer(levelDiff * 10); if (skill == SUMMONING || (skill >= ATTACK && skill <= MAGIC)) player.getAppearence().generateAppearenceData(); } refresh(skill); }[/CODE] and an example of a server announcement [CODE] if (level == 99 || level == 120) for (Player players : World.getPlayers()) { players.getPackets().sendGameMessage( "<col=11EE11><shad=000000><img=5>News: <col=ff0033>" + player.getDisplayName() + " has reached Level " + level + " in " + name); } [/CODE]
  3. Playerassistant.java search "public void levelUp(int skill) {" replace that whole void with this [CODE]public void levelUp(int skill) { int totalLevel = (getLevelForXP(c.playerXP[0]) + getLevelForXP(c.playerXP[1]) + getLevelForXP(c.playerXP[2]) + getLevelForXP(c.playerXP[3]) + getLevelForXP(c.playerXP[4]) + getLevelForXP(c.playerXP[5]) + getLevelForXP(c.playerXP[6]) + getLevelForXP(c.playerXP[7]) + getLevelForXP(c.playerXP[8]) + getLevelForXP(c.playerXP[9]) + getLevelForXP(c.playerXP[10]) + getLevelForXP(c.playerXP[11]) + getLevelForXP(c.playerXP[12]) + getLevelForXP(c.playerXP[13]) + getLevelForXP(c.playerXP[14]) + getLevelForXP(c.playerXP[15]) + getLevelForXP(c.playerXP[16]) + getLevelForXP(c.playerXP[17]) + getLevelForXP(c.playerXP[18]) + getLevelForXP(c.playerXP[19]) + getLevelForXP(c.playerXP[20])); sendFrame126("Total Lvl: "+totalLevel, 3984); switch(skill) { case 0: sendFrame126("Congratulations, you just advanced an attack level!", 6248); sendFrame126("Your attack level is now "+getLevelForXP(c.playerXP[skill])+".", 6249); c.sendMessage("Congratulations, you just advanced an attack level."); sendFrame164(6247); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9748,1); c.getItems().addItem(9749,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.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Attack!", "Global Chat", 2); } } } break; case 1: sendFrame126("Congratulations, you just advanced a defence level!", 6254); sendFrame126("Your defence level is now "+getLevelForXP(c.playerXP[skill])+".", 6255); c.sendMessage("Congratulations, you just advanced a defence level."); sendFrame164(6253); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9754,1); c.getItems().addItem(9755,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.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Defence!", "Global Chat", 2); } } } break; case 2: sendFrame126("Congratulations, you just advanced a strength level!", 6207); sendFrame126("Your strength level is now "+getLevelForXP(c.playerXP[skill])+".", 6208); c.sendMessage("Congratulations, you just advanced a strength level."); sendFrame164(6206); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9751,1); c.getItems().addItem(9752,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.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Strength!", "Global Chat", 2); } } } break; case 3: sendFrame126("Congratulations, you just advanced a hitpoints level!", 6217); sendFrame126("Your hitpoints level is now "+getLevelForXP(c.playerXP[skill])+".", 6218); c.sendMessage("Congratulations, you just advanced a hitpoints level."); sendFrame164(6216); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9769,1); c.getItems().addItem(9770,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.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Hitpoints!", "Global Chat", 2); } } } break; case 4: sendFrame126("Congratulations, you just advanced a ranged level!", 5453); sendFrame126("Your ranged level is now "+getLevelForXP(c.playerXP[skill])+".", 6114); c.sendMessage("Congratulations, you just advanced a ranging level."); sendFrame164(4443); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9757,1); c.getItems().addItem(9758,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.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Range!", "Global Chat", 2); } } } break; case 5: sendFrame126("Congratulations, you just advanced a prayer level!", 6243); sendFrame126("Your prayer level is now "+getLevelForXP(c.playerXP[skill])+".", 6244); c.sendMessage("Congratulations, you just advanced a prayer level."); sendFrame164(6242); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9760,1); c.getItems().addItem(9761,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.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Prayer!", "Global Chat", 2); } } } break; case 6: sendFrame126("Congratulations, you just advanced a magic level!", 6212); sendFrame126("Your magic level is now "+getLevelForXP(c.playerXP[skill])+".", 6213); c.sendMessage("Congratulations, you just advanced a magic level."); sendFrame164(6211); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9757,1); c.getItems().addItem(9758,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.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Magic!", "Global Chat", 2); } } } break; case 7: sendFrame126("Congratulations, you just advanced a cooking level!", 6227); sendFrame126("Your cooking level is now "+getLevelForXP(c.playerXP[skill])+".", 6228); c.sendMessage("Congratulations, you just advanced a cooking level."); sendFrame164(6226); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9802,1); c.getItems().addItem(9803,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.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Cooking!", "Global Chat", 2); } } } break; case 8: sendFrame126("Congratulations, you just advanced a woodcutting level!", 4273); sendFrame126("Your woodcutting level is now "+getLevelForXP(c.playerXP[skill])+".", 4274); c.sendMessage("Congratulations, you just advanced a woodcutting level."); sendFrame164(4272); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9808,1); c.getItems().addItem(9809,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.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Woodcutting!", "Global Chat", 2); } } } break; case 9: sendFrame126("Congratulations, you just advanced a fletching level!", 6232); sendFrame126("Your fletching level is now "+getLevelForXP(c.playerXP[skill])+".", 6233); c.sendMessage("Congratulations, you just advanced a fletching level."); sendFrame164(6231); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9784,1); c.getItems().addItem(9785,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.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Fletching!", "Global Chat", 2); } } } break; case 10: sendFrame126("Congratulations, you just advanced a fishing level!", 6259); sendFrame126("Your fishing level is now "+getLevelForXP(c.playerXP[skill])+".", 6260); c.sendMessage("Congratulations, you just advanced a fishing level."); sendFrame164(6258); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9799,1); c.getItems().addItem(9800,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.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Fishing!", "Global Chat", 2); } } } break; case 11: sendFrame126("Congratulations, you just advanced a fire making level!", 4283); sendFrame126("Your firemaking level is now "+getLevelForXP(c.playerXP[skill])+".", 4284); c.sendMessage("Congratulations, you just advanced a fire making level."); sendFrame164(4282); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9805,1); c.getItems().addItem(9806,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.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Fire Making!", "Global Chat", 2); } } } break; case 12: sendFrame126("Congratulations, you just advanced a crafting level!", 6264); sendFrame126("Your crafting level is now "+getLevelForXP(c.playerXP[skill])+".", 6265); c.sendMessage("Congratulations, you just advanced a crafting level."); sendFrame164(6263); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9805,1); c.getItems().addItem(9806,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.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Crafting!", "Global Chat", 2); } } } break; case 13: sendFrame126("Congratulations, you just advanced a smithing level!", 6222); sendFrame126("Your smithing level is now "+getLevelForXP(c.playerXP[skill])+".", 6223); c.sendMessage("Congratulations, you just advanced a smithing level."); sendFrame164(6221); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9796,1); c.getItems().addItem(9797,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.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Smithing!", "Global Chat", 2); } } } break; case 14: sendFrame126("Congratulations, you just advanced a mining level!", 4417); sendFrame126("Your mining level is now "+getLevelForXP(c.playerXP[skill])+".", 4438); c.sendMessage("Congratulations, you just advanced a mining level."); sendFrame164(4416); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9793,1); c.getItems().addItem(9794,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.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Mining!", "Global Chat", 2); } } } break; case 15: sendFrame126("Congratulations, you just advanced a herblore level!", 6238); sendFrame126("Your herblore level is now "+getLevelForXP(c.playerXP[skill])+".", 6239); c.sendMessage("Congratulations, you just advanced a herblore level."); sendFrame164(6237); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9775,1); c.getItems().addItem(9776,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.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Herblore!", "Global Chat", 2); } } } break; case 16: sendFrame126("Congratulations, you just advanced a agility level!", 4278); sendFrame126("Your agility level is now "+getLevelForXP(c.playerXP[skill])+".", 4279); c.sendMessage("Congratulations, you just advanced an agility level."); sendFrame164(4277); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9772,1); c.getItems().addItem(9773,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.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Agility!", "Global Chat", 2); } } } break; case 17: sendFrame126("Congratulations, you just advanced a thieving level!", 4263); sendFrame126("Your theiving level is now "+getLevelForXP(c.playerXP[skill])+".", 4264); c.sendMessage("Congratulations, you just advanced a thieving level."); sendFrame164(4261); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9778,1); c.getItems().addItem(9779,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.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Thieving!", "Global Chat", 2); } } } break; case 18: sendFrame126("Congratulations, you just advanced a slayer level!", 12123); sendFrame126("Your slayer level is now "+getLevelForXP(c.playerXP[skill])+".", 12124); c.sendMessage("Congratulations, you just advanced a slayer level."); sendFrame164(12122); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9787,1); c.getItems().addItem(9788,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.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Slayer!", "Global Chat", 2); } } } break; case 19: sendFrame126("Congratulations, you just advanced a farming level!", 12123); sendFrame126("Your farming level is now "+getLevelForXP(c.playerXP[skill])+".", 12124); c.sendMessage("Congratulations, you just advanced a farming level."); sendFrame164(12122); if(getLevelForXP(c.playerXP[skill]) == 99) { for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Farming!", "Global Chat", 2); } } } break; case 20: sendFrame126("Congratulations, you just advanced a runecrafting level!", 4268); sendFrame126("Your runecrafting level is now "+getLevelForXP(c.playerXP[skill])+".", 4269); c.sendMessage("Congratulations, you just advanced a runecrafting level."); sendFrame164(4267); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9766,1); c.getItems().addItem(9767,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.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Runecrafting!", "Global Chat", 2); } } } break; } c.dialogueAction = 0; c.nextChat = 0; }[/CODE] Enjoy. I know it's sloppy and may have errors cba to look it all over.
  4. Hello guys , seen allot of tutorials. Though I'd give one a go. Please only good criticism as this is my first post ever. Thanks. - Right today we shall be adding an announcement to your server. - [COLOR="#FFFF00"]Useful for - Telling your players updates or anything really[/COLOR] [COLOR="#FF0000"]Difficulty - 1/10 Simple![/COLOR] [COLOR="#00FF00"]Files Used - Client.java[/COLOR] Now to begin. Add this code around one of the other public voids in your client.java . [CODE]public void mymessage() { EventManager.getSingleton().addEvent(new Event() { public void execute(EventContainer c) { sendMessage("[SERVER NOTICE]: Your announcement here!"); } }, 400000); };[/CODE] Now to try explain , the main parts anyway. [CODE]public void mymessage() { [COLOR="#FF0000"]//its name.[/COLOR] EventManager.getSingleton().addEvent(new Event() { public void execute(EventContainer c) { sendMessage("[SERVER NOTICE]: Please Donate To Iam The Bob To Keep The Server 24 7!"); [COLOR="#FF0000"]//put your message here.[/COLOR] } }, 400000); //Time it takes to send the message [COLOR="#FF0000"]//time it takes , this is about a good time anyway.[/COLOR] };[/CODE] What this does is tell the message. Now the next part. Press Ctrl+F and search for "public void initialize() {". Underneath this inside the { add this. [CODE]mymessage();[/CODE] This just tells it to run. - Now if you wanted to add a second announcement at a different time , you would create a mymessage2 , like this. [CODE][COLOR="#FF0000"]public void mymessage2() {[/COLOR] EventManager.getSingleton().addEvent(new Event() { public void execute(EventContainer c) { sendMessage("[SERVER NOTICE]: Second announcement !"); } [COLOR="#FF0000"]}, 400000); //change this different from the other one![/COLOR] };[/CODE] And simply adding another... [CODE]mymessage1();[/CODE] - OK thanks for reading my tutorial , please tell me how I could get better at these. I could do with it. thanks guys.
×