So i got Rizel's voting system and i modified it.. But i got a problem.
Once setVoteCount() is set to 1 (in sql) I have to think a way to make it expire in 12 hours..
So it should be like in 12 hours setvotecount should be 0 again.
I already thought a way ,but no idea how to make it. A new column in SQL votetime and when it expires ,after the char relog ,no vote bonus will be appliued.. So i asked for help 1 friend ,but he wants me to learn ,so he didn't gave me a ready-to-copy (xD) code ,but explained me a little how to make it ,but i was like LOLINDIAN.Anyways..
[quote=friend]Friend said:
the scheduleeventstart is the method which start the whole file
the try is the action
first its time calc
than _task = new and the action
and thats need to activated with a getInstance()
first in the gameserver.java
and than where your stuff is
[/quote]
so ,can somebody help me?
On a short message what i want is .. to reset the vote count every 12 hours.
Regards ,
Martin
