Jump to content
  • 0

Vote System When Gameserver/website Is On Different Machines


Question

Posted (edited)

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 HappyLDE

3 answers to this question

Recommended Posts

  • 0
Posted (edited)

You can make a task to check it ye... or maybe a mirror vote page that checks when u click the vote button.

But all these ways are banned by Hopzone and so.

Edited by ^Wyatt
  • 0
Posted

You can make a task to check it ye... or maybe a mirror vote page that checks when u click the vote button.

But all these ways are banned by Hopzone and so.

 

There are share/patches that parse vote page oh hopzone & topzone to check rank or number of votes to reward players. Does it mater if it is parsed from within the game or from within the site? :/

  • 0
Posted

There are share/patches that parse vote page oh hopzone & topzone to check rank or number of votes to reward players. Does it mater if it is parsed from within the game or from within the site? :/

Yep it is. Php-side is banned at least in Hopzone.

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
Answer this question...

×   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...