wilkesy Posted August 11, 2008 Share Posted August 11, 2008 Hi i can not code and i am looking for somebody that can code me this some dp`s that contain this 10 million game money - $5 100 respect $5 a weapon - $10 armour - $10 if you think it sounds stupid please dont post cos thats what i and members would like :-D Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted August 11, 2008 Share Posted August 11, 2008 Re: Donator Items Simple (and silly) Just create an item... called (say) DP1 Edit your itemuse.php (? unconfirmed) to handle that particular object by a) deleting the object from the inventory on use b) crediting the user with the relevant item(s) / cash and/or crystals. You ~may~ have to adjust your inventory script to add a [use] link for this item. All the info you need should be in those two files -- so it's a case of copy 'n' paste plus a few minor edits. (something most of the local residents at CE seem to be good at). Quote Link to comment Share on other sites More sharing options...
Jameoo Posted August 11, 2008 Share Posted August 11, 2008 Re: Donator Items yer help this noob before me many thanks Quote Link to comment Share on other sites More sharing options...
mdshare Posted August 12, 2008 Share Posted August 12, 2008 Re: Donator Items What's the point of running a game if you don't even know the basics of php/html ? Fast cash cow to ditch when revenue drops ? Quote Link to comment Share on other sites More sharing options...
jds137 Posted August 12, 2008 Share Posted August 12, 2008 Re: Donator Items Cut and paste ftw... Quote Link to comment Share on other sites More sharing options...
-Matt- Posted August 12, 2008 Share Posted August 12, 2008 Re: Donator Items Add this to the bottam of the donator page above EOF; $h->endpage(); ?> [b]6th Offer: ($5.00)[/b]<ul> [*]$10,000,000 <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type=hidden name=cmd value=_xclick> <input type="hidden" name="business" value="[email protected]"> <input type="hidden" name="item_name" value="Your Game Name Donation for ($userid) (Pack 6)"> <input type="hidden" name="amount" value="5.00"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="return" value="http://yourgameurl.com/donatordone.php?action=done&type=standard"> <input type="hidden" name="cancel_return" value="http://yourgameurl.com/donatordone.php?action=cancel"> <input type="hidden" name="cn" value="Your Player ID"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="tax" value="0"> <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> [b]7th Offer: ($5.00)[/b]<ul> [*]100 Respect <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type=hidden name=cmd value=_xclick> <input type="hidden" name="business" value="[email protected]"> <input type="hidden" name="item_name" value="Your Game Name Donation for ($userid) (Pack 7)"> <input type="hidden" name="amount" value="5.00"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="return" value="http://yourgameurl.com/donatordone.php?action=done&type=standard"> <input type="hidden" name="cancel_return" value="http://yourgameurl.com/donatordone.php?action=cancel"> <input type="hidden" name="cn" value="Your Player ID"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="tax" value="0"> <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> [b]8th Offer: ($10.00)[/b]<ul> [*]A weapon <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type=hidden name=cmd value=_xclick> <input type="hidden" name="business" value="[email protected]"> <input type="hidden" name="item_name" value="Your Game Name Donation for ($userid) (Pack 8)"> <input type="hidden" name="amount" value="10.00"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="return" value="http://yourgameurl.com/donatordone.php?action=done&type=standard"> <input type="hidden" name="cancel_return" value="http://yourgameurl.com/donatordone.php?action=cancel"> <input type="hidden" name="cn" value="Your Player ID"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="tax" value="0"> <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> [b]9th Offer: ($10.00)[/b]<ul> [*]A Armour <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type=hidden name=cmd value=_xclick> <input type="hidden" name="business" value="[email protected]"> <input type="hidden" name="item_name" value="Your Game Name Donation for ($userid) (Pack 9)"> <input type="hidden" name="amount" value="10.00"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="return" value="http://yourgameurl.com/donatordone.php?action=done&type=standard"> <input type="hidden" name="cancel_return" value="http://yourgameurl.com/donatordone.php?action=cancel"> <input type="hidden" name="cn" value="Your Player ID"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="tax" value="0"> <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> if you are wanting them as items firstly: create item type: DP Create item names: Donator Pack 6 Donator Pack 7 (not sure on this one as respect could mean anything.) Donator Pack 8 Donator Pack 9 after that open: inventory.php find: if($i['itmname'] == 'Nuclear Bomb') { print " [[url='nuclearbomb.php']Use[/url]]"; } After Add: if($i['itmname'] == 'DP') { print " [[url='itemuse.php']Use[/url]]"; } Open Item Use find: if($r['itmname'] == 'Will Potion') { mysql_query("UPDATE users SET will=maxwill WHERE userid=$userid",$c); } print "You spray a {$r['itmname']} into your mouth. You feel a bit of health coming back to you."; } After add this: if($r['itmname'] == 'Donator Pack 6') { mysql_query("UPDATE users SET money=money+1000000 WHERE userid=$userid"); } print "You used Dontor pack 6 and gained the benifits"; } if($r['itmname'] == 'Donator Pack 7') { (put here what ever you are trying to give i'm not sure here.) } print "You used Dontor pack 7 and gained the benifits"; } Ok now make a weapon and armour and get there item ids and then were it says ITEMID replace it with that. if($r['itmname'] == 'Donator Pack 8') { mysql_query("INSERT INTO inventory VALUES('','ITEMID',{$for},'1')"); } print "You used Dontor pack 8 and gained the benefits"; } if($r['itmname'] == 'Donator Pack 9') { mysql_query("INSERT INTO inventory VALUES('','ITEMID',{$for},'1')"); } print "You used Dontor pack 9 and gained the benefits"; } This is all untested. so could be errors and bugs. Quote Link to comment Share on other sites More sharing options...
wilkesy Posted August 12, 2008 Author Share Posted August 12, 2008 Re: Donator Items Thank-you everybody big help :-D wilkesy www.general-life.com Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.