Jump to content
MakeWebGames

Uridium

Members
  • Posts

    2,691
  • Joined

  • Last visited

  • Days Won

    85

Everything posted by Uridium

  1. Re: admins cant be feded [v2] I remodded my installer.php so when your the first one to Reg your placed into a different table called Admin saves anyone harrasing you ;)
  2. Re: [mccode v2] Gift.php [edited] Yep Gotta Agree worked for me to as i used Jasons Copy
  3. Re: always running from a fight   Would you like the long or short version for that question lol heres my Theory.... The Attack Script on MCC has never been decent. We make it loook good Graphically but i donit think anyone has ever cured its problems
  4. Re: [MCCODES v2] Trivia Quiz Creator I keep running into problems damn thing wont put the added questions in correct order. Im slacking in my old age lol
  5. Re: [v2] Fish & Chippy mod OH heck did i just help soeone with stolen source codes ?? SORRY GUYS wasnt aware...
  6. Re: [v2] Fish & Chippy mod if you have still got time to edit your post you need to change all links to chippy.php as they are pointing to bar24.php
  7. Re: [v2] Fish & Chippy mod Im going to give you +1 just for the reason its a british Chippy mod :) Nicely done
  8. Re: Mccodes Mono District     lol now thats one phrase i have to remember..
  9. Re: i need help again >.< You just need this bit   $used=array(); $q=$db->query("SELECT * FROM inventory WHERE inv_userid=$userid"); while ( $r=mysql_fetch_array($q) ) { if ( ! in_array ( $r['inv_id'], $used ) ) { $currdel=array(); $used[] =$r['inv_id']; $currdel[]=$r['inv_id']; $amount=$r['inv_qty']; //grab sellers others $q2=$db->query("SELECT * FROM inventory WHERE inv_userid=$userid AND inv_itemid = {$r['inv_itemid']} AND inv_id != {$r['inv_id']}"); while ( $r2 = mysql_fetch_array($q2) ) { $used[]=$r2['inv_id']; $currdel[]=$r2['inv_id']; $amount+=$r2['inv_qty']; } //if($userid == 1) //print "DEBUG: DELETE FROM inventory WHERE inv_id IN(".implode(",",$currdel).") "; $db->query("DELETE FROM inventory WHERE inv_id IN(".implode(",",$currdel).")"); //if($userid == 1) //print "DEBUG: INSERT INTO inventory VALUES('', {$r['inv_itemid']}, $userid, $amount) "; $db->query("INSERT INTO inventory VALUES('', {$r['inv_itemid']}, $userid, $amount)"); } }   Paste afther the include "globals.php";
  10. Re: Funney Error I had the same issue Haunted sorted mine out for me you may be as well asking how he fixed mine :)
  11. Re: Mccodes Mono District   it would Cost you $500 just to kill the damn bugs ;)You dont need Beta testers you need a hacker coz if they cant get in i'll pay 500 if they do then i pay nothing. :)
  12. Re: always running from a fight JON dont forget the one in header.php theres also one in there that will take all EXP....
  13. Re: Have any mod ideas post here! I have an Idea get Rid of the Attack System make more options for users at signup so they can choose what they want to be. let users intergrate with other users so the game isnt just about YOU its about a team effort.. and i dont mean joining a Gang... make users that chose a different Charcter Style from the Reg page Work for stats by accomplishing schooling and when successful can join a wider group of new Characters...
  14. Re: [MCCODES v1 + V2] Flash Login Iv'e sent details to you via the CE Messages The FLA file will allow you to edit the actionscript and Graphics of the login to suit your needs...
  15. Seeing as i havent seen a flash version of a login for MCC i decided to make one. Dont worry about SQL Injections from the file it wont happen The swf doesnt contain any call for your database via the file and simply works by calling for the authenticate.php file. Now open up your login.php file and remove... <form action=authenticate.php method=post name=login onsubmit=\"return saveme();\">User: <input type='text' name='username' size=15 /> Pass: <input type='password' name='password' size=15 /> <input type='submit' value='Submit' /></form></fieldset> and replace with <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="300" height="300" id="begin3" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="begin3.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#cccccc" /><embed src="begin3.swf" quality="high" bgcolor="#cccccc" width="300" height="300" name="begin3" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> DOWNLOAD FLASH FILE You will now have a working flash login if you want the FLA file for this Login im afraid thats $5 complete with above swf + fla + source.
  16. Re: Help Header Problem Call me stupid but i cliked the link he provided and a youporn website came up lol
  17. My Final Free Mod :) DOWNLOAD ZIP FILE the download contains the flash player + fla file and the html source You can add any website url that has a valid mp3 track or just download the mp3 Player to your pc and use it with your own offline music tracks,, FOR OFFLINE you will need the FULL PATH to the track example C:\My Documents\my music\farcry.mp3 Well thats it from me im outta here :)
  18. Re: [Mccodes V2]Prayer Mod Why would you want to pary when the whole idea of a game is to beat someone up lol
  19. Re: i need help again >.< Find   $q=$db->query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid={$_GET['ID']}"); $odata=$db->fetch_row($q); $myabbr=($ir['gender']=="Male") ? "his" : "her"; $oabbr=($ir['gender']=="Male") ? "his" : "her"; if($odata['hp'] == 1) { print "<h3>You come all this way only too find your opponent unconscious. You could have stayed home and watched some TV</h3> [url='index.php'][img=messages_back_014.gif][/url]</a>"; $h->endpage(); $_SESSION['attacking']=0; $ir['attacking']=0; $db->query("UPDATE users SET attacking=0 WHERE userid=$userid"); exit; }   Underneath add this the above may be slightly different to yours but the male female part is the same to look for   if($_GET['nextstep'] > 50) { print"<center><h1><font color='red'>STALEMATE!</h1> <h2>This fight is going knowhere you may as well go home!</h2> [url='index.php']> Back[/url]</center>"; $h->endpage(); event_add($odata['userid'],"[url='viewuser.php?u=$userid']{$youdata['username']}[/url] Tried to beat you but stalemated.",$c); event_add($youdata['userid']," You Tried to beat [url='viewuser.php?u=$userid']{$odata['username']}[/url] but stalemated.",$c); exit; }
  20. Re: i need help again >.< use this one its one ive amended so it updates the SQL each time something new is found. as soon as a user clicks on inventory.php it will auto update..   <?php include "globals.php"; $used=array(); $q=$db->query("SELECT * FROM inventory WHERE inv_userid=$userid"); while ( $r=mysql_fetch_array($q) ) { if ( ! in_array ( $r['inv_id'], $used ) ) { $currdel=array(); $used[] =$r['inv_id']; $currdel[]=$r['inv_id']; $amount=$r['inv_qty']; //grab sellers others $q2=$db->query("SELECT * FROM inventory WHERE inv_userid=$userid AND inv_itemid = {$r['inv_itemid']} AND inv_id != {$r['inv_id']}"); while ( $r2 = mysql_fetch_array($q2) ) { $used[]=$r2['inv_id']; $currdel[]=$r2['inv_id']; $amount+=$r2['inv_qty']; } //if($userid == 1) //print "DEBUG: DELETE FROM inventory WHERE inv_id IN(".implode(",",$currdel).") "; $db->query("DELETE FROM inventory WHERE inv_id IN(".implode(",",$currdel).")"); //if($userid == 1) //print "DEBUG: INSERT INTO inventory VALUES('', {$r['inv_itemid']}, $userid, $amount) "; $db->query("INSERT INTO inventory VALUES('', {$r['inv_itemid']}, $userid, $amount)"); } } $equip = array( $ir['equip_primary'] => 0, $ir['equip_secondary'] => 0, $ir['equip_armor'] => 0 ); $q = $db->query("SELECT * FROM items WHERE itmid IN({$ir['equip_primary']}, {$ir['equip_secondary']}, {$ir['equip_armor']})"); while($r=$db->fetch_row($q)) { $equip[$r['itmid']]=$r; } print "<table width='75%' border='0'> <tr> <td width='25%' align='center'>[b]Primary Weapon[/b]</td> <td width='25%' align='center'>[b]Armour[/b]</td> <td width='25%' align='center'>[b]Secondary Weapon[/b]</td> </tr> <tr> <td align='center'>"; if($equip[$ir['equip_primary']]['itmpic']['itmdesc']) { print"[img=/itmpics/{$equip[$ir[]"; } else { print "No item image."; } print "</td> <td align='center'>"; if($equip[$ir['equip_armor']]['itmpic']['itmdesc']) { print"[img=/itmpics/{$equip[$ir[]"; } else { print "No item image."; } print "</td> <td align='center'>"; if($equip[$ir['equip_secondary']]['itmpic']['itmdesc']) { print"[img=/itmpics/{$equip[$ir[] {$ir['itmname']}"; } else { print "No item image."; } print "</td> </tr> <tr> <td align='center'>"; if($equip[$ir['equip_primary']]['itmid']) { print"[url='unequip.php?type=equip_primary']Unequip Item[/url]"; } else { print "Nothing equipped."; } print "</td> <td align='center'>"; if($equip[$ir['equip_armor']]['itmid']) { print"[url='unequip.php?type=equip_armor']Unequip Item[/url]"; } else { print "Nothing equipped."; } print "</td> <td align='center'>"; if($equip[$ir['equip_secondary']]['itmid']) { print"[url='unequip.php?type=equip_secondary']Unequip Item[/url]"; } else { print "Nothing equipped."; } print "</td> </tr> </table><hr width='95%'> <h3>Inventory</h3><hr width='95%'>"; $inv=$db->query("SELECT iv.*,i.*,it.* FROM inventory iv LEFT JOIN items i ON iv.inv_itemid=i.itmid LEFT JOIN itemtypes it ON i.itmtype=it.itmtypeid WHERE iv.inv_userid={$userid} ORDER BY i.itmtype ASC, i.itmname ASC"); if ($db->num_rows($inv) == 0) { print "[b]You have no items![/b]"; } else { print "[b]Your items are listed below.[/b] <table width=95% class=\"table\" border=\"0\" cellspacing=\"1\"> <tr> <td class=\"h\">Item</td> <td class=\"h\">Sell Value</td> <td class=\"h\">Total Sell Value</td> <td class=\"h\">Image</td> <td class=\"h\">Links</td> </tr>"; $lt=""; while($i=$db->fetch_row($inv)) { if($lt!=$i['itmtypename']) { $lt=$i['itmtypename']; print "\n<tr><td colspan=5>[b]{$lt}[/b]</td></tr>"; } if($i['weapon']) { $i['itmname']="<font color='red'>*</font>".$i['itmname']; } if($i['armor']) { $i['itmname']="<font color='green'>*</font>".$i['itmname']; } print "<tr><td>{$i['itmname']}"; if ($i['inv_qty'] > 1) { print " x{$i['inv_qty']}"; } print "</td><td>\${$i['itmsellprice']}</td><td>"; print "$".($i['itmsellprice']*$i['inv_qty']); print"</td><td>[img=itmpics/{$i[]"; print "</td><td>[[url='#']Info[/url]]"; print " [[url='itemsend.php?ID={$i[']Send[/url]] [[url='itemsell.php?ID={$i[']Sell[/url]] [[url='imadd.php?ID={$i[']Add To Market[/url]]"; if($i['effect1_on'] || $i['effect2_on'] || $i['effect3_on']) { print " [[url='itemuse.php?ID={$i[']Use[/url]]"; } if($i['weapon']) { print " [[url='equip_weapon.php?ID={$i[']Equip as Weapon[/url]]"; } if($i['armor']) { print " [[url='equip_armor.php?ID={$i[']Equip as Armor[/url]]"; } print " [[url='displayadd.php?ID=$userid&action=add&itm={$i[']Display[/url]]"; print "</td></tr>"; } print "</table>"; print "[size="1"][b]NB:[/b] Items with a small red [/size]<font color='red'>*</font>[size="1"] next to their name can be used as weapons in combat. Items with a small green [/size]<font color='green'>*</font>[size="1"] next to their name can be used as armor in combat.[/size] "; } $h->endpage(); ?>   MAKE A BACKUP COPY OF YOUR OLD INVENTORY.PHP BEFORE OVERWRITING WITH THIS ONE.
  21. Re: [MCCODES V2[ Announcements mod only visible to staff Or just use the one ive posted which works and doesnt confuse the hell out of new members to CE :)
  22. Re: cmarket.php HELP   AMD Athlon 64 Processor 3500+ 2.2gz 1gb ram Compaq :P AMD Athlon 64 Processor 5000+ 3.5gz 8 gb ram I only use all that cos im a musician and hate it when you play something back and the CPU cant handle it.
  23. Re: [mccodes v2] Taser Mod   CREATE TABLE `froze` ( `ID` INT( 25 ) NOT NULL AUTO_INCREMENT PRIMARY KEY , `userid` INT( 25 ) NOT NULL , `when` INT( 25 ) NOT NULL , `by` INT( 25 ) NOT NULL ) ENGINE = MYISAM INSERT INTO `items` (`itmid` , `itmtype` ,`itmname` ,`itmdesc` ,`itmbuyprice` ,`itmsellprice` ,`itmbuyable` ,`effect1_on` ,`effect1` ,`effect2_on` , `effect2` ,`effect3_on` ,`effect3` ,`weapon` ,`armor`) VALUES ( NULL , '1', 'Taser Gun', 'Use this to taser users, freeze them for 5 minutes!', '1000', '500', '1', '1', '', '0', '', '0', '', '0', '0');   Try that cherry
  24. Re: [MCCODES V2[ Announcements mod only visible to staff call this file staffannouncements.php   <?php /* Advanced Annoucements Made By Karlos MCCodes V2 Made On: 11 Dec 2008 */ require_once (DIRNAME(__FILE__) . '/globals.php'); $AnnouceCount = $ir['staffnew_announcements']; $Order = sprintf( "SELECT * FROM " . "`staffmod_announcements` " . "ORDER BY `annouce_ID` DESC" ); $Selected = $db->query ($Order); ?> <h3>Staff Only Annoucements</h3> <table width='75%' cellspacing='0' border='1' class='table'> <tr> <th width='30%'> Staff Posted/Topic/Urgency </th> <th width='70%'> Announcement </th> </tr> <?php while($Info = $db->fetch_row($Selected)) { if($AnnouceCount > 0) { $AnnouceCount--; $NewInfo="?-?<font color='#FF000'>[b]New![/b]</font>"; } else { $NewInfo=""; } echo " <tr> <th colspan='2'> {$Info['annouce_NAME']}?-?".date('F j Y, g:i:s a', $Info['annouce_TIME']).$NewInfo." </th> </tr> <td> Topic: {$Info['annouce_TOPIC']} Urgency: {$Info['annouce_URGENCY']} Posted By: {$Info['annouce_POSTED']} </td> <td valign=top> ".nl2br($Info['annouce_TEXT'])." </td> </tr>"; } ?> </table> <?php if($ir['staffnew_announcements']) { $NoAnnoucements = sprintf( "UPDATE `users` SET `staffnew_announcements` = '0' WHERE (`userid` = %u) " , $userid); $db->query($NoAnnoucements); } $h->endpage(); ?> Now open up mainmenu.php Find.... Staff Panel \n"; Underneath add   if($ir['staffnew_announcements']) { print "[url='staffannouncements.php']<font color='orange'>Announcements ({$ir['staffnew_announcements']})[/url] "; } else { print "[url='staffannouncements.php']Announcements (0)[/url] "; }   You can now communicate with your staff and users cant see anything.
  25. Thought this might come in handy for some people its the MOD made by KARLOS which gave an impressive announcement for users.. However this one basically does the same but is only viewable by staff. SQLS   CREATE TABLE IF NOT EXISTS `staffmod_announcements` ( `annouce_ID` int(11) NOT NULL auto_increment, `annouce_NAME` varchar(255) NOT NULL default '', `annouce_TEXT` text NOT NULL, `annouce_TIME` int(11) NOT NULL default '0', `annouce_URGENCY` enum('No Ugency','Low','Medium','High','Urgent') NOT NULL default 'No Ugency', `annouce_TOPIC` enum('Meeting','User Scope','Ip Track User','Warnings!','New Events') NOT NULL default 'Meeting', `annouce_POSTED` varchar(255) NOT NULL default '', PRIMARY KEY (`annouce_ID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;   and   ALTER TABLE `users` ADD `staffnew_announcements` INT( 11 ) NOT NULL DEFAULT '0';   Now open up staff.php find case 'announce': announcements(); break; Add underneath case 'staffannounce': staff_announcements(); break; same file find   function announcements() { global $db,$ir,$c,$h,$userid,$set; if($ir['user_level'] != 2) { echo '<font color="#FF0000>403 - Unauthorized Access</font>'; $h->endpage(); exit; } if($_POST['TITLE']) { if(strlen($_POST['TITLE']) < 5) { echo 'Sorry, the annoucement title is too short. [url="staff_annouce.php?addannouce"]Back[/url]'; $h->endpage(); exit; } $AddAnnouce = sprintf("INSERT INTO mod_announcements (`annouce_NAME`, `annouce_TEXT`, `annouce_TIME`, `annouce_URGENCY`, `annouce_TOPIC`, `annouce_POSTED`)VALUES ('{$_POST['TITLE']}', '{$_POST['TEXT']}', unix_timestamp(), '{$_POST['URGENCY']}', '{$_POST['TOPIC']}', '{$_POST['POSTED']}')"); $db->query ($AddAnnouce); $db->query("UPDATE users SET `new_announcements` = `new_announcements` + 1"); echo 'Announcement added! > [url="announcements.php"]View It![/url]'; stafflog_add('Posted A New Annoucement'); $h->endpage(); exit; } else { echo 'Adding an announcement... Please try to make sure the announcement is concise and covers everything you want it to. <form action="staff.php?action=announce" method="post"> Announcement Title:<input type="text" name="TITLE"> Announcement Text: <textarea name="TEXT" rows="10" cols="60"></textarea> Announcement Urgency: <select name="URGENCY" type="dropdown"> <option value="No Ugency">No Ugency</option> <option value="Low">Low</option> <option value="Medium">Medium</option> <option value="High">High</option> <option value="Urgent">Urgent</option> </select> Announcement Topic: <select name="TOPIC" type="dropdown"> <option value="Updates">Updates</option> <option value="General News">General News</option> <option value="Fun">Fun</option> <option value="Warnings!">Warnings!</option> <option value="Design Info">Design Info</option> <option value="Edits">Edits</option> </select> <input type="hidden" name="POSTED" value="'.$ir['username'].'"> <input type="submit" value="Add Announcement!" /> </form>'; } }   ADD Underneath   function staff_announcements() { global $db,$ir,$c,$h,$userid,$set; if($ir['user_level'] != 2) { echo '<font color="#FF0000>403 - Unauthorized Access</font>'; $h->endpage(); exit; } if($_POST['TITLE']) { if(strlen($_POST['TITLE']) < 5) { echo 'Sorry, the annoucement title is too short. [url="staff.php?staffannounce"]Back[/url]'; $h->endpage(); exit; } $AddAnnouce = sprintf("INSERT INTO staffmod_announcements (`annouce_NAME`, `annouce_TEXT`, `annouce_TIME`, `annouce_URGENCY`, `annouce_TOPIC`, `annouce_POSTED`)VALUES ('{$_POST['TITLE']}', '{$_POST['TEXT']}', unix_timestamp(), '{$_POST['URGENCY']}', '{$_POST['TOPIC']}', '{$_POST['POSTED']}')"); $db->query ($AddAnnouce); $db->query("UPDATE users SET `staffnew_announcements` = `staffnew_announcements` + 1 where user_level > 1"); echo 'Announcement added! > [url="staffannouncements.php"]View It![/url]'; stafflog_add('Posted A Staff Annoucement'); $h->endpage(); exit; } else { echo 'Adding a Staff announcement... Only Staff are Able to View and Read These Announcements <form action="staff.php?action=staffannounce" method="post"> Announcement Title:<input type="text" name="TITLE"> Announcement Text: <textarea name="TEXT" rows="10" cols="60"></textarea> Announcement Urgency: <select name="URGENCY" type="dropdown"> <option value="No Ugency">No Ugency</option> <option value="Low">Low</option> <option value="Medium">Medium</option> <option value="High">High</option> <option value="Urgent">Urgent</option> </select> Announcement Topic: <select name="TOPIC" type="dropdown"> <option value="Meeting">Meeting</option> <option value="User Scope">User Scope</option> <option value="Ip Track User">Ip Track User</option> <option value="Warnings!">Warnings!</option> <option value="Game Updates">Game Updates</option> <option value="New Events">New Events</option> </select> <input type="hidden" name="POSTED" value="'.$ir['username'].'"> <input type="submit" value="Add Staff Announcement!" /> </form>'; } }   Open Up smenu.php Add this link under the original announcement URL   > [url='staff.php?action=staffannounce']Staff Announcement[/url]   PART 2 TO FOLLOW
×
×
  • Create New...