Jump to content

InsanityPk

Member
  • Content count

    155
  • Joined

  • Last visited

About InsanityPk

  • Rank
    Steel Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. [quote name='Craids']I went through a terrible fat phase. For almost a year I was 280-290lbs 6'4. I'm down to a good shape at 218. My secret? Apple juice fasting. For 2 months I ate almost nothing. I had a salad once a week with light dressing. The rest of it was apple juice. I bought apples in bulk and I would put them in my juicer and mix the juice with cold water. When I got hungry, I drank juice. When I got thirsty, I drank juice. NOTE: Don't do this with grocery store juice, only natural apples. The first 3 days was HELL. I was so used to fast food and sweets everyday. After that I felt AMAZING I never went hungry, infact I skipped some salad days just to go farther into this system. My colon was cleaned out, my senses became stronger, I felt like fucking superman. With this I went to the gym a few times a week to build muscle. I also took protein supplements. Over 2 months I lost almost 100 pounds and gained muscle. I feel so amazing, no more heavy breathing after climbing stairs, I can finally run again. Good luck to ya mate, I recommend apple juice fasting, the best thing in the world.[/QUOTE] Wow..... I'll be trying that :). I do actually like apples and I eat them whenever I am hungry and is inbetween breakfast - dinner.
  2. Hello it's Oliver :) Whats happening to the server? :/

  3. Hello everyone, this is my first tutorial, so please don't flame :s....... Okay, we are going to add a point system so that when players kill NPCs, they can receive points to spend at a shop.. Firstly you want to go to com/rs2hd/model/Player.java and add this int: [CODE]public int POINTNAME;[/CODE] Now head over to com/rs2hd/model/NPC.java and look for: [CODE]public static Random rand = new Random();[/CODE] And add this under: [CODE] public void npcDied(Player p, int npcID) { switch(npcID) { case 1267: //random npcs case 1648: case 1612: case 1637: p.POINTS += 10; p.sm("<col=736AFF>You have defeated a NPC and gained 10 POINTS."); p.sm("<col=736AFF>You now have "+p.POINTS+" POINTS."); break; case 10575: //random npcs case 1604: case 6215: case 8125: case 6218: //godwars npcs case 6229: case 6231: case 6232: case 6233: case 6234: case 6235: case 6236: case 6237: case 6238: p.POINTS += 15; p.sm("<col=736AFF>You have defeated a NPC and gained 15 POINTS."); p.sm("<col=736AFF>You now have "+p.POINTS+" POINTS."); break;[/CODE] The above code is making it so that when you kill a certain NPC, you get the points. The cases are the npcs. This part is optional. If you want to make it so that players LOSE points when they die, then find com/rs2hd/content/DeathEvent.java. Look for: [CODE] killer.KC++;[/CODE] Then directly under that add: [CODE] killer.POINTS += 50; killer.getActionSender().sendMessage("You have defeated "+player.getDisplayName()+" and gained 50 POINTS.");[/CODE] You can change the amount if you'd like by changing the += AMOUNT;. In the same file, look for: [CODE] Player p = (Player) entity;[/CODE] Under that add: [CODE] p.getActionSender().sendMessage("Oh dear, you have died and lost 50 POINTS."); p.getActionSender().sendMessage("You now have "+p.POINTS+" POINTS."); p.getActionSender().sendConfig(5000, p.getHp()*10); p.getActionSender().sendSkillLevel(3); p.getUpdateFlags().setAppearanceUpdateRequired(true); p.POINTS -= 50;[/CODE] If you already see "p.getActionSender().sendConfig(5000, p.getHP()*10);" or something similar, then replace it with the above code. Now in the same file (DeathEvent.java), look for: [CODE] p.deathCount += 1;[/CODE] Underneath that, add: [CODE] p.POINTS -= 50;[/CODE] Now here are some useful things: You can add this to ActionButtonPacketHandler.java so that when they goto the Achievement tab they can see the amount: Look for: [CODE] case 123:[/CODE] Add this wherever you want it to be (has to be in that case): [CODE] player.getActionSender().sendString("POINTS: "+player.POINTS+"", 259, 5);[/CODE] Now some useful commands: [CODE] if(cmd[0].equals("::POINTS")) { player.sm("You have "+player.POINTS+" POINTS."); player.forceChat("<col=ffffff>I have [<col=736AFF>"+player.POINTS+"<col=ffffff>] POINTS."); }[/CODE] And that's about it... If it's bad then.... It's bad.. Enjoy.
  4. Yes I do have it uploaded, but it still says that it has been detected that they haven't actually voted when they have... How to fix this? :S.
  5. So.... What do I really have to do? :s. EDIT: I've changed it to the proper path, but nothing has changed? Please help?
  6. Bump... Why doesn't anyone on this forum help?
  7. Hello everyone, Recently I've tried to add a vote system. I got a tutorial of Rune-Server and attempted it.. So I followed the tutorial and I had no errors and everything worked perfectly fine and compiled properly. BUT, when players do the ::checkvote command, it ALWAYS says: "It has been detected that you haven't actually voted on all sites. Go back and actually vote." Here is my public void checkvote: [CODE]public void checkVote(String playerName, String IP) { try { String urlString = "http://www.insanity659.hostoi.com/vote/vote.html"; int serverid = 75795; votes += 1; urlString = urlString.replaceAll(" ", "_"); URL url = new URL(urlString); BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream())); String results = reader.readLine(); if(results.length() > 0) { if(results.equals(serverid) && checkVote2(playerName) == true) { votes +=1; } else { sm("It has been detected that you haven't actually voted. Please go back and actually vote."); } } } catch (MalformedURLException e) { System.out.println("An error occured while processing your vote."); } catch (IOException e) { System.out.println("An error occured while processing your vote."); } } public boolean checkVote2(String playerName) { try { String urlString = "http://www.insanity659.hostoi.com/check_vote.php?username="+playerName+"&auth=JFHDJ484F"; URL url = new URL(urlString); urlString = urlString.replaceAll(" ", "_"); BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream())); String results = reader.readLine(); if(results.length() > 0) { if(results.equals("true")) { return true; } } } catch (MalformedURLException e) { //System.out.println("An error occured while processing your vote."); } catch (IOException e) { //System.out.println("An error occured while processing your vote."); } return false; }[/CODE] Can anyone help? Thanks!
  8. Bump. Online and got VPS today.
×