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

  • SweeTs locked this topic
Guest
This topic is now closed to further replies.



  • Posts

    • of course , add me on discord banshee1019
    • Thanks for the feedback @Tryskell , really appreciate it.  Well to be honest, i want to learn Developing not just for fun. I mean, i like that the thing that has to do with games, and coding. For me everything that has to do with coding and lineage, setting up all the things you have to, is like a game, but with serious purpose.   A lot of information is running in the internet i agree with you, but as you mention from where i should start and what to look up, cost you 5 minutes of your time helping me out, otherwise i would spend 1 week or maybe more, to search random information.   About the time and dedication - I agree also. Why i love this, is because like a mentioned earlier, is a game the coding part, but with serious purpose. And by the way, about bad and lame Developers, those are the people that doing this without a serious purpose, and zero understanding, just low knowledged ass dumps want to learn money on a 1/2 months server, but that's not about me 😃    So about practicing, what you would suggest to me ? Any random L2J files, and just practice on them on the first steps?
    • Explore 99G's digital store (mysellix.io)Explore 99G's digital store (mysellix.io)Explore 99G's digital store (mysellix.io)Explore 99G's digital store (mysellix.io)Explore 99G's digital store (mysellix.io)Explore 99G's digital store (mysellix.io)Explore 99G's digital store (mysellix.io)Explore 99G's digital store (mysellix.io)Explore 99G's digital store (mysellix.io)Explore 99G's digital store (mysellix.io)Explore 99G's digital store (mysellix.io)Explore 99G's digital store (mysellix.io)Explore 99G's digital store (mysellix.io)Explore 99G's digital store (mysellix.io)Explore 99G's digital store (mysellix.io)Explore 99G's digital store (mysellix.io)Explore 99G's digital store (mysellix.io)Explore 99G's digital store (mysellix.io)Explore 99G's digital store (mysellix.io)Explore 99G's digital store (mysellix.io)Explore 99G's digital store (mysellix.io)Explore 99G's digital store (mysellix.io)Explore 99G's digital store (mysellix.io)Explore 99G's digital store (mysellix.io)Explore 99G's digital store (mysellix.io)Explore 99G's digital store (mysellix.io)Explore 99G's digital store (mysellix.io)Explore 99G's digital store (mysellix.io)Explore 99G's digital store (mysellix.io)Explore 99G's digital store (mysellix.io)Explore 99G's digital store (mysellix.io)
    • i get that.   Error on: C:\Users\Talha\Desktop\Server_enson\game\data\scripts\quests\263_KillAllSylphs1\__init__.py.error.log Line: -1 - Column: -1 Traceback (innermost last):   File "quests/263_KillAllSylphs1/__init__.py", line 104, in ? NameError: QUEST if u available i want to send teamviewer or anydesk  
    • remove this   # Check if the quest can be repeated         if not self.can_repeat(st):             remaining_time = self.get_time_remaining(st)             if remaining_time:                 htmltext = f"<html><body>You can repeat this quest after {remaining_time} passed!</body></html>  
  • Topics

×
×
  • Create New...