Jump to content

Recommended Posts

Posted

 

 
 

 

[GR]Fysika kai autos ine o skopos tou post , http://thenewboston.org/list.php?cat=31 des edw kapia tutorials arxika.

 

 

 

 

I will update the version in some hours gyes, for fixes, dont forget i made this for practice , so i won't be much fast.

 

ευχαριστώ

Posted (edited)

UPDATED V2

replaced announce with Broadcast.announceToOnlinePlayers

fixed @SuppressWarnings shits

improved pickplayers() method

now announce number of players that registed before pick the 2 random players

 

when i register more than two players, for example three players:  http://i.imgur.com/Z54Nm1S.jpg

In version 2, i tested with 3 players registed, no problem until now.

 

 

 

FOR ANY BUGS , FIXES , YOU KNOW!!

Edited by Lioy
Posted

problems when there was a tie...

FIXED (added new link , although same version)

 

had forgot to add clean() method.

Posted

 

Asked by discorder25 , made for practice
 
Description:
 

 

 

CODE[V2]:

http://codecrap.com/content/1229/

 

Default delay: 3 minutes(it was for test)

Configuarable(including reward id,count,allow or no the event and delay)

?register to register

?unregister to unregister

Tested(no errors)

For bugs: pm me in the forum or let a comment in this topic,thank you.

 

23huphz.jpg

az9yma.jpg

34j3mf4.jpg

2udussi.jpg

2hpnbzl.jpg

2utkzkw.jpg

2u4t0ub.jpg

 

For more code requests pm me , I do this only for pract

it works to l2jfrozen ?

  • 3 months later...
Posted (edited)

sure

i have register 3 ppl and when say in announcement "amount of players registed 3. 2 random players will be choosen in 30 seconds show that error in gs and event dont start, dont say somethnig in announcements not start again

 

image.png

Edited by nikosdevil20
Posted

i have register 3 ppl and when say in announcement "amount of players registed 3. 2 random players will be choosen in 30 seconds show that error in gs and event dont start, dont say somethnig in announcements not start again

 

image.png

 

 

Change public static Vector<L2PcInstance> players = new Vector<>();

 

to :

 

public static CopyOnWriteArrayList<L2PcInstance> players = new CopyOnWriteArrayList<>();

Posted

Change public static Vector<L2PcInstance> players = new Vector<>();

 

to :

 

public static CopyOnWriteArrayList<L2PcInstance> players = new CopyOnWriteArrayList<>();

 

This, also you should add a little restriction pony where the char can only fight if he has level 80 or nobless

 

if (!activeChar.isNoble)

return true;

else if (!activeChar.isNoble()

return false;

 

something like that for fun

Posted

well

"something like that for fun"

 

if (!activeChar.isNoble || activeChar.getClassId().level() == 3)
        {
        activeChar.sendMessage("You have successfully registered to the event!");
        return true;
        }
    else if (!activeChar.isNoble() || activeChar.getClassId().level() < 3)
    {
        activeChar.sendMessage("You need to be a nobless and have 3rd prof.");
     return false;
    }

 

Sorry napster is that better for you?

Posted

Change public static Vector<L2PcInstance> players = new Vector<>();

 

to :

 

public static CopyOnWriteArrayList<L2PcInstance> players = new CopyOnWriteArrayList<>();

i change to this and now i have this error: 

 

image.jpg

Guest
This topic is now closed to further replies.



  • Posts

    • I think you're severely overestimating the brain power of the average lineage 2 player xD
    • Ever since claude has gotten good, I have used it to make my files better. Over the last three months I have uncovered a STAGGERING amount of exploits using claude, simply by directing it to methods of exploitation and areas of the code I know from experience are not well developed. At first I thought it was only L2JMobius issues, but it turns out all known public and private packs are insecure in multiple ways.    The L2J codebase from which all packs derive, is so incoherent with so many interweaving layers, a complete lack of proper layering, such that one simple line change that looks totally innocent, can lead to the surface of multiple exploitation vectors.    The way things stand now, a player with some knowledge of how things work and a claude subscription can easily bypass client guards and basically ruin servers. It astonishes me that this has not yet happened as I can't be the only one that has a pair of eyes that have seen these things. The things will get much worse as time passes cause there's a huge amount of code being produced in most packs using AI agents. Code that is not properly checked and that poses big risk for anyone willing to adopt it as it introduces a lot of uncertainty to his project.    At this point I'm at a loss for words. I personally cannot guarantee to the player base, that with any pack available, I can open a server and won't have a hacker a week later corrupt the whole econbomy of the server.   Sad times ahead ...        
    • Despite the overwhelming amount of expert testimony explaining why this project was fundamentally broken and apparently an insult to several generations of software engineering, the fucking thing continues to improve, and all it takes is copypasting Galagard's comments to ChatGPT as a prompt. I was going to dedicate three months to it, but unfortunately I have other things to do. ### Changelog - Fixed terrain boundaries and seamless heightmap edges. - Added native cylinder collision. - Improved water generation, height handling and missing asset support. - Fixed collapsed meshes, zero-scale actors and USX/UTX package lookup. - Fixed various parser issues. - Improved caching. **28% faster batch generation**, identical output. - Searchable errors, warnings and skipped items. - Maps/minute statistics and UI improvements. - The spinning ASCII donut remains fully operational. ### Testing Since some of our experts were particularly concerned about whether the generator could actually generate anything, I decided to test the entire Samurai client. **347 maps.** **347 L2J files.** **347 L2OFF files.** **347 pathnode files.** **1,041 successfully generated and validated files.** I'd also like to sincerely thank our dedicated community volunteers for continuing to provide free quality assurance. Your contributions have been invaluable. It's genuinely amazing how much useful feedback you can get from people who supposedly don't care about your software. Unfortunately, ChatGPT keeps fixing the problems you report, so please try finding some harder ones next time. And to those concerned about the future of software development, don't worry. I'm sure spending three months doing something that takes seven minutes will remain a highly marketable skill.   https://github.com/911reg/911reg-MapExtractor/releases/download/v0.9.0/911reg-MapExtractor-0.9.0-win64.zip   https://github.com/911reg/911reg-MapExtractor   Haters, eat your hearts out.
    • 🔥 End-of-October Deals: ChatGPT Plus, Cursor AI, Claude Pro, and Canva Pro subscriptions available at unbeatable rates!     FINAL CALL: Google is Shutting This Down After October 2026! Google will NEVER bring back this window of opportunity again. Once this month ends, this massive backdoor upgrade is gone permanently!  BUY 2, GET 1 FREE IS STILL LIVE! Stock up now for yourself, your family, your business, and your friends! Think about it: Every single person you know uses a Gmail account, and everyone is running out of storage. Don't let your loved ones get trapped paying $20–$30 every single month when you can set them up with 5TB Cloud Storage + Gemini Advanced (12–18 Months) right now for only $15! Why Buy Bulk Activations Today? Instant Gift Value: Perfect lifetime-style gift for clients, family, or team members. 100% Private & Safe: Activates on personal Gmails—zero passwords or logins required. Global Access: Works worldwide with zero VPN hassles. Instant Automated Delivery: Receive your activation links in seconds 24/7! ‍ Time is running out fast—secure your extra free licenses before the October deadline hits! Order Your Bundle Now on the Website
    • Hello everyone, We remind you that before making a purchase, you can take our proxies for a 3-hour test. We also provide a 20% discount on your first purchase. Welcome.
  • 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..