Jump to content

Recommended Posts

Guest Elfocrash
Posted

Still better than continuously sql connection on every time that a player talking to npc,press o command or whatever, right? It's a question :P

Im talking about a thread running every X minutes. Not a new parse of database on click. 

Posted

Im talking about a thread running every X minutes. Not a new parse of database on click. 

most top pvp pks i think are made on this way :S

Guest Elfocrash
Posted

most top pvp pks i think are made on this way :S

Im not talking about most of them am i?

Posted

Im not talking about most of them am i?

cool.

Ok then , at least it helped me understand more the maps :P

I will share a new one tommorow(or who knows when) in that way , database updates every some minutes :)

Posted

Performance wise this way is way better. As this comparing to a sql connection is probably 10 times liter. However i would trust more a sql connection every x minutes to refresh this rather than on click or on pvp kill.

 

So for 10 extra milliseconds which will happen only once in a while someone would go with a class that has dependencies on external classes like L2PcInstance? While you can have an awesome class doing everything byitself automated and so clean?

Guest Elfocrash
Posted

So for 10 extra milliseconds which will happen only once in a while someone would go with a class that has dependencies on external classes like L2PcInstance? While you can have an awesome class doing everything byitself automated and so clean?

Still maps are faster than sql connections so yeah. That's how the whole L2j works. Everything is loaded on startup. Everything is saved on maps,vectors lists and shit and then every x minutes a task saves them on db for security reasons but when they get updated they get updated in the list not the database.

Posted (edited)

Still maps are faster than sql connections so yeah. That's how the whole L2j works. Everything is loaded on startup. Everything is saved on maps,vectors lists and shit and then every x minutes a task saves them on db for security reasons but when they get updated they get updated in the list not the database.

 

Im talking about the data refreshment here (pvps)... Maps are just waste of code on this case

Edited by xdem
Guest Elfocrash
Posted

Im talking about the data refreshment here (pvps)... Maps are just waste of code on this case

No its not. They are faster than connection plus they are liter. You initiate the system by filling up a form and then you only alter the form.

What is bad is that if i create a new player then that player won't appear on the list until the server restarts.

Posted

No its not. They are faster than connection plus they are liter. You initiate the system by filling up a form and then you only alter the form.

What is bad is that if i create a new player then that player won't appear on the list until the server restarts.

I don't think so, just some minutes to test this creating new player

Posted

I don't think so, just some minutes to test this creating new player

New players are also putted , i tested it.

Posted (edited)

No its not. They are faster than connection plus they are liter. You initiate the system by filling up a form and then you only alter the form.

What is bad is that if i create a new player then that player won't appear on the list until the server restarts.

 

So its better to use that junk with maps and 300 lines of unclean code?

 

 

Here is the source of the toppvp/pk manager of an old server of mine

 

http://pastebin.com/ws0JkXjS

 

and it really does ALOT more things than just sorting values. all in clean simple code

Edited by xdem
Guest Elfocrash
Posted

So its better to use that junk with maps and 300 lines of unclean code?

 

 

Here is the source of the toppvp/pk manager of an old server of mine

 

http://pastebin.com/ws0JkXjS

Yeah this version of the code is fine. However his version is liter and faster and it can be written in a way cleaner way.

However the proper way is a combined version of his and your's version.

Posted

Yeah this version of the code is fine. However his version is liter and faster and it can be written in a way cleaner way.

However the proper way is a combined version of his and your's version.

 

None cares for speed of 5-10ms which In my case are called only every 50 seconds. A smart class that is clean and works byitself and not using other classes like L2PcInstance.

 

Anyway everyone has his own coding style, as for me I like a code only when its clean and has no dependencies on other classes. speeds of 5-10ms is the last thing I consider

Posted

Yeah this version of the code is fine. However his version is liter and faster and it can be written in a way cleaner way.

However the proper way is a combined version of his and your's version.

The combined way is to every x minutes  replace the map with new values (using sql connection to read), right?

Guest Elfocrash
Posted

None cares for speed of 5-10ms which In my case are called only every 50 seconds. A smart class that is clean and works byitself and not using other classes like L2PcInstance.

 

Anyway everyone has his own coding style, as for me I like a code only when its clean and has no dependencies on other classes. speeds of 5-10ms is the last thing I consider

It is not 5-10ms lol. It is not about coding style. It is about programming principles, which i can see you lack for obvious reasons. 

 

 

The combined way is to every x minutes  replace the map with new values (using sql connection to read), right?

Combined is it refreshed the map every x minutes but still reads from the maps.

Guest
This topic is now closed to further replies.



  • Posts

    • TELEGRAM SEO TRAINING (Bot Ranking in Search) I teach a complete system for ranking Telegram bots at the top of search results by keywords and countries. The method works for services, shops, crypto projects, and any type of Telegram bot. You can also direct the traffic to your groups, channels, websites, or sales funnels. ⸻  Countries I work with USA, Israel, Russia, India, Turkey, China, Ukraine, Uzbekistan. If you need another country — message me, we’ll find a solution. ⸻ ️ Results First search results appear in 2–3 days. ⸻  What’s included in the training • how the Telegram search algorithm works and key ranking factors • keyword research for your country and niche • bot optimization: description, settings, greeting text • fixing and maintaining positions • specific promotion nuances for different countries ⸻  What you will receive • a complete system for ranking bots in search • understanding how to work with keywords, traffic, and positions • a skill you can use to promote your own projects or earn from clients ⸻  Who this training is for • beginners with zero experience — I explain everything from scratch • those who don’t have a bot — I provide a ready one for practice • anyone who wants to learn promotion and earn from this service ⸻  Why learn from me • doing Telegram SEO since 2021 • over 1000 successful orders • my own panel SMMTG.PRO and private databases • experience working with markets of Russia, Uzbekistan, Ukraine, Israel, USA, Turkey, China, India, Vietnam, Europe, and more ⸻  For pricing — message me t.me/smmtg_link
    • Hey everyone, I was wondering if anyone knows where the client loads all the .dat files. Is there some kind of manifest or list you can specify which dat files the client loads?
    • 🔥 Welcome to Lineage 2 Haruna x3 – True Classic Interlude Experience 🔥 At Haruna x3, we’re bringing back the true essence of Interlude – slow, meaningful progression where every level matters, every item has value, and PvP is real. We’re not about fast servers, pay-to-win advantages, or fake populations. Our goal is simple: create a fair, stable, and long-term server where players can enjoy real competition, strategic clan warfare, and the thrill of open-world PvP. 💎 What Makes Haruna x3 Special? x3 Rates – Perfect for steady, rewarding progression Classic Interlude Mechanics – Relive the nostalgia of Interlude Stable & Lag-Free Gameplay – Optimized for thousands of players online Fair & Balanced – No pay-to-win, every victory is earned PvP & Clan Warfare Focused – Every battle counts 🌟 Quality of Life Features to Enhance Your Experience We keep the classic feel while adding features that make the game more convenient and enjoyable, including: Shift + Click to view monster droplists Free item mail and buy/sell via Adena Daily login rewards & Stream Rewards ALT+K Skill Panel & Alt+Click buffs removal Offline shop system Captcha for security Donate Coins currency (cannot be traded, dropped, or destroyed) Classic P110 client – no custom interface 🏰 Our Philosophy We believe Lineage 2 is about the journey, not just the destination. Haruna x3 is designed for months and years of growth, not weeks. We provide a community-driven environment where honest gameplay, fair competition, and strategic teamwork are at the forefront. 🌍 Join Our Community Whether you’re a veteran of Interlude or a returning player seeking a true classic experience, Haruna x3 offers a place to fight, trade, and grow alongside dedicated players. Step into the world of Haruna x3 – where every decision matters, every fight counts, and every victory is yours to earn. Discord: https://discord.gg/7DDC9Dsxnh Website : www.l2haruna.com
    • No, the real purpose is cheating and custom  development for games.  I'm building a custom AI moderator specially for checking illegal activity and flag current topica.
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock