Jump to content
MakeWebGames

Zero-Affect

Members
  • Posts

    3,713
  • Joined

  • Last visited

    Never

Everything posted by Zero-Affect

  1. Re: Travelling System ($5)/($10) yeah i wont make it then post it im happy with my travel i have lol
  2. Re: [TGM] Ammunition For Weapons [TGM] hey i got a problem here i mean not all of us use guns etc.. we use like baseball bats etc.. would u need ammo for them? lol or a knife for example because that would be a bit lame... if u need ammo to use a knife maybe edit it from the word ammo to "Turns" like the amount of turns you have got left is the amount of times u can attack with that weapon... just a thought... plus if you wanna convert it to v2 read the tutorials mate :?
  3. Re: IE and FF iight simple in header find: font-family:calibri, helvetica, arial, geneva, sans-serif;font-size:12px;color: white; scrollbar-base-color: #005B70; scrollbar-arrow-color: #F3960B; scrollbar-DarkShadow-Color: #2f2f2f; } a:visited,a:active,a:hover,a:link { color: #ffffff;text-decoration: none; } add below: a:hover { color: gold;text-decoration:none;} works on firefox never tested with ie because well ie sucks lol
  4. Re: McCodes v2.0.2 attack if i was Dabomstew i would not make v3 cause v1 and v2 are passed around so much its more like freeware now got warez sites theres probably loads of copies of them for no money which seems a little unfair and the fact he coded it and they just buy one copy and pass it around like hiv so i dont think v3 will ever come out sorry guys
  5. Re: [v2]Reset Specific User[v2] blah lol :lol:
  6. Re: [v2]Reset Specific User[v2] damn do you know everything lol if so whats the meaning of life? huh try explain that one :-P
  7. Re: [v2]Reset Specific User[v2] can you reset a full row to default?
  8. Re: y isnt der a jail in v1 why do you think most people run v2 lol
  9. Re: MCCODES + Graphic yeah v2 its in css in the header...
  10. Re: Honour Gamble {V2} Nice Mod Mate
  11. Re: [mccodes][V2] owner`s pannel whats the point in owner panel...
  12. Re: Check this idiot out... lol remind me not to piss any of you guys off lol Lol
  13. Re: Fraud seller of mccodes if he isn't gunna make v3 would he mind if someone else did...? also 9/10 mc engine running games are illegal so i think it is wrong..
  14. Re: Free 2 - Roulette lol i prefer dark blend myself :lol:
  15. Re: Mining V2 Converted How about reading the post above your post...
  16. Re: Hospital Time Nice Modification 8-)
  17. Re: Advanced Dating (v1) Firstly Run this SQL Data alter table users add happiness int (11) not null default 50 alter table users add date int (11) not null default 0 alter table users add datehours int (11) not null default 0   Next Create this Table -- -------------------------------------------------------- -- -- Table structure for table `dates` -- CREATE TABLE `dates` ( `dateID` int(11) NOT NULL default '0', `dateNAME` varchar(255) NOT NULL default '0', `dateDESC` varchar(255) NOT NULL default '0', PRIMARY KEY (`dateID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ; -- -- Dumping data for table `dates` -- INSERT INTO `dates` VALUES (1, 'To The Park', 'Spend a quiet evening in the Park'); INSERT INTO `dates` VALUES (2, 'Out to Dinner', 'Take your Partner out to a Restaurant');   Next Find in partner.php   case "sendcyber": sendcyber(); break; case "sendcybersub": sendcybersub(); break;   Add below   case "date": date_partner(); break;   In the Same file find   function sendmoneysub() { global $ir, $mr, $c, $userid, $h, $fm; $tm=money_formatter($mr['money']); $with=abs((int) $_POST['money']); if($with > $ir['money']) { die("You don't have enough to send your partner that amount. > [url='partner.php']Back[/url]"); } $k=money_formatter($with); mysql_query("UPDATE users SET money=money+$with WHERE userid={$mr['userid']}", $c); mysql_query("UPDATE users SET money=money-$with WHERE userid={$ir['userid']}", $c); event_add($mr['userid'],"Your partner {$ir['username']} gave you $k using Marriage Tools.", $c); print "Money has been given to partner. > [url='partner.php']Back[/url]"; }   Below add   function date_partner() { global $ir,$c,$userid,$db; $_POST['date'] = abs((int) $_POST['date']); if($_POST['date']) { if($ir['date'] != 0) { print "Your are already planning a Date!"; } else { $db->query("UPDATE users SET date={$_POST['date']},datehours=8 WHERE userid={$ir['userid']}",$c); print "You have started to plan this Date. It will start in 8 hours."; } } else { print "<h3>Dating</h3> <form action='partner.php?action=date' method='post'>Choose a Date to take your Partner on. Date: ".date_dropdown($c,'date')." "; $cnt=$db->query("SELECT username FROM users WHERE userid={$ir['userid']}",$c); { print "<option value='{$r['dateID']}'>{$r['dateNAME']}</option>"; } print "</select> <input type='submit' value='Start Date' /></form>"; } }   Next Find (In Partner.php)   <tr> <td>[b]Your Bank:[/b] $mb</td> <td>[b]Their Bank:[/b] $tb</td> </tr>   Add Below   <tr> <td>[b]Your Happiness:[/b] {$ir['happiness']}</td> <td>[b]Their Happiness:[/b] $hap</td> </tr>   In the Same file find   $tm=money_formatter($mr['money']);   Add Below   $hap=($mr['happiness']);   In the Same file find   <tr> <td>> [url='partner.php?action=sendlove']Send Your Love[/url]</td> <td>> [url='partner.php?action=divorce']Divorce Partner[/url]</td> </tr>   Add Below   <tr> <td>> [url='partner.php?action=date']Date your Partner[/url]</td> <td>Time Until Next Date: [b]{$ir['datehours']}[/b] Hours [[url='dateresult.php']Date Result[/url]]</td> </tr>   Create a file called dateresult.php   <?php require "globals.php"; if($ir['date'] == 0) die("<center><h3>Date Result</h3><hr width=75%>You are not on a Date...<hr width=75%>> <a href=partner.php>Back to Partner Management</a><hr width=75%>"); print "<center><h3>Date Result</h3><hr width=75%>"; if ($ir[datehours]>1.) { print "<center>Your Date Hasn't Finished Yet...<hr width=75%>> <a href=partner.php>Back to Partner Management</a><hr width=75%>"; }else{ $chance = rand(1,2); $db->query("update users set date=0 where userid=$userid",$c); if ($chance == 1) { $gain = rand(8,10); print "<font color=green>Congratulations! Your Date Was a Success.</font>"; $db->query("update users set happiness=happiness+$gain where userid=$userid",$c); $db->query("update users set date=0 where userid=$userid",$c); $db->query("UPDATE users SET happiness=happiness+$gain WHERE userid={$r['married']}",$c); $db->query("INSERT INTO events VALUES('',$userid,unix_timestamp(),0,'Congratulations, Your Date was a Success!')",$c); } if ($chance == 2) { $gain = rand(8,10); print "<font color=red>Your Date Was a Failure...</font>"; $db->query("update users set happiness=happiness-$gain where userid=$userid",$c); $db->query("update users set date=0 where userid=$userid",$c); $db->query("UPDATE users SET happiness=happiness-5 WHERE userid={$r['married']}",$c); $db->query("INSERT INTO events VALUES('',$userid,unix_timestamp(),0,'Your Date was a Total Failure!')",$c); } $date = ($ir['date']=0); print " <hr width=75%>> <a href=partner.php>Back to Partner Management</a><hr width=75%>"; } $h->endpage; ?>   In global_func.php find   function item_dropdown($connection,$ddname="item",$selected=-1) { $ret="<select name='$ddname' type='dropdown'>"; $q=$db->query("SELECT * FROM items ORDER BY itmname ASC",$connection); if($selected == -1) { $first=0; } else { $first=1; } while($r=$db->fetch_row($q)) { $ret.="\n<option value='{$r['itmid']}'"; if ($selected == $r['itmid'] || $first == 0) { $ret.=" selected='selected'";$first=1; } $ret.=">{$r['itmname']}</option>"; } $ret.="\n</select>"; return $ret; }   Below add   function date_dropdown($connection,$ddname="date",$selected=-1) { $ret="<select name='$ddname' type='dropdown'>"; $q=$db->query("SELECT * FROM dates ORDER BY dateNAME ASC",$connection); if($selected == -1) { $first=0; } else { $first=1; } while($r=$db->fetch_row($q)) { $ret.="\n<option value='{$r['dateID']}'"; if ($selected == $r['dateID'] || $first == 0) { $ret.=" selected='selected'";$first=1; } $ret.=">{$r['dateNAME']}</option>"; } $ret.="\n</select>"; return $ret; }   Add into your daysold cron   $db->query("UPDATE users SET happiness=happiness-5 WHERE married > 0",$c);   That should be all V2 Converted (Not Tested)
  18. Re: [v1 & v2]Reset your users without deleating them   <?php include "globals.php"; if($ir['userid'] != 1) { print "Coo Off!"; $h->endpage(); exit; } mysql_query("UPDATE users SET money=100000,level=1,exp=0,crystals=100,job=0,location=1,hospital=0,jail=0,course=0,cdays=0,donatordays=2,bankmoney=0,cybermoney=0,turns=100,exp=0.0000,maxwill=100,will=100,energy=100,maxenergy=100,brave=5,maxbrave=5,hp=100,maxhp=100,gang=0,daysingang=0,jobrank=0 WHERE user_level>0", $c) or die(mysql_error()); mysql_query("UPDATE userstats SET strength=10,agility=10,guard=10,labour=10,IQ=10", $c) or die(mysql_error()); mysql_query("TRUNCATE TABLE mail,events,friendslist,blacklist", $c) or die(mysql_error()); $h->endpage(); ?> That also only resets staff and users since npc is user level 0 on my site but it will reset there stats which is easy to re-add
  19. Re: Mining V2 Converted   <?php require "globals.php"; global $c,$db; $is=$db->query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die($db->error()); $ir=$db->fetch_row($is); get_mine(); switch($_GET['action']) { case 'mine': mine_1(); break; case 'minesub': mine_1_sub(); break; case 'mine2': mine_2(); break; case 'mine2sub': mine_2_sub(); break; case 'mine3': mine_3(); break; case 'mine3sub': mine_3_sub(); break; case 'mine4': mine_4(); break; case 'mine4sub': mine_4_sub(); break; case 'mine5': mine_5(); break; case 'mine5sub': mine_6_sub(); break; case 'mine6': mine_6(); break; case 'mine6sub': mine_6_sub(); break; default: mine_index(); break; } /** ** Calls the cases so mine.php?mine **/ function mine_index() { global $ir,$c,$userid; print "<center>Welcome to the mine shaft. There are 3 spots to go mining but thay are restricted depending on your mine level. Your mining level is {$ir['mine_level']} and you have {$ir['mine_exp']}/{$ir['mine_needed']} mining experience </center>"; print "<center> <u>Crystal Mines</u> [[url='mine.php?action=mine']Level 1 mine[/url]] [[url='mine.php?action=mine2']Level 20 mine[/url]] [[url='mine.php?action=mine3']Level 40 mine[/url]] <u>Money Mines</u> [[url='mine.php?action=mine4']Level 10 mine[/url]] [[url='mine.php?action=mine5']Level 30 mine[/url]] [[url='mine.php?action=mine6']Level 40 mine[/url]] </center>"; } /** ** This is the main part you see when you come into the php page **/ if ($ir['jailtime'] > 0){ print "<center>The mine is closed to jail birds come back when thay release you</center>"; exit; } if ($ir['hospital'] > 0){ print "<center>You cant go mining while in hospital</center>"; exit; } /** ** That makes sure you are not in jail or hospital ** Shouldnt need to change that enless you making it a jail mine **/ function mine_1() { global $ir,$c,$userid,$db; if($ir['energy'] < 10){ print "You need 10 power to mine here your have {$ir['energy']}"; exit; } $db->query("UPDATE users SET energy=energy-10 WHERE userid=$userid",$c); $rand_gems = rand(1,5); $rand_exp = rand(1,100); echo "<center>You begin mining in the level 1 mine and found $rand_gems crystal(s).</center> "; $db->query("UPDATE users SET crystals=crystals+'$rand_gems',mine_exp=mine_exp+'$rand_exp' WHERE userid=$userid",$c); print "<center>[[url='mine.php?action=mine']Mine again[/url]]</center> "; print "<center>[[url='mine.php']Back[/url]]</center> "; } function mine_2() { global $ir,$c,$userid,$db; if($ir['energy'] < 15){ print "<center>You need 15 power to mine here your have {$ir['energy']}</center>"; exit; } if($ir['mine_level'] < 20){ print "<center>You need to be mining level 20 to mine here you are mining level {$ir['mine_level']}</center>"; exit; } $db->query("UPDATE users SET energy=energy-15 WHERE userid=$userid",$c); $rand_gems = rand(1,20); $rand_exp = rand(1,300); echo "<center>You begin mining in the level 20 mine and found $rand_gems crystal(s).</center> "; $db->query("UPDATE users SET crystals=crystals+'$rand_gems',mine_exp+'$rand_exp' WHERE userid=$userid",$c); print "<center>[[url='mine.php?action=mine2']Mine again[/url]]</center> "; print "<center>[[url='mine.php']Back[/url]]</center> "; } function mine_3() { global $ir,$c,$userid,$db; if($ir['energy'] < 25){ print "<center>You need 25 power to mine here your have {$ir['energy']}</center>"; exit; } if($ir['mine_level'] < 40){ print "<center>You need to be mining level 40 to mine here you are mining level {$ir['mine_level']}</center>"; exit; } $db->query("UPDATE users SET energy=energy-25 WHERE userid=$userid",$c); $rand_gems = rand(1,40); $rand_exp = rand(1,600); echo "<center>You begin mining in the level 40 mine and found $rand_gems crystal(s).</center> "; $db->query("UPDATE users SET crystals=crystals+'$rand_gems',mine_exp+'$rand_exp' WHERE userid=$userid",$c); print "<center>[[url='mine.php?action=mine3']Mine again[/url]]</center> "; print "<center>[[url='mine.php']Back[/url]]</center> "; } function mine_4() { global $ir,$c,$userid,$db; if($ir['energy'] < 10){ print "You need 10 power to mine here your have {$ir['energy']}"; exit; } if($ir['mine_level'] < 10){ print "<center>You need to be mining level 10 to mine here you are mining level {$ir['mine_level']}</center>"; exit; } $db->query("UPDATE users SET energy=energy-10 WHERE userid=$userid",$c); $rand_money = rand(1,1000); $rand_exp = rand(1,100); echo "<center>You begin mining in the level 10 mine and found $$rand_money .</center> "; $db->query("UPDATE users SET money=money+'$rand_money',mine_exp=mine_exp+'$rand_exp' WHERE userid=$userid",$c); print "<center>[[url='mine.php?action=mine4']Mine again[/url]]</center> "; print "<center>[[url='mine.php']Back[/url]]</center> "; } function mine_5() { global $ir,$c,$userid,$db; if($ir['energy'] < 15){ print "<center>You need 15 power to mine here your have {$ir['energy']}</center>"; exit; } if($ir['mine_level'] < 30){ print "<center>You need to be mining level 30 to mine here you are mining level {$ir['mine_level']}</center>"; exit; } $db->query("UPDATE users SET energy=energy-15 WHERE userid=$userid",$c); $rand_money = rand(1,3000); $rand_exp = rand(1,300); echo "<center>You begin mining in the level 30 mine and found $$rand_money .</center> "; $db->query("UPDATE users SET money=money+'$rand_money',mine_exp+'$rand_exp' WHERE userid=$userid",$c); print "<center>[[url='mine.php?action=mine5']Mine again[/url]]</center> "; print "<center>[[url='mine.php']Back[/url]]</center> "; } function mine_6() { global $ir,$c,$userid,$db; if($ir['energy'] < 25){ print "<center>You need 25 Energy to mine here your have {$ir['energy']}</center>"; exit; } if($ir['mine_level'] < 40){ print "<center>You need to be mining level 40 to mine here you are mining level {$ir['mine_level']}</center>"; exit; } $db->query("UPDATE users SET energy=energy-25 WHERE userid=$userid",$c); $rand_money = rand(1,8000); $rand_exp = rand(1,600); echo "<center>You begin mining in the level 40 mine and found $$rand_money .</center> "; $db->query("UPDATE users SET money=money+'$rand_money',mine_exp+'$rand_exp' WHERE userid=$userid",$c); print "<center>[[url='mine.php?action=mine6']Mine again[/url]]</center> "; print "<center>[[url='mine.php']Back[/url]]</center> "; } /** ** This is all the stuff that makes the script/mod work ** You shouldnt need to change it enless you want to ** make something add or have different MYSQL Tables **/ ?> Not Tested But Should Work...
  20. Re: Shoutbox $10 & $15 yeah lol is kinda noobish kyle i don't think anyone english likes u lol
  21. Re: Mining V2 Converted okay open it in notepad click ctrl + h then add: mysql_ in the fine what section and add $db-> in the replace with section then click replace all
  22. Re: Shoutbox $10 & $15 kyles isn't bad but true why waste the money when you can get a version close to his for free...
  23. Re: Travelling System ($5)/($10) No offense intended but this could be made in 10 mins just editing the original travel and adding a timer in it via cron... no offense but not bad work i guess
  24. Re: Mining V2 Converted yeah if your db is mysql this code is fine
  25. Re: Free 2 - Roulette Tea or Coffee? lol Incase yall dunno what "cuppa" means... it rather means "a cup of tea/coffee" :lol:
×
×
  • Create New...