Jump to content
MakeWebGames

Lowball

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Lowball's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Re: Level specific items I cannot give you the exact code I used because my version is quite different than the original, but: 1) Create a new field in the items table, for minimum_level (or whatever name you choose) (integer, default value=0) 2) Edit staff_items.php where you create a new item, and when you edit an item, to allow for an integer to be placed here 3) Modify the "use item" (not just the menu display in inventory, but the actual itemuse.php as well to prevent people from trying to get around the menus 4) Modify the equipt item, and equipt armor files as well. Beyond this, you might want to add a column in the shops listing the minimum level, as well as in the auction and items market, otherwise players will complain that they spent good money on an item they cannot use.
  2. Re: does anyone know what is most likeily to case these errors in your "mysql_fetch_array($x)" function, $x is not a valid resource. This must come from a mysql_query first, like: $x=mysql_query(...)
  3. Re: Security of your game... In my game(s) if you over X amount of $$ it drops the player to zero, tells them the admin is investigating, sends them an event says the same thing, then sends me an email telling me to investigate, and how much they had. It's not likely it was a hack, but might also be a bug, or in the case where it was legit, I will refund the money, bankmoney or points, and up the limits.
  4. Re: userlist.php (correctly) shows huge number of pages I just decided to take the time to code it (something I could not decide how to start, or how I wanted it done.) I'd pass it along, but I don't know that my files are anything like the originals any longer, and I'd hate to have to support it if it didn't integrate right.
  5. Re: userlist.php (correctly) shows huge number of pages Actually what I'm looking for is more or less an output like: |< 1 2 3 4 5 6 7 8 9 10 50 100 135 >| Starting with a "Jump to start", then giving all the pages near the current page, then skipping several blocks of pages, and ending with a "Skip to end" I can write it (or something like it, depending on how I'd like to go) but if it's already done, or someone has a paid mod, I'd prefer to save my time for other things.
  6. I am interested in reducing the size of the output on userlist.php, where it shows all the available pages, and a link to each and every one. When you have several thousand players, this gets quite long. Does anyone already have a mod for this?
  7. Re: CSS Textbox Edit ANY VERSION On this subject. Has anyone had the trouble where SOME textboxes appear with the wrong background color? I've seen this with multiple browsers, on sites all over the web. I'm trying to find a way to control this.
  8. Re: Itempedia FREE V2 Mod... My version of Infopedia: shortened, and allows for dynamic item types, and fixes some counting issues:   <?php include "globals.php"; print"<h2>Itempedia</h2>"; print"<font color='red'><h3>[b](Owned Totals do not include Equipped items or items on markets!!!)[/b]</h3></font>"; print" <table width=95% cellspacing=1 class='table'><tr><th>Item Type</th><th>Item Name</th><th>Attributes</th><th>Buy Price</th><th>Sale Price</th><th>Owned by:</th><th>Owned by:</tr>"; $q=$db->query("SELECT i.*,it.itmtypename FROM items i JOIN itemtypes it ON i.itmtype=it.itmtypeid ORDER BY i.itmtype,i.itmbuyprice ASC"); $cn=0; while($p=$db->fetch_row($q)){ $d=$db->query("SELECT inv_userid FROM inventory where inv_itemid={$p['itmid']} GROUP BY inv_userid"); $r=$db->num_rows($d); $s=$db->query("SELECT armoryGANGID FROM gangarmory where armoryITEMID ={$p['itmid']} GROUP BY armoryGANGID"); $x=$db->num_rows($s); $cn++; print"<tr><td>{$p['itmtypename']}</td><td>[url='iteminfo.php?ID={$p[']{$p['itmname']}[/url]</td><td>{$p['itmdesc']}</td><td>{$p['itmbuyprice']}</td><td>{$p['itmsellprice']}</td>"; print"<td>$r Members</td><td>$x Gangs</td></tr>"; } echo "</table>"; $h->endpage(); ?>
  9. Re: Free 2 - Search Nyna, Nice to see someone coding add-ons that actually knows to indent. We indent differe Also, in another thread you said something about a commodore 64... From your picture, I would say you are too young to have ever seen one, except maybe in a museum. Maybe I'm thinking of something older than the 64s....
  10. Re: [mccode] donator day market for v2   So now you have someone with a credit card buying more days than he needs for himself, and selling them for game $$ to someone you can't get to pull out a credit card anyway. I see gain, not loss. Days are still a commodity, no matter who buys them, the more people you get using them up, the better.   Second: After: function dday_buy(){ global $db,$ir,$c,$userid,$h,$set;   You need to add: $_GET['ID']=abs((int) $_GET['ID']);   Otherwise you are open to mySQL injections. Third: To prevent your users from posting all their days just before midnight, I made ours require they keep at least 1 day for themselves. I guess they could post several days if they were not going to be around to use them, but....
×
×
  • Create New...