Any suggestions ?
Posted: Fri Aug 28, 2009 1:06 pm
Hello !
The Goal:
I want that ppl who vote to get the rank of voter so that ingame to have a yellow colored name, only for 12 hours.
What I did : I declared an isVoter() ( L2PcInstance , L2PlayableInstace , Config and Enterworld) , but I do not know how to reset the isVoter database field after 12 hours. I was thinking about 4 choices:
- 1)use a global_task that after 12hours resets all chars isVoter db field (but I do not know how to build up such a task)
- 2)find how can I verify how much time elapsed since the chars last login , and if it is more than 12 hours it resets the setAppearance to normal (white).
- 3) a way to verify every 6 hours from the server starts all the chars on the server to see if they voted or not , and if not the isVoter field resets to 0 and update the char appearance.
- 4)also a global task with jython so that I can reset these fields every 12 hours for everybody... (but that is not so accurate)
Please if u have any suggestions I will be very grateful.
Thank you in advance.
All the best !
The Goal:
I want that ppl who vote to get the rank of voter so that ingame to have a yellow colored name, only for 12 hours.
What I did : I declared an isVoter() ( L2PcInstance , L2PlayableInstace , Config and Enterworld) , but I do not know how to reset the isVoter database field after 12 hours. I was thinking about 4 choices:
- 1)use a global_task that after 12hours resets all chars isVoter db field (but I do not know how to build up such a task)
- 2)find how can I verify how much time elapsed since the chars last login , and if it is more than 12 hours it resets the setAppearance to normal (white).
- 3) a way to verify every 6 hours from the server starts all the chars on the server to see if they voted or not , and if not the isVoter field resets to 0 and update the char appearance.
- 4)also a global task with jython so that I can reset these fields every 12 hours for everybody... (but that is not so accurate)
Please if u have any suggestions I will be very grateful.
Thank you in advance.
All the best !