Search the Community
Showing results for tags 'announcing'.
Found 2 results
-
I need help im getting an error im trying to make it so it announces to server when someone gets 99 in a skill [QUOTE] public void levelUp(int skill) { c.inDialogue = true; updateSkillTab(); switch(skill) { case 0: sendFrame126("Congratulations, you just advanced an attack level!", 6248); sendFrame126("Your attack level is now "+c.realLevel[skill]+".", 6249); c.sendMessage("Congratulations, you just advanced an attack level."); c.getPA().sendFrame126("Combat Level: "+c.getCombatLevel()+"", 3983); sendFrame164(6247); if(c.playerLevel[0] <= 99 ) { c2.sendMessage("<shad=15695415>[Ruination News]:" + c.playerName + " " + " has achieved 99 in.</col> "); } } } break;[/QUOTE]
- 11 replies
-
- announcing
- error
-
(and 1 more)
Tagged with:
-
I saw rare drops -snippet at r-s done by item ids, decided to help everyone out by doing this by item name, giving you ability to add much effectively rare drop announcements. Code is absolutely horrible but works, wrote this just in 2 minutes in a rush, didn't add this to my server at all but it works for sure. :) [CODE] public static final String SUPER_RARES[] = {"armadyl", "bandos", "godsword"}; public static final String RARES[] = {"dragon chainbody", "whip" , "of fury"};[/CODE] [CODE] public static final void announce(Client c, int id) { String item = ItemAssistant.getItemName(id).toString(); for (String superRares : SUPER_RARES) { if (item.toLowerCase().contains(superRares)) { for (int j = 0; j < PlayerHandler.players.length; j++) { if (PlayerHandler.players[j] != null) { Client c2 = (Client) PlayerHandler.players[j]; c2.sendMessage("@[email protected]"+c.playerName+" has received x1 "+item+" as a extreme rare drop!"); } } return; } } for (String rares : RARES) { if (item.toLowerCase().contains(rares)) { for (int j = 0; j < PlayerHandler.players.length; j++) { if (PlayerHandler.players[j] != null) { Client c2 = (Client) PlayerHandler.players[j]; c2.sendMessage("@[email protected]"+c.playerName+" has received x1 "+item+" as a rare drop."); } } } } }[/CODE]
- 9 replies
-
- announcing
- drop
-
(and 1 more)
Tagged with: