Jump to content

Recommended Posts

Posted (edited)

Hey guys, i just made this thing:

 

http://pastebin.com/zrk5iKqf

 

What it is?

 

This is a pvp name coloring system, but little different from others. You set the config:

 

NameColorSwapsPvp = 100_00FF00,FFFF00;200_F34342,000000,54673F

 

Where 100, 200 are the amount of pvps for the feature to begin. The others after _ are the colors the name will be switching to every X seconds(you can add as many as you want), where X:

 

NameColorSwapTime = 1

 

 

So basically your name will change between the colors set at the configs every X seconds(set at configs too).

 

I didn't test it, it's coded on aCis though on some old files i had on private svn.

 

It is lamely coded(i am bored) and i wouldn't really suggest this for a live server since a UserInfo and CharInfo packet is sent every X(at configs) second(s) to update the color.

 

HF.

Edited by An4rchy
Posted

 

 

It is lamely coded(i am bored) and i wouldn't really suggest this for a live server since a UserInfo and CharInfo packet is sent every X(at configs) second(s) to update the color.

 

HF.

 

 

Well isn't that the only way that can be done? 

Posted

Well that's something different! :)

 

Don't worry about the code! Mostly here don't know java (only applying code) so yeah they won't care from the moment this works!

Posted

Also it's ok for a live server, sending userinfo,charinfo packets every 1 sec isn't a problem. (That's what I think ofc  , I don't say it's the truth , correct me if I am wrong )

Posted

Well that's something different! :)

 

Don't worry about the code! Mostly here don't know java (only applying code) so yeah they won't care from the moment this works!

Hah, that's true indeed ;p

 

 

Also it's ok for a live server, sending userinfo,charinfo packets every 1 sec isn't a problem. (That's what I think ofc  , I don't say it's the truth , correct me if I am wrong )

Well the truth is that there won't be a 'lag' problem with that specific feature, but combined with several others it can slow things down a bit ;p

Posted

I wouldn't recommend to set the timer to 1, because some actions like augmentation are interrupted when UserInfo & CharInfo packages are sent, meaning you have to close and reopen the window to actually augment.

Posted

I wouldn't recommend to set the timer to 1, because some actions like augmentation are interrupted when UserInfo & CharInfo packages are sent, meaning you have to close and reopen the window to actually augment.

can you explain please with some proofs of what you mean?

Posted (edited)

For example, try to move any item from inventory or skill from skill window to the bar while attacking a mob. You simply can't. The icon is gone - packets interruption.

 

Sort of. That's what he means :)

Edited by SweeTs
Posted (edited)

I hope you don't mind if i say what could be done better

- you could make one thread for whole server, not one for each player

- you could replace int[] color and int last with just String currentColor

- This run() method in Coloring class is some kind of bullshit. You can just send packet every 100 seconds, not once a second.

Edited by vampir
Posted

Oh. i am really sorry. I understood that the code should switch the color every 100 seconds(not after 100 pvps). So the code is quite fine, i can show you later(when i am at home) how it could be made with one thread and without int[] color and int last so it would be a bit faster(but i don't think you would notice any difference in performance even on server with large amount of players)

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 had friends who played on Elegant and I can confirm it wasn't a bad server. I don't know about the AI bots running around, but in my opinion the price is simply too high. I don't think many people will spend that much money on Lineage 2 files when alternatives like L2Scripts already exist.   Of course it's all about personal preference, but for such an old chronicle the price seems ridiculously expensive. Modern chronicles usually offer more value.   Anyway, I wish you the best of luck with the sale. This is just my personal opinion. Whoever likes it, good for them, and whoever doesn't, that's fine too. Everyone has different preferences.
    • https://l2avokado.com/ Hello everyone,   After some time of development, we've decided to open L2Avokado to the public in its current development stage. We're looking for players who enjoy Interlude and would like to help shape the project before its official release.   This isn't a "launch" announcement. Instead, we're inviting the community to log in, explore the server, test the systems we've built, and provide honest feedback. Whether it's bug reports, balance suggestions, progression ideas, or quality-of-life improvements, we'd love to hear them.   Our goal has always been to create an Interlude server that feels familiar while offering a fresh progression experience. We've intentionally avoided custom weapons, armor, and client modifications. Instead, we've focused on redesigning progression through reworked hunting grounds, quests, crafting, and gameplay systems while remaining compatible with a clean Interlude client.   At this stage, the core progression path has been implemented, including the main hunting grounds, quests, custom systems, and events. However, as the project is still under active development, there will inevitably be bugs, balance issues, and areas that require further polishing.   This is exactly why we'd like your help.   We're looking for players who are willing to: Test gameplay and progression. Report bugs and exploits. Suggest balance improvements. Share ideas for new features or quality-of-life changes. Help us build a server that the community genuinely enjoys playing.   The Client and System downloads are already available on our website, so you can jump straight into the game. We're also working on a dedicated launcher that will simplify installation and future updates.   If you're interested in helping develop a unique Interlude project and want your feedback to genuinely influence the direction of the server, we'd love to have you with us.   We look forward to seeing you in-game and hearing your thoughts on Discord. https://l2avokado.com/
    • Mate your server used to play with full of bots, from where you find that revenue? 
  • 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..