Jump to content

Smart Community Board


Recommended Posts

dude one suggestion, you should change something in TopPlayer.java, String adenas = getAdenas(result.getInt("SUM(it.count)")); to this String adenas = getAdenas(result.getLong("SUM(it.count)"));

and make this:

public String getAdenas(long adena)
{
	String adenas = "";
	if (adena >= 1000000000)
		adenas = Long.toString(adena / 1000000000) + " Billion " + Long.toString((adena % 1000000000) / 1000000) + " million";
	else
		adenas = Long.toString(adena / 1000000) + " Million " + Long.toString((adena % 1000000) / 1000) + " k";
	return adenas;
}

btw nice work!!

 

Yes thats correct i've only test this local so i missed this one ;) , thanks.

Link to comment
Share on other sites

Very nice coded, but i have got few advices

[PL]

-na koncu kwerend nie musisz dawac ";" :P

-klasa GrandBossList jest nie potrzebna bo podobna klasa juz istnieje w l2jserver, popatrz na RaidBossSpawnManager

-result.close() i statement.close() ZAWSZE dawaj do finally, bo jesli cos pojdzie nie tak, polaczenie sie nie zamknie

[/PL]

thx for sharing it :)

Link to comment
Share on other sites

Very nice coded, but i have got few advices

[PL]

-na koncu kwerend nie musisz dawac ";" :P

-klasa GrandBossList jest nie potrzebna bo podobna klasa juz istnieje w l2jserver, popatrz na RaidBossSpawnManager

-result.close() i statement.close() ZAWSZE dawaj do finally, bo jesli cos pojdzie nie tak, polaczenie sie nie zamknie

[/PL]

thx for sharing it :)

Thanks, but why did you told the advices in PL im not from Poland, but thanks anyway for your advices some1 might use them and make a better cb but i dont think that im going to update it anytime soon, this was made for personal use and anyone is free to mod it in any way they want for their needs.

 

Btw about the RaidBossSpawnManager i dont remember how it worked or if i could use it, but an extra class is not such a big deal since its more organized i think to have them all in one place, since the RbSpawnManager can change anytime from l2jserver.

Link to comment
Share on other sites

Thanks, but why did you told the advices in PL im not from Poland, but thanks anyway for your advices some1 might use them and make a better cb but i dont think that im going to update it anytime soon, this was made for personal use and anyone is free to mod it in any way they want for their needs.

 

Btw about the RaidBossSpawnManager i dont remember how it worked or if i could use it, but an extra class is not such a big deal since its more organized i think to have them all in one place, since the RbSpawnManager can change anytime from l2jserver.

sorry, i thought u are from poland.

I wrote those advises to try avoid such things in future, not to update community.

I dont really like your RaidBoss class coz everytime somebody is clicking in community to check raid boss respawn(and lets say that will be often), also database will be used more often coz of that which isnt very healthy :)

Link to comment
Share on other sites

sorry, i thought u are from poland.

I wrote those advises to try avoid such things in future, not to update community.

I dont really like your RaidBoss class coz everytime somebody is clicking in community to check raid boss respawn(and lets say that will be often), also database will be used more often coz of that which isnt very healthy :)

 

Well thats not quite true, i mean it doesnt check the db everytime cause there is the cache too. In short when for example 10 users browse this pages and an 11th user come and click it, it wont access the db but it will send him the cached html and it will be refreshed again after some time like 5 mins im not sure how the htm cache works or how its done but its not accessed everytime.

Link to comment
Share on other sites

Well thats not quite true, i mean it doesnt check the db everytime cause there is the cache too. In short when for example 10 users browse this pages and an 11th user come and click it, it wont access the db but it will send him the cached html and it will be refreshed again after some time like 5 mins im not sure how the htm cache works or how its done but its not accessed everytime.

oh, i am sorry then, didnt know about that.

Link to comment
Share on other sites

Formestill not working. what i need to have in config? like i say compilation was goodbuthave error in game 404 filrnotfounf "index.htm" i checked and files is in communityboard folder.

Link to comment
Share on other sites

Formestill not working. what i need to have in config? like i say compilation was goodbuthave error in game 404 filrnotfounf "index.htm" i checked and files is in communityboard folder.

 

Jeez, you should read replies more carefully.

 

[PL] Jak mówi error, brakuje Ci głównego pliku index.htm - dlatego Ci nic nie wyświetla bo nie ma co.

Więc dodaj ten plik do data\html\CommunityBoard [/PL]

 

To be more specific, download Datapack part and paste all htm files into CommunityBoard folder..

Link to comment
Share on other sites

it is shared many times but this is the best one !

 

Awesome work and awesome code !

 

+ 1 reputation from me , for your 1500 lines code + many html files !

 

 

Keep Sharing m8 !!!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.



  • Posts

    • L2 Insignia High Five 20x MID SERVER FOCUSED ON OLYMPIAD | PVP | AUTOFARM       OPEN BETA TEST SERVER 3 MAY 2024   GRAND OPENING 10 MAY 2024    Rates: 📜 XP/SP 20x | Spoil 15x | Drop 10x | Adena 10x 📜     Server Features: 🔥 No Olf-T Shirt, No big over-enchant, No over-power Donate 🔥 🔥 VIP Gold Color Chat, Unique Olympiad Extra Points Engine, GvG Event 🔥 🔥 Auto-Farm, LoA and DV scheduled PvP Zone, Calendar Daily Reward 🔥 🔥 Castle Instance, Solo Instance, PvP Solo Rift, Dress me system, Adena Boxes 🔥        Website: https://www.l2insignia.com  Discord: https://discord.com/invite/yEgsrHn2hQ      
    • I am selling the essence project which includes versions 388 and 439 that have been running for over 2 years or (447 as custom PVP like Pride). I have a test server for you to test them out. If you are really interested in it then contact my seller at discord: kiwi7106. Price: 4000 Euro P/s: This is a project that I have spent a lot of money and time developing, so if you are not interested in it, please get out of this topic, thank you. P/s 2: If you find the price too expensive, it's best to skip this article and find another project and don't comment negatively on my topic, thank you.
    • Someone ask me for this, it should work on any client that has Kamael race, preview:     Installation - there are two ways to install depending on how you want to use it:   Method 1: If you want to completely replace the original, do:   Copy all lines from your armorgrp to Notepad++, press Ctrl+H, check the "match whole word" option and replace:   kamael.Mkamael_m000_w_ad00   by:   AvengersKamaelWings.Avengers_MKamael_m001_w_ad00   Then replace:   MKamael.Mkamael_m000_t00_w   by:   AvengersKamaelWings.MKamael_m001_t00_w   Now repeat the same process with the female, replace:   kamael.Fkamael_m000_w_ad00   by:   AvengersKamaelWings.Avengers_FKamael_m001_w_ad00   Then replace:   FKamael.Fkamael_m000_t00_w   by:   AvengersKamaelWings.FKamael_m001_t00_w   You're done, paste everything back into File Edit and save!   Method 2: If you only want to replace in specific sets, execute the above process only on the armorgrp of those sets.   Repack by: AvengersTeamBr Password: LadrãoDeFrango      
    • 用于解密、加密和编辑 .u 文件的工具。
  • Topics

×
×
  • Create New...