Jump to content
  • 0

Faction olympiad [SOLVED]


Question

Posted

Greetings humble humans.

I'm working on a faction(GvE) project on interlude (based L2JEqual) and I wanna make the olympiad run normally along with the faction engine.

I imagine problems will be caused to that by same faction characters not being able to hit each other once they end up together for a match, I'm not completely sure about this as I'm waiting for a new router since on this I can't disable the firewall and therefore can't have friends over to test and I have no idea how I can make it possible for like 2-3 clients that I would be able to open to launch an olympiad game.

And from what I've looked on the scripts I assume there's no such thing fixing the olympiad on this pack by default

 

Anyway I would like your help on the matter as on the server side I have never bothered with the olympiad so I have no clue how the the whole process works on the java side.

 

A way I imagine it could be done it storing the clients faction side, then making him neutral and restoring it after the match is over but what if he disconnects?

 

Anyway thanks in advance for your help :)

2 answers to this question

Recommended Posts

  • 0
Posted

Where you're checking if they're from same faction, then can't attack... Just add...

Example:

if((player.isGod() && target.isGod()) || (player.isEvil() && target.isEvil()) && !player.isInOlympiadMode() && !target.isInOlympiadMode()){
player.sendMessage("You can't attack members of your own faction.");
return false;}

 

  • 0
Posted

Where you're checking if they're from same faction, then can't attack... Just add...

Example:

if((player.isGod() && target.isGod()) || (player.isEvil() && target.isEvil()) && !player.isInOlympiadMode() && !target.isInOlympiadMode()){
player.sendMessage("You can't attack members of your own faction.");
return false;}

 

haha now I feel stupid for not thinking of that earler >.>

but I'm pretty busy and I have been away from the field for a while :)

 

anyway haven't tested it yet but it should do the trick, thanks a lot :)

 

 

(the topic may be locked)

Guest
This topic is now closed to further replies.


  • Posts

    • Hello,iv got fafurion running localy just for fun and seems that files dont have geodata couse i can hit through walls so are mobs.Anyone can tell me how to activate geodata or where to insert geodata files?
    • L2Extend_Server_by_Guytis_Rev_201.rar Trojan:Script/Sabsik.FLA!ml   LOL
    • Good luck with your g/o 😃
    • You're talking complete nonsense. The source code of SphereAPI, which handles all requests, is closed and has never been published anywhere.     That return $this doesn't affect anything, PHP just ignores it. Why are you showing it?     Yes, of course I want that, and I’m asking you — go ahead and hack it, I’d even be thankful. The most you can probably do is launch a DDoS attack, but that’s not hacking. The IP you see is just a public one, used by default to handle requests. There are many other IPs involved, which aren’t disclosed for privacy reasons. So, when should I expect your hacker attack? If you fail, it means you talked big for nothing. I hope you're not all talk and can actually back up your words. UPD: To make your task easier, I have disabled limits on incorrect and failed requests, so your site/IP won't get blocked.
    • Lineage2Dex Interlude+ x50 Server launches TODAY!       The wait is over – the Lineage2Dex Interlude+ x50 Server launches TODAY! Grand Opening - April 26 at 19:00 (UTC+3) Over 10,000 registered accounts are ready to dive in! Beta with massive activity over, thx all who participate on it! It's time to begin your real Jorney! 👉 Read full roadmap 👉 Full server description 👉 Download and registration The server will be split into 3 stages, each featuring multiple content episodes. Stage 1: April 26 – May 18 Welcome to the Classic Interlude Phase. This stage is built with minimal custom content, focused on delivering that pure Interlude experience. It’s perfect for both new players unfamiliar with our project and veterans who enjoy a traditional start. Expect a smooth and nostalgic journey with familiar mechanics. Stage 2: May 19 – June 22 Time to expand the world! As most Interlude content gets completed, we gradually introduce new elements. Hellbound will open first, followed by weekly content updates. Midway through this stage, the Isle of Prayer will become available — a new zone featuring Dynasty Gear and fresh challenges. Stage 3: From June 23 Welcome to full content access! Some location become to High-level location, offering great reward! Once this phase concludes, a full merge with Union server will take place — and yes, all your characters and items will carry over safely. We wish everyone a smooth start, fair play, and tons of fun on the new x50 server! See you in-game!
  • Topics

×
×
  • Create New...