Klikoka
Members-
Posts
382 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Klikoka
-
Re: Attack Bug First Find : else if ($odata['hp'] < 5) { print "You can only attack those who have health"; $h->endpage(); exit; } Then Underneath Add : else if ($ir['gang'] == $odata['gang'] && $ir['gang'] > 0) { print "You are in the same gang as {$odata['username']}! What are you smoking today dude!"; $h->endpage(); exit; } Then Find : else if ($youdata['energy'] < $youdata['maxenergy']/2) { print "You can only attack someone when you have 50% energy"; $h->endpage(); exit; } Add Underneath : else if ($youdata['location'] != $odata['location']) { print "You can only attack someone in the same location!"; $h->endpage(); exit; } I Think Thats It
-
Re: Delete i got confused
-
Re: New items page [V2] what would you need 2 for :?
-
Re: Delete correct me if im wrong
-
Re: Delete i think thats it
-
Re: Delete ALTER TABLE `users` CHANGE `crystals` `crystals` INT( 12 ) NOT NULL DEFAULT '0' ALTER TABLE `userstats` CHANGE `strength` `strength` INT( 12 )NOT NULL DEFAULT '0', CHANGE `IQ` `IQ` INT( 12 )NOT NULL DEFAULT '0', CHANGE `agility` `agility` INT( 12 )NOT NULL DEFAULT '0', CHANGE `guard` `guard` INT( 12 )NOT NULL DEFAULT '0', CHANGE `labour` `labour` INT( 12 )NOT NULL DEFAULT '0',
-
Re: Crystal market exploit? does anyone know what the exploit is or what it does exactly cos im confused :?
-
Re: [V1][MCCODE]Avatars For Pics[MCCODE][V1] it is really if a player can not find a pic they can use pre-uploaded avatars rather than looking around for more pics.
-
Re: [V1][MCCODE]Avatars For Pics[MCCODE][V1] Please Just Back To The Mod If You Want To War PM Each Other
-
Re: [V1][MCCODE]Avatars For Pics[MCCODE][V1] I Missed A Bit Out Here It Is SQL Is : ALTER TABLE `users` ADD `avatar` INT( 11 ) NOT NULL DEFAULT '1'; In View User Find: if($r['display_pic']) { print "[img={$r[]"; } else { print "<img src=defaultuser.jpg width='150' height='150' alt='User Display Pic' title='User Display Pic' />"; } Replace With : if($r['display_pic']) { print "[img={$r[]"; } else { if($r['avatar']) print "[img={$ir[]"; }
-
Add Into Preferences: [[url='preferences.php?action=avatar']Profile Avatar Change[/url]] Then Add Cases: case 'avatar': avatar_change(); break; case 'avatar2': do_avatar_change(); break; Then Add This Before $h->endpage(); : function avatar_change() { global $ir,$c,$userid,$h; print "<h3>Profile Avatar Change</h3> <form action='preferences.php?action=avatar2' method='post'> New Profile Avatar: <textarea rows=7 cols=40 name='banner'>{$ir['banner']}</textarea> <input type='submit' value='Change Banner' /></form> [b]Current Profile Avatar:[/b]{$ir['avatar']}"; print "<table width='50%' border='1'> <tr> <td width='24%'><div align='center'>[b]Avatar Number[/b]</div></td> <td width='76%'><div align='center'>[b]Avatar[/b]</div></td> </tr> <tr> <td>1</td> <td>[img=IMAGE]</td> </tr> <tr> <td>2</td> <td>[img=IMAGE]</td> </tr> <tr> <td>3</td> <td>[img=IMAGE]</td> </tr> <tr> <td>4</td> <td>[img=IMAGE]</td> </tr> <tr> <td>5</td> <td>[img=IMAGE]</td> </tr> <tr> <td>6</td> <td>[img=IMAGE]</td> </tr> <tr> <td>7</td> <td>[img=IMAGE]</td> </tr> </table>"; } function do_avatar_change() { global $ir,$c,$userid,$h; if($_POST['avatar'] == "") { print "You did not enter an avatar. > [url='preferences.php?action=avatar']Back[/url]"; } else { mysql_query("UPDATE users SET avatar='{$_POST['avatar']}' WHERE userid=$userid",$c); print "Profile Avatar changed!"; } And Finally Add This To function pic_change() : <h4>If You Wish To Use Are Avatars [[url='preferences.php?action=avatar']Click Here[/url]] </h4> And Then Add Whatever You Want The Pictures To Be! :-D
-
[mccode v2] Take Your Partner On A Date
Klikoka replied to i need mccodes's topic in Free Modifications
Re: [v2]Take Your Partner On A Date[v2] Its The Exact Code -
Re: Proxy Check im not adding this cos most people use proxys
-
Make A File ppanel.php And Add In:: <?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); 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; } 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!"; } $h->endpage(); ?> Find In Admin.php print "</table>"; print "[b]Assistants[/b] <table width=80%><tr style='background:gray'> <th>User</th> <th>Online?</th> <th>Links</th> </tr>"; $q=mysql_query("SELECT * FROM users WHERE user_level=5 ORDER BY userid ASC", $c); while($r=mysql_fetch_array($q)) { if($r['laston'] >= time()-15*60) { $on="<font color=green>[b]Online[/b]</font>"; } else { $on="<font color=red>[b]Offline[/b]</font>"; } print "\n<tr> <td>[url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]</td> <td>$on</td> <td>[url='admin.php?action=userlevel&level=2&ID={$r[']Admin[/url] · [url='admin.php?action=userlevel&level=3&ID={$r[']Secretary[/url] · [url='admin.php?action=userlevel&level=4&ID={$r[']IRC Op[/url] · [url='admin.php?action=userlevel&level=1&ID={$r[']Member[/url]</td></tr>"; } print "</table>"; Add Below print "[b]Paper Boy[/b] <table width=80%><tr style='background:gray'> <th>User</th> <th>Online?</th> <th>Links</th> </tr>"; $q=mysql_query("SELECT * FROM users WHERE user_level=6 ORDER BY userid ASC"); while($r=mysql_fetch_array($q)) { if($r['laston'] >= time()-15*60) { $on="<font color=green>[b]Online[/b]</font>"; } else { $on="<font color=red>[b]Offline[/b]</font>"; } print "\n<tr> <td>[url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]</td> <td>$on</td> <td>[url='admin.php?action=userlevel&level=2&ID={$r[']Admin[/url] · [url='staff_special.php?action=userlevel&level=3&ID={$r[']Secretary[/url] · [url='staff_special.php?action=userlevel&level=1&ID={$r[']Member[/url]</td></tr>"; } print "</table>"; Add To Stafflist.php print "[b]Paper Boy[/b] <table width=80%><tr style='background:gray'><th>User</th> <th>Level</th> <th>Money</th> <th>Last Seen</th> <th>Status</th> </tr>"; foreach($staff as $r) { if($r['user_level']==6) { if($r['laston'] >= time()-15*60) { $on="<font color=green>[b]Online[/b]</font>"; } else { $on="<font color=red>[b]Offline[/b]</font>"; } print "<tr> <td>[url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]</td> <td>{$r['level']}</td> <td>\${$r['money']}</td> <td>".date('F j, Y, g:i:s a',$r['laston'])."</td> <td>$on</td> </tr>"; } } print "</table>"; And That Should Be It I Really Only Made It Cos I Was Bored I Made From asspanel.php :-D
-
[v2]Newspaper - I carnt Post ads [v2]
Klikoka replied to i need mccodes's topic in General Discussion
Re: [v2]Newspaper - I carnt Post ads [v2] r u talking about ads that users can add :? -
Re: No Attack the code has been around for ages thats where he prob got it i knew this bout 6Months ago
-
Re: [Free] [v1&v2] High Low once again a nice mod by Isomerizer +1XD
-
[mccode] How to Setup PayPal Instant Payment Notification - Free!
Klikoka replied to oxidati0n's topic in Free Modifications
Re: [mccode] How to Setup PayPal Instant Payment Notification - Free! try posting your version then! -
Re: Contact Staff Form [FREE] nice mod +1 :-D
-
Re: [site tools] auto backup your site me too nice thought :-D :-D
-
Re: [mccode] quantify items automatically it makes the inventory look bigger without it so its a nice add
-
Re: [FREE] Bodyguard V2.0 nice mod +1 for u
-
Re: [Free] [v1] Profile Image Uploader hes confussing :?
-
[mccode]Clear Hospital And Jail Shout Boxes Hourly
Klikoka replied to subman's topic in Free Modifications
Re: [mccode v1&2]Clear Hospital And Jail Shout Boxes Hourly or you could set it to daily or sumthing but nice thought