So I want to use vbexperience mod as the basis for points, but just putting in the field name doesnt work because vbexperience will auto update and change the points back to what it was before you purchase a set of decks using the points. So I came up with an idea in my head.
In cron job that updates stuff for triple triad there needs to be a way to caculate, total vbexperience points, vs amount of purchases made through triple triad, then store that value in the Triple triad money/point field. Wouldnt it be as simple as putting something in the cron that would do something liek below:
this would be the total purchase made amount so we can get a difference between the two fields in case the user has increased there experience by posting and winning awards or whatever in vbexperience
this would be the amount that needs to be entered into the dbt_tt_money, as its taking total purchase amount from the first line of code, and having the vbexperience field subtract that amount which gives us what our total points should be for triple triad.
Hope that makes sense. And maybe you can pass on how I would go about doing that since I know nothing about how vBulletin coding works, and know a little php/mysql
In cron job that updates stuff for triple triad there needs to be a way to caculate, total vbexperience points, vs amount of purchases made through triple triad, then store that value in the Triple triad money/point field. Wouldnt it be as simple as putting something in the cron that would do something liek below:
Code:
$pointsCalculation = row[xperience] - row[dbt_tt_money];
this would be the total purchase made amount so we can get a difference between the two fields in case the user has increased there experience by posting and winning awards or whatever in vbexperience
Code:
$pointsTOspend = row[xperience] - $pointsCalculation; than we run a query to update the dbt_tt_money field to whatever the calculation from this is
this would be the amount that needs to be entered into the dbt_tt_money, as its taking total purchase amount from the first line of code, and having the vbexperience field subtract that amount which gives us what our total points should be for triple triad.
Hope that makes sense. And maybe you can pass on how I would go about doing that since I know nothing about how vBulletin coding works, and know a little php/mysql
Last edited: