Jump to content
MakeWebGames

Referal system


peterisgb
 Share

Recommended Posts

hello i am looking for a referral system which the person who referred a person would only receive there referral prize once the player they referred hit a certain level.

I believe there use to be one in the free modification area but i am unable to find it either by looking through the forums and using the search

Could someone put me in the right direction please

Thanks in advance

Link to comment
Share on other sites

In the referral table add Level... then make a cron or timestamp and execute it I would say every hour, make a query of the referral table and the field level of that user,then execute a query to update the level field when user is level 10. then make an if statement if (level =>10){execute Update user with whatever it is the prize is....

Not real hard to do...

Edited by lucky3809
Link to comment
Share on other sites

In the referral table add Level... then make a cron or timestamp and execute it I would say every hour, make a query of the referral table and the field level of that user,then execute a query to update the level field when user is level 10. then make an if statement if (level =>10){execute Update user with whatever it is the prize is....

Not real hard to do...

Create the logic, and call it within the check_level function, would make more sense. :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

 Share

×
×
  • Create New...