Jump to content

Recommended Posts

Posted

hey guys , I stoped coding this of lack of time (exams) so decided to share

 

I took the idea from here http://l2jesios.org/index.php?topic=2210.0

 

the code is totally in complete i just finished the 5vs5 solo match , need 10 players to register there is 2 teams blue and red

event area in coliseum  , once event start there are 2 turrets in each team and 1 nexus spawned

if you get inside radius 400 from the turrets you will get -1000 hp , if all enemy teams are dead turret wont do anything

 

you need to kill nexus in order to win

 

there are 2 ranks (ranked , unranked)

 

 

for each  match you win you get +15 points in order to be ranked you need to have 100 pionts

 

the code is messy and there may be  bugs

 

Patch :

You will ned to add new column in character and name it rank text and allow null

and excute this in your db

INSERT INTO `npc` VALUES
('10201', '29006', 'Blue Nexus', '1', '', '1', 'LineageMonster4.Divine_Rogue', '140', '75.00', '80', 'male', 'L2Npc', '40', '523', '87238', '378378', '378', '40', '43', '30', '21', '20', '20', '0', '0', null, null, null, null, '230', '1', '333', '0', '0', '0', '60', '120', '0', '0');
('10202', '29006', 'Red Nexus', '1', '', '1', 'LineageMonster4.Divine_Rogue', '140', '75.00', '80', 'male', 'L2Npc', '40', '523', '87238', '378378', '378', '40', '43', '30', '21', '20', '20', '0', '0', null, null, null, null, '230', '1', '333', '0', '0', '0', '60', '120', '0', '0')
('10203', '31690', 'Turret', '1', '', '1', 'LineageMonster4.Divine_Rogue', '24', '69', '80', 'male', 'L2Npc', '40', '523', '87238', '378378', '378', '40', '43', '30', '21', '20', '20', '0', '0', null, null, null, null, '230', '1', '333', '0', '0', '0', '60', '120', '0', '0')
('10204', '31690', 'Turret', '1', '', '1', 'LineageMonster4.Divine_Rogue', '24', '69', '80', 'male', 'L2Npc', '40', '523', '87238', '378378', '378', '40', '43', '30', '21', '20', '20', '0', '0', null, null, null, null, '230', '1', '333', '0', '0', '0', '60', '120', '0', '0')

 

and the code

 

http://pastebin.com/r28zP7m2

 

Posted

ugliest thing i ever seen.

 

I stoped reading after i saw this: rset.getString("rank") == ""

nex time try using String.isEmpty()

Posted

ugliest thing i ever seen.

 

I stoped reading after i saw this: rset.getString("rank") == ""

nex time try using String.isEmpty()

Hahaha..

 

I don't even think == works for String objects.. I've had several errors in the past with this. You need to use equals(another string) or what Setekh said if you want to check that it's equal to nothing.

 

There are more stuff that are done in the wrong way, for example creating a new object of LeagueOfElo class to call a method or a variable(i don't even know if your variables are static and you call them through objects, check below why).

 

Also i noticed that LeagueOfElo class is missing from the diff :S

Posted

ok code update , and as i said code is messy

You shouldn't have shared it, then, because many newbies are going to use it.

 

Anyway, nice try, keep up coding.

Posted

Also, did you take some parts from raid engine?

 

// _log.warning("Raid Engine[spawnEventNpc(" + activeChar.getName() + ")]: exception: " + e.getMessage());

Posted

Also, did you take some parts from raid engine?

 

// _log.warning("Raid Engine[spawnEventNpc(" + activeChar.getName() + ")]: exception: " + e.getMessage());

yes i did

Posted

As i said, your variables are static and you call them through object:

 

LeagueOfElo league = new LeagueOfElo();

+                       league.vs5reg(player);

Posted

As i said, your variables are static and you call them through object:

 

LeagueOfElo league = new LeagueOfElo();

+                       league.vs5reg(player);

vs5reg() is not static

I will update code later

 

Changed all non-static methods to static also added res method in dodie method in pc instance

http://pastebin.com/g7CdtnwB

Posted

vs5reg() is not static

I will update code later

 

Changed all non-static methods to static also added res method in dodie method in pc instance

http://pastebin.com/g7CdtnwB

You didn't quite understand me..

 

For example:

+               if (command.startsWith("five"))

+               {

+                       LeagueOfElo league = new LeagueOfElo();

+                       league.vs5reg(player);

+                       player.sendMessage("Registration Successful");

+                       if (league.vs5.size() == 10)

+                       {

+                               league.pick5v5();

+                       }

+               }

 

Here, it is unnecessary to make a new object of LeagueOfElo class, you can change pick5vs5() method and vs5reg() to static, and call them like this:

LeagueOfElo.pick5vs5();

LeagueOfElo.vs5reg();

As well for vs5 variable which is static.

 

But my point is that you have not coded it in a good way. There are unused stuff in there and more.

 

You should have created for example an abstract class Match, and other classes afterwards that extend this class, to handle the 5vs5 match, 2vs2 and such. Also in Match class you should have abstract methods that all subclasses should override(must). So instead of this ugly code you would have a nice organized way to handle matches, using inheritance.

 

 

More stuff:

 

+                               ii.SetRankPts(ii.getRankPts() + 105);

+                               if (ii.getRankPts() == 100)

+                               {

+                                       ii.setRank("Ranked");

+                               }

 

if (ii.getRankPts() == 100)

This line is incorrect, you should check if it's >= 100 and if his rank is not Ranked (!ii.getRank().equals("Ranked")).

Also, here:

 

ii.SetRankPts(ii.getRankPts() + 105);

 

I think you meant 15..

 

 

Unused/Unneeded stuff:

 

+               if (isTurret())

+               {

+                      

+               }

 

+       public class Start implements Runnable

+       {

+               @Override

+               public void run()

+               {

+                      

+               }

+       }

+      

+       public void createTeam(L2PcInstance a)

+       {

+              

+       }

Posted

You didn't quite understand me..

 

For example:

+               if (command.startsWith("five"))

+               {

+                       LeagueOfElo league = new LeagueOfElo();

+                       league.vs5reg(player);

+                       player.sendMessage("Registration Successful");

+                       if (league.vs5.size() == 10)

+                       {

+                               league.pick5v5();

+                       }

+               }

Yes I did that but didn't forget to edit the npc class

Here, it is unnecessary to make a new object of LeagueOfElo class, you can change pick5vs5() method and vs5reg() to static, and call them like this:

LeagueOfElo.pick5vs5();

LeagueOfElo.vs5reg();

As well for vs5 variable which is static.

I updated it but dont know why da -beep- it didn't change

 

about the  points  +105 because of testing

 

http://pastebin.com/r28zP7m2

 

anyway yes I sucked at this

 

 

 

 

 

 

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

    • Hello guys i was wondering , how all new servers are having interlude files with classic client developed how they want i mean l2reborn , l2 ovc ,l2 dex , l2 flauron etc has interlude files with classic client  where they found this client or where to buy who is making those clients i have interlude files already developed i need to addapt classic client to interlude files  but with not all theses extra skills items etc   
    • I ended up sorting a similar mess by working with a team that handled everything from discovery to launch and kept things super clear. Their business website design approach made it easy for me to get a site that actually fit my goals, plus I kept full ownership of everything. The long-term support and simple pricing structure saved me a ton of headaches down the road.
    • Interface sources for P447 (7s update) for Classic/Essence   NWindow + InterfaceClassic + L2Editor + L2ClientDat Mobius + XDat Editor   Download
    • Hey there, welcome to the community – no worries about being new, we all started exactly where you are. Let me break this down based on what you’re trying to achieve with your Interlude‑Classic idea.   What you’re describing is actually a pretty popular concept: basically Interlude gameplay and balance, but with Classic‑style UI and a cleaner overall user experience. A “hybrid client”, not a full chronicle change.   Projects that have done something similar or are worth studying:   Lucera 2 – You’re right about this one. They use a custom client that blends Interlude gameplay with a more modern/Classic‑like interface. Their UI work (inventory, skill bar, lobby, etc.) is a good reference point.   L2J Mobius – Not exactly your target, but it’s very flexible and has a lot of examples of customizations and adaptations between chronicles.   Smaller custom projects – There are (or were) a few hybrid attempts using Interlude server files with heavily modified clients, but most are private or closed‑source, so you mainly get ideas, not ready‑to-use files.   Where the real challenge is (the client side):   What you want is possible, but the heavy lifting is on the client, not the server. The main pain points usually are:   Making sure interface files are compatible between chronicles (UI textures, layouts, systemmsg, etc.).   L2Font and localization edits: titles, chat, system messages – a small mistake here can break visuals or cause weird text issues.   Character selection / lobby screens: if you take them from another chronicle, you have to adapt them carefully so they don’t conflict with Interlude data.   Inventory, status bars and shortcuts: they must still work with Interlude’s item/skill structure and packet format, or you’ll get visual desyncs and client errors.   About multi‑protocol:   You’re correct that multi‑protocol is often used by projects that want to support different client versions or custom blends. In your case, it can help “talk” properly with a customized client while keeping an Interlude base server. It doesn’t magically fix everything, but it gives you more flexibility on how client and server exchange data.   Quick chronicle breakdown (relevant for your idea):   2.0–2.6: Early, simpler mechanics, good base for old‑school vibes.   2.7: More skills and better balance, often used as a base for custom projects.   2.9.5: A “bridge” between old and new, very common choice for hybrid or heavily modded setups.   3.0+: Adds Kamael and systems you said you don’t want, so you’d mainly use it as a reference, not as a direct base.   My honest recommendation:   Start from a solid Interlude base (files you understand and can actually maintain). Interlude still has the most support, tools and community knowledge.   Focus first on UI/interface modifications instead of trying to change core mechanics. Use Lucera‑style clients and similar projects as visual/technical reference.   Consider a multi‑protocol setup only after you’re comfortable with a normal Interlude client; otherwise you’ll just stack complexity.   Join active L2J / client‑mod Discords and forums. There are specific channels for interface, system edits and client reverse‑engineering where people share tips and tools.   What I would avoid at the beginning:   No intentar mezclar tres o cuatro chronicles a la vez; con uno bien entendido + UI custom ya tienes más que suficiente trabajo.   No subestimar la parte de cliente; muchas veces es más complicada y más frágil que el lado del servidor.   No saltarte el testeo en entorno local; los híbridos rompen cosas pequeñas (tooltips raros, skills que crashean el cliente, UI bugueada) si no pruebas bien.   Resources worth checking:   L2J forums and old MaxCheaters threads about faction/hybrid servers and client mods.   GitHub repos with client tools and interface mods (even si no son exactamente tu chronicle, te sirven como ejemplo).   Discord communities focused on L2 client development; ahí es donde se mueve hoy la parte “seria” del modding.   The good news: what you want is achievable, just not “plug & play”. It will require patience, testing and a bit of learning on both server and client sides. If you share exactly which files/pack you’re planning to use and what you want your UI to look like, people here (me included) can give you more concrete, step‑by‑step advice.
    • I’m done with Lineage 2. Not because I “grew up”, not because I “don’t have time for games” anymore, but because this game has slowly turned into everything it was supposed to be against.   Let’s be honest: most people are not playing Lineage 2 anymore. They are running 5–10 boxes, macros and scripts, setting up their characters and going to watch Netflix. The core loop isn’t PvP, clan wars or raids – it’s AFK grinding and praying your gear upgrades don’t fail.   The game used to be about outplaying your enemy with positioning, timing and coordination. Now it’s about:   Who has more boxes logged in.   Who is willing to swipe the credit card harder.   Who abuses the most broken script, cheat or exploit before it gets “patched”.   And let’s talk about pay‑to‑win. You can pretend it’s “supporting the server” all you want, but when someone can buy power that takes others months (or is literally impossible) to reach, that’s not support, that’s buying victories. When top players are just walking credit cards with epics, donations and event gear, you don’t have competition, you have a spending contest.   The community? It’s just as bad. Most “friends” are temporary party members until they find a better CP, clan or donation package. Drama, backstabbing, ninja looting, clan leaders selling clan resources, spies in Discord – it’s more like a cheap political simulator than an MMO. People talk about “honor” and “fair play”, then log their 10th box, run radar and target through walls.   And private servers… So many promises: “long‑term project”, “no corruption”, “no over‑enchant items”, “balanced gameplay”. Then after a few weeks you see:   Admin friends with full gear “testing”.   Hidden donations or “special offers” for “supporters”.   GMs closing their eyes to obvious abuse because it’s their buddies or biggest donors. Every wipe and every “fresh start” is just another cycle of the same lie, and we all pretend “this time will be different”.   The saddest part? Most of us know all this and still keep coming back because Lineage 2 has an insane core – the world, the classes, the adrenaline of real PvP, the politics, the sieges. But that core is buried under layers of greed, abuse, bots, scripts, egos and fake promises.   So here is the brutal truth: Lineage 2 is not a hardcore competitive MMORPG anymore. It’s a casino disguised as nostalgia, kept alive by whales, box armies and people too addicted or too hopeful to finally let go.   If you’re still playing, ask yourself honestly: Are you having fun, or are you just grinding, coping and praying that “next server” will finally be the one that isn’t corrupt, pay‑to‑win or dead in three months?   For me, I’m out. Flame me, defend the game, call me salty – I don’t care. But deep down, most of you know I’m not lying.
  • 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..