Jump to content
MakeWebGames

seanybob

Members
  • Posts

    666
  • Joined

  • Last visited

Everything posted by seanybob

  1. Look at line 42/43. You are updating the database, and then immediately after that you give the races their bonuses. Put the database queries after you give the individual races their bonuses
  2. Got a five minute cron file? If so, just add some code to it. Look in your crystal market file, the code where somebody adds crystals to the market. It's something like 'Insert into cmarket', or something like that. Take that code. Change the userid of owner to 1 or whatever, and for amount of crystals instead of using an input from the user just use the php rand function. If you wish to learn it, try to stumble through the guidelines I just posted. Or... you can wait till someone else does it for you.
  3. Wamp is great once you finally get it set up, but to test things with the example same settings as your server with minimum effort (same php version, mysql version, etc) just create a second directory on your server. Call it test game. Copy all your game files there. Create a new mysql database. Copy all your mysql info there. Then screw around with that, when you finish testing/coding a mod, transport it over to the 'live' game.
  4. That is actually New King James Version. Yes, I am a Christian.   Possibly. When you start, I will give you a quick run-down on what's acceptable and not acceptable. It's the artist's responsibility to ensure that any images used are not copyrighted, but are the image version of open source (being a programmer, I'm not entirely sure of the correct terminology, but I'm sure you get the idea). The clipart used in the above example were open source (open stock? Again, not sure of correct term). I got a few PM's thus far - I'll be responding to them all later tonight.
  5. So here's the deal. I'm looking for a graphics artist is familiar with and understands all the content on this page I'll looking for help creating t-shirts. Expected rate is one a week (minimum), for several months. You can quit anytime you lose interest, or just don't have time. Pay: For every graphic you design, you will earn 50% of all profit on products that are sold utilizing that graphic. I will do all the coding, marketing, advertising, etc - you're only job is to create the graphic, and you earn 50% of all profit. To get an idea of what the work will be like, I'll show the process I went through with the first guy who attempted to be my graphics artist for this project (he no longer works for me, as he was finishing about 1 shirt a month, which was taking far too long). I sent some text and ideas for graphics to him via email. He searched for free clipart, free stock images, etc online. He found some, changed colors, and sizes, and sent back this image (took him about 15 minutes). I promptly put the image on a t-shirt, and here is the final output: Looking for serious people only. You won't be making thousands of dollars immediately with this work - in fact, the first month or two there won't be much (if any) profit. I plan on waiting till we get about 15-20 shirts finished up before unrolling my marketing campaigns (so there is actually some stuff for customers to look at) then releasing a new shirt, weekly, after that. After the ball gets rolling, I anticipate an income of $100-$500 a month for a bit (just with the first wave of advertising methods I have planned). After that, it may remain steady, but it has a decent chance of going viral with the storyline behind the project. I cannot divulge more details than this on these public forums. Yes, the shirts are religious. Virtually all of them will contain a bible verse. If that is uncomfortable for you, I suggest avoiding this project. Feel free to post on here any thoughts/questions, or email me.
  6. seanybob

    Good idea

    /weapimg/weapimg.php?source=140&width=195&height=150 He uses some php code to render his image on the page. It's kinda of interesting... But also useless. A crude method (the old print screen trick) circumvents his protections.
  7. Just a note: SMF passwords are no longer encrypted using the method in the first post sha1('{$_POST['password']}') Rather, they are now encrypted like so: sha1(strtolower($username).$_POST['password']); Not sure about SMF 2.X, but for the most recent SMF 1.X release I know this to be true.
  8. Could be a dozen different things. I would guess though that you should change: function good_rating() { global $ir,$userid;   to   function good_rating() { global $db,$ir,$userid;
  9. Simple problem. print "Married to {$pr['username']}";   The array $pr isn't defined anywhere in that script. Check your mysql tables, let me know if there is a marriage table, and if so what fields hold userid and/or username. Alternatively, what does $r['marriage'] contain? If it holds the userid of the person the user (who's profile you are on) is married to as I suspect, then changing   if ($r['marriage']) { print "Married to [url='viewuser.php?u={$pr[']{$pr['username']}[/url]"; }   to   if ($r['marriage']) { $pr=$db->fetch_row($db->query("SELECT username,userid FROM users WHERE userid={$r['marriage']}")); print "Married to [url='viewuser.php?u={$pr[']{$pr['username']}[/url]"; }   Will suffice.
  10. Imagination is one of the core traits a gameowner must possess. Think deep. Imagine if you were a criminal (if that's the them you are going for). Go play some grand theft auto or something. Google what people have been arrested for in the city you live in. For courses, think of the courses you (have) take(n) in school. Jobs - think of jobs around your town. Really, if you can't do this simplest part of designing a game, you probably shouldn't be a gameowner. No offense good sir.
  11. There are a number of ways of doing this. Since you're having trouble with it, I would suggest the simplest; create a new variable in the users table called attackswon (int 11). Then do a search of all your files, and wherever a new attacklogs entry is added with result=won, also increment the counter in the users table for that user. Then adding it to the hall of fame would be easy. To make this retroactive, run a script that cycles through you entire attack logs table, and adds +1 to the variable in the users table for each result=won.
  12. In the free plug in area of these forums, I know there are several shoutbox scripts, and I believe some suggestion scripts as well. The search box is located at the top right corner of your page, in the area that says 'Enter search word'.
  13. The tables in that code seem to mostly have this code: class='table' Look for the css associated with that class. If I had to guess, it would probably be in a .css file, or in header.php. You can change the color there with the use of google and the phrase 'changing colors in tables with css' (or some similar phrase)
  14. RE: this is from my global func   AHHH! Instead of using an if statement for every single possible outcome, consider using just one that will cover all the above. In a sense, this is the heart of computer science - using algorithms to make the computer do all the work for you (as opposed to typing it all in yourself). if($ir['level'] % 10 == 0 || $ir['level']==5 || $ir['level'] == 15) { $db->query("UPDATE users SET points=points+1 WHERE userid=$userid",$c); event_add($ir['userid'],"Congratulations on getting to level ".$ir['level'].", for doing so you have recieved One Point!",$c); }
  15. $gain += mt_rand(1, 3) / mt_rand(500, 900) * mt_rand(500, 900) * (($will + 20) / 150)*50; Just wanted to make sure you know that that will give off an EXTREMELY low number. Are you sure your algorithms are correct?
  16. Two tutorials about this on my blog: http://teachthe.net/?p=38 http://teachthe.net/?p=610 I 'think' that's what you're talking about. It was a little ambiguous though...
  17. header.php You'll see something like: $enperc=(int) ($ir['energy']/$ir['maxenergy']*100); $wiperc=(int) ($ir['will']/$ir['maxwill']*100); $experc=(int) ( $ir['exp']/$ir['exp_needed']*100); $brperc=(int) ($ir['brave']/$ir['maxbrave']*100); $hpperc=(int) ($ir['hp']/$ir['maxhp']*100); $enopp=100-$enperc; $wiopp=100-$wiperc; $exopp=100-$experc; $bropp=100-$brperc; $hpopp=100-$hpperc;   Then further down: <LI>[b]Energy:[/b] {$enperc}% <a href=crystaltemple.php?spend=refill>[R]</a> [img=/images/endleft.gif][img=/images/barsilver.gif][img=/images/redbar.png][img=/images/endright.gif] <LI>[b]Will:[/b] {$wiperc}% [img=/images/endleft.gif][img=/images/barsilver.gif][img=/images/redbar.png][img=/images/endright.gif] <LI>[b]Brave:[/b] {$ir['brave']}/{$ir['maxbrave']} [img=/images/endleft.gif][img=/images/barsilver.gif][img=/images/redbar.png][img=/images/endright.gif] <LI>[b]EXP:[/b] {$experc}% [img=/images/endleft.gif][img=/images/barsilver.gif][img=/images/redbar.png][img=/images/endright.gif] <LI>[b]Health:[/b] {$hpperc}% [img=/images/endleft.gif][img=/images/barsilver.gif][img=/images/redbar.png][img=/images/endright.gif] <hr />   EXP prints {$experc}%. Brave prints {$ir['brave']}/{$ir['maxbrave']}. The second is what you want. Use the variable in the first box to print. Example: EXP should print {$ir['exp']]/{$ir['exp_needed']}, not {$experc}% etc
  18. Then yes, I 'spose yours would work better. I've just seen in games I've run or helped run that we'd get close to a thousand items... and setting a discount for each of them would be tedious beyond belief, and unnecessary. I've always been a fan of Occam's Razor myself though. In my mind, donators would prefer a blanket discount than an individual item discount.
  19. even better (and more efficient) would be to add a single variable to the settings table, which would be the percentage you want donators to have off the regular prices (so you don't have to set a discount price on every item). For example: In the settings table, add the variable 'dondiscount' and set it to 10 (for a 10% discount). Then on the shops.php page (or wherever it is you buy items) update the $itemcost variable with an if statement as follows: if($ir['donator_days']>0) { $itemcost = $itemcost - ($itemcost * $set['dondiscount']); }   There we have it. One new variable in the database, 3-4 lines of code added to your php files, and you don't have to reinput tons of new prices for donators. Win. :D
  20. quick fix: Set up a new variable in the users table (lastmugging). Add this to the page when someone gets mugged (attackmug.php? Not sure of your file names). $db->query("UPDATE users SET lastmugging = unix_timestamp()"); Somewhere on attack.php, run a check on the last time they attacked someone. $mu=$db->query("SELECT userid FROM users WHERE lastmugging > unix_timestamp()-30"); $mug=$db->num_rows(); if($mug){die("Sorry, mugged someone within last 30 seconds.");}
  21. You need this if statement: if($ir['userid']!=1){die("403 error.");}
  22. RE: Re: Honor Awards - V2 - Modified by HarryB   Thanks for watching out for me -Matt-, but this is definitely not my mod. He coded it off the free version posted in these forums it looks like. My mod contains 3 php files, this one contains over 40... 'nuff said. :)
  23. seanybob

    GrayFlip

    Interesting idea... but really, without a clear idea on how to earn cash other than 'advertising'. Seeing as to all the trouble that facebook, myspace, and all the other big social network sites have with making money, I don't think this is a winning idea. Unless of course you create something really original... But good luck. Just wanted to toss my warning in there.
  24. If I remember correctly, this error usually meant you are missing an ending curly brace somewhere. Match up all your curly braces on the page in question.
  25. I've found Crimson Editor to be a better text editor myself. Notepad ++ is decent though.   Ew... No really good freeware out there ftpwise. Firefox's ftp add-on is fine, but doesn't allow you to edit text files on the server inside the ftp program. I personally use cuteftp, costs $60, and has every feature I could ever want.   7zip is the way to go. Unlike winrar and winzip, 7zip supports ALL compression formats mankind has ever come up with, as well as encryption. And it's free.
×
×
  • Create New...