Jump to content
MakeWebGames

rulerofzu

Members
  • Posts

    2,464
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by rulerofzu

  1. phpbb uses MD5 same as standard v2 Mccodes
  2. Well These are the 3 lines you need to look at (26,27,28) qe=$r['level']*$r['level']*$r['level']; $expgain=rand($qe/2,$qe); $expperc=(int) ($expgain/$ir['exp_needed']*100); But I believe you also need to look at the global_func file for the exp needed. Which is where the formula is for the exp needed. Id have to look up the original code to help you further as i ripped it all out and put in my own exp function.
  3. Oh lol I know what your problem is. look in your forum code for the users query and make sure laston is in the query.   $r = $db->fetch_row($db->query("SELECT userid, username, donatordays, posts, display_pic, forums_signature, level, laston FROM users WHERE userid=".$r['fp_poster_id']."));   For example.
  4. lol Redex follow the link ....its adding the registration into the smf forum at the same time. :P
  5. /usr/bin/php -q
  6. Not sure your gonna have to give it a go and find out :D
  7. http://makewebgames.io/free-plugins/28082-mccodes-v2-smf-registration-intergration
  8. /usr/bin/perl /home/poweroft/public_html/cron_minute.php code=mygamecode whats the code=mygamecode for? also /usr/bin/perl?? surely you meant to enter /usr/bin/php
  9. Its called what???? I thought it was the PHP question mark function 8|
  10. Both sha1 and md5 have charts that could be used against them. Much better to use one that does not in my opinion. From what I have read previously elsewhere those that work in this kind of area and consider it cracked when such tables can be done. Open to interpretation I suppose :D
  11. It does make sense. $energy_cost = $ir['donatordays'] == 0 ? $youdata['maxenergy'] / 2 : '6'; Is asking.... does the player have donator days if 0 days divide the energy by 2 (50%) else set the value as 6 which is what you asked for isnt it?
  12. Aye was a basic example. Would you need this for all items? Or only the itm types involved with refilling energy etc or decreasing hospital/jail time.
  13. If you using the stock macro code in MC2. Edit it taking out the special characters see if it works then. I seem to remember it outputting /|'~ etc and then it not accepting them. Change it to just letters and numbers or get a better one :D
  14. For hospital items you could make it so that the use link only appears when they are in the hospital. This would be in the inventory code. Make all your items for hospital a itmtype then reference the itmtype in the inventory code.   if($i['itmtype'] == 999 && $ir['hospital'] > 0) { echo '[url="itemuse.php?ID='.$i['inv_id'].'"]Use[/url]';}   Something like that should work for when the player ends up in hospital. Note if you have medical effects on weapons it will have to be unequipped before you see the link unless you code that differently :D
  15. why dont you post what you have got so far and then people can help you from there. :D
  16. Put the beer down and take another look :P
  17. cut n paste....saves typing!
  18. css into PHP you mean. Which it shouldnt be. It should be in an external file and optimized. There is so much code that is not needed here.
  19. Then as I said the problem lies elsewhere. Your first call would be to now check the database to see if there is timstamp value for laston when you login.
  20. There is a quest system in the paid mods made by him. The coding is sound and secure. Also added in a few custom additions without charge.
  21. So you know PHP but didnt know how to make a whitelist array lol
  22. Doesnt look like there is anything wrong so must be something else that is not working. I use if($r['laston'] >= time()-15*60) { $on="<span style='color: green;'>[b]Online[/b]</span>"; } else { $on="<span style='color: red;'>[b]Offline[/b]</span>"; }   which works fine.
  23. Yeah what he said.... good job Seanybob :D
  24. I heard the price was a burger n fries and your good to go. 8o
  25. You can do this like this I think.   $pid = mt_rand(100,999); if(($_SESSION['pid'] == $_GET['pid']) || $_GET['pid']<100) { echo "Error, you cannot refresh or go back [url='yoururl.php?pid=$pid']Back[/url]"; exit; } $_SESSION['pid']=$_GET['pid']; $_GET['pid']=abs(@intval($_GET['pid']));   On a page where you wish it to be. NB. I tried something like this months ago to stop people refreshing. Got someone who has limited macro knowledge and they could beat the code with a simple macro easily and refresh.
×
×
  • Create New...