Jump to content

Famous System


Recommended Posts

Hey guys , didn't share for a long time , so here we go :

 

Its a npc which you can add your self to the famous top list if you have 100 pvp or more.

 

You can vote for a player in the list every 24 hour.

 

The list have only top 10 players sorted by votes.

 

 

Code : http://pastebin.com/qJpCZEPB

 

And for DB part :

 

CREATE TABLE `famous` (
  `name` text,
  `votes` int,
  `famous` int
) ENGINE=InnoDB AUTO_INCREMENT=43 DEFAULT CHARSET=latin1;

 

Coded by me

Link to comment
Share on other sites

public void setCanVote(boolean h)

+      {

+              canVote = h;

+              if (!canVote)

+              {

+                      ThreadPoolManager.getInstance().scheduleGeneral(new Famous(), 86400000);

+              }

+      }

this way if the player restarts wouldn't make the instance to start over?

Link to comment
Share on other sites

public void setCanVote(boolean h)

+      {

+              canVote = h;

+              if (!canVote)

+              {

+                      ThreadPoolManager.getInstance().scheduleGeneral(new Famous(), 86400000);

+              }

+      }

this way if the player restarts wouldn't make the instance to start over?

oh , forgot about that.

will update it

Link to comment
Share on other sites

oh , forgot about that.

will update it

It would be good to test some more your codes before sharing. Many people, who have no knowledge on coding, will use this and gonna have problems.

 

Anyway, good job, thanks for sharing.

Link to comment
Share on other sites

It would be good to test some more your codes before sharing. Many people, who have no knowledge on coding, will use this and gonna have problems.

 

Anyway, good job, thanks for sharing.

Its really not a big problem.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • LAST MESSAGE ON THIS FORUM, DO NOT BUY FROM THIS GUY.   OFFICIALLY CONSIDER HIM A SCAMMER. TOOK OVER 400 DOLLARS AND THE MOST IMPORTANT THING, MY TIME. HE TRANSFERRED ME DRACO SET (1 MONTH AND A HALF AGO) AND A DAGGER ACCOUNT, THEN KEPT DRAGGING THE REST, FOR OVER 1 MONTH I HAVE BEEN WAITING ON THE REST OF THE STUFF. I DON'T KNOW WHY, BUT HE KEEPS PROMISING TOMORROW, THE DAY AFTER, WENSDAY FOR ITEMS THAT NEVER ARRIVE.  I AM STILL WAITING FOR HIS ITEMS TO ARRIVE NOW (TODAY DECEMBER 7TH 2023).     DO YOURSELF A FAVOR, DON'T BUY FROM THIS SITE, SPECIALLY FROM THIS SCAMMER.  ADMINS, IF YOU NEED PROOF OF WHAT I AM SAYING, SEND ME A DM IN DISCORD OR HERE AND I WILL GIVE PHOTO EVIDENCE. PLASE BLOCK THIS USER.   REPEAT. DO NOT BUY FROM THIS SELLER.   NOTE: IF HE CONTACTS YOU TO BUY ITEMS FROM YOU, SAME WARNING REMAINS, I GOT A MESSAGE FROM ANOTHER PERSON  TELLING ME HOW HE TRANSFERS HALF THE MONEY TO THEM THEN DOESN'T REPLY ANYMORE. 
    • Very useful guide.  For me as a beginner L2 Developer, those skill tips, must have !  Great work.
    • Hello Maxcheaters, could some knowledged member look at my cmd and check what exactly is the issue? Been running the Interlude server a while ago for few seasons and this appeared every now and again. I launched it recently and stumbled upon this forgotten issue. Used a restard once a day sorted server going. I used to thinkmay be something to do with ram, but it is high enough, my knowledge doesnt reach further. Please help
    • There has to be 99% the problem with connection, but how to find it and solve it ???   I've installed/uninstalled  Lineage 2 Client two times. Clean files. Have opened local Server on my pc, which was working, before i delete all the files and re-install them.   Test home server locally/ online Server = give me Login Server. 1ND is Server Connect ERROR  !  2ND INVALID SOCKET  !   Even the discord i've downloaded, can't update it self, spinning all over, like waiting to receive something from somewhere. Same thing with L2 Launcher. Launcer opening, but you can't update, because gives you Server Connect ERROR! Something has to do with connection, but no idea where.      HELP !!!!
  • Topics

×
×
  • Create New...