Jump to content

Search the Community

Showing results for tags 'played'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • 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


Last Updated

  • Start


Filter by number of...


  • Start



Found 7 results

  1. test1015

    [718] time played

    how to add time played to my 718 server? Example : [IMG]http://puu.sh/91TtU.jpg[/IMG]
  2. [CENTER]Version 1 (Normal) [IMG]http://i.imgur.com/vtneHcA.png[/IMG] Version 2 (Sharp Massacre .xox) [IMG]http://i.imgur.com/Pe5sGS2.png[/IMG] Version 3 [IMG]http://i.imgur.com/HJmghv6.png[/IMG] Version 4 [img]http://i.imgur.com/cZDzuKA.png[/img] Version 4 (Black and White) [IMG]http://i.imgur.com/fca8peW.png[/IMG] Rating/CnCing/Commenting is appreciated. ❥[/CENTER]
  3. What is the best games you played of all time. I might try em out :) Other Than Runescape
  4. I bought the game, but haven't gotten to officially start it yet. I've been reading some guides and reviews and I've decided that I'm going to begin playing it tomorrow. According to my friends, its a game that'll never die. I'm excited to actually begin playing, but need some help from you pros that've already experienced its beauty. So, let's begin. I'll most likely need to know / want more information on the following topics: [List][*]What is the best race to choose? I don't prefer combat over magic, nor vice versa. I prefer magic, but I've heard the elves are weak. Please don't tell me to choose a class that you haven't personally tried. [*]What's the best road to take from the beginning? I understand there is a "main" story line, but honestly, should I stick to the story line or go explore caves, dungeons, etc? [*]What's the best way to earn money that is needed for the required / over-required weapons/armour that I'll need? [*]Upon leveling up, do I place my experience in Magicka, Health or Stamina? [*]Where do I place my skill points? (What you get for leveling) [*]What's the quickest way to become rich, and get tons of experience while doing so? [*]Can you (and if so where do you) obtain these "shouts" before you slay your first dragon and meet the Greybeards? [*]Imagine you were starting a new character, what race, route etc would you take them and why?[/list] It's not cheating if I still have to work for it, I just don't want to have to remove my save games 100 times to get the right character.
  5. Hello and welcome to Kennelz Kreations, the posts that pertain to adding unique features to your server in an easy, spoon-fed way. In this tutorial, you will hopefully be able to add a time played counter so that each player knows how long they have played the server. KEEP IN MIND: -My tutorials could be shortened/extended due to my skill in java compared to others. -My tutorials may have been redone in the past by others, I may have improved it detail-wise. -I try to make useful, unique tutorials of things I made myself and have rarely seen posted. -I am no pro, I still consider myself a rookie. How to add the Time Played Counter: Purpose: Expert and popular servers usually have this feature. Its neat and a nifty thing to have. Difficulty: **/***** (Easy) Tested on: Pur3zscape source, but any 508-525 should do, maybe even higher/lower. Files modified: Player.java, RS2LoginProtocol.java, FileManager.java Procedure: Copy and Paste, Text changing. What you will learn: Counters, Timers and Ints. Step 1. Open FileManager.java. This is where special data fields are made for saving values for different players. You may find common ones such as p.rights, p.absx, p.height, etc. Your going to add four new entries, seconds, minutes, hours and days. Under any previous examples, add this: [CODE] stream.writeString("sec: "+p.sec); stream.writeString("min: "+p.min); stream.writeString("hr: "+p.hr); stream.writeString("day: "+p.day);[/CODE] *If you have a backup section that resaves these values again, add this to the backup section as well.* Step 2. Scroll down until you see: [CODE]public void loadCharacter(Player p) {[/CODE] You should see some lines that use the same names as above in step 1 (such as p.rights, p.height, etc). Under any pervious examples, add this: [CODE] else if (line.startsWith("sec: ")) p.sec = Integer.parseInt(line.substring(5)); else if (line.startsWith("min: ")) p.min = Integer.parseInt(line.substring(5)); else if (line.startsWith("hr: ")) p.hr = Integer.parseInt(line.substring(4)); else if (line.startsWith("day: ")) p.day = Integer.parseInt(line.substring(5));[/CODE] To generate the number after substring, you count whatever is between the ""s, every letter, number, special character and space. If you do not place the correct number, accounts will not save properly. Save and Exit FileManager.java. Step 3. Open Player.java. In the grouping of booleans and ints, add these values: [CODE] public int sec; public int min; public int hr; public int day;[/CODE] When creating new save values in FileManager, they must be defined in Player.java or they will cause errors. Since they are not assigned a numberic value, they default to whatever the server tells it to be later on specified by code. You do not have to add "= 0" to the end. Step 4. CTRL + F. Search for: [CODE]public void process[/CODE] This is the section in which processes take place, more specifically, counters and timers. Under any previous timer after the "}", add this: [CODE] if (sec <= 59) { sec++; } if (sec == 60) { sec *= 0; min ++; } if (min == 60) { min *= 0; hr++; } if (hr == 24) { hr *= 0; day++; }[/CODE] Now for the explaination. If the seconds counter for a player is less than or equal to 59, one second is added to sec each time this is true. When sec is equal to 60 (60 seconds to a minute), sec is reset to zero by multiplying it by zero and adding 1 to min. When min is equal to 60 (60 minutes to an hour), min is reset to zero by multiplying it by zero and adding 1 to hr. When hr equals 24 (24 hours to a day), hr is reset to zero by multiplying it by zero and adding 1 to day. The ++ is the same as saying + 1, but is a faster way of doing so. If a condition isn't true, the parts of code do not process. The seconds counter is the main power and only way to getting to a minute which leads to hours which leads to day. Save and Exit Player.java. Step 5. Open RS2LoginProtocol.java. To let players know how long they've played, you need to make a way of showing them the value for the different time fields. This can be done by interface, command, and many others. The basic way is by login message. Find where your login messages are and add this line under one of your lines. These appear in order to a player's chatbox on each login: [CODE]p.getActionSender().sendMessage(p, "<col=336600>Time Played: "+p.day+" Days "+p.hr+" Hours "+p.min+" Minutes "+p.sec+" Seconds.");[/CODE] This will show the player the total time he/she has played in descending order from larger time field to smallest. col=336600 is a HTML color code, you can change it or delete it from < to >. The timer only increases as the player is logged in. "+p.sec+" for example, imports the current value for that player's data field. It could be changed to "+p.rights+" which would normally say "0". Picture of the Finished Tutorial: [IMG]http://i877.photobucket.com/albums/ab339/kennyr9/525/Daysplayed.jpg[/IMG] Save and Exit RS2LoginProtocol.java. Step 6. Compile and restart. ~Special notes for advanced coders~ You can make a time field(s) larger than just days, you could try years by adding another field the same way as done with sec, min, hr and day. The counter would check for 364 days to add 1 to yr. But that doesnt seem needed at the present time. ~Learn Something New with Java~ -Ints are any whole numeric value. (1, 5444, 4342423424678, 0, -6324, -9, etc) -Counters "count" values as they reach a certain number, something goes into effect. (as seen in this tutorial) -Timers "wait" for values to reach a certain number, then something goes into effect. (such as a Pest Control boat) Examples: Public Int pizzaSlices = 8; Public Int cookingTimer = 500; Public Int cooldown; //~Timer Example~ if the cookingTimer is greater than zero, subtract 1 until it isnt greater than zero if (cookingTimer > 0) { cookingTimer--; } //~Counter Example~ if the cookingTimer is equal to zero, add 1 to coolDown until it equals 30 if (cookingTimer == 0) { coolDown ++; } //if coolDown equals 30, add 500 to cookingTimer and reset coolDown by multiplying current value by zero (30 * 0 = 0) if (coolDown == 30) { cookingTimer += 500; coolDown *= 0; } ~END OF TUTORIAL~ Thanks for viewing!
  6. So what was the first video game you ever played? & Don't forget to add pictures! The first video game I EVER played was [B]"Killer Instinct" [/B]for the SNES [IMG]http://i123.photobucket.com/albums/o316/Ty1986/killer.jpg[/IMG]