Jump to content
MakeWebGames

Absolute Zero

Members
  • Posts

    303
  • Joined

  • Last visited

    Never

Everything posted by Absolute Zero

  1. Re: Energy Orb [$5]   Would probably have to modify it a bit, but yes, it would end up working. Contact me if you need this done, Thank you.
  2. Title: Energy Orb Price: $5.00 (You can make $5 from this mod easy!) Availability: 15 Codes Left! Includes: - 1 PHP File (energy.php) - Instructions (instructions.txt) Description: This mod is an item called "Energy Orb" which when used grants the user 150 energy instead of the usual 100 energy. This is a great mod to add under the donation options, as you can easily sell it to users for $5 each for those who want more energy (which leads to more training, and attacking). This mod was coded by me, and was made for V1 (can easily be converted to V2 if needed). If there are any problems with the script please contact me and I will be glad to fix them! You are not allowed to resell, thank you! If you have any questions/want to purchase please contact me at: [email protected]
  3. Re: Attractive Advertisement Tutorial! Regarding Scarlets post (sorry I have been inactive) I totally agree as text is really hard to chose. But, really, there are some obvious tricks, such as: if you have a war website, don't go using cartoon font. Just use your brains and your eyes and you can come up with a pretty good design! Thanks.
  4. Re: Hospital Time IMO output of the code looks better if you replace this:   $time=$r['hospital']; $t4=floor($time/60/24); $t1=floor($time/60) % 24; $t2=$time % 60; if($t2 < 10) { $t3="0".$t2; } else { $t3=$t2; } if($t4) { $t5="$t4 days,"; } else { $t5=""; } if($t1) { $t1="$t1 hours,"; } else { $t1=""; } if($t2 == 1) { $t2="< 1 min"; } else { $t2="$t2 mins"; }   ...With...   $time=$r['hospital']; $t4=floor($time/60/24); $t1=floor($time/60) % 24; $t2=$time % 60; if($t2 < 10) { $t3="0".$t2; } else { $t3=$t2; } if($t4) { $t5="$t4 days "; } else { $t5=""; } if($t1) { $t1="$t1 hours "; } else { $t1=""; } if($t2 == 1) { $t2="1 mins"; } else { $t2="$t2 mins"; } if($t2 == 0) { $t2=""; }   It doesn't say "0 Minutes" when its at an hour, but instead it shows nothing...example: Old code when it hit 1 hour in hospital: 1 Hours, 0 Mins New code when it hits 1 hour in the hospital: 1 Hours It all really depends on the appearance you want, just letting you all see.
  5. Re: [mccode] voting Pimped Out Then make the code do: IF find the user voted on said site in vote table echo " yes IF not echo " no
  6. Re: [Free][v1][v2] Password reset code   Then no point in making an ingame account, talk to your host :S
  7. Re: [Free] [v1] Scuba Diving   Thats not the proper attitude, especially if your a game owner. Seriously with this attitude your not going to get real far. Take a reality check and look in the mirror...I'm expecting some low grammar level response very soon...Thanks!
  8. Re: [mccode] voting Pimped Out edit the votesite.php file and credit them for their visit/vote. ** Make sure to replace votesite.php with the vote site you want to edit **
  9. Re: mails Make sure it goes into the mail table? IDK
  10. Re: attack ban   Well if its their ID is the ID that is listed then it will not let them attacking, giving them the "You have been banned" message. Another way to put an attack ban would be to copy everything that says mail ban and switch it to attack ban, create tables or whatever is needed and your done.
  11. Re: [mccode] voting Pimped Out This query should be put in the daily cron...   mysql_query("TRUNCATE TABLE votes;");   Deletes all votes every day, so if you want the Yes or No voted crap it doesn't always say yes.
  12. Re: Email Validation   Probably something wrong with your email validation code? Seems like their is nothing wrong here.
  13. Re: how to make it so users lose exp and health from backing out of a fight Find in attack.php the part where it says "You ran from the fight" and the query makes the user lose all his/hers exp. Replace that with whatever you want, you could make -XX amount of life and -XX amount of exp, or an EXP percent. Make sure to post your query before you use it, make sure you didn't mess up.
  14. Re: Adding Medicine that takes hospital time off {v1} This has been posted before, use search function. Step 1: Create new item class called Medical Medicine or something Step 2: Create new item, called Morphine Step 3: Either create a new .php that executes the query or -hospital time or put it in itemuse.php Step 4: ??? Step 5: Profit ** I wouldnt use step 4 or 5, Southpark lol **
  15. Re: [mccode] Mining mod   Sorry but you must be pretty dull if you can't edit it yourself to not give so many crystals.
  16. Re: [V1]Paper Boy Panel With New User Level[V1] Well this should work, try it and tell me.   <?php /*----------------------------------------------------- -- Mono Country v1.0 BETA -- Paper Boy Panel -- Created By Klikoka -- MCR For Life !! Peace -----------------------------------------------------*/ session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); if($ir['user_level'] != 2 && $ir['user_level'] != 3 && $ir['user_level'] != 5 && $ir['user_level'] !=6) { print "You sneak, get out of here!"; $h->endpage(); exit; } $posta=mysql_real_escape_string(print_r($_POST,1),$c); $geta=mysql_real_escape_string(print_r($_GET,1),$c); mysql_query("INSERT INTO seclogs VALUES('', $userid, '$posta', '$geta', unix_timestamp() )",$c); function admin_index() { global $ir,$c; print "Welcome to the GAME NAME HERE Paper Boy panel, {$ir['username']}! <h3><font color=red>Paper Boy Warning:You Are Allowed To Do IP Search's And If You Find Multis Please Report To A Higher Member Of Staff And They Will Deal With It You May Edit The Newspaper But Any Inaproprit Material And Your Gone.</font></h3> [b]News from the Admins:[/b] "; include "admin.news"; print "<u>Ip's</u> [[url='ppanel.php?action=ipform']IP Search[/url]] <u>Logs</u> [[url='ppanel.php?action=atklogs']Attack Logs[/url]] [[url='ppanel.php?action=cashlogs']Cash Xfer Logs[/url]] [[url='ppanel.php?action=itmlogs']Item Xfer Logs[/url]]"; print " <u>Special Tools</u> [[url='ppanel.php?action=editnews']Edit Newspaper[/url]] "; } function view_attack_logs() { global $ir,$c,$h,$userid; print "<h3>Attack Logs</h3> <table width=75%><tr style='background:gray'><th>Time</th><th>Detail</th></tr>"; $q=mysql_query("SELECT * FROM attacklogs ORDER BY time DESC",$c); while($r=mysql_fetch_array($q)) { print "<tr><td>".date('F j, Y, g:i:s a',$r['time'])."</td><td>{$r['attacker']} attacked {$r['attacked']} and {$r['result']}</td></tr>"; } print "</table>"; } function ip_search_form() { global $ir,$c,$h,$userid; print "<h3>IP Search</h3> <form action='asspanel.php?action=ipsub' method='post'> IP: <input type='text' name='ip' value='...' /> <input type='submit' value='Search' /></form>"; } function ip_search_submit() { global $ir,$c,$h,$userid; print "Searching for users with the IP: [b]{$_POST['ip']}[/b] <table width=75%><tr style='background:gray'> <th>User</th> <th>Level</th> <th>Money</th> </tr>"; $q=mysql_query("SELECT * FROM users WHERE lastip='{$_POST['ip']}'",$c); $ids=array(); while($r=mysql_fetch_array($q)) { $ids[]=$r['userid']; print "\n<tr> <td> [url='viewuser.php?u={$r[']{$r['username']}[/url]</td> <td> {$r['level']}</td> <td>{$r['money']}</td> </tr>"; } function view_itm_logs() { global $ir,$c,$h,$userid; print "<h3>Item Xfer Logs</h3> <table width=75%><tr style='background:gray'><th>Time</th><th>Detail</th></tr>"; $q=mysql_query("SELECT ix.*,u1.username as sender, u2.username as sent,i.itmname as item FROM itemxferlogs ix LEFT JOIN users u1 ON ix.ixFROM=u1.userid LEFT JOIN users u2 ON ix.ixTO=u2.userid LEFT JOIN items i ON i.itmid=ix.ixITEM ORDER BY ix.ixTIME DESC",$c); while($r=mysql_fetch_array($q)) { print "<tr><td>" . date("F j, Y, g:i:s a",$r['ixTIME']) . "</td><td>{$r['sender']} sent {$r['ixQTY']} {$r['item']}(s) to {$r['sent']} </td></tr>"; } print "</table>"; } function view_cash_logs() { global $ir,$c,$h,$userid; print "<h3>Cash Xfer Logs</h3> <table width=75% border=1> <tr style='background:gray'> <th>ID</th> <th>Time</th> <th>User From</th> <th>User To</th> <th>Multi?</th> <th>Amount</th> <th> </th> </tr>"; $q=mysql_query("SELECT cx.*,u1.username as sender, u2.username as sent FROM cashxferlogs cx LEFT JOIN users u1 ON cx.cxFROM=u1.userid LEFT JOIN users u2 ON cx.cxTO=u2.userid ORDER BY cx.cxTIME DESC",$c) or die(mysql_error()." "."SELECT cx.*,u1.username as sender, u2.username as sent FROM cashxferlogs cx LEFT JOIN users u1 ON cx.cxFROM=u1.userid LEFT JOIN users u2 ON cx.cxTO=u2.userid ORDER BY cx.cxTIME DESC"); while($r=mysql_fetch_array($q)) { if($r['cxFROMIP'] == $r['cxTOIP']) { $m="<span style='color:red;font-weight:800'>MULTI</span>"; } else { $m=""; } print "<tr><td>{$r['cxID']}</td> <td>" . date("F j, Y, g:i:s a",$r['cxTIME']) . "</td><td>[url='viewuser.php?u={$r[']{$r['sender']}[/url] [{$r['cxFROM']}] (IP: {$r['cxFROMIP']}) </td><td>[url='viewuser.php?u={$r[']{$r['sent']}[/url] [{$r['cxTO']}] (IP: {$r['cxTOIP']}) </td> <td>$m</td> <td> \${$r['cxAMOUNT']}</td> <td> [[url='asspanel.php?action=fedform&XID={$r[']Jail Sender[/url]] [[url='asspanel.php?action=fedform&XID={$r[']Jail Receiver[/url]]</td> </tr>"; } print "</table>"; } function newspaper_form() { global $ir,$c,$h,$userid; $q=mysql_query("SELECT * FROM papercontent LIMIT 1",$c); $news=mysql_result($q,0,0); print "<h3>Editing Newspaper</h3><form action='admin.php?action=subnews' method='post'> <textarea rows='7' cols='35' name='newspaper'>$news</textarea> <input type='submit' value='Change' /></form>"; } function newspaper_submit() { global $ir,$c,$h,$userid; $news=$_POST['newspaper']; mysql_query("UPDATE papercontent SET content='$news'",$c); print "Newspaper updated!"; } switch($_GET['action']) { case 'atklogs': view_attack_logs(); break; case 'index': admin_index(); break; case 'ipform': ip_search_form(); break; case 'ipsub': ip_search_submit(); break; case 'itmlogs': view_itm_logs(); break; case 'cashlogs': view_cash_logs(); break; case 'editnews': newspaper_form(); break; case 'subnews': newspaper_submit(); break; default: admin_index(); break; } $h->endpage(); ?>
  17. Re: In game forums for sale   Which website is this?
  18. Re: IRC Host     Your both very helpful thanks so much! Actually I was already looking at zodiac solutions, looks pretty good to start off with, but then I bookmarked ferdis page for later :-) thanks
  19. Sorry I am new to IRC purchasing and what to look for; When purchasing a monthly IRC host what should I look for? :wink:
  20. Re: In game forums for sale Ehh Im on my site right now and it works so... :-) Great purchase, worth every bit! 8-)
  21. Re: [mccode] jail/hosp shoutbox   uhmm, Why? It's a log of what people chatted about, so if a spammer goes on, you can quickly see what they said. Sorry I get it now, thanks Ferdi for all the help!
  22. Re: [mccode] jail/hosp shoutbox Works great thanks 8-) But wouldn't there still be a need for a cron? To dump it out every so often? :wink:
  23. Re: [mccode] jail/hosp shoutbox Warning: fwrite(): supplied argument is not a valid stream resource in /home2/battlefi/public_html/jailshout.php on line 15 Warning: fclose(): supplied argument is not a valid stream resource in /home2/battlefi/public_html/jailshout.php on line 16 Comment Added! Thats what I get. :-( I tried chmod 777
  24. Re: [mccode] jail/hosp shoutbox Hey I was wondering, since the shoutbox would keep going on forever until it's cleared. Would there be a way to show only the most recent 10 or 5? This would be of a great help! Thanks.
  25. Re: Attractive Advertisement Tutorial! Nice one! :-) lol
×
×
  • Create New...