Jump to content

Recommended Posts

Posted

Hi guys

this guide is made for the little advanced user that have problem understanding the langauge

So you take the shared code here,compile it successfully but you don't know how it works?

Just a really brief look on the code don't expect anything good

 

So We start

 

We all see that in each java file there is always the word class

So what's the class anyway?

We define a class as an object and we can call it later by making a instance of it

So let's take an example from our life

now we  are going to implement things on it

for example our bank account got some money in it

 

- A class's name (the main class) has the same name of the file. All other classes (inner classes or nested classes) can be named whatever you want.

public class Account 
{
   int moneyAmount;
}

NOTE the code here isn't ready i just show some examples

so we made a field named moneyAmount type int

int means integer so it can be 1,2,3,4,5,6,8,9,0 although it stops somewhere and you must use for example long int

Now we are able to make functions(methods) that we can retrieve and take money back

pretty simple to make a method

public class Account
{
  int moneyAmount;

  public void withdraw()
  {
       ; //here we insert out statements what we want the method do
         // this can be done with multiple lines
  }     //close the brackets
} //close class brackets

So here we simple created a method

Now how do i call that method?

In your main just call it

Account.withdraw();

we inserted account to show that it is a method from account class

and called withdraw with ; in the end

 

Good till now

You can also pass arguments in the methods

for example

public void withdraw(int money) 
{
   ;
}

Now you can call it  like Account.withdraw(123);

 

Let's move to constructors

Constructors are used to create instances

Also constructors must have the same name with the class

let's make an example

public class Account 
{
  Account() {
                 ; //our code
                }
}

so you declared an constructor

now to build an account

from another class we call

Account acc;
acc = new Account();

Now we are going to talk about imports packages and the extend word

 

To use the code from other classes we have first to import them

how do i import classes?

 

at the top of your code you use

 

import packagename;

 

What's this pack anyway?

A package you can imagine is the folder that your java file exists

take a look

package com.server;

import com.server.Account;

Remeber package goes first the imports then classes

to access folders as you saw we use . not /

 

Let's take a look at the word extend that i am sure you have seen many times

By using extend in our class we automaticall get the code from the class we extended

let's take an example from l2j

public final class L2PcInstance extends L2PlayableInstance

ye you found it ^^

Something i want to point is

L2PcInstance is subclass of l2playable instance

and so it goes on when another class extends l2pcinstance  it becomes subclass of it and from l2playable

Also super class is the class that it is extened by another but it doesn't extend something else

 

Now let's talk about those public,private and all this crap

 

public,private,protected are  name access specifiers

we use them to change the accessibility of the class variable etc

so

 

public: can been seen from everywhere

 

protected: can be used only by itself and his subclasses

 

private: can been seen only by itself

 

public class Car
private class Car 

so goes on  same happens with fields (int,float,bool,etc)and our methods

 

Let's go to Modifiers

 

they are used after access specifiers

 

<acess specifiers> <modifiers> <type or class>  <variables>;

 

Modifiers are

 

final: it makes the variables constants

 

static: those make the vars/methods able to be called without having a instance made

 

abstract: it means that methods aren't going to have body in this class

 

There are others too though in l2j you won't need them

 

Operators:

What are those and why we need them

You already know the most

Let's Start

 


+
-
* (multiplies)
/ (divides)
%
^ powers

Bigger,less equal to


<= less or equal to
< less than
>= bigger or equal to
> bigger

Now something that ppl confuse


==   means equal to
!=    means not equal

And the last


&&  which means and
! which means NOT
|| which means OR

Be sure you are not using == with = because it's different

== means equal to and = is used to set values

for example

if (moneyAmmount == 100)
{ 
    System.out.println("You got 100 euros");
}

It's not the same with

if (moneyAmmount = 100)
{
     System.out.println("Wrong!you set money to 100");
}

In the second example we set money to 100 and it automaticall executes the statements because the condition it's true!

 

That's All hope you got learned something from here

feel free to ask me any question

 

Credits goes to me

 

 

 

Posted

Luke don't forget to explain them the obvious:

- A class's name (the main class) has the same name of the file. All other classes (inner classes or nested classes) can be named whatever you want.

Posted

Luke don't forget to explain them the obvious:

- A class's name (the main class) has the same name of the file. All other classes (inner classes or nested classes) can be named whatever you want.

thnx forgot to add that

Posted

Nice one, so many shares but non explanation. +1 karma.

 

You could improve the "extends" part a lil bit.

Posted

Nice one, so many shares but non explanation. +1 karma.

 

You could improve the "extends" part a lil bit.

 

It's for competition, you shouldn't give the karma.

He will either recieve it from the competition, or he won't recieve any karma at all.

 

Anyway I don't have problem for this xD

Posted

It's for competition, you shouldn't give the karma.

Yes, Reve. said that too :

 

4)You can't take karma for your guide if it doesn't win the competition.

 

So, i have to smite Maestro's karma , for now.

The guide is really good, so you have many chances of taking your karma point back. :)

Anyway, good luck and keep sharing!

Posted

Yes, Reve. said that too :

 

So, i have to smite Maestro's karma , for now.

The guide is really good, so you have many chances of taking your karma point back. :)

Anyway, good luck and keep sharing!

Np guys you know i am  really happy that ppl learn from here

Nice one, so many shares but non explanation. +1 karma.

 

You could improve the "extends" part a lil bit.

i will and i will update it till max characters xD

Posted

The extend class modifier is EXTREMELY simple. Picture this:

- You want to make a lot of cars, but all cars have common parts, like an engine, wheels,body,etc.

 So you make a new Class File named "CarClass" which contains basic information for all cars (engine,wheels,body,llala);

- When you make a new car Class File e.g. "SubaruImpreza" you extend the CarClass so that now, this file can access the CarClass's containers,methods, variables and classes, hence, avoiding unnecessary work. Its like a base template from which you start building other sites.

Posted

The extend class modifier is EXTREMELY simple. Image this:

- You want to make a lot of cars, but all cars have common parts, like an engine, wheels,body,etc.

  So you make a new Class File named "CarClass" which contains basic information for all cars (engine,wheels,body,llala);

- When you make a new car Class File e.g. "SubaruImpreza" you extend the CarClass so that now, this file can access the CarClass's containers,methods, variables and classes, hence, avoiding unnecessary work. Its like a base template from which you start building other sites.

shit i forgot overriding

w/e i gonna remake it tonight ;p

  • 6 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • I’ve been playing with LLM-driven autofarm bots too, and giving them some visual cues made a big difference. I ended up using art pieces from https://allcorrectgames.com/service/game-art/ as placeholders while training my detection prompts, and it actually helped the models parse scenes more reliably. If you add a bit of lightweight state tracking on top, your fake players start behaving way more naturally.
    • Roblox has become one of the world’s most influential user‑generated gaming platforms, attracting millions of players and creators every day. What makes Roblox unique is that it is not just a place to play games—it is a place where anyone can build their own. With Roblox Studio, even complete beginners can design immersive worlds, interactive experiences, and full‑fledged games. This guide will walk you through the essential steps to create your first Roblox game, while also helping you understand how features like Roblox Robux fit into the creator ecosystem.       1. What Is Roblox Studio and Why Use It? Roblox Studio is the official development environment used to create every game on the platform. It is free, accessible, and designed for creators of all skill levels. Whether you want to build a simple obstacle course or a complex simulation game, Roblox Studio provides the tools you need. The platform’s success comes from its user‑generated content model. Players can create games, publish them, and even earn Roblox Robux through in‑game purchases, game passes, or developer products. While earning Robux is not the focus for beginners, understanding its role can motivate you to improve your creations over time.   2. Setting Up Roblox Studio Before you start building, you need to install and set up Roblox Studio. Steps to get started Download Roblox Studio from the official Roblox website. Install and open the application. Log in using your Roblox account. Choose a template or start with a blank Baseplate. For beginners, templates like Obby, Village, or Racing provide a structured starting point. They include pre‑built elements that help you learn how different parts of a game work.   3. Understanding the Interface Roblox Studio may look overwhelming at first, but each panel has a clear purpose. Learning the interface early will make your development process smoother. Key panels Explorer: Shows all objects in your game world. Properties: Displays editable settings for selected objects. Viewport: The 3D workspace where you build your world. Toolbox: Contains free models, scripts, and assets. Home / Model / Test tabs: Provide tools for building, editing, and testing. Spend a few minutes clicking around, selecting objects, and adjusting their properties. This hands‑on exploration helps you understand how everything fits together.   4. Building Your First Game World Once you’re familiar with the interface, it’s time to start building. Using Parts Roblox Studio uses “Parts” as the basic building blocks. You can insert: Blocks Spheres Cylinders Wedges These can be resized, rotated, and moved to create platforms, walls, buildings, or obstacles. Using the Toolbox The Toolbox allows you to drag pre‑made assets into your game. This is extremely helpful for beginners, but choose assets carefully. Some community models include unnecessary scripts that may affect performance. Look for items marked as “Verified” or created by trusted developers. Organizing Your Workspace As your game grows, organization becomes important. Use folders in the Explorer panel to group objects logically: “Obstacles” “SpawnPoints” “Decorations” Good organization saves time and prevents confusion later.   5. Adding Gameplay with Scripts Roblox games use Lua, a beginner‑friendly scripting language. You don’t need to be a programmer to start, but learning basic scripting will greatly expand what you can create. Simple scripts you can try Making a part disappear when touched Creating a moving platform Adding checkpoints Giving players speed boosts Here’s a simple example: a script that prints a message when a player touches a part. Lua: local part = script.Parent   part.Touched:Connect(function(hit)     print("A player touched the part!") end) Even small scripts like this help you understand how interactions work in Roblox.   6. Testing Your Game Testing is essential. Roblox Studio provides several testing modes to simulate gameplay. Use the “Play” button to: Walk around your world Test scripts Check spawn points Look for bugs Ensure platforms and obstacles work correctly You can also use Play Here, Run, and Play Solo to test different aspects of your game.   7. Adding UI and Game Logic A polished game needs more than objects—it needs user interface elements and clear rules. Common UI elements Timers Score counters Health bars Buttons Pop‑up messages You can create UI using ScreenGui objects inside the StarterGui folder. Roblox provides templates for text labels, buttons, and frames, making it easy to design simple interfaces.   8. Optimizing Your Game A smooth game keeps players engaged. Here are some optimization tips: Remove unused parts and scripts. Avoid too many moving objects. Use low‑poly models when possible. Test on mobile devices—many Roblox players use phones. Keep lighting simple to improve performance. Optimization ensures your game runs well for all players, not just those with powerful devices.   9. Publishing Your Game Once your game is playable, you can publish it to Roblox. Steps to publish Click File → Publish to Roblox. Enter a name, description, and genre. Choose whether the game is public or private. Set permissions and access settings. After publishing, you can share the link with friends or the Roblox community. If you eventually want to monetize your game, you can add game passes or developer products that players can purchase using Roblox Robux. This is optional for beginners, but it becomes important as your game grows.   10. Improving Your Game Over Time The best Roblox games are updated regularly. After publishing, pay attention to: Player feedback Bug reports Suggestions from friends Analytics (visits, playtime, retention) Add new levels, improve visuals, or introduce new mechanics to keep players coming back.   11. Learning and Growing as a Creator Roblox provides many resources to help you improve: Roblox Creator Hub Developer Forum YouTube tutorials Community Discord servers The more you practice, the more confident you’ll become. Many successful developers started as beginners just like you—and some now earn significant amounts of Roblox Robux through their creations.   Final Thoughts Creating your first Roblox game is an exciting journey. You don’t need advanced skills or expensive tools—just creativity and curiosity. Start small, experiment with templates, learn basic scripting, and gradually build your skills. With time and persistence, you can create a game that players around the world will enjoy.
    • Hello it seems you can't receive PMs, it won't let me, do you use discord?
    • Hello after returning to lineage 2, I was wanting to start some local server development for a few friends and me to play around with but for some reason I'm having trouble after so many years to find a stable high five client. The clients I have found either have crash issue, many errors in the client log files or freeze after only a day or two of playing (autofarming for a day for example, you'll go to teleport after a farm session and the client freezes).   I've played a few High Five servers and it seems a lot of them have been able to optimize it to avoid these problems.  We are running multiple clients per PC so this does sound essential.   I've heard one major feature that is helping client stability is the ability to clear cache/memory without restarting the game or something along those lines.   So I'm wondering if anyone can point me in the direction of obtaining a High Five client that is clean, optimized and decrypted to be able to add customs items etc. for a fair price.  
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..