
seanybob
Members-
Posts
666 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by seanybob
-
Important Security Issue For All McCode Owners !
seanybob replied to MaKaVeLLi's topic in General Discussion
Re: Important Security Issue For All McCode Owners ! /slap dabomstew -
Re: Visual Basic: Sb CD Drive Prank You can get a cd drive to pop open via a link on a webpage??? Was it some sort of embedded flash/java object or something?
-
Re: [MCV2]SHOUTBOX[MCV2] There's a v2 shoutbox here: http://seanybob.net/index.php?act=mccodes
-
Just a program I wrote in my spare time in VB. Run the exe. Set the timer. Go hide. When the user comes back to the computer, they are in for a surprise. After the timer elapses, the cd drive of their computer will start popping in and out. IMPORTANT NOTE! I've gotten a couple pm's on how to end this program after it runs, because they can't find it in their processes. You don't need to end it. After it finished popping the cd drive in and out, it exits out of itself, leaving no trace :D Download Program Download Code You can see this program's development and more at my blog, teachthe.net Edit: Oops, wrong forum. Should have gone one more child level down to 'Other Programming Languages'
-
Re: [mccode v2] Humans vs. Zombies EVENT mod Haunted Dawg contributed this via pm: Here Is the Cases: case 'event_finish': finish_event_hvz(); break; Link: echo '[url="'.$_SERVER['PHP_SELF'].'?action=event_finish"]Finish Current Event[/url] '; Funcion: function finish_event_hvz() { global $ir, $h, $set; $events_active = mysql_query("SELECT hvz AS online FROM `hvzstats`") or die(mysql_error().' on line '.__LINE__.'. Function: finish_event_hvz'); $events_active = mysql_fetch_assoc($events_active); if($events_active['online'] == 0) { echo 'Currently no event\'s to end.'; $h->endpage(); exit; } if(isset($_POST['prize'])) { $prize_h = (isset($_POST['prize_h']) && ctype_digit($_POST['prize_h'])) ? abs(@intval($_POST['prize_h'])) : 0; $prize_z = (isset($_POST['prize_z']) && ctype_digit($_POST['prize_z'])) ? abs(@intval($_POST['prize_z'])) : 0; $prize_type = (isset($_POST['prize_type']) && in_array($_POST['prize_type'], array(1,2,3))) ? abs(@intval($_POST['prize_type'])) : 1; if($prize_type == 1) { //Cash mysql_query("UPDATE `users` SET `money` = (`money` + ".$prize_h.") WHERE `humanorzombie` = 0"); $zombies = mysql_query("SELECT `userid` FROM `users` WHERE `humanorzombie` = 1 ORDER BY `zombiekills` ASC LIMIT 3"); while($row = mysql_fetch_assoc($zombies)) { mysql_query("UPDATE `users` SET `money` = (`money` + ".$prize_z.") WHERE `userid` = ".$row['userid']); } } else if($prize_type == 2) { //Item $users = mysql_query("SELECT `userid` FROM `users` WHERE `humanorzombie` = 0"); while($soc = mysql_fetch_assoc($users)) { item_add($soc['userid'],abs(@intval($_POST['prize_item'])),$prize_h); //Recheck up on this function! } $zombies = mysql_query("SELECT `userid` FROM `users` WHERE `humanorzombie` = 1 ORDER BY `zombiekills` ASC LIMIT 3"); while($row = mysql_fetch_assoc($zombies)) { item_add($row['userid'],abs(@intval($_POST['prize_item'])),$prize_z); } } else if($prize_type == 3) { //Crystals mysql_query("UPDATE `users` SET `crystals` = (`crystals` + ".$prize_h.") WHERE `humanorzombie` = 0"); $zombies = mysql_query("SELECT `userid` FROM `users` WHERE `humanorzombie` = 1 ORDER BY `zombiekills` ASC LIMIT 3"); while($row = mysql_fetch_assoc($zombies)) { mysql_query("UPDATE `users` SET `crystals` = (`crystals` + ".$prize_z.") WHERE `userid` = ".$row['userid']); } } echo 'Event finished. Users Credited. Go send announcement.'; stafflog_add('Finished Zombie Event'); } else { echo ' Finishing the event. Thing\'s to notice: 1.- If you select Item as a prize, you must specify the quantity where Prize Human\'s & Prize Zombie\'s is. 2.- If you select Cash as a prize, you must specify the cash amount they will get where Prize Human & Prize Zombie\'s is. 3.- If you select Crystals. The above also count\'s here. 4.- When selecting Item as prize. You must select the item bellow the field. <form action="'.$_SERVER['PHP_SELF'].'?action=event_finish" method="post"> Prize Humans: <input type="text" name="prize_h" value="0"> (Values Only) Prize Zombies: <input type="text" name="prize_z" value="0"> (Values Only) Prize Type: <select name="prize_type"><option value="1">Cash</option><option value="2">Item</option><option value="3">Crystals</option></select> Prize Item (If type is select as `Item`ONYL!): <select name="prize_item">'; $soc = mysql_query("SELECT itmid,itmname FROM `items`"); while($ret = mysql_fetch_assoc($soc)) { echo ' <option value="'.$ret['itmid'].'">'.$ret['itmname'].'</option>'; } echo ' </select> <input type="submit" value="End Prize" name="prize"> </form> Bellow is who will get prizes. Humans: Every human. Zombies: '; $zombies = mysql_query("SELECT `username` FROM `users` WHERE `humanorzombie` = 1 ORDER BY `zombiekills` ASC LIMIT 3"); while($row = mysql_fetch_assoc($zombies)) { echo $row['username'].' '; } } } That's for the zombie's. the last admin function missing. Not tested.
-
Re: April Fools Joke [MCCODE V2] Rofl. On april fool's day, install and enable the zombie mod. They'll think it's just a joke... muahahhaha
-
Re: [mccode v2] Humans vs. Zombies EVENT mod Well, this mod is coming along. The last thing that needs to be coded is a finish event admin function. I've tested all the code thus far (shown in my above post) on my site, and it works perfectly. It's entirely functional - if you add it now, it will work - we just need to get the finish event admin function coded
-
Re: [mccode v2] Humans vs. Zombies EVENT mod Awesome Dissobey :D Here's the most up to date code, with a few additions by myself. mysql ALTER TABLE `users` ADD `humanorzombie` INT( 1 ) NOT NULL DEFAULT '0', ADD `zombiekills` INT( 11 ) NOT NULL DEFAULT '0'; CREATE TABLE `hvzstats` ( `hvz` INT( 1 ) NOT NULL DEFAULT '0', `totzombies` INT( 11 ) NOT NULL DEFAULT '0' ) ENGINE = MYISAM INSERT INTO `hvzstats` (`hvz`, `totzombies`) VALUES (0, 0); Open attack.php Find <form action='attacktake.php?ID={$_GET['ID']}' method='post'><input type='submit' value='Leave Them' /></form>"; After that add if ($ir['humanorzombie'] == 1 && $odata['level'] >= $ir['level'] && $odata['humanorzombie']==0) { echo '<form action="attackbite.php?ID='.$_GET['ID'].'" method="post"><input type="submit" value="Bite Them" /></form>'; } Create attackbite.php <?php $atkpage=1; include "globals.php"; $_GET['ID']=abs((int) $_GET['ID']); $_SESSION['attacking']=0; $ir['attacking']=0; $db->query("UPDATE users SET attacking=0 WHERE userid=$userid"); $od=$db->query("SELECT * FROM users WHERE userid={$_GET['ID']}"); if($_SESSION['attackwon'] != $_GET['ID']) { print "Cheaters don't get anywhere."; $h->endpage(); exit; } if($db->num_rows($od)) { $r=$db->fetch_row($od); if($r['hp'] == 1) { print "What a cheater u are."; } else { print "You move forward to bite {$r['username']}. You take a huge chunk out of {$r['username']}'s left arm. You watch as they turn over, and begin moaning 'BRAINSSSSSSSSS!!' - The transformation is complete, they became a zombie."; $hosptime=rand(10,20); $db->query("UPDATE users SET zombiekills=zombiekills+1, attacking=0 WHERE userid=$userid"); $db->query("UPDATE hvzstats SET totzombies=totzombies+1"); $db->query("UPDATE users SET humanorzombie=1, hp=1, hospital=$hosptime, hospreason='Bit by the zombie known as <a href=\'viewuser.php?u={$userid}\'>{$ir['username']}</a>' WHERE userid={$r['userid']}"); event_add($r['userid'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] bit you and turned you into a zombie.",$c,'combat'); $atklog=mysql_escape_string($_SESSION['attacklog']); $db->query("INSERT INTO attacklogs VALUES('',$userid,{$_GET['ID']},'won',unix_timestamp(),-2,'$atklog');"); $_SESSION['attackwon']=0; } } else { print "You beat Mr. non-existant!"; } $h->endpage(); ?> Open explore.php Find include "globals.php"; After that, add $zom=$db->query("SELECT * FROM hvzstats"); $hvz=$db->fetch_row($zom); if($hvz['hvz'] ==1) { if($hvz['totzombies'] < 10 && $ir['humanorzombie'] ==0) { $randzomb=(int) rand(1,100); $randthaught=(int) rand(1,5); if($randthaught == 1) { $thaught="Did i leave the oven on?"; } else if($randthaught == 2) { $thaught="I wonder what my gravestone will read.."; } else if($randthaught == 3) { $thaught="I'm too young to die!! Can't somebody help me?!?!?!"; } else if($randthaught == 4) { $thaught="MMM Brains..."; } else if($randthaught == 5) { $thaught="Time to visit my ex... >:]"; } if($randzomb > 80) { print "[b]You've been bitten by a wandering zombie[/b], the last rational thought you have before tuning into a zombie is: $thaught."; $db->query("UPDATE users SET humanorzombie=1 WHERE userid=$userid"); $db->query("UPDATE hvzstats SET totzombies=totzombies+1"); $h->endpage(); exit; } } } Find [url='userlist.php']User List[/url] Replace with [url='userlist.php']User List[/url] "; $zom=$db->query("SELECT * FROM hvzstats"); $hvz=$db->fetch_row($zom); if($hvz['hvz'] ==1) { print"[url='hvzlist.php']Humans vs. Zombie list[/url] "; } print" Open register.php Find $db->query("INSERT INTO users (username, login_name, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip, lastip_signup) VALUES( '{$username}', '{$username}', md5('{$_POST['password']}'), 1, $sm, 0, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', -1, '$IP', '$IP')"); Replace that line with $zom2=$db->query("SELECT * FROM hvzstats"); $hvz=$db->fetch_row($zom2); if($hvz['hvz'] ==1) { $zom=1; } else { $zom=0; } $db->query("INSERT INTO users (username, login_name, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip, lastip_signup, humanorzombie) VALUES( '{$username}', '{$username}', md5('{$_POST['password']}'), 1, $sm, 0, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', -1, '$IP', '$IP', $zom)"); Create file hvzlist.php <?php include "globals.php"; $_GET['st'] = abs((int) $_GET['st']); $st=($_GET['st']) ? $_GET['st'] : 0; $by=($_GET['by']) ? $_GET['by'] : 'userid'; $ord=($_GET['ord']) ? $_GET['ord'] : 'ASC'; $which = $_GET['hz']; if($which=='Humans') { $type=0; $txt='Humans'; } else { $type=1; $txt='Zombies'; } print "<h3>List of $txt</h3> [url='?hz=Humans']Humans[/url] | [url='?hz=Zombies']Zombies[/url] "; $cnt=mysql_query("SELECT userid, humanorzombie FROM users WHERE humanorzombie=$type",$c); $membs=mysql_num_rows($cnt); $pages=(int) ($membs/50)+1; if($membs % 100 == 0) { $pages--; } print "Pages: "; for($i=1;$i<=$pages;$i++) { $pst=($i-1)*50; print "<a href='hvzlist.php?st=$pst&by=$by&ord=$ord'>"; if($pst == $st) { print "<font color='#33cc33'>"; } print $i; if($pst == $st) { print "</font>"; } print "</a> "; if($i % 25 == 0) { print " "; } } print " Order By: [url='hvzlist.php?hz=$txt&st=$st&by=userid&ord=$ord']User ID[/url] | [url='hvzlist.php?hz=$txt&st=$st&by=username&ord=$ord']Username[/url] | [url='hvzlist.php?hz=$txt&st=$st&by=level&ord=$ord']Level[/url] | [url='hvzlist.php?hz=$txt&st=$st&by=money&ord=$ord']Money[/url] | [url='hvzlist.php?hz=$txt&st=$st&by=zombiekills&ord=$ord']People Bitten[/url] [url='hvzlist.php?hz=$txt&st=$st&by=$by&ord=asc']Ascending[/url] | [url='hvzlist.php?hz=$txt&st=$st&by=$by&ord=desc']Descending[/url] "; $q=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN gangs g ON u.gang=g.gangID WHERE u.humanorzombie=$type ORDER BY $by $ord LIMIT $st,50"); $no1=$st+1; $no2=$st+50; print "Showing $txt $no1 to $no2 by order of $by $ord. <table width=75% cellspacing=1 class='table'><tr style='background:gray'><th>ID</th><th>Name</th><th>Money</th><th>Level</th><th>Online</th><th>Hospital?</th> <th>Jail?</th>"; if($type==1) { print"<th>People Bitten</th>"; } print"</tr>"; while($r=$db->fetch_row($q)) { $d=""; if($r['donatordays']) { $r['username'] = "<font color='".$r['name_color']."'>".$r['username']."</font>";$d="[img=/Images/donator.gif]"; } print "<tr><td>{$r['userid']}</td><td>[url='viewuser.php?u={$r[']{$r['gangPREF']} {$r['username']} $d[/url]</td><td>\${$r['money']}</td><td>{$r['level']}</td><td>"; if($r['laston'] >= time()-15*60) { print "<font color=#33cc33>[b]Online[/b]</font>"; } else { print "<font color=red>[b]Offline[/b]</font>"; } print "</td><td>"; if($r['hospital'] >= 1) { print "<font color=red>[b]Yes[/b]</font>"; } else { print "<font color=#33cc33>[b]No[/b]</font>"; } print "</td><td>"; if($r['jail'] >= 1) { print "<font color=red>[b]Yes[/b]</font>"; } else { print "<font color=#33cc33>[b]No[/b]</font>"; } print "</td>"; if($type==1) { print"<td><font color=red>[b]<center>{$r['zombiekills']}</center>[/b]</font></td>"; } print"</tr>"; } print "</table>"; $h->endpage(); ?> Create file hvzadmin.php <?php include "sglobals.php"; switch($_GET['action']) { case 'edituser': edit_user_begin(); break; case 'edituserform': edit_user_form(); break; case 'editusersub': edit_user_sub(); break; case 'hvz': hvz_settings(); break; default: print "Error: This script requires an action."; break; } function edit_user_begin() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] != 2) { die("403"); } print "<h3>Editing User Zombie Status</h3> You can edit any aspect of this user. <form action='hvzadmin.php?action=edituserform' method='post'> User: ".user_dropdown($c,'user')." <input type='submit' value='Edit User' /></form> OR enter a user ID to edit: <form action='hvzadmin.php?action=edituserform' method='post'> User: <input type='text' name='user' value='0' /> <input type='submit' value='Edit User' /></form>"; } function edit_user_form() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] != 2) { die("403"); } $d=$db->query("SELECT * FROM users WHERE userid={$_POST['user']}"); $itemi=$db->fetch_row($d); print "<h3>Editing User {$itemi['username']}</h3> <form action='hvzadmin.php?action=editusersub' method='post'> <input type='hidden' name='userid' value='{$_POST['user']}' /> Zombie Bites: <input type='text' name='zombiekills' value='{$itemi['zombiekills']}' /> Type: <select name='humanorzombie' type=dropdown><option value='0'>Human</option><option value='1'>Zombie</option>"; print "</select> <input type='submit' value='Edit User' /></form>"; } function edit_user_sub() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] != 2) { die("403"); } $go=0; if(!isset($_POST['humanorzombie'])) { $go=1; } if(!isset($_POST['zombiekills'])) { $go=1; } if($go) { print "You did not fully fill out the form."; $_POST['user']=$_POST['userid']; edit_user_form(); } else { $_POST['zombiekills']=abs((int) $_POST['zombiekills']); $_POST['humanorzombie']=abs((int) $_POST['humanorzombie']); $oq=$db->query("SELECT * FROM users WHERE userid={$_POST['userid']}"); $rm=$db->fetch_row($oq); if ($rm['humanorzombie'] ==0 && $_POST['humanorzombie'] ==1) { $db->query("UPDATE hvzstats SET totzombies=totzombies+1"); } if ($rm['humanorzombie'] ==1 && $_POST['humanorzombie'] ==0) { $db->query("UPDATE hvzstats SET totzombies=totzombies-1"); } $db->query("UPDATE users SET zombiekills='{$_POST['zombiekills']}', humanorzombie={$_POST['humanorzombie']} WHERE userid={$_POST['userid']}"); stafflog_add("Edited user {$_POST['username']} zombie status"); print "Edited user zombie status"; } } function hvz_settings() { global $db,$ir,$c,$h,$userid,$set; if($ir['user_level'] != 2) { die("403"); } $_GET['status'] = abs((int) $_GET['status']); if($_GET['status'] == '1') { $db->query("UPDATE hvzstats SET totzombies=0, hvz=1"); stafflog_add("Started Zombie Event."); echo "Zombie event started. [url='staff.php']Go Back[/url]"; $h->endpage(); exit; } else if($_GET['status'] == '0') { $db->query("UPDATE users SET humanorzombie=0, zombiekills=0 WHERE humanorzombie=1 || zombiekills>0"); $db->query("UPDATE hvzstats SET totzombies=0, hvz=0"); stafflog_add("Stopped Zombie Event."); echo "The zombie event has been started. [url='staff.php']Go Back[/url]"; $h->endpage(); exit; } } $h->endpage(); ?> Open smenu.php Find print "<hr />[b]Logs[/b] Right before it, add print"<hr /> <font color=#33CC33>[b]Zombie Event[/b]</font> > [url='hvzadmin.php?action=hvz&status=1']Start Zombie Event[/url] > [url='hvzadmin.php?action=hvz&status=0']Stop Zombie Event[/url] > [url='hvzadmin.php?action=edituser']Edit Zombie Status[/url] "; Open viewuser.php Find User Level: $userl Before it add $ztext Find if($r['donatordays']) { $r['username'] = "<font color=red>{$r['username']}</font>";$d="[img=donator.gif]"; } Before it add $zom=$db->query("SELECT * FROM hvzstats"); $hvz=$db->fetch_row($zom); if($ir['user_level'] > 1) { if($hvz['hvz'] ==1) { if($r['humanorzombie'] == 1) { $zomb="<font color='red'>Zombie</font>";$kills= "Kills: <font color='red'> {$ir['zombiekills']}</font> ";} if($r['humanorzombie'] == 0) { $zomb="<font color='#33CC33'>Human</font>"; } $ztext= "Status: $zomb $kills"; } }
-
Re: [mccode v2] Humans vs. Zombies EVENT mod Still needed to be coded: hvzadmin.php Finish Event function - gives a specified prize (cash or item) to remaining humans, and then to top 3 zombies, then runs the Disable function listed above Turn into zombie - input userid, turns person into zombie Turn into human - input userid, turns person into human register.php Check if Humans vs Zombies is enabled. If so, new users are automatically zombies. hvzlist.php List of humans surviving. Filter by level, etc. List of zombies, filter by total kills, etc.
-
Re: [mccode v2] Humans vs. Zombies EVENT mod Well done :D I editted a couple typos, and changed a couple things in the code... When biting someone, I made it so you don't get any experience, and your gang doesn't get any respect. It's made to be a separate event (although a game owner can easily change this back). Excellent job though! ---Written by DissObey--- Edit attack.php - Where options are, add this: if ($ir['humanorzombie'] == 1 && $odata['level'] >= $ir['level'] && $odata['humanorzombie']==0) { echo '<form action="attackbite.php?ID='.$_GET['ID'].'" method="post"><input type="submit" value="Bite Them" /></form>'; } Create attackbite.php <?php $atkpage=1; include "globals.php"; $_GET['ID']=abs((int) $_GET['ID']); $_SESSION['attacking']=0; $ir['attacking']=0; $db->query("UPDATE users SET attacking=0 WHERE userid=$userid"); $od=$db->query("SELECT * FROM users WHERE userid={$_GET['ID']}"); if($_SESSION['attackwon'] != $_GET['ID']) { print "Cheaters don't get anywhere."; $h->endpage(); exit; } if($db->num_rows($od)) { $r=$db->fetch_row($od); if($r['hp'] == 1) { print "What a cheater u are."; } else { print "You move forward to bite {$r['username']}. You take a huge chunk out of {$r['username']}'s left arm. You watch as they turn over, and begin moaning 'BRAINSSSSSSSSS!!' - The transformation is complete, they became a zombie."; $hosptime=rand(10,20); $db->query("UPDATE users SET zombiekills=zombiekills+1, attacking=0 WHERE userid=$userid"); $db->query("UPDATE hvzstats SET totzombies=totzombies+1"); $db->query("UPDATE users SET humanorzombie=1, hp=1, hospital=$hosptime, hospreason='Bit by the zombie known as <a href=\'viewuser.php?u={$userid}\'>{$ir['username']}</a>' WHERE userid={$r['userid']}"); event_add($r['userid'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] bit you and turned you into a zombie.",$c,'combat'); $atklog=mysql_escape_string($_SESSION['attacklog']); $db->query("INSERT INTO attacklogs VALUES('',$userid,{$_GET['ID']},'won',unix_timestamp(),-2,'$atklog');"); $_SESSION['attackwon']=0; } else { print "You beat Mr. non-existant!"; } $h->endpage(); ?> Edit smenu.php, add anywhere: > [url='staff.php?action=hvz&status=1']Start Zombie Event[/url] > [url='staff.php?action=hvz&status=0']Stop Zombie Event[/url] edit staff.php - add the case/break under the other case/breaks, and the function at the very bottom of the page above the $h->endpage(); case 'hvz': hvz_settings(); break; function hvz_settings() { global $db,$ir,$c,$h,$userid,$set; if($ir['user_level'] != 2) { die("403"); } $_GET['status'] = abs((int) $_GET['status']); if($_GET['status'] == '1') { $db->query("UPDATE hvzstats SET totzombies=0, hvz=1"); stafflog_add("Started Zombie Event."); echo "Zombie event started. [url='staff.php']Go Back[/url]"; $h->endpage(); exit; } else if($_GET['status'] == '0') { $db->query("UPDATE users SET humanorzombie=0, zombiekills=0"); $db->query("UPDATE hvzstats SET totzombies=0, hvz=0"); stafflog_add("Stopped Zombie Event."); echo "The zombie event has been removed. [url='staff.php']Go Back[/url]"; $h->endpage(); exit; } } edit explore.php, add to top $zom=$db->query("SELECT * FROM hvzstats"); $hvz=$db->fetch_row($zom); if($hvz['hvz'] ==1) { if($hvz['totzombies'] < 10 && $ir['humanorzombie'] ==0) { $randzomb=(int) rand(1,100); $randthaught=(int) rand(1,5); if($randthaught == 1) { $thaught="Did i leave the oven on?"; } else if($randthaught == 2) { $thaught="I wonder what my gravestone will read.."; } else if($randthaught == 3) { $thaught="I'm too young to die!! Can't somebody help me?!?!?!"; } else if($randthaught == 4) { $thaught="MMM Brains..."; } else if($randthaught == 5) { $thaught="Time to visit my ex... >:]"; } if($randzomb > 80) { print "[b]You've been bitten by a wandering zombie[/b], the last rational thought you have before tuning into a zombie is: $thaught."; $db->query("UPDATE users SET humanorzombie=1 WHERE userid=$userid"); $db->query("UPDATE hvzstats SET totzombies=totzombies+1"); $h->endpage(); exit; } } }
-
Re: [mccode v2] Humans vs. Zombies EVENT mod True. I was running out of time, and just made everything ints :P Feel free to post modified mysql with them as booleans.
-
Re: [mccode v2] Humans vs. Zombies EVENT mod Thanks guys :D Hopefully people are interesting in throwing this together. I'll start it off: mysql ALTER TABLE `users` ADD `humanorzombie` INT( 1 ) NOT NULL DEFAULT '0', ADD `zombiekills` INT( 11 ) NOT NULL DEFAULT '0'; CREATE TABLE `hvzstats` ( `hvz` INT( 1 ) NOT NULL DEFAULT '0', `totzombies` INT( 11 ) NOT NULL DEFAULT '0' ) ENGINE = MYISAM
-
So I had an idea for a mod, thought about coding it and selling it, but am short on time. I decided to post my ideas here, and perhaps guide a community effort to make the mod. This mod is a combination of the events Torn City used to run back in the day (when the Easter Bunny or Santa attacked) with the real life Human vs. Zombies game. The basic idea: Admin installs mod. Visits admin page, clicks enable button. 5-10 random people who click the city page are 'bitten by a wandering zombie', starting the plague - in addition, everyone who registers during the event is a zombie. Now these people are zombies. Every time they attack someone who is equal to or above their own level and win, they are presented with the normal three options (mug, hospitilize, leave) and a fourth - Bite person. Biting that person turns the attacked guy into a zombie as well. After a specified amount of time, the event is over - everyone who is still a human gets a prize, and the 3 zombies with the most kills get prizes. If you would like to contribute to this project, please conform to the variable names and page titles listed below to be consistent. I will post updates as new code is added, with credits. If the moderators are able to, enable modifying posts on this thread. It's ridiculous that you would disable that in coding forums, I can't imagine your reasoning for doing so. Database variables: Table ----- variable users ----- humanorzombie ( 0 = human, 1 = zombie) users ----- zombiekills (default = 0, increases with each person they bite) hvzstats ----- hvz (1 = enabled, 0 = disabled) hvzstats ----- totzombies (running total of number of zombies) hvzadmin.php Enable function - sets hvzstats:hvz to 1 Disable function - sets hvzstats:hvz to 0, updates all users by resetting humanorzombie and zombiekills to 0 Finish Event function - gives a specified prize (cash or item) to remaining humans, and then to top 3 zombies, then runs the Disable function listed above Turn into zombie - input userid, turns person into zombie Turn into human - input userid, turns person into human attack.php Check if attacker is zombie. If so, check if target is equal to or above level of attacker. If so, add option BITE USER. If BITE USER clicked, target goes to hospital, target zombie status is updated, and attacker's zombiekills status updated. register.php Check if Humans vs Zombies is enabled. If so, new users are automatically zombies. hvzlist.php List of humans surviving. Filter by level, etc. List of zombies, filter by total kills, etc. explore.php Checks if Humans vs zombies is enabled. If so, checks hvzstats:totzombies - if less than 10, roll a random number (say, 1-100). If > 80, user is now a zombie, and message displayed on screen 'You were bit by a passing zombie'. Any other ideas to add to this mod? Let's hear em
-
Re: [mccodes v2] Casino Mod Package [$75] Ya, no worries about this. You bet with a virtual currency that can't be exchanged for cash.
-
Re: [mccodes v2] Casino Mod Package [$75] Thanks Dayo ;) And glad you think so Crazy T :mrgreen:
-
This will be my last post in this area of the forums for a while, as I plan on working on other projects for a bit. In the casino mod package, you will get: -Video Poker (Value: $30) (thread) (demo) -Blackjack (Value: $30) (thread) (demo) -Roulette (Value: $25) (thread) (demo) -High/Low (Value: $20) (demo) Total Value: $105 All for just $75. Adds many new addicting features to a game, and will keep users on your site for longer periods at a time. To purchase, send $75 to my paypal ([email protected]) with the note "Casino Mod Package" and the email you want the mods sent to (if not paypal email). Best Wishes, Seanybob
-
After searching for several minutes, I decided this was the best forum section to post this in. So here's the deal. I'm looking for a graphics designer to partner with me in some endeavors. I want somebody who: -has at least 2 years of experience, and plenty of past examples of work to back it up. (experience meaning css & photoshop exp) -must be 18 years of age or over. -is available via email 4-5 days a week The work: I'll have many design jobs for you, from entire page layouts to simple banner graphics, item graphics, etc. You get them done at your pace, whenever you want. We will be working on a game that will be released in 6-12 months. I will be the sole coder. For the entire page layouts, I will give you a crude picture of a page with the various content items - you will have more or less free reign to design as you see fit. If you need ideas I'll be more than happy to help. The pay: 20% stake in the game. This means you will receive 20% of all profits the game makes, for it's entire duration (life expectancy being minimum 1 year). Once the game releases, most of your work will be done, with just an occasional small graphics update for you to do every now and then. If this works out well and you want more work, I will have many other projects you can do for flat fees (instead of percentage of profits). A little about myself: I program daily in php/mysql, c++, javascript (&ajax), visual basic, and autoitv3. I've done some perl/java work in the past, but have not kept up to date in those. I've run 2 major websites, the first being being a mccode game (rebelcamp) with a partner, the second being Adverbux, a ptc site. Both made decent profit (if you want more details, I'll be more specific in PM). I know much about how to run a successful site - my only major shortcoming is my complete 'suckage' at graphics. If your interested or want more info, shoot me an email [email protected]
-
Re: [mccode v2] Casino Mod: Blackjack [$30] Sent, hope you enjoy it ;)
-
This is a blackjack mod. Play is the same as blackjack in the casino, with a few special rules: -People can't card count effectively, as the deck is completely reshuffled after each hand. -Splits aren't allowed Currently has Blackjack payout at 3:2 (standard) and dealer stands on all 17s (semi-standard). Makes extensive use of javascript - and moreover, is very addicting. I encourage you to try it out on the demo. Without further ado... Pics: http://i292.photobucket.com/albums/mm15 ... /bet-1.png http://i292.photobucket.com/albums/mm15 ... /show1.png http://i292.photobucket.com/albums/mm15 ... /show2.png http://i292.photobucket.com/albums/mm15 ... /show3.png http://i292.photobucket.com/albums/mm15 ... /show4.png Demo: http://seanybob.net/mccodesv2 Cost: $30 My paypal: [email protected] If you like this mod, check out my other mods. Also, send me a PM if you have any other casino games you want to see out here.
-
[mccode v2] Flash Arcade System with High Scores [$100]
seanybob replied to seanybob's topic in Paid Modifications
Re: [mccode v2] Flash Arcade System with High Scores [$100] Gamepack 1 released, with several additional games (and installation instructions). If you did not get an email with the download info, pm/email me for the link. -
[mccode v2] Flash Arcade System with High Scores [$100]
seanybob replied to seanybob's topic in Paid Modifications
Re: [mccode v2] Flash Arcade System with High Scores [$100] Just thought I'd post a bit more info: Every game included with this set has been tested by thousands of users, and has run on a flash high score system I coded for over a year - I've tried about 120 different games, and kept just over half of them that worked flawlessly. It's easy enough to add games, but I'd suggest either testing new games yourself (or send me a link and I'll test them for you) before adding them to your game. Virtually any game that has a submit score function can be added. -
[mc-codes] [ $40 ] High Score Flash Arcade with 341 Games!!!
seanybob replied to Sim's topic in Paid Modifications
Re: [mc-codes] [ $40 ] High Score Flash Arcade with 341 Games!!! http://www.teampo2.com/crime-webs/arcad ... brick_pong Hehehe. -
This is a video poker mod. Play is essentially the same as a video poker machine, except instead of sticking in coins it uses the money in your mccodes game account. I wrote it completely from scratch. In addition to the mod, you will find useful functions I wrote in this mod, such as a function that takes 5 cards and returns the best poker hand you have (to determine score). It's a lot of fun, I've found myself playing it for a couple hours today while working on it. Without further ado... Pics: http://i292.photobucket.com/albums/mm15 ... 43/bet.png http://i292.photobucket.com/albums/mm15 ... 3/draw.png http://i292.photobucket.com/albums/mm15 ... 43/win.png Demo: http://seanybob.net/mccodesv2 Cost: $30 My paypal: [email protected] If you like this mod, check out my other mods. Also, send me a PM if you have any other casino games you want to see out here.
-
Re: [mccode v2] Casino Mod: Roulette [$25] There's been a few roulette mods released here, if I remember correctly. I doubt any were like mine though. ;)
-
So this is actually a real roulette mod, not one of those 'flip a coin' deals. 6 different types of possible bets (same as real casino, except special number bets like corner, street etc not available). Uses the American version of Roulette (which has better odds for the house). Extensive use of javascript. Admin side has ability to set min and max bets, and keeps a running total of how much the 'house' has won. Pics: http://i292.photobucket.com/albums/mm15 ... 3/bets.png http://i292.photobucket.com/albums/mm15 ... respin.png http://i292.photobucket.com/albums/mm15 ... erspin.png http://i292.photobucket.com/albums/mm15 ... cashin.png Demo: http://seanybob.net/mccodesv2 Cost: $25 My paypal: [email protected] If you like this mod, check out my other mods. Also, send me a PM if you have any other casino games you want to see out here (I'm currently working on Texas Hold Em and Craps).