Jump to content

Search the Community

Showing results for tags 'practice'.



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

  1. any help please.
  2. I need help with changing the home and home teleports in spells. And a solid yell command. I just started 637. I usually do 317 [pi]. So please dont hate on me :/
  3. Im working on this server and I almst know everything but some reason I cant edit the Bin Files. The character file is a Bin file that pops up like black sqaures in escipse. Please help!
  4. Is there one just like 07 link plz I can't find it
  5. need a server where i can hop in and spawn gear and practice fight caves straight away please can you link one
  6. [IMG]http://i48.tinypic.com/29uybnn.png[/IMG] Long time no see. I think I should have messed with the eyes a lot more, but all in all I'm proud of this. :D Image used to create vector: [url]http://i2.cdn.turner.com/cnn/dam/assets/120426094701-adam-montoya-seananners-story-top.jpg[/url]
  7. Steve - [IMG]http://i46.tinypic.com/5be5aw.png[/IMG] Nose - [IMG]http://i47.tinypic.com/16m9llf.png[/IMG]
  8. This is something I started yesterday and it's only a practice for college next year (I want to have a base :D). Here it is: [spoiler=Code] Shape.java [code]package trigonometry; import trigonometry.forms.Circle; import trigonometry.properties.Angle; import trigonometry.properties.Point; public class Shape { protected static final double PI = Math.PI; private Circle circle; private Point point; private Angle angle; public boolean isInDegrees; public boolean isInRadian; public Shape() { isInDegrees = true; } public Circle getCircle() { return circle; } public Point getPoint() { return point; } public Angle getAngle() { return angle; } }[/code] Point.java [code]package trigonometry.properties; public class Point { private double x; private double x2; private double y; private double y2; public void setX(double x) { this.x = x; } public double getX() { return x; } public void setX2(double x2) { this.x2 = x2; } public double getX2() { return x2; } public void setY(double y) { this.y = y; } public double getY() { return y; } public void setY2(double y2) { this.y2 = y2; } public double getY2() { return y2; } } [/code] Circle.java [code]package trigonometry.forms; import java.lang.Math; import trigonometry.Shape; import trigonometry.properties.Angle; import trigonometry.properties.Point; public class Circle extends Shape { private double diameter; private Point point; private Angle angle; private double x = point.getX(); private double x2 = point.getX2(); private double y = point.getY(); private double y2 = point.getY2(); public Circle() { } /** * Max angle of a circle (360 degrees) */ public final int MAX_ANGLE = 360; /** * Gets the middle point of the line * middlePointX = middle point (x axis) * middlePointY = middle point (y axis) */ double middlePointX = (x + x2)/2; double middlePointY = (y + y2)/2; /** * Gets the distance between point 1 and point 2 * Point 1 is (x , y) ; Point 2 is (x2, y2) * @return distance */ public double getDistanceBetweenPoints() { double distance = Math.sqrt(Math.pow((x2 - x), 2) + Math.pow((y2 - y), 2)); return distance; } public double getRadius() { return diameter / 2; } public double area() { return PI * Math.pow((diameter() / 2), 2); } public double diameter() { return diameter; } public double circumference() { return (2 * PI * (diameter() / 2)); } public double getCircularArcLength() { return angle.getAngle() * (PI / 180) * getRadius(); } }[/code] Main.java [code]package trigonometry; import java.io.IOException; import java.util.logging.Logger; import trigonometry.utilities.Loader; public class Main { private Logger logger = Logger.getLogger(Main.class.getName()); private Shape shape; /** * @param args * @throws InterruptedException * @throws IOException */ public static void main(String[] args) throws InterruptedException, IOException { new Main(); } public Main() throws InterruptedException, IOException { logger.info("Launching application..."); Thread.sleep(500); run(); } public void run() throws IOException { shape = new Shape(); shape.getLoader().loadImage("circle.jpg"); } } [/code] Angle.java [code]package trigonometry.properties; public class Angle { public final int MAX_DEGREE_ANGLE = 360; public final double MAX_RADIAN_ANGLE = Math.PI * 2; private double angle; public double getAngle() { return angle; } public double sine(double angle) { this.angle = angle; return Math.sin(angle); } public double cosine(double angle) { this.angle = angle; return Math.cos(angle); } public double tangent(double angle) { this.angle = angle; return Math.tan(angle); } public double getTan(double sine, double cosine) { return sine(angle) / cosine(angle); } } [/code] Loader.java [code]package trigonometry.utilities; import java.awt.Graphics; import java.awt.Image; import java.awt.image.BufferedImage; import java.awt.image.ImageObserver; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO; public class Loader { private String imageName; private Image image; public void loadImage(String imageName) throws IOException { this.imageName = imageName; image = ImageIO.read(new File(imageName)); } public void paintImage(Graphics g) { if(image != null) g.drawImage(image, 0, 0, (ImageObserver) this); } } [/code] [/spoiler] Do not flame, and if you have any constructive/useful comments, feel free to post them below :D Suggestions are also appreciated.
  9. Since I see nowhere else to post this, i'll post it here :D It's a project I started for practice purpose only and to start my classes by my own instead of completing those already made in RSPSs (and I don't have the knowledge to start my own Framework). So here it is: Car.java [CODE]import java.util.ArrayList; /** * Class representing characteristics of the driver's car * @author Guillaume * */ public class Car { private int manufactureYear; private int numberOfDoors; private double milesPerGallon; private String modelName; private ArrayList<Driver> driverList; public Car(int manufactureYear, int numberOfDoors, double milesPerGallon, String modelName) { this.manufactureYear = manufactureYear; this.numberOfDoors = numberOfDoors; this.modelName = modelName; this.milesPerGallon = milesPerGallon; } public void addDriver(Driver driver) { driverList.add(driver); } public ArrayList<Driver> getDrivers() { return driverList; } public double getFuelEfficiency() { return milesPerGallon; } public String getName() { return modelName; } public int getManufactureYear() { return manufactureYear; } public void setManufactureYear(int manufactureYear) { this.manufactureYear = manufactureYear; } public int getNumberOfDoors() { return numberOfDoors; } public void setNumberOfDoors(int numberOfDoors) { this.numberOfDoors = numberOfDoors; } public String getModelName() { return modelName; } public void setModelName(String modelName) { this.modelName = modelName; } public double getMilesPerGallon() { return milesPerGallon; } public void setMilesPerGallon(double milesPerGallon) { this.milesPerGallon = milesPerGallon; } public ArrayList<Driver> getDriverList() { return driverList; } public void setDriverList(ArrayList<Driver> driverList) { this.driverList = driverList; } } [/CODE] Driver.java [CODE]import java.util.Calendar; /** * Class representing the driver's characteristics such as: Age, Full Name, etc. * @author Guillaume * */ public class Driver { private String firstName; private String lastName; private String middleName; private int birthYear; private int birthMonth; private int birthDay; private Location location; /** * * @param firstName * @param middleName * @param lastName * @param birthYear * @param birthMonth * @param birthDay */ public Driver(String firstName, String middleName, String lastName, int birthYear, int birthMonth, int birthDay) { this.firstName = firstName; this.lastName = lastName; this.middleName = middleName; this.birthYear = birthYear; this.birthMonth = birthMonth; this.birthDay = birthDay; } public Driver(String firstName, String lastName, int birthYear, int birthMonth, int birthDay) { this(firstName, "", lastName, birthYear, birthMonth, birthDay); } public Driver() { } public String fullName() { if (middleName != null) { return firstName + " " + middleName + " " + lastName; } else if (lastName != null) { return firstName + " " + lastName; } else return firstName; } public String getFirstName() { return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } public String getLastName() { return lastName; } public void setLastName(String lastName) { this.lastName = lastName; } public String getMiddleName() { return middleName; } public void setMiddleName(String middleName) { this.middleName = middleName; } public int getBirthYear() { return birthYear; } public void setBirthYear(int birthYear) { this.birthYear = birthYear; } public int getBirthMonth() { return birthMonth; } public void setBirthMonth(int birthMonth) { this.birthMonth = birthMonth; } public int getBirthDay() { return birthDay; } public void setBirthDay(int birthDay) { this.birthDay = birthDay; } /** * Formula to get person's age accurately * @return age */ public int getAge() { Calendar calendar = Calendar.getInstance(); int dayOfMonth = calendar.get(Calendar.DAY_OF_MONTH); int monthOfYear = calendar.get(Calendar.MONTH)+1; int currentYear = calendar.get(Calendar.YEAR); int currentDays = (int) ((currentYear * 365) + (monthOfYear * 30.41666666) + (dayOfMonth)); int age = (currentDays -= ((getBirthYear() * 365) + (getBirthMonth() * 30.41666666) + (getBirthDay()))) / 365; return age; } public static String[] MONTH_NAMES = {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}; /** * Gets MONTH_NAMES array elements * @return MONTH_NAMES */ public String displayBirthMonth() { return MONTH_NAMES[getBirthMonth() - 1]; } /** * String to display the driver's informations * @return birthMonth, birthDay, birthYear, firstName, middleName(if != null) & lastName */ public String displayInfos() { return "Driver's name is: "+fullName()+"." + "\n" + "He's born on: "+displayBirthMonth()+" "+getBirthDay()+", "+getBirthYear()+"; He's then "+getAge()+" years old."; } public Location getLocation() { return location; } } [/CODE] Main.java [CODE]import java.io.FileNotFoundException; /** * Main class, used to handle actions of objects such as: Car, Driver. * @author Guillaume * */ public class Main { @SuppressWarnings("unused") public static void main(String args[]) { try { /** * Initializes new Car and Driver objects. */ Driver driver1 = new Driver("Paul", "MiddleName", "LastName", 1947, 12, 10); Driver driver2 = new Driver("Guillaume", "NoName", 1995, 9, 4); Car car1 = new Car(2012, 4, 34.56, "BMW 5-Series 528I Sedan"); Car car2 = new Car(2012, 2, 12.87, "Lamborghini Gallardo"); /** * Adds drivers in Car ArrayList */ car1.addDriver(driver1); car1.addDriver(driver2); car2.addDriver(driver2); String firstPerson = car1.getDrivers().get(0).fullName(); String secondPerson = car1.getDrivers().get(1).fullName(); int personsInCar = car1.getDrivers().size(); new InformationsDumper().writeToFile("Informations.txt"); new InformationsReader().readFromFile("Informations.txt"); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (FileNotFoundException e) { e.printStackTrace(); } } public static void calculateFuelEfficiency(Car car1, Car car2) { /** * If fuelEfficiency < 0, * @return error message */ double car1FE = car1.getFuelEfficiency(); double car2FE = car2.getFuelEfficiency(); if ((car1FE < 0) || (car2FE < 0)) { System.err.println("The fuel efficiency can't be negative."); return; } /** * Calculates the fuel efficiency of both cars and compares them * @return prints the compared result. */ if (car1FE > car2FE) { double comparedEfficiency = car1FE - car2FE; System.out.println("The "+car1.getName()+" can ride up to "+comparedEfficiency+" more miles/gallon than the "+car2.getName()+"."); } else { double comparedEfficiency = car2FE - car1FE; System.out.println("The "+car2.getName()+" can ride up to "+comparedEfficiency+" more miles/gallon than the "+car1.getName()+"."); } } }[/CODE] InformationsDumper.java [CODE]import java.io.BufferedWriter; import java.io.FileNotFoundException; import java.io.FileWriter; import java.io.IOException; /** * Dumps driver's informations to "Informations.txt" file * @author Guillaume * */ public class InformationsDumper { public void writeToFile(String fileName) { BufferedWriter bufferedWriter = null; try { Driver driver1 = new Driver("Paul", "MiddleName", "LastName", 1947, 12, 10); bufferedWriter = new BufferedWriter(new FileWriter(fileName)); /** * Creates new file and dump/write informations */ bufferedWriter.write(driver1.displayInfos()); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } finally { // Closes the BufferedWriter try { if (bufferedWriter != null) { System.out.println("Finished dumping person's informations."); bufferedWriter.flush(); bufferedWriter.close(); } } catch (IOException e) { e.printStackTrace(); } } } } [/CODE] InformationsReader.java [CODE]import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; /** * Reads the informations from "Informations.txt" file * @author Guillaume * */ public class InformationsReader { public void readFromFile(String readFile) throws FileNotFoundException { String line; BufferedReader reader = new BufferedReader(new FileReader(readFile)); try { System.out.println("-----------------------------"); System.out.println("Reading file informations..."); System.out.println("-----------------------------"); /** * While the line isn't null, * reads String line and prints the message. */ while ((line = reader.readLine()) != null) System.out.println(line); } catch (IOException e) { e.printStackTrace(); } finally { try { // Closes the BufferedReader if (reader != null) { System.out.println("Finished reading person's informations."); reader.close(); } } catch (IOException e) { e.printStackTrace(); } } } } [/CODE] Location.java [CODE] /** * Handles the location of the driver * @author Guillaume * */ public class Location { private int x, y, height; public Location(int x, int y, int height) { this.x = x; this.y = y; this.height = height; } public int getX() { return x; } public int getY() { return y; } public int getHeight() { return height; } public void setX(int x) { this.x = x; } public void setY(int y) { this.y = y; } public void setHeight(int height) { this.height = height; } public void showLocation() { System.out.println("(x: "+ x + ", y: " + y + ", height: " + height + ")"); } } [/CODE] That's it for the moment. If you have any constructive comments or advices to say, post them; if it's only to :fp: or such, don't post. If you have anything to suggest me to add, i would be glad to learn some new Java related stuff. Thank you! :D
  10. Making this full from notepad. [QUOTE]Programmers: Octimus[/QUOTE] Ofc, i need some more programmers, [COLOR="#FF0000"]Beware:[/COLOR]will take alot time to make More info and media added soon. ~Octimus
  11. Hey guys, I've been using PHP since about 2008 however I have only recently started to develop my skills for more complex projects. If you are looking for a feature or even just need something fixed/edited on your site feel free to contact me as I need the experience. Preferred contact would probably be a PM with information about what you want done. If you would like to, or can afford you a small payment would be very kind as it helps me to purchase such things as I need for a Web Developer (hosting, domains, software etc...) If you would like me to do a long project, again PM me with details and I will quote it for you. NOTE: This is not a project, me looking for a small feature to add/work on. Thanks :)
  12. I cant wear dragon masks. Can someone tell me why?
×