Jump to content
MakeWebGames

Psycho_Coder

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Everything posted by Psycho_Coder

  1. Re: Cron Confusion I have just the standard crons, with one additional that runs on Mondays, and my cron_minute, only set up once, is double running each time. I tried the page on its own, without the cron, and it works fine. No issues. Drops jail time down one minute each time it's run, but when it runs with the cron, it always doubles up. I definitely only have one cron running for cron_minute.php. Any thoughts on this? Thanks!
  2. Re: [FREE] DPS TO ITEMS V1 [MCCODES] [uPDATED] For V2: Run SQL: INSERT into itemtypes VALUES ('100', 'Donator Packs');   (I used 100 for item id, but you can change that to whatever you'd like.) In Inventory.php, find if($i['effect1_on'] || $i['effect2_on'] || $i['effect3_on']) { print " [[url='itemuse.php?ID={$i[']Use[/url]]"; }   Add Below: if($i['itmtype'] == '100') { print " [[url='itemuse.php?ID={$i[']Use[/url]]"; }   The above makes it so you don't need to edit the inventory.php each and every time you add a new donator pack. In itemuse.php, find if(!$r['effect1_on'] && !$r['effect2_on'] && !$r['effect3_on']) { die("Sorry, this item cannot be used as it has no effect."); }   and replace with: if($r['itmname'] == 'Pack 1') { $db->query("UPDATE users SET donatordays=donatordays+30 WHERE userid=$userid"); $db->query("UPDATE users SET crystals=crystals+100 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+1500 WHERE userid=$userid"); $db->query("UPDATE userstats SET iq=iq+30 WHERE userid=$userid"); } else { if(!$r['effect1_on'] && !$r['effect2_on'] && !$r['effect3_on']) { die("Sorry, this item cannot be used as it has no effect."); } }   For all other donator packs, just add (each time): [code]if($r['itmname'] == 'Pack Name') { $db->query("UPDATE users SET donatordays=donatordays+30 WHERE userid=$userid"); $db->query("UPDATE users SET crystals=crystals+100 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+1500 WHERE userid=$userid"); $db->query("UPDATE userstats SET iq=iq+30 WHERE userid=$userid"); }   Finally, open ipn_donator.php, find if($pack==1) { $db->query("UPDATE users u LEFT JOIN userstats us ON u.userid=us.userid SET u.crystals=u.crystals+100,u.donatordays=u.donatordays+30 WHERE u.userid={$for}"); $d=30; $t=""; }   and change it to: if($pack==1) { $db->query("INSERT INTO inventory VALUES('','1000',{$for},'1')"); }   NOTE: To add new packs, under ipn_donator.php, you can use the same code as above, but change if to else if. This is working without issue on my site, including crediting of the donator pack after being bought. You'll also need to change your donator.php if you add or change any of the values from the normal packs.[/code]
  3. Re: SPECIAL ATTACK ignore
  4. Re: Crime Problems I was having the same problems and figured out there are missing ' points in the sql code. Find them, add them, and it will work fine
  5. Re: Crime Problems staff_crimes.php has errors in the INSERT INTO. Look over it and you should be able to correct.
  6. Re: FREE Bug Tracker Mod Great Mod. The usual spelling/grammatical errors, but hey, I can log them now :P Question though. Still fairly new to this PHP coding, and dabbling a bit, but can't seem to figure out where or what I would change in this code to make it so all users can view bugs? My reasoning: Hiding bugs from other players means there's more of a chance of the same bug being reported multiple times, especially if it's a major one. I think it makes sense to have it so all users can view, while only staff admin can actually reply. The other feature that would be nice would be to have a flag that shows new (like announcements) for staff when a bug is added. If I figure out either of these on my own, I'll post an update. Have plenty on the "to do" list, so who knows if that will ever happen. Thanks oXi! +1
  7. Re: MCCODES + Graphic Thanks for the info. Actually figured it out. I am using V2. Updated the header.php to have the image show globally. Initial coding on V2 had tables with individual backgrounds. After changing that, set how it needs to be. Thanks Jack  
  8. I've searched the boards and not found these posted, so.... 1) How do I limit the number of rounds? I'm using V2 MCCODES, but if you know for V1, I can adapt. 2) Is there a way to change the experience gained from a random amount to specific percentage? Thanks Jack
  9. Re: MCCODES + Graphic That would work... Guess it's per page then :(  
  10. If I want to change to a graphical background, with one solid image behind all pages in MCCODES, do I need to do it on each page or is there a global spot to change it? Thanks! Jack
  11. Hey all, Jack here! Age 28, location is Burlington VT. Used to work as a web programmer, back about 10 years ago. Haven't done much with it lately, but going to set up a game using mccodes (unless someone has a better suggestion) and try my hand at it. Not much else to add. Some PHP experience, SQL experience, and a whole lot of random, useless knowledge :)
×
×
  • Create New...