Is there any PHP vote system already done? How would i communicate with the GameServer after someone votes on the website server? (Is not the question anymore)
Thanks!
Edit: Actually the specific question would be on the PHP (website machine) side: How to know if someone voted with specific ip on those sites? (to not confuse the reward to someone else who voted at same time)
Edit2: Ok i think i have an idea about the solution: Everytime someone votes (clicks the vote banner) save it's IP in the db. Then if in game he uses voicedcommand .getreward the gameserver machine will check in the website machine database for the speicifc player P. If exists, give reward.
Now the question would be, how to check if he actually voted in a PHP way: parse topzoneWhateverSite to check votesCount and compare with lastest votesCount the user logged on site?. And in what way.. with a cron task 1 minute after he clicked the vote banner?
have played many years ago excited to play again on launch. i have seen wonderful things about the server it looks how it should be theres hard work and it shows. it lives up to the glory days of l2 elixir.
I wish the best of luck for the project i will be playing actively!
Question
HappyLDE
Hello,
Is there any PHP vote system already done? How would i communicate with the GameServer after someone votes on the website server? (Is not the question anymore)
Thanks!
Edit: Actually the specific question would be on the PHP (website machine) side: How to know if someone voted with specific ip on those sites? (to not confuse the reward to someone else who voted at same time)
Edit2: Ok i think i have an idea about the solution: Everytime someone votes (clicks the vote banner) save it's IP in the db. Then if in game he uses voicedcommand .getreward the gameserver machine will check in the website machine database for the speicifc player P. If exists, give reward.
Now the question would be, how to check if he actually voted in a PHP way: parse topzoneWhateverSite to check votesCount and compare with lastest votesCount the user logged on site?. And in what way.. with a cron task 1 minute after he clicked the vote banner?
Thanks for your ideas :D
Edited by HappyLDE3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now