
~Destiny-Gaming~
Members-
Posts
63 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by ~Destiny-Gaming~
-
[mccode v2] Christmas Gift ( Abit Late :P )
~Destiny-Gaming~ replied to -Matt-'s topic in Free Modifications
Re: Christmas Gift [V2] ( Abit Late :P ) If You Want Gift3 To Give Crystals It Should Be: <?php include "globals.php"; if($ir['ctreat'] == 1) { die("You already have picked your christmas treat."); } { echo ' <h2><font color=red>C</font><font color=green>h</font><font color=blue>r</font><font colour=pink>i</font><font color=white>s</font><font color=red>t</font><font color=green>m</font><font color=blue>a</font><font colour=pink>s</font> <font color=white>T</font><font color=red>r</font><font color=green>e</font><font color=blue>a</font><font colour=pink>t</font><font color=purple>s</font> </h2>'; echo '[img=http://www.mybrightonandhove.org.uk/images/uploaded/scaled/st_peters_christmas.jpg] '; print "<h1><font color=darkred>Pick a christmas gift from {$set['game_name']}.... </h1>"; echo '<a href="?action=gift1"> [img=http://images.replacements.com/images/images5/china/M/mikasa_holiday_elegance_gift_box_with_lid_P0000181334S0005T2.jpg]'; echo '<a href="?action=gift2"> [img=http://www.chocolove.com/images/red_gift_box_400.jpg]'; echo '<a href="?action=gift3"> [img=http://www.artinstituteshop.org/images/giftbox.jpg]'; echo '<a href="?action=gift4"> [img=http://www.lakewoodconferences.com/direct/dbimage/50318261/Gift_Box.jpg]'; echo '<a href="?action=gift5"> [img=http://www.thefudgecottage.co.nz/onlineshop/images/box_gold.jpg]'; } If($_GET['action'] == 'gift1') { $db->query("UPDATE users SET crystals=crystals+20 WHERE userid=".$ir['userid']); $db->query("UPDATE users SET ctreat=ctreat+1 WHERE userid=".$ir['userid']); Echo ' <h1>You won 20 crystals, Thanks for coming.</h1>'; $h->endpage(); exit; } If($_GET['action'] == 'gift2') { $db->query("UPDATE users SET crystals=crystals+50 WHERE userid=".$ir['userid']); $db->query("UPDATE users SET ctreat=ctreat+1 WHERE userid=".$ir['userid']); Echo ' <h1>You won 50 crystals, Thanks for coming.</h1>'; $h->endpage(); exit; } If($_GET['action'] == 'gift3') { $db->query("UPDATE users SET money=money+10000 WHERE userid=".$ir['userid']); $db->query("UPDATE users SET crystals=crystals+25 WHERE userid=".$ir['userid']); $db->query("UPDATE users SET ctreat=ctreat+1 WHERE userid=".$ir['userid']); Echo ' <h1>You won 25 crystals and $10,000, Thanks for coming.</h1>'; $h->endpage(); exit; } If($_GET['action'] == 'gift4') { $db->query("UPDATE users SET crystals=crystals+1 WHERE userid=".$ir['userid']); $db->query("UPDATE users SET ctreat=ctreat+1 WHERE userid=".$ir['userid']); Echo ' <h1>You won 1 crystal Bad luck, but thanks for coming.</h1>'; $h->endpage(); exit; } If($_GET['action'] == 'gift5') { $db->query("UPDATE users SET crystals=crystals+100 WHERE userid=".$ir['userid']); $db->query("UPDATE users SET ctreat=ctreat+1 WHERE userid=".$ir['userid']); Echo ' <h1>You won 100 crystals, Thanks for coming</h1>'; $h->endpage(); exit; } $h->endpage(); ?> -
[mccode v2] Christmas Gift ( Abit Late :P )
~Destiny-Gaming~ replied to -Matt-'s topic in Free Modifications
Re: Christmas Gift [V2] ( Abit Late :P ) Wow Maybe He Was tired When He Posted This Or He Didn't Read Through He's Post -
Mccodes V2 Normal Bank.php NO FEES!
~Destiny-Gaming~ replied to ~Destiny-Gaming~'s topic in Free Modifications
Re: Mccodes V2 Normal Bank.php NO FEES! LOL Mtg! And It Ennoys Me When They DO NOT! Read The Post Lol But Oh Well It's Old Now -
Re: [mccode] Streets for v2.0 I Don't Like The Scavenge Streets ONE I Have A Better Version Way Better! Maybe Post It Some Time
-
Re: [v2] Stafflist enhanced [v2] I Like This Mod Well ( A Look Modification ) But It Does Make It Look Better So Great One !
-
Re: crimes with 0 exp Yeah But You Sure That Would Work Maybe He Has All Ready Done That And It Gives Them EXP But I Do Not Know Unless He Tries Too Ad Through PHPMYADMIN And See If That Works Better ( NO CLUE WHAT I AM ON ABOUT TODAY! )
-
Slight Problem! Need Help
~Destiny-Gaming~ replied to ~Destiny-Gaming~'s topic in General Discussion
Re: Slight Problem! Need Help LOL Hahahahah No MTG I Didn't But Anyways 8-) -
Re: News Paper Ads no sql Seems Like It Will Be A Cool Mod Thanks For Posting !
-
Re: Free 2 - Slots Nice Mod Nyna Keep Up The Work Your Mods Are Getting Really Good!
-
[site tools] auto backup your site
~Destiny-Gaming~ replied to TheRipper's topic in Free Modifications
Re: [site tools] auto backup your site Wow This Is Good Thanks My Freind! -
Re: BBCode_Engine This Seems Cool! Good One
-
Re: updated login.php Nice Login Page Quite Good 8-)
-
mccode-v1 Automatic total cost calculation in shop buy.
~Destiny-Gaming~ replied to Will's topic in Free Modifications
Re: [mccode][v1]+[v2]Automatic total cost calculation in shop buy. Very Usefull And Nice Mod Great Thinking Too Put This In An Mccodes Game Keep Up The Work It's A Nice MOD! -
Mccodes V2 Normal Bank.php NO FEES!
~Destiny-Gaming~ replied to ~Destiny-Gaming~'s topic in Free Modifications
Re: Mccodes V2 Normal Bank.php NO FEES! A Few Reasons I Posted This! 1: It Helps Newbies Remove A BAD! Feature From Their Game. 2: They May Want To Make It Higher So When They Spot The 3000 They Can Make It Like 5000 If They Wanted Too. 3: As I Clearly Stated It Is For NEWBIES! So I Do Not Understand Why People Said ( Just a waste of a post all you got to do is edit like 3000 to 0 and your done... ) Some May Not Know That So Next Time Please Use Your Brain BEFORE Making A Comment! Thanks -
This Is For ULTRA! Newbies This Is NOT My Modification Either! Replace Bank.php With: <?php include "globals.php"; print "<h3>Bank</h3>"; if($ir['bankmoney']>-1) { switch($_GET['action']) { case "deposit": deposit(); break; case "withdraw": withdraw(); break; default: index(); break; } } else { if(isset($_GET['buy'])) { if($ir['money']>49999) { print "Congratulations, you bought a bank account for \$50,000! [url='bank.php']Start using my account[/url]"; $db->query("UPDATE users SET money=money-50000,bankmoney=0 WHERE userid=$userid"); } else { print "You do not have enough money to open an account. [url='explore.php']Back to town...[/url]"; } } else { print "Open a bank account today, just \$50,000! [url='bank.php?buy']> Yes, sign me up![/url]"; } } function index() { global $db, $ir,$c,$userid,$h; print "\n[b]You currently have \${$ir['bankmoney']} in the bank.[/b] At the end of each day, your bank balance will go up by 2%. <table width='85%' cellspacing=1 class='table'> <tr> <td width='75%'>[b]Deposit Money[/b] It Is Free To Deposit Your Money Here!<form action='bank.php?action=deposit' method='post'> Amount: <input type='text' name='deposit' value='{$ir['money']}' /> <input type='submit' value='Deposit' /></form></td> <td> [b]Withdraw Money[/b] There is no fee on withdrawals.<form action='bank.php?action=withdraw' method='post'> Amount: <input type='text' name='withdraw' value='{$ir['bankmoney']}' /> <input type='submit' value='Withdraw' /></form></td> </tr> </table>"; } function deposit() { global $db,$ir,$c,$userid,$h; $_POST['deposit']=abs((int) $_POST['deposit']); if($_POST['deposit'] > $ir['money']) { print "You do not have enough money to deposit this amount."; } else { $fee=ceil($_POST['deposit']*15/100); if($fee > 0) { $fee=0; } $gain=$_POST['deposit']-$fee; $ir['bankmoney']+=$gain; $db->query("UPDATE users SET bankmoney=bankmoney+$gain, money=money-{$_POST['deposit']} where userid=$userid"); print "You hand over \${$_POST['deposit']} to be deposited, This Amount Of Money \$$gain is added to your account. [b]You now have \${$ir['bankmoney']} in the bank.[/b] [url='bank.php']Back[/url]"; } } function withdraw() { global $db,$ir,$c,$userid,$h; $_POST['withdraw']=abs((int) $_POST['withdraw']); if($_POST['withdraw'] > $ir['bankmoney']) { print "You do not have enough banked money to withdraw this amount."; } else { $gain=$_POST['withdraw']; $ir['bankmoney']-=$gain; $db->query("UPDATE users SET bankmoney=bankmoney-$gain, money=money+$gain where userid=$userid"); print "You ask to withdraw $gain, the banking lady grudgingly hands it over. [b]You now have \${$ir['bankmoney']} in the bank.[/b] [url='bank.php']> Back[/url]"; } } $h->endpage(); ?> This Little Bit Of Code Is What You Change For The Amount: $fee=ceil($_POST['deposit']*15/100); if($fee > 0) { $fee=0; } $gain=$_POST['deposit']-$fee; That Will Cost Nothing To Deposit Your Money! If You Wanted It To Cost $250 Or Anything Do This: $fee=ceil($_POST['deposit']*15/100); if($fee > 250) { $fee=250; } $gain=$_POST['deposit']-$fee;
-
Re: [V2] Login Page Advanced Why Don't People Make Thier Own Login.php It Is Not Hard But Then Again Newbies, So I Guess It Is Good Posting Login.php That Have Problems!
-
Re: new login.php LMAO! Change The Banner Then! Something Like This May Have To Edit For Different Style Or Side! <td class="center">[img=banneronservername.jpg]
-
Re: Edit Item Type Code Solved Nice Extra Feature Good One!
-
Re: [Free] Maths Challenge Another Great Mod By ISO Keep Up The Work Your Mod's Are Cool!
-
Slight Problem! Need Help
~Destiny-Gaming~ replied to ~Destiny-Gaming~'s topic in General Discussion
Re: Slight Problem! Need Help Yes Klikoka I Have Checked Inventory.php And I Can Not See A Problem So i Really Don't Know What It Is :? -
Slight Problem! Need Help
~Destiny-Gaming~ replied to ~Destiny-Gaming~'s topic in General Discussion
Re: Slight Problem! Need Help No Sorry Jimmytubbs It Does Not Work ! -
Slight Problem! Need Help
~Destiny-Gaming~ replied to ~Destiny-Gaming~'s topic in General Discussion
Re: Slight Problem! Need Help I Will Try That One Jimmytubbs And No i have not edited it ! Lol -
Hey I Have A Little Problem that i can not quite fix: when i use an item it uses 2! for some strange reason i have checked itemuse.php and there is no problem in there as i can NOT! Release my game if i don't fix this you may understand what i mean But if some one could help it would be greatly appreciated Thank You Here is my itemuse.php! <?php include "globals.php"; $_GET['ID'] = abs((int) $_GET['ID']); //Food if(!$_GET['ID']) { print "Invalid use of file"; } else { $i=$db->query("SELECT iv.*,i.*,it.* FROM inventory iv LEFT JOIN items i ON iv.inv_itemid=i.itmid LEFT JOIN itemtypes it ON i.itmtype=it.itmtypeid WHERE iv.inv_id={$_GET['ID']} AND iv.inv_userid=$userid"); if(mysql_num_rows($i) == 0) { print "Invalid item ID"; } else { $r=$db->fetch_row($i); if(!$r['effect1_on'] && !$r['effect2_on'] && !$r['effect3_on']) { die("Sorry, this item cannot be used as it has no effect."); } if($r['effect1_on']) { $einfo=unserialize($r['effect1']); if($einfo['inc_type']=="percent") { if(in_array($einfo['stat'],array('energy','will','brave','hp'))) { $inc=round($ir['max'.$einfo['stat']]/100*$einfo['inc_amount']); } else { $inc=round($ir[$einfo['stat']]/100*$einfo['inc_amount']); } } else { $inc=$einfo['inc_amount']; } if($einfo['dir']=="pos") { if(in_array($einfo['stat'],array('energy','will','brave','hp'))) { $ir[$einfo['stat']]=min($ir[$einfo['stat']]+$inc, $ir['max'.$einfo['stat']]); } else { $ir[$einfo['stat']]+=$inc; } } else { $ir[$einfo['stat']]=max($ir[$einfo['stat']]-$inc, 0); } $upd=$ir[$einfo['stat']]; if(in_array($einfo['stat'], array('strength', 'agility', 'guard', 'labour', 'IQ'))) { $db->query("UPDATE `userstats` SET {$einfo['stat']} = '{$upd}' WHERE userid={$userid}"); } else { $db->query("UPDATE `users` SET {$einfo['stat']} = '{$upd}' WHERE userid={$userid}"); } } if($r['effect2_on']) { $einfo=unserialize($r['effect2']); if($einfo['inc_type']=="percent") { if(in_array($einfo['stat'],array('energy','will','brave','hp'))) { $inc=round($ir['max'.$einfo['stat']]/100*$einfo['inc_amount']); } else { $inc=round($ir[$einfo['stat']]/100*$einfo['inc_amount']); } } else { $inc=$einfo['inc_amount']; } if($einfo['dir']=="pos") { if(in_array($einfo['stat'],array('energy','will','brave','hp'))) { $ir[$einfo['stat']]=min($ir[$einfo['stat']]+$inc, $ir['max'.$einfo['stat']]); } else { $ir[$einfo['stat']]+=$inc; } } else { $ir[$einfo['stat']]=max($ir[$einfo['stat']]-$inc, 0); } $upd=$ir[$einfo['stat']]; if(in_array($einfo['stat'], array('strength', 'agility', 'guard', 'labour', 'IQ'))) { $db->query("UPDATE `userstats` SET {$einfo['stat']} = '{$upd}' WHERE userid={$userid}"); } else { $db->query("UPDATE `users` SET {$einfo['stat']} = '{$upd}' WHERE userid={$userid}"); } } if($r['effect3_on']) { $einfo=unserialize($r['effect3']); if($einfo['inc_type']=="percent") { if(in_array($einfo['stat'],array('energy','will','brave','hp'))) { $inc=round($ir['max'.$einfo['stat']]/100*$einfo['inc_amount']); } else { $inc=round($ir[$einfo['stat']]/100*$einfo['inc_amount']); } } else { $inc=$einfo['inc_amount']; } if($einfo['dir']=="pos") { if(in_array($einfo['stat'],array('energy','will','brave','hp'))) { $ir[$einfo['stat']]=min($ir[$einfo['stat']]+$inc, $ir['max'.$einfo['stat']]); } else { $ir[$einfo['stat']]+=$inc; } } else { $ir[$einfo['stat']]=max($ir[$einfo['stat']]-$inc, 0); } $upd=$ir[$einfo['stat']]; if(in_array($einfo['stat'], array('strength', 'agility', 'guard', 'labour', 'IQ'))) { $db->query("UPDATE `userstats` SET {$einfo['stat']} = '{$upd}' WHERE userid={$userid}"); } else { $db->query("UPDATE `users` SET {$einfo['stat']} = '{$upd}' WHERE userid={$userid}"); } } print "{$r['itmname']} used successfully!"; item_remove($userid, $r['inv_itemid'], 1); } } $h->endpage(); ?>
-
[mccode v2] Mining V2 Converted
~Destiny-Gaming~ replied to nathanmarck's topic in Free Modifications
Re: Mining V2 Converted He Did Good So Good One :-) -
Re: New Amazing Register Page Sorry But I Do Not Like This Register Page Much It's Not As Good As You Make It Sound Sorry.