Jump to content
MakeWebGames

Maniak

Members
  • Posts

    202
  • Joined

  • Last visited

Everything posted by Maniak

  1. Yes, decrease the amount of EXP the users gain from Attacking and/or Successful Crimes. Pretty simple really.
  2. Try what's there now :).
  3. Yeah that would be it, is that the whole of the function.. The standard one is something like: function check_level() { global $db, $ir, $userid; $ir['exp_needed']=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2); if($ir['exp'] >= $ir['exp_needed']) { $expu = ($ir['exp']-$ir['exp_needed']); $ir['level']+=1; $ir['exp'] = $expu; $ir['energy']+=2; $ir['brave']+=2; $ir['maxenergy']+=2; $ir['maxbrave']+=2; $ir['hp']+=50; $ir['maxhp']+=50; $ir['exp_needed']=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2); $db->query('UPDATE `users` SET `level`=level+1, `exp`='.abs(intval($expu)).', `energy`=energy+2, `brave`=brave+2, `maxenergy`=maxenergy+2, `maxbrave`=maxbrave+2, `hp`=hp+50, `maxhp`=maxhp+50 WHERE (`userid`='.$userid.')'); } }
  4. In global_func.php the "check_level()" function is what we'll need.
  5. UK, Chrome, Windows 7.
  6. Maniak

    V2 template

    Peter does some AWESOME work. I had a template off him a while ago, had to wait a week or 2 for it; but it was worth the money + wait!
  7. Not to put a downer; but there isn't 100 people pre-registered.. I coded that section + did the DB for it when I was working on it (not that I did much, haha).. And some of them are tests. Although from what I have seen; the game looks AMAZING ;P
  8. Try contacting Peter Leaman from http://www.w3theory.com
  9. If you want anything, please use the correct sub-forum!
  10. A better market for you to try and sell it on would be: http://forums.digitalpoint.com/.
  11. Maniak

    Pondering...

    You could but you'd still have to have a Query there.. That being: $db->query('INSERT INTO `usersats` (`userid`) VALUES('.$i.')'); p.s. I haven't coded in a few months + I am tired so this may not work. (I haven't tested it either)
  12. Make sure the function(s) have the line "global: $db........;" as Dominion said earlier.
  13. I would also say to use proper Grammar when offering your Services/selling 'goods' as it may appeal to a wider audience.
  14. Just spent 5-10 minutes going through this, not changed a lot; but I cleaned up the code a little bit.. I HAVEN'T tested this as I am currently working with Lite, but any errors throw them up and i'll fix :D   <?php include(DIRNAME(__FILE__).'/globals.php'); ######################### # Name : Crystal Temple # # Recoded : Yes # # Made By : Casey # ######################### switch($_GET['action']) { case 'refill': ctemple_refill(); break; case 'iq': ctemple_iq(); break; case 'money': ctemple_money(); break; default : ctemple_index(); break; } function ctemple_index() { global $h, $ir, $set; echo '<h3>Crystal Temple</h3> Welcome to the Crystal Temple. You have '.number_format($ir['crystals']).' Crystals. What would you like to spend your Crystals on? <table width="50%" border="1" cellspacing="1" cellpadding="5" class="table" align="center"><tr> <th width="10%">Name</th> <th width="10%">Cost</th> <th width="10%">Go There</th> </tr><tr> <td>Energy Refill</td> <td>'.number_format($set['ct_refillprice']).' Crystals</td> <td id="energy"><a href="crystaltemple.php?action=refill"><center>Do</center></td> </tr><tr> <td>IQ</td> <td>'.number_format($set['ct_iqpercrys']).' IQ per Crystal</td> <td id="iq"><a href="crystaltemple.php?action=iq"><center>Do</center></span></td> </tr><tr> <td>Money</td> <td>$'.number_format($set['ct_moneypercrys']).' per Crystal</td> <td id="money"><a href="crystaltemple.php?action=money"><center>Do</center></span></td> </tr></table>'; } function ctemple_refill() { global $db, $h, $ir, $set, $userid; if($ir['crystals'] <$set['ct_refillprice']) { echo 'You dont have enough crystals!'; } else if($ir['energy'] == $ir['maxenergy']) { echo 'You already have full energy.'; } else { $db->query('UPDATE `users` SET `energy`=maxenergy, `crystals`=crystals-'.$set['ct_refillprice'].' WHERE (`userid`='.$userid.')'); echo 'You have paid '.$set['ct_refillprice'].' Crystals to refill your Energy bar.'; } } function ctemple_iq() { global $db, $h, $ir, $set, $userid; if(isset($_POST['exc_btn'])) { $_POST['exc_amt'] = abs(intval($_POST['exc_amt'])); if($_POST['exc_amt'] <= 0 || $_POST['exc_amt'] > $ir['crystals']) { echo '<div align="center"><strong>Either you do not have enough Crystals, or you did not fill out the form.</strong></div>'; } else { $iq = ($_POST['exc_amt']*$set['ct_iqpercrys']); $db->query('UPDATE `users` SET `crystals`=crystals-'.$_POST['exc_amt'].' WHERE (`userid`='.$userid.')'); $db->query('UPDATE `userstats` SET `IQ`=IQ+'.abs(intval($iq)).' WHERE (`userid`='.$userid.')'); echo 'You traded '.$_POST['exc_amt'].' Crystals for '.number_format($iq).' IQ.'; } } echo '<div align="center">Type in the amount of Crystals you want to exchange for IQ.<br /> <small>You have '.number_format($ir['crystals']).' Crystals available. 1 Crystal = '.number_format($set['ct_iqpercrys']).'.</small><br /> <form action="?action=iq" method="post"><input type="text" name="exc_amt" /> <input type="submit" name="exc_btn" value="Exchange!" /></form> </div>'; } function ctemple_money() { global $db, $h, $ir, $set, $userid; if(isset($_POST['exc_btn'])) { $_POST['exc_amt'] = abs(intval($_POST['exc_amt'])); if($_POST['exc_amt'] <= 0 || $_POST['exc_amt'] > $ir['crystals']) { echo '<div align="center"><strong>Either you do not have enough Crystals, or you did not fill out the form.</strong></div>'; } else { $money = abs(intval($_POST['exc_amt']*$set['ct_moneypercrys'])); $db->query('UPDATE `users` SET `crystals`=crystals-'.$_POST['exc_amt'].', `money`=money+'.$money.' WHERE (`userid`='.$userid.')'); echo 'You traded '.$_POST['exc_amt'].' Crystals for '.money_formatter($money).'.'; } } echo '<div align="center">Type in the amount of Crystals you want to exchange for Money.<br /> <small>You have '.number_format($ir['crystals']).' Crystals available. 1 Crystal = '.money_formatter($set['ct_moneypercrys']).'.</small><br /> <form action="?action=money" method="post"><input type="text" name="exc_amt" /> <input type="submit" name="exc_btn" value="Exchange!" /></form> </div>'; } $h->endpage(); ?>
  15. Are we looking at the Login? If so, I can't see that much CSS to comment on....
  16. I suspect it's either the old owner(s) of VitalEnd, or that they have managed to get a hold of some of their Scripts. After you have logged in, if you go to: http://www.cmafia.com/hour.php you are taken to a "404 Error Page" which has a few options and all of the links are directing you to vitalend.com/.........
  17. I am not thinking about buying it myself. This kind of mod wouldn't fit my Game in Creation (although if it did I would probably code something myself).
  18. Glasses, although you have the Mod, are you allowed to re-sell it?
  19. I am interested. I have added you on MSN. (my MSN: [email protected]).
  20. 1st post has been updated to include "Support Desk.rar". All code should be working (as I haven't changed any), however if there are any Errors/Bugs then post them here and i'll gladly fix :D
  21. @a_bertrand: I will do that, thanks for the info :). @zu: Yep, just the support.php is over 15,000 characters. @a_bertrand: Some people like to see what the code is like rather than download a file to find out what the code is like..
  22. Okay, since the switch of the Forum, my code has messed up big time. Due to this silly forum only allowing 10,000 characters, I cannot re-post the Mod on here so I will update the 1st post with a Download link sometime tomorrow. I am sorry for the inconvenience this has caused anyone. Many thanks. - Maniak.
  23. None :P (i'd rather drink Water :P) Ice or Snow?
  24. Maniak

    Onclick help.

    If you wanted a Button to go to a different page without a Form, you would use onclick="location.href=\"blahh.php\""
  25. Maybe start your portfolio with this Template: http://makewebgames.io/showthread.php/37662-PrisonLords-Layout-Layered-PSD-!FREE!-DESIGN-TUTORIAL!
×
×
  • Create New...