Jump to content
MakeWebGames

radio_active

Members
  • Posts

    693
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by radio_active

  1. Re: [mccodes v2] Jail Bust Offer $10 Dude its sweet, but $5 is more reasonable. You could use $10 and a professional programmer to code something like this or even better at professional standard =)
  2. Re: [mccodes v2] Jail Bust Offer $10 $10, yeah sorry dude. I would make this and post for free but i have respect for you so i will not (unless you challenge me). lol Good luck
  3. Re: User Defined DPs Auto Crediting Nope, nothing... HMM, i wish it would spit the error out.
  4. Re: [mccode v2] Lottery Killah is right when it comes to this script however. For Killah, If you made it so each new lottery 1000 ticket IDs were inserted into the DB then users purchased the tickets which inserted there ID into the ticket ID, if they purchase 100 tickets you could get it to say you have 10% chance of winning the lottery as the rand picks out of the 1000 tickets, you cannot do that on this script though with out alot of editing... =)
  5. Re: [mccode v2] Battle Arena [$25 in paid modifications] No i just follow the fad.. lol Hmmm, how can i get a lolli pop to you>
  6. Re: [mccode v2] Battle Arena [$25 in paid modifications] LOL well what the hell. raDiO shakes his head next to blue   Savager would you sell for $20?
  7. Re: exp help Maybe you could use percentages, but that means it would be probably the same difficulty to level up if you were a level 1 or a level 100. What exactly do you want though? You want a new way that users gain experience?
  8. Re: User Defined DPs Auto Crediting *raDiO's form slowly sizes down to the original post*
  9. Re: [McCodes Any Version] Advanced Ban Users Exactly "Dedicated box owner" and "Install" or "IPBan" :-)
  10. Re: owner panel pass and securin.(i need help) That was your first good move from when you decided to start it.
  11. Re: User Defined DPs Auto Crediting Yes i understood that, the question i was posing was whether i need to change all the DonatorPack's to Donator Pack because that is the ingame item name. =) Ill have to test it out when im online with one of my staff members again who i send the money to and they send it back in a donation. Thats how i have to test it so it costs a but of money with the fee's so im just making certainly sure before i test.
  12. Re: [McCodes Any Version] Advanced Ban Users Or just simply your Cpanel IP Ban, most efficient =)
  13. Re: User Defined DPs Auto Crediting Very good an relevant point, i will try it out. My in game item is called Donator Pack , does it have to be the same name as the ingame item? i wouldn't think so.
  14. Re: User Defined DPs Auto Crediting   <?php include "config.php"; global $_CONFIG; define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; require 'global_func.php'; $set=array(); $settq=$db->query("SELECT * FROM settings"); while($r=$db->fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } // read the post from PayPal system and add 'cmd' $req = 'cmd=_notify-validate'; foreach ($_POST as $key => $value) { $value = urlencode(stripslashes($value)); $req .= "&$key=$value"; } // post back to PayPal system to validate $header .= "POST /cgi-bin/webscr HTTP/1.0\r\n"; $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; $header .= "Content-Length: " . strlen($req) . "\r\n\r\n"; $fp = fsockopen ('www.paypal.com', 80, $errno, $errstr, 30); // assign posted variables to local variables $item_name = $_POST['item_name']; $item_number = $_POST['item_number']; $payment_status = $_POST['payment_status']; $payment_amount = $_POST['mc_gross']; $payment_currency = $_POST['mc_currency']; $txn_id = $_POST['txn_id']; $receiver_email = $_POST['receiver_email']; $payer_email = $_POST['payer_email']; $quantity = $_POST['quantity']; if (!$fp) { // HTTP ERROR } else { fputs ($fp, $header . $req); while (!feof($fp)) { $res = fgets ($fp, 1024); if (strcmp ($res, "VERIFIED") == 0) { // check the payment_status is Completed if($payment_status != "Completed") { fclose ($fp);die(""); } if($db->num_rows($db->query("SELECT * FROM dps_accepted WHERE dpTXN='{$txn_id}'")) > 0) { fclose ($fp);die(""); } // check that txn_id has not been previously processed // check that receiver_email is your Primary PayPal email if($receiver_email != $set['paypal']) { fclose ($fp);die(""); } // check that payment_amount/payment_currency are correct if($payment_currency != "USD") { fclose ($fp);die(""); } // parse for pack $packr=explode('|',$item_name); if(str_replace("www.","",$packr[0]) != str_replace("www.","",$_SERVER['HTTP_HOST'])) { fclose($fp); die(""); } if($packr[1] != "DP") { fclose($fp);die(""); } $pack=$packr[2]; if( $pack != 'DonatorPack' ) { fclose($fp);die(""); } if($pack == 'DonatorPack' && $payment_amount < '5.00') { fclose ($fp);die(""); } // grab IDs $buyer=$packr[3]; $for=$buyer; // all seems to be in order, credit it. if($pack==1) { $numLoops = (int)$_POST['quantity']; { for( $numLoops = 0; $numLoops < $payment_amount; ++$numLoops ) { $db2 = sprintf("INSERT INTO `inventory` (inv_id,inv_itemid,inv_userid,inv_qty) VALUES (%d,%d,%u,%d)", '', 107, mysql_real_escape_string($for), mysql_real_escape_string($numLoops)); $db->query($db2); } } } // process payment event_add($for, "Thankyou for you \${$payment_amount} donation, your Donator pack(s) should have been credited to you! Contact one of the admins if you have not received your Donation Packs.", $c); $db->query("INSERT INTO dps_accepted VALUES('', {$buyer}, {$for}, 'DP', unix_timestamp(), '$txn_id')"); } else if (strcmp ($res, "INVALID") == 0) { } } fclose ($fp); } ?>   <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="item_name" value="DonatorPack"> <input type="hidden" name="notify_url" value="http://www.downtown-to.com/ipn_donator.php"> <input type="hidden" name="cn" value="Your Player ID"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="hosted_button_id" value="1818191"> <input type="hidden" name="return" value="http://www.downtown-to.com/donatordone.php?action=done&type=standard"> <input type="hidden" name="cancel_return" value="http://www.downtown-to.com/donatordone.php?action=cancel"> <input type="image" src="https://www.paypal.com/en_AU/i/btn/btn_cart_LG.gif" border="0" name="submit" alt=""> [img=https://www.paypal.com/en_AU/i/scr/pixel.gif] </form>   Update on the code and form..   Basically what happens is user can specify how many DPs they want, pay the amount and get taken t donatordone success if they complete. However they do not receive an event or any DPs into there inventory meaning the IPN must be faulting somewhere or the transaction is failing.
  15. Re: User Defined DPs Auto Crediting when i created the button in paypal i chose the return links to donator done so i didnt think it was neccessary, does the loop look alright?
  16. Hello I have been editing my IPN file to try and make it auto credit DPs where the number of DPs it credits is defined by the user. So i have added the little extra to paypal where the user can choose the quantity they wish to purchase. Problem is, payment is smooth, everything works accept the Items do not credit. The code is:   <?php // assign posted variables to local variables $item_name = $_POST['item_name']; $item_number = $_POST['item_number']; $payment_status = $_POST['payment_status']; $payment_amount = $_POST['mc_gross']; $payment_currency = $_POST['mc_currency']; $txn_id = $_POST['txn_id']; $receiver_email = $_POST['receiver_email']; $payer_email = $_POST['payer_email']; $quantity = $_POST['quantity']; if (!$fp) { // HTTP ERROR } else { fputs ($fp, $header . $req); while (!feof($fp)) { $res = fgets ($fp, 1024); if (strcmp ($res, "VERIFIED") == 0) { // check the payment_status is Completed if($payment_status != "Completed") { fclose ($fp);die(""); } if($db->num_rows($db->query("SELECT * FROM dps_accepted WHERE dpTXN='{$txn_id}'")) > 0) { fclose ($fp);die(""); } // check that txn_id has not been previously processed // check that receiver_email is your Primary PayPal email if($receiver_email != $set['paypal']) { fclose ($fp);die(""); } // check that payment_amount/payment_currency are correct if($payment_currency != "USD") { fclose ($fp);die(""); } // parse for pack $packr=explode('|',$item_name); if(str_replace("www.","",$packr[0]) != str_replace("www.","",$_SERVER['HTTP_HOST'])) { fclose($fp); die(""); } if($packr[1] != "DP") { fclose($fp);die(""); } $pack=$packr[2]; if( $pack != 'Donator Pack' ) { fclose($fp);die(""); } if($pack == 'Donator Pack' && $payment_amount < 5.00") { fclose ($fp);die(""); } // grab IDs $buyer=$packr[3]; $for=$buyer; // all seems to be in order, credit it. if($pack==1) { $numLoops = (int)$_POST['quantity']; { for( $numLoops = 0; $numLoops < $payment_amount; ++$numLoops ) { $db2 = sprintf("INSERT INTO `inventory` (inv_id,inv_itemid,inv_userid,inv_qty) VALUES (%d,%d,%u,%d)", '', 107, mysql_real_escape_string($for), mysql_real_escape_string($numLoops)); $db->query($db2); } } } // process payment ?>   That is most of the IPN file. I have attempted to use a for() loop in this situation so it credits judging on the "quantity" they chose. I have thought that i could make it credit by making a variable which is the mc_gross / 5.. That way it also gets the quantity but i feel thats not the most efficient way. Any help here would be greatly appreciated, its really getting annoying that i cannot see where the error is when you load the file etc. Thanks PS. Just so your aware, this is the form buton i am using.   <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="notify_url" value="http://www.downtown-to.com/ipn_donator.php"> <input type="hidden" name="cn" value="{$ir['userid']}"> <input type="hidden" name="hosted_button_id" value="1818191"> <input type="image" src="https://www.paypal.com/en_AU/i/btn/btn_cart_LG.gif" border="0" name="submit" alt=""> [img=https://www.paypal.com/en_AU/i/scr/pixel.gif] </form>
  17. Re: Some Advise Thanks, i have had him work for me before and hes been perfect, im also a customer and he is like my career adviser in effect.
  18. Re: [v1] hall of fame help It takes roughly 5 seconds to empty and insert.... If a user signs up in that time, thats just bad luck!
  19. Re: [Mccodes V2] improved schooling works off clicks not days OOO yes sounds very tempting to add but that would mean remaking like 20 courses, lol... Good work.
  20. Re: [v1] hall of fame help Because that would take less time and he wouldn't learn anything xD Im a neat freak so i like to have everything laid out in front of me! You make everything sound so simple, ill make mine sound simple like you do...   Userstats table > Export > Arrange > Empty > Insert > No harm done!
  21. Re: Some Advise   1k is a little high for a mc codes game, is it Nyna? maybe not 250 a hour is her fee lol No i said im willing to spend up to $1000. By the time im finished with it, it will not be MCcode. No its not Nyna and no its not $250 an hour. The Programmer is David Schwartz if i decide to go into business with him. If not him ill probably go with MK5 who charges $125 but at the moment i believe its around $80. It takes much longer then 4 hours aswell to secure every file i believe. This is my hobby, i love it and i will expand on it. When everything is sweet, i will then use this code for any future games i do make which i have one planned with POG1 right now. None the less this isnt just a little game, its a small enterprise xD You have to spend some to make some.
  22. Re: Some Advise I am spending $0.00 - $1000 to a professional programmer to secure all files on my site, create protection portals etc. My admins have all Chipped in some money to make it a bit easier on me. Once that job is done it will move out of the Stage (3) BETA into the open. Also have completely New registration, header.php etc being coded. Good hopes!
  23. Re: [REVIEW] Dowtown Toronto RPG ~ review
  24. Re: No cron ? Ummmm no. Unless you ran everything of unix_timestamps but even then... That would probably cost a shitload and possibily still not be able to... Why though?
  25. Re: [v1] hall of fame help Export your userstats table. Put it into say a notepad. Organise it going from 1-your highest ID then delete all Duplicates that have same ID. Then Empty userstats table and insert the new organised one. Make sure there are no signups or people online whilst you do this as it will not work,. (i think)
×
×
  • Create New...