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

    • the links are offiline, could you reupload them please, if you have other versions of h5 or c6 could you share them too, thanks!
    • Good afternoon everyone, we’ll get a couple of strong players in the CP, more details can be found here https://mw2.community/topic/211276-awr-team/  
    • so i bought this crap of the server few years back and i just found it laying around on my pc and i thought i should share it, if i remember correctly this crap has a lot of bugs that people abuse 🙂   https://drive.google.com/file/d/13QWg8pi4BPbGbTmlygZ078LjL6Fb0J2a/view?usp=sharing source   https://drive.google.com/file/d/13QWg8pi4BPbGbTmlygZ078LjL6Fb0J2a/view?usp=sharing system    
    • Error: Unable to access jarfile libs\Geodata_Converter_v01.jar
    • Since last massive leak as explained as 07/09 (notably all development branches), I don't accept anymore financial newcomers that easily. People will have to contribute 100 cookies worth of contributions (bug reports/fixes) as a first step to be accepted as Donator. Free user can join after sharing over 200 cookies out of contributions, compared to 100 cookies before. You can say thanks to RusAcis, and notably his worthless leader, UnleashedForce. The size of users will continue to shrink if more leaks occur, until true helpers only will be left. New prices are as following : Joining price: 200€ + 100 cookies, or 200 cookies This fee has to be paid if you are joining aCis project. Next month, and all other months, you will have to donate only basic monthly donation. Monthly price: 10€ / 10 cookies This fee has to be paid every month. I won't accept any new join fee before the 100 cookies contribution. Your money will be instantly sent back. Also, in the same shape of idea, actual supporters/donators have to be active to stay in sources. It doesn't have to be a particular amount, you just have to share from time to time *anything*. I don't accept anymore silent ppl. Only useful people will be kept.
  • Topics

×
×
  • Create New...