Jump to content

Lineage 2 Vote Reward System


Recommended Posts

4 hours ago, Irrelevant said:

Hello .1st of all nice share, but i found a bug ~> https://imgur.com/CN4Avdb.
When you vote in l2.topgameserver.net it gives you cooldown 9:30h ~>
after those 9:30h you can just press multi times and as many you want on "Get Reward"button and receive reward every time you press that button.
At least that happened to me.

rev: L2jfrozen 1132 java8


EDIT: Even after restarting the server you can still press the button and receive reward ,multi times!

that is because l2.topgameserver.net has DiffTime set by the votesite API.
You can reconstruct code urself or disable it.

Link to comment
Share on other sites

6 hours ago, Cherish said:

that is because l2.topgameserver.net has DiffTime set by the votesite API.
You can reconstruct code urself or disable it.

he share a good votesystem for free,maybe its best free votesystem.At least we have to help him with bugs we found.He is part of the staff at l2.TGS.net ,he must aware of this bug .

Edited by Irrelevant
Link to comment
Share on other sites

On 3/4/2021 at 11:31 AM, Irrelevant said:

he share a good votesystem for free,maybe its best free votesystem.At least we have to help him with bugs we found.He is part of the staff at l2.TGS.net ,he must aware of this bug .

he is aware, i was first that reported it. the issue arises from the fact his vote site uses very complex vote solution. that is very different from the rest of the vote sites.
indeed that vote system is very handy and he also spent the time to set it up for me.

i also like the ease of vote on his site, that is why i keep his link up.

Link to comment
Share on other sites

  • 3 weeks later...

Hello @everyone, apparently the problem of undefined claims has been generated by a bad calculation of the remaining times, so to correct this, you must go to: votesystem.Handler.VoteManager and search public long getTimeRemaining (individualVote iv) and replace the old method with this: public long getTimeRemaining (individualVote iv) { long timeRemaining = 0L; timeRemaining = ((iv.getVotingTimeSite () + Config.INTERVAL_TO_NEXT_VOTE) - ((iv.getDiffTime ()> 0)? (System.currentTimeMillis () + iv.getDiffTime ()): (System.currentTimeMillis () - iv.getDiffTime () - iv.getDiffTime ()))); System.out.println ("Remaining time:" + timeRemaining); return timeRemaining; }

Link to comment
Share on other sites

  • 3 months later...

FROZEN 1132

 

not working. im trying to talk with this guy but he won't answer.

i have already installed this code more than 5 times perfectly and still have the same problem.

Gameserver cannot load votesystem.properties. You need to fix it somehow.

Edited by Kounto
Link to comment
Share on other sites

  • 3 weeks later...


    [javac] C:\Users\Tautvydas\Desktop\Eclipse-workspace\workspace\frozen\gameserver\head-src\com\l2jfrozen\gameserver\votesystem\Handler\voteManager.java:92: error: no suitable constructor found for individualVote(String,long,int,boolean)
    [javac]           if (getTimeRemaining(new individualVote(ip, ivr.getVoteSiteTime(), ordinalSite, false)) < 0)
    [javac]                                ^
    [javac]     constructor individualVote.individualVote(String,long,long,int,boolean) is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac]     constructor individualVote.individualVote() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] 1 errors
    [javac] 1 warning

 

Any help?

Link to comment
Share on other sites

  • 8 months later...
On 8/3/2021 at 8:03 AM, tufkis said:


    [javac] C:\Users\Tautvydas\Desktop\Eclipse-workspace\workspace\frozen\gameserver\head-src\com\l2jfrozen\gameserver\votesystem\Handler\voteManager.java:92: error: no suitable constructor found for individualVote(String,long,int,boolean)
    [javac]           if (getTimeRemaining(new individualVote(ip, ivr.getVoteSiteTime(), ordinalSite, false)) < 0)
    [javac]                                ^
    [javac]     constructor individualVote.individualVote(String,long,long,int,boolean) is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac]     constructor individualVote.individualVote() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] 1 errors
    [javac] 1 warning

 

Any help?

did you fixed it? im getting the same error

Link to comment
Share on other sites

  • 5 months later...
  • 2 weeks later...

hi, how to disable some sites? i need only two.. but i obtain java.lang.NullPointerException when delete from votesystem.xml

 

image.thumb.png.936c924308e0e71dd52472c85b0a8d77.png

Edited by StarSCreams
shot
Link to comment
Share on other sites

  • 3 weeks later...

Sorry for the double post...
the hopzone api gets an ip for example: 121.120.15.18
but my server gets another different ip for example: 121.120.15.22
and for obvious reasons the player cannot claim rewards because the ip's don't match.
did this happen to someone?

Link to comment
Share on other sites

  • 8 months later...
  • 3 months later...
  • 2 months later...
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.




×
×
  • Create New...