Jump to content

Search the Community

Showing results for tags 'counter'.



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

  1. Hey guys this is me in the video and my youtube page it's pretty damn new as far as content goes but if you play you should add me on steam or something. [url]http://www.steamcommunity.com/id/therealfilthy[/url] [video=youtube;IhQijDKnKCo]https://www.youtube.com/watch?v=IhQijDKnKCo[/video]
  2. Okay so a guy decided to file a DMCA complaint against my new MyBB theme site because it "looked too much like his". In all reality all that was the same is: My tables had a blue border and his had a green, in the same spot. He is claiming that I stole his theme fully, which i didn't. The source codes are totally different. Here is my response: [code] Dear TMDHosting support, This letter is written in response to your notification to me of a complaint received about my web page(s). The pages in question are: Http://themelocust.com My response to the prior allegations is as follows: The complainant has provided no copyright registration information or other tangible evidence that the material in question is in fact copyrighted, and I have a good faith belief that it is not. The allegation of copyright violation is therefore in dispute, and at present unsupported. This communication to you is a DMCA counter notification letter as defined in 17 USC 512(g)(3): I declare, under penalty of perjury, that I have a good faith belief that the complaint of copyright violation is based on mistaken information, misidentification of the material in question, or deliberate misreading of the law. My name, address, and telephone number are as follows: Cory Allen [BLEEP BLEEP] I hereby consent to the jurisdiction of Federal District Court for the judicial district in which I reside (or, if my address is outside the United States, any judicial district in which you, the ISP, may be found). I agree to accept service of process from the complainant. My actual or electronic signature follows: Cory Allen Having received this counter notification, you are now obligated under 17 USC 512(g)(2)(B) to advise the complainant of this notice, and to restore the material in dispute (or not take the material down in the first place), unless the complainant files suit against me within 10 days. More Information: [email protected] was a temporary email that is no longer in service. The email I shall be responded to/forwarded messages to should be this email: [email protected] My Input: My theme is 100% coded by me, images by me. The theme consist of HTML/PHP/CSS. The PHP is owned by MyBB, HTML & CSS were fully coded by me, Cory Allen. The resemblance of the themes is only the border accents. The borders are simply inspiration, and idea. Copyrights do not cover ideas. For example, if I write a book of a murder mystery and in the ending the Butler is the one who has done everything you cannot remove my book simply because someone else has had that ending before. My code is different, my color scheme is different, my layout is different, my borders match his. [/code]
  3. I have made this wierd way after many things.. There can still be hidden bugs I haven't found, but already fixed most of em. Made shitty way, but it works :) So, its xp calcutator which can be used even if the total xp would be more than 2147m First in [B]Player.java[/B] find the list wheres different character file things etc.. And add anywhere on list: [CODE] billsXp, totalXp, firstXpWithoutBills, firstXpBills, secondXpWithoutBills, secondXpBills, thirdXp, otherXpBills,[/CODE] Then [B]PlayerSave.java[/B] and find "rights" and above it or anywhere in list add: [CODE] } else if (token.equals("Bills-XP")) { p.billsXp = Integer.parseInt(token2); } else if (token.equals("Total-XP")) { p.totalXp = Integer.parseInt(token2); } else if (token.equals("firstXpWithoutBills")) { p.firstXpWithoutBills = Integer.parseInt(token2); } else if (token.equals("firstXpBills")) { p.firstXpBills = Integer.parseInt(token2); } else if (token.equals("secondXpWithoutBills")) { p.secondXpWithoutBills = Integer.parseInt(token2); } else if (token.equals("secondXpBills")) { p.secondXpBills = Integer.parseInt(token2); } else if (token.equals("thirdXp")) { p.thirdXp = Integer.parseInt(token2); } else if (token.equals("otherXpBills")) { p.otherXpBills = Integer.parseInt(token2);[/CODE] Then, stay in PlayerSave.java and search for "characterfile.write(Integer.toString(" and find good place and add: [CODE] characterfile.write("Bills-XP = ", 0, 11); characterfile.write(Integer.toString(p.billsXp), 0, Integer.toString(p.billsXp).length()); characterfile.newLine(); characterfile.write("Total-XP = ", 0, 11); characterfile.write(Integer.toString(p.totalXp), 0, Integer.toString(p.totalXp).length()); characterfile.newLine(); characterfile.write("firstXpWithoutBills = ", 0, 22); characterfile.write(Integer.toString(p.firstXpWithoutBills), 0, Integer.toString(p.firstXpWithoutBills).length()); characterfile.newLine(); characterfile.write("firstXpBills = ", 0, 15); characterfile.write(Integer.toString(p.firstXpBills), 0, Integer.toString(p.firstXpBills).length()); characterfile.newLine(); characterfile.write("secondXpWithoutBills = ", 0, 23); characterfile.write(Integer.toString(p.secondXpWithoutBills), 0, Integer.toString(p.secondXpWithoutBills).length()); characterfile.newLine(); characterfile.write("secondXpBills = ", 0, 16); characterfile.write(Integer.toString(p.secondXpBills), 0, Integer.toString(p.secondXpBills).length()); characterfile.newLine(); characterfile.write("thirdXp = ", 0, 10); characterfile.write(Integer.toString(p.thirdXp), 0, Integer.toString(p.thirdXp).length()); characterfile.newLine(); characterfile.write("otherXpBills = ", 0, 15); characterfile.write(Integer.toString(p.otherXpBills), 0, Integer.toString(p.otherXpBills).length()); characterfile.newLine();[/CODE] Then open [B]PlayerAssistant.java[/B] and search for "public void totallevelsupdate()" and [B]above[/B] it add: [CODE]public void getfirstxp() { int firstXp = c.playerXP[0] + c.playerXP[1] + c.playerXP[2] + c.playerXP[3] + c.playerXP[4] + c.playerXP[5] + c.playerXP[6] + c.playerXP[7] + c.playerXP[8] + c.playerXP[9]; if (firstXp >= 1000000000 && firstXp != 2000000000) { c.firstXpWithoutBills = -1000000000 + c.playerXP[0] + c.playerXP[1] + c.playerXP[2] + c.playerXP[3] + c.playerXP[4] + c.playerXP[5] + c.playerXP[6] + c.playerXP[7] + c.playerXP[8] + c.playerXP[9]; c.firstXpBills = 1; } else if (firstXp == 2000000000) { c.firstXpWithoutBills = 0; c.firstXpBills = 2; } else { c.firstXpWithoutBills = c.playerXP[0] + c.playerXP[1] + c.playerXP[2] + c.playerXP[3] + c.playerXP[4] + c.playerXP[5] + c.playerXP[6] + c.playerXP[7] + c.playerXP[8] + c.playerXP[9]; c.firstXpBills = 0; } } public void getsecondxp() { int secondXp = c.playerXP[10] + c.playerXP[11] + c.playerXP[12] + c.playerXP[13] + c.playerXP[14] + c.playerXP[15] + c.playerXP[16] + c.playerXP[17] + c.playerXP[18] + c.playerXP[19]; if (secondXp >= 1000000000 && secondXp != 2000000000) { c.secondXpWithoutBills = -1000000000 + c.playerXP[10] + c.playerXP[11] + c.playerXP[12] + c.playerXP[13] + c.playerXP[14] + c.playerXP[15] + c.playerXP[16] + c.playerXP[17] + c.playerXP[18] + c.playerXP[19]; c.secondXpBills = 1; } else if (secondXp == 2000000000) { c.secondXpWithoutBills = 0; c.secondXpBills = 2; } else { c.secondXpWithoutBills = c.playerXP[10] + c.playerXP[11] + c.playerXP[12] + c.playerXP[13] + c.playerXP[14] + c.playerXP[15] + c.playerXP[16] + c.playerXP[17] + c.playerXP[18] + c.playerXP[19]; c.secondXpBills = 0; } } public void getotherxp() { c.thirdXp = c.playerXP[20] + c.playerXP[21] + c.playerXP[22]; int otherXp = c.firstXpWithoutBills + c.secondXpWithoutBills + c.thirdXp; int firstAndSecond = c.firstXpWithoutBills + c.secondXpWithoutBills; int firstAndSecondWithoutBills = 0; if (firstAndSecond >= 1547483647) { firstAndSecondWithoutBills = firstAndSecond - 1000000000; if (firstAndSecondWithoutBills + c.thirdXp >= 1000000000) { c.otherXpBills = 2; c.totalXp = firstAndSecondWithoutBills + c.thirdXp - 1000000000; } else { c.otherXpBills = 1; c.totalXp = firstAndSecondWithoutBills + c.thirdXp; } } else { if (otherXp >= 1000000000) { c.otherXpBills = 1; c.totalXp = otherXp - 1000000000; } else if (otherXp >= 2000000000) { c.otherXpBills = 2; c.totalXp = otherXp - 2000000000; } else { c.otherXpBills = 0; c.totalXp = otherXp; } } } public void updatetotalxp() { getfirstxp(); getsecondxp(); getotherxp(); c.billsXp = c.firstXpBills + c.secondXpBills + c.otherXpBills; }[/CODE] And under the same "public void totallevelsupdate()" add: [CODE]updatetotalxp();[/CODE] And then search "public void refreshSkill" and in every case add the same: [CODE]updatetotalxp();[/CODE] And for extra, command you can use to see your total xp ([B]Commands.java[/B]): [CODE]if (playerCommand.equals("totalxp")) { DecimalFormatSymbols seperate = new DecimalFormatSymbols(); seperate.setGroupingSeparator(','); DecimalFormat formatter = new DecimalFormat("#,###,###,###", seperate); if (c.billsXp != 0) { c.sendMessage("You have total of "+c.billsXp+","+formatter.format(c.totalXp)+" xp."); } else { c.sendMessage("You have total of "+formatter.format(c.totalXp)+" xp."); } }[/CODE] And be sure you have these imports in Commands.java [CODE]import java.text.DecimalFormat; import java.text.DecimalFormatSymbols;[/CODE] Have fun with editing it better lol Credits: 100% for me for my shitty counter
  4. Does someone have the full overload effect? Like it stays at 125 or what ever for like 5mins? Kinda need this
  5. I used Shoes' tutorial on how to add the XP counter. but when I compile I get these errors: [CODE]client.java:197: error: cannot find symbol if (x >= 520 && x <= 554 && y >= 47 && y <= 81 && clientSize == 0) { ^ symbol: variable clientSize location: class client client.java:202: error: cannot find symbol menuActionName[1] = xpLock ? "Unlock XP" : "Lock XP"; ^ symbol: variable xpLock location: class client client.java:214: error: cannot find symbol int i = aTextDrawingArea_1271.getTextWidth(Integer.toString(xpCo unter)); ^ symbol: variable xpCounter location: class client client.java:216: error: cannot find symbol aTextDrawingArea_1271.drawText(0xffffff, Integer.toString(xpCoun ter), y+21, x-12-i, false); ^ symbol: variable xpCounter location: class client client.java:3896: error: cannot find symbol xpCounter = 0; ^ symbol: variable xpCounter location: class client client.java:11473: error: cannot find symbol xpCounter = 0; ^ symbol: variable xpCounter location: class client client.java:11518: error: cannot find symbol xpCounter += currentExp[k1]-xp; ^ symbol: variable xpCounter location: class client client.java:12854: error: cannot find symbol xpLock = false; ^ symbol: variable xpLock location: class client client.java:12855: error: cannot find symbol xpCounter = 0; ^ symbol: variable xpCounter location: class client Note: client.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 9 errors Press any key to continue . . .[/CODE] What did i do wrong? and how can i fix?
  6. embodiedpkz

    XP Counter

    To get an XP Counter in my server whether i find a tutorial or leech it, what files will I have to change?
  7. Can someone help me with getting an XP counter into my server? I want one with like flowing icon that shows how much xp you gained. anyone spoodfeed it? or link me to a good tutorial/snippet? THANKS
  8. newboy

    XP counter

    Can anyone please give me a link to a rs client with the xp counter? Also, will the client work with a 562 source? And where do I change the client link in a 614 client?
  9. When a new player logs in their exp counter automatically sets itsself to this: [IMG]http://i1139.photobucket.com/albums/n547/Im_G_O_D/errrrrr.png[/IMG] How do i make it set at 0 at login?
  10. Jonas

    Simple Counter

    Made a Counter in Java :D Use it if you want or need it. [URL]http://dl.dropbox.com/u/50434190/Counter.jar[/URL] If you guys need a Virus Scan..: [IMG]http://img815.imageshack.us/img815/1894/virusscan.jpg[/IMG]
  11. [video=youtube;9jK-NcRmVcw]http://www.youtube.com/watch?v=9jK-NcRmVcw[/video]
  12. Dose Any one Know How To Fix The Xp Flow so When you hit Some thing it will say ..... Xp :D
  13. 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!
×