Our Scripts Vault contains many game scripts that you can use to create your own game!
I think it's a decent idea, and could work with some more thought. For example, as it is, the player could set the ref amount to be something like 10,000 - run his bank account down to zero then keep making new accounts under his ref link and pool all that money to another harvester account. Said account now has untold fortunes and is set to destroy your economy.It's a sound idea though, one I may even consider using in the future - just be sure to cover your bases
I dont know... I dont think many people would spread their promo link around very far if they were losing something... And the only people not losing something would be cheaters...
I dont know... I dont think many people would spread their promo link around very far if they were losing something... And the only people not losing something would be cheaters...And I'm sure very quickly someone would create a bot which is basically a brute force cracker on the promo codes.My 2 cents
I'm sure very quickly someone would create a bot which is basically a brute force cracker on the promo codes.
<?php //for colors!!$promo = array('code' => 'I rules', 'money' => 10000, 'last' => $db->Insert_ID());if(isset($_GET['promo_code']) && is_string($_GET['promo_code']) && $_GET['promo_code'] == $promo['code'])) { $query = $db->Execute("UPDATE `players` SET `money` = `money` + ? WHERE `id` = ?", array($promo['money'], $promo['last']));} else { //something else here!}
No I didnt mean people milking a player's goods, I just mean what if the player no longer has money to do it?Either way, one solution would be to make them one-off codes. They create a code, then apply goods to it like cash or in-game items. The cash/items are deducted instantly and given to the player when they join.The code should also expire in X days at which point the cash/items would be given back to the player if the code was not used.
That would be better, but still wouldnt solve brute force crackers. And if done like above, with only 7 characters, either it wouldnt take very long to find a code, or it could become a dos attack... especially with the mysql query every time...Maybe a limit per IP address, 5 tries per hour... doesnt solve the load issue, but would pretty much stop people cracking it, unless they are luckyI do agree with the 1 time codes though.... Maybe, to stop cheaters trying to exploit thisso easily, the original player is sent a mail saying that this person has signed up with their promo code, do you wish to support him? etc... I dunno
I'm not seeing brute-forcers being much of a problem, especially if it were linked in such a way:site.com/register?refid=1&promo=A7TR9Wyou'd have to match the promo code and the user id. I'd hardly think something like that would be worth someone's time for what could amount to perhaps 2 successful accounts with an extra $1000 in them.
Quote from: Mufasa on June 05, 2009, 08:21:14 PMI'm not seeing brute-forcers being much of a problem, especially if it were linked in such a way:site.com/register?refid=1&promo=A7TR9Wyou'd have to match the promo code and the user id. I'd hardly think something like that would be worth someone's time for what could amount to perhaps 2 successful accounts with an extra $1000 in them.Yeah, but players could pick what to give users signing up with there ref code..
Quote from: Crazy-T on June 05, 2009, 08:24:02 PMQuote from: Mufasa on June 05, 2009, 08:21:14 PMI'm not seeing brute-forcers being much of a problem, especially if it were linked in such a way:site.com/register?refid=1&promo=A7TR9Wyou'd have to match the promo code and the user id. I'd hardly think something like that would be worth someone's time for what could amount to perhaps 2 successful accounts with an extra $1000 in them.Yeah, but players could pick what to give users signing up with there ref code..I'm not getting how that relates to what I said?