Jump to content

Search the Community

Showing results for tags 'achievement'.



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

  1. I received permission from Play Boy to rehost his server because he stopped working on it. So i've been debugging the Achievement point system as that's my next task to complete. It's a fairly basic system; lots of functions where you gain achievement which reads into this function; [CODE]private static void Rewards() { c.getPA().handleBigfireWork(c); c.achievementPoints += 1; c.sendMessage("[ <col=2784FF>Achievements </col>] Congratulations! You have earned one achievement point!"); }[/CODE] Anyway the issue is on the character.txt files it gets stored as AchievementPoints not achievementPoints there for it breaks. I can't for the life of my find out why. It makes it difficult that I'm not the original creator so sifting through other peoples work is never super easy to keep track of. Anyway help would be sweet.
  2. Ever want to add an achievemnt system to tell players good job on doing something unique? or maybe they been on your server since it is been online! Here is how to do that on server & on website Difficulty: 8/10 (Depends really) Tutorial : C&P, PHP & HTML modification Source : PI [B]Website part[/B] First of all download this for where you want to and upload it to where your database is [url=http://www.mediafire.com/download.php?445ydd1xcqf5rlr]tutorial.7z[/url] After you finish install delete index.php and rename server.php to index.php Go to admin.php if you want to add or remove badges... [I](Style is not done, I will update it when I have time, you can do it your self)[/I] [B]Server part[/B] Go to your server files and go to util folder and add this Call it Achivements.java [code] package server.util; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.sql.DriverManager; import server.model.players.Client; import server.Server; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.util.Date; import java.text.DateFormat; import java.text.SimpleDateFormat; import server.Config; import server.model.players.PlayerHandler; /** * * [MENTION=52317]auth[/MENTION]or Ramatronics * * [MENTION=38980]edit[/MENTION]ed Ishana * Edited to become achievements instead of highscores :D */ public class Achivements { /** * DO NOT TOUCH **/ public String host, database, username, password; public Connection conn; public Statement statement; public ResultSet results; public boolean connected; public Achivements() { /** * EDIT FROM HERE **/ host = ""; database = ""; username = ""; password = ""; /** * EDIT UNTIL HERE **/ connected = false; //DO NOT TOUCH THIS } public Connection getConnection() { return conn; } public void CreateConnection() { try { if (conn == null) { Class.forName("com.mysql.jdbc.Driver").newInstance(); this.conn = DriverManager.getConnection( "jdbc:mysql://" + host + "/" + database + "", username, password); System.out.println("MySQL Connection Established"); connected = true; this.statement = this.getConnection().createStatement(); } } catch (Exception e) { e.printStackTrace(); } } public ResultSet query(String s) throws SQLException { try { if (statement == null) { statement = getConnection().createStatement(); } if (s.toLowerCase().startsWith("select")) { ResultSet rs = statement.executeQuery(s); return rs; } else { statement.executeUpdate(s); } return null; } catch (Exception e) { System.out.println("[ATTENTION]: ERROR OCCURED WITH MYSQL QUERY \n \t" + e.toString() + " \nEND OF ERROR!"); System.out.println(s); //e.printStackTrace(); } return null; } public boolean checkUser(Client c) { try{ String query = "SELECT * FROM `achivements` WHERE `playerName` = '" + c.playerName + "'"; ResultSet results = statement.executeQuery(query); while (results.next()) { return true; } results.close(); return false; }catch(Exception e){ //e.printStackTrace(); return false; } } public boolean addAchievemnt(Client c, String rowx) { try { if (checkUser(c)){ query("UPDATE `achivements` SET `"+rowx+"` = "+rowx+" + 1 WHERE `playerName` = '"+c.playerName+"';"); return true; }else{ query("INSERT INTO `achivements` (`id`, `playerName`, `"+rowx+"`) VALUES (NULL, '"+c.playerName+"', '1');"); return true; } } catch (Exception e) { return false; } //return false; } } [/code] Remember to change to your own connection [code] host = ""; database = ""; username = ""; password = ""; [/code] Now go to server.java and import this file we just added [code] import server.util.Achivements; [/code] now scroll down until you find [code] public static FightCaves fightCaves = new FightCaves(); [/code] Below that add [code] public static Achivements achivements = new Achivements(); [/code] then scroll down until you see [code] public static void main [/code] Add inside that main method below the server run stuff... add this [code] achivements.CreateConnection(); [/code] Now to make that when a player does something he gets the achievement. Go to src\server\model\minigames\PestControl.java and add this [code] Server.achivements.addAchievemnt(c, "pestcontrol"); [/code] below [code] c.getItems().addItem(995, c.combatLevel * 50); [/code] [B]Usage[/B] : Server.achivements.addAchievemnt(c, "rowname"); Thank you, and I hope you like this achievement system I made :D I know there will be a lot of questions so I will add a part to this topic for FAQ
  3. RSInterface|Client Sided|. [CODE]//Achievement tab addText(29295, "@[email protected]!HOLIDAY EVENTS!", 0xFF981F, false, true, -1, TDA, 2); addHoverText(29296, "New Years Day", " ", TDA, 0, 0xff0000, false, true, 150); addHoverText(29297, "Valentine's Day", " ", TDA, 0, 0xff0000, false, true, 150); addHoverText(29298, "Easter", " ", TDA, 0, 0xff0000, false, true, 150); addHoverText(29299, "St. Patrick's Day", " ", TDA, 0, 0xff0000, false, true, 150); addHoverText(29300, "Halloween", "", TDA, 0, 0xff0000, false, true, 150); addHoverText(29301, "Veteran's Day", "", TDA, 0, 0xFF981F, false, true, 150); addHoverText(29302, "Thanksgiving Day", " ", TDA, 0, 0xff0000, false, true, 150); addHoverText(29303, "Christmas", " ", TDA, 0, 0xff0000, false, true, 150); addText(29304, "@[email protected]'S QUESTS", 0xFF981F, false, true, -1, TDA, 2); addHoverText(29305, "Wilderness can be Dangerous", "", TDA, 0, 0xFF981F, false, true, 150); addHoverText(29306, "Grim Reaper's Revenge", "", TDA, 0, 0xff0000, false, true, 150); addHoverText(29307, "Underneath a Rock", " ", TDA, 0, 0xff0000, false, true, 150); addHoverText(29308, "Spider's Revenge", " ", TDA, 0, 0xff0000, false, true, 150); addHoverText(29309, "Lure's Pride", " ", TDA, 0, 0xff0000, false, true, 150); addText(29310, "@[email protected]'S QUESTS", 0xFF981F, false, true, -1, TDA, 2); addHoverText(29311, "Become Legit Player", " ", TDA, 0, 0xff0000, false, true, 150); addHoverText(29312, "Become Legit Donor", " ", TDA, 0, 0xff0000, false, true, 150); addHoverText(29313, "Become Legit Staff", "", TDA, 0, 0xff0000, false, true, 150); addHoverText(29314, "Become Legit Veteran", "", TDA, 0, 0xff0000, false, true, 150); } catch(Exception e){[/CODE] I need to make it where when I click them, they open up with the Quest Details Interface.
  4. Small suggestion. Basically, you get awards for essentially being active on the forum. Awards with requirements like replying to threads x amount of times, starting threads x amount of times, adding a pole to threads x amount of times, be online for X amount of time and participate in x amount of threads. This would have to be automated, rather than manual because otherwise it would take quite a bit of work to award everyone. Basically, as an example: Posting on threads 100 times would get you an award, then the award is upgraded when you post 500 times, and then 1000, then 3000, then 5000, then 10000 (even so the only one getting there any time soon is cart, lol.) Same would apply to starting threads x amount of times, adding a pole to threads x amount of times, be online for X amount of time and participate in x amount of threads. This way there aren't like 10 awards for each achievement, and only 1 award with different tiers. This would encourage people to be active on the forum more. Tell me what you think
  5. can some1 come on team viewer with me and edit the achievement bar for me on my 317 server and ill give u 500k all i want it to say is this getPA().sendFrame126("@[email protected] Of Project X", 29266); getPA().sendFrame126("@[email protected]'s", 29296); getPA().sendFrame126("@[email protected]", 29297); getPA().sendFrame126("@[email protected]", 29298); getPA().sendFrame126("@[email protected]'s", 29300); getPA().sendFrame126("@[email protected]", 29301); getPA().sendFrame126("@[email protected]", 29302); getPA().sendFrame126("@[email protected]'s", 29304); getPA().sendFrame126("@[email protected]", 29305); getPA().sendFrame126("@[email protected]", 29306); getPA().sendFrame126("@[email protected]", 29307); getPA().sendFrame126("@[email protected]", 29308);
  6. I need help fixing a little problem with my Achievement list, when players achieve the achievement the text doesnt change from red to green, how can i fix this? Here is what i got client sided in RsInterfaces: [code] public static void achievement(TextDrawingArea[] TDA) { RSInterface tab = addTabInterface(19500); RSInterface scroll = addTabInterface(19501); addText(19502, "Achievement List", TDA, 2, 0xFF9900, false, true); addSprite(19503, 0, "Interfaces/Achieve/ACH"); addSprite(19504, 3, "Interfaces/Achieve/ACH"); addSprite(19505, 0, "Interfaces/Achieve/ACH"); addButton(19590, 1, "QuestTab/QUEST", 18, 18, "Swap to Information", 1); tab.totalChildren(6); tab.child(0, 19502, 5, 5); tab.child(1, 19503, 0, 25); tab.child(2, 19504, 0, 28); tab.child(3, 19505, 0, 249); tab.child(4, 19501, 0, 25); tab.child(5, 19590, 165, 3); scroll.width = 174; scroll.height = 224; scroll.scrollMax = 1250; addHoverText(19549, "", "", TDA, 1, 0xFF9900, false, true, 150); addText(19506, "Player Killing", TDA, 2, 0xFF9900, false, true); addHoverText(19507, "Kill 50 players", "", TDA, 0, 0xff0000, false, true, 150); addHoverText(19508, "Kill 100 players", "", TDA, 0, 0xff0000, false, true, 150); addHoverText(19509, "Kill 250 players", "", TDA, 0, 0xff0000, false, true, 150); addHoverText(19510, "Kill 400 players", "", TDA, 0, 0xff0000, false, true, 150); addHoverText(19511, "Kill 750 Players", "View", TDA, 0, 0xff0000, false, true, 150); addHoverText(19512, "Kill 1000 players", "", TDA, 0, 0xff0000, false, true, 150); addHoverText(19513, "Kill 1250 players", "View", TDA, 0, 0xff0000, false, true, 150); addHoverText(19514, "Kill 1500 players", "View", TDA, 0, 0xff0000, false, true, 150); addHoverText(19515, "Kill 2500 players", "View", TDA, 0, 0xff0000, false, true, 150); addText(19516, "Skilling", TDA, 2, 0xFF9900, false, true); addHoverText(19517, "99 Mining", "View", TDA, 0, 0xff0000, false, true, 150); addHoverText(19518, "99 Fishing", "View", TDA, 0, 0xff0000, false, true, 150); addHoverText(19519, "99 Herblore", "View", TDA, 0, 0xff0000, false, true, 150); addHoverText(19520, "99 Thieving", "View", TDA, 0, 0xff0000, false, true, 150); addHoverText(19521, "99 Crafting", "View", TDA, 0, 0xff0000, false, true, 150); addHoverText(19522, "99 Hunter", "View", TDA, 0, 0xff0000, false, true, 150); addHoverText(19523, "99 Summoning", "View", TDA, 0, 0xff0000, false, true, 150); addHoverText(19524, "99 Slayer", "View", TDA, 0, 0xff0000, false, true, 150); addHoverText(19525, "Maxed Account", "View", TDA, 0, 0xff0000, false, true, 150); //addText(19526, "Creations", "View", TDA, 2, 0xff0000, false, true, 150); addText(19526, "Creations", TDA, 2, 0xFF9900, false, true); addHoverText(19527, "Create: Dragonfire shield", "View", TDA, 0, 0xff0000, false, true, 150); addHoverText(19528, "Create: Amulet of fury", "View", TDA, 0, 0xff0000, false, true, 150); addHoverText(19529, "", "View", TDA, 0, 0xff0000, false, true, 150); addHoverText(19530, "", "View", TDA, 0, 0xff0000, false, true, 150); addHoverText(19531, "", "View", TDA, 0, 0xff0000, false, true, 150); addHoverText(19532, "", "View", TDA, 0, 0xff0000, false, true, 150); addHoverText(19533, "", "View", TDA, 0, 0xff0000, false, true, 150); addHoverText(19534, "", "View", TDA, 0, 0xff0000, false, true, 150); addText(19535, "", TDA, 2, 0xFF9900, false, true); addHoverText(19536, "", "View", TDA, 0, 0xff0000, false, true, 150); addHoverText(19537, "", "View", TDA, 0, 0xff0000, false, true, 150); addHoverText(19538, "", "View", TDA, 0, 0xff0000, false, true, 150); addHoverText(19539, "", "View", TDA, 0, 0xff0000, false, true, 150); addHoverText(19540, "", "View", TDA, 0, 0xff0000, false, true, 150); addHoverText(19541, "", "View", TDA, 0, 0xff0000, false, true, 150); addHoverText(19542, "", "View", TDA, 0, 0xff0000, false, true, 150); addHoverText(19543, "", "View", TDA, 0, 0xff0000, false, true, 150); addHoverText(19544, "", "View", TDA, 0, 0xff0000, false, true, 150); addHoverText(19545, "", "View", TDA, 0, 0xff0000, false, true, 150); addHoverText(19546, "", "View", TDA, 0, 0xff0000, false, true, 150); addHoverText(19547, "", "View", TDA, 0, 0xff0000, false, true, 150); addHoverText(19548, "", "View", TDA, 0, 0xff0000, false, true, 150); scroll.totalChildren(44); scroll.child(0, 19507, 5, 47); scroll.child(1, 19508, 5, 61); scroll.child(2, 19509, 5, 75); scroll.child(3, 19510, 5, 89); scroll.child(4, 19511, 5, 103); scroll.child(5, 19506, 5, 20); scroll.child(6, 19512, 5, 117); scroll.child(7, 19513, 5, 131); scroll.child(8, 19514, 5, 145); scroll.child(9, 19515, 5, 159); scroll.child(10, 19516, 5, 187); scroll.child(11, 19517, 5, 215); scroll.child(12, 19518, 5, 229); scroll.child(13, 19519, 5, 243); scroll.child(14, 19520, 5, 257); scroll.child(15, 19521, 5, 271); scroll.child(16, 19522, 5, 285); scroll.child(17, 19523, 5, 299); scroll.child(18, 19524, 5, 313); scroll.child(19, 19525, 5, 327); scroll.child(20, 19526, 5, 350); scroll.child(21, 19527, 5, 380); scroll.child(22, 19528, 5, 393); scroll.child(23, 19529, 5, 411); scroll.child(24, 19530, 5, 424); scroll.child(25, 19531, 5, 439); scroll.child(26, 19532, 5, 453); scroll.child(27, 19533, 5, 467); scroll.child(28, 19534, 5, 481); scroll.child(29, 19535, 5, 509); scroll.child(30, 19536, 5, 537); scroll.child(31, 19537, 5, 551); scroll.child(32, 19538, 5, 565); scroll.child(33, 19539, 5, 579); scroll.child(34, 19540, 5, 593); scroll.child(35, 19541, 5, 607); scroll.child(36, 19542, 5, 621); scroll.child(37, 19543, 5, 635); scroll.child(38, 19544, 5, 649); scroll.child(39, 19545, 5, 663); scroll.child(40, 19546, 5, 677); scroll.child(41, 19547, 5, 691); scroll.child(42, 19548, 5, 705); scroll.child(43, 19549, 5, 6); } [/code]
  7. I added one of those shops that you put in the acheivement tab, compiled and ran with no errors, but when i want to look at it, it looked like this [IMG]http://i1182.photobucket.com/albums/x459/Blitzscape/pants.jpg[/IMG] any suggestions on how to fix? thanks
  8. I know its from the client.java, i edited quest tab before, but idk the numbers for the achievment diary.
  9. How do u edit the Achievement Diary? Like change the name and the teleports and all tht?
  10. [SPOILER=03/12/2010] [IMG]http://i51.tinypic.com/rsaliq.png[/IMG] [/SPOILER] [SPOILER=08/01/2011] [IMG]http://i52.tinypic.com/2rwxoci.png[/IMG] [/SPOILER] [SPOILER=04/03/2011] [IMG]http://i51.tinypic.com/35ajceo.png[/IMG] [IMG]http://i53.tinypic.com/263wih4.png[/IMG] [/SPOILER] [SPOILER=17/08/2011] [IMG]http://i52.tinypic.com/avh307.png[/IMG] [/SPOILER] [SPOILER=18/08/2011] [IMG]http://i56.tinypic.com/qox9ua.png[/IMG] [/SPOILER] Level 70 Fletching completed.
×