
BluntMan
Members-
Posts
33 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by BluntMan
-
Re: v2 upgrading hosp time you nearly got it right, but its a permenant increase not an option when you hosp some one. we have been testing this method and for a user if u increase this u can get a good rep as if u upgrade ur hosp time to 30,000mins there are ppl willing to pay u to sort out arguments (in game cash) it has proven very popular in a lot of games ive played that have added it
-
Re: v2 upgrading hosp time i think this mod has promise for people on ur games who want to hire themselfs out as hitmen etc
-
Re: [mccode v2] Fishing Mod its because it says that u get say 10% exp its not really 10% its 10 points on to ur brave so if ur a high lvl u could do ur fishing for a week and not have it move so i think anyway
-
Re: [beta] Looking for beta testers kk why not :)
-
Login & Register & Header & Lost Password
BluntMan replied to veaseyspike's topic in Free Modifications
Re: Login & Register & Header & Lost Password <?php class headers { function startheaders() { global $ir, $set; echo <<<EOF <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>{$set['game_name']}</title> <style type="text/css"> <!-- body { background-color: #000000; margin-top: 0px; margin-bottom: 0px; font-family:calibri, helvetica, arial, geneva, sans-serif;font-size:12px;color: lime; scrollbar-base-color: #005B70; scrollbar-arrow-color: #F3960B; scrollbar-DarkShadow-Color: #000000; background-color: #trans; background-image:url(Nuke.jpg); background-attachment:fixed; background-repeat: tile;} } a:visited,a:active,a:link { color: lime;font-weight: bold;text-decoration: none; } a:hover {color: white;text-decoration: none; } table,tr,td { font-family:helvetica, arial, geneva, sans-serif;font-size: 12px; } img { border:none; } textarea { font-family:helvetica, arial, geneva, sans-serif;font-size:12px;color: #000000; } .table2 { } .lgrad { background-image:url(lgrad.jpg); background-repeat:repeat-y; width:19px; } .linegrad { background-image:url(linegrad.PNG); background-repeat:repeat-y; background-align: center; width:2px; } .rgrad { background-image:url(rgrad.jpg); background-repeat:repeat-y; width:19px; } .dgrad { background-image:url(dgrad.jpg); background-repeat:repeat-x; height:38px; } .dgradl { background-image:url(dgradl.jpg); background-repeat:no-repeat; height:38px; width:38px; } .dgradr { background-image:url(dgradr.jpg); background-repeat:no-repeat; height:38px; width:38px; } .center { width:932px; background-color:#000000; vertical-align:top; text-align:center; } .center { width:932px; background-color:#000000; vertical-align:top; text-align:center; } .table { background-color:#000000; border-width:1; border-color:#101010; border-style:solid; border-width: 3px; -moz-border-radius: 10px; border: solid; border-color: #222222; } .tablee{ background-color:#000000; border-width:1; border-color:#101010; border-style:solid; border-width: 3px; -moz-border-radius: 10px; border: solid; border-color: #222222; font-family:calibri, helvetica, arial, geneva, sans-serif;font-size:12px;color: lime; } .tablee a { font-family:calibri, helvetica, arial, geneva, sans-seriff; font-size: 12px; color: lime; } .tablee a:visited{ font-family:calibri, helvetica, arial, geneva, sans-seriff; font-size: 12px; color: lime; } .tablee a:hover { font-family:calibri, helvetica, arial, geneva, sans-seriff; font-size: 12px; color: lime; } .table3 { background-color:#000000; } .table td { background-color:#000000; border-width:1; border-color:#101010; border-style:solid; height:22px; } .table3 td { background-color:#000000; } td .alt { background-color:#000000; height:22px; border-width: 3px; -moz-border-radius: 10px; border: solid; border-color: #222222; } td .h { background-image:url(baa.jpg); background-repeat:repeat-x; font-weight: bold; background-color: #000000; border-width: 3px; -moz-border-radius: 10px; border: solid; border-color: #222222; } .table th { background-image:url(baa.jpg); background-repeat:repeat-x; font-weight: bold; background-color: #000000; border-width: 3px; -moz-border-radius: 10px; border: solid; border-color: #222222; } textarea,input,select { font-family: Tahoma; color:#99CC00; font-weight:bold; color:silver; background-image:url(baa.jpg); background-color:#000000; border-width:1; border-color:silver; border-style:solid; font-size: 13px; } .quotemain { color:#EEEEEE; background-color: #66FF33 ; font-style: italic; padding: 2px; border: 1px solid gray; } --> </style></head> <body> <center> <table width="970" border="0" cellpadding="0" cellspacing="0" class="table"> <tr> <td class="center"> EOF; } function userdata($ir,$lv,$fm,$cm,$dosessh=1) { global $db,$c,$userid, $set; $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; // Log Suspicious Users // isomerizer.com Copyright 2008+ if ($ir['log'] > 0) { $access = $_SERVER['REQUEST_METHOD']; $log = $_SERVER['REQUEST_URI']; $date = date ('F j, Y'); $time = date('g:i:s a'); mysql_query( sprintf("INSERT INTO `logs` ( `ID` , `userid` , `IP` , `action` , `time` , `date` , `access` ) VALUES ( NULL , %u, '%s', '%s', '%s', '%s', '%s')", $userid, $ip, mysql_real_escape_string($log), $time, $date, $access)); } $db->query("UPDATE users SET laston=unix_timestamp(),lastip='$IP' WHERE userid=$userid"); if(!$ir['email']) { global $domain; die ("<body>Your account may be broken. Please mail help@{$domain} stating your username and player ID."); } if($dosessh && ($_SESSION['attacking'] || $ir['attacking'])) { print "You lost all your EXP for running from the fight."; $db->query("UPDATE users SET exp=0,attacking=0 WHERE userid=$userid"); $_SESSION['attacking']=0; } $enperc=(int) ($ir['energy']/$ir['maxenergy']*100); $wiperc=(int) ($ir['will']/$ir['maxwill']*100); $experc=(int) ( $ir['exp']/$ir['exp_needed']*100); $brperc=(int) ($ir['brave']/$ir['maxbrave']*100); $hpperc=(int) ($ir['hp']/$ir['maxhp']*100); $enopp=100-$enperc; $wiopp=100-$wiperc; $exopp=100-$experc; $bropp=100-$brperc; $hpopp=100-$hpperc; $d=""; $u=$ir['username']; if($ir['donatordays']) { $u = "<font color=lime>{$ir['gangPREF']}{$ir['username']}</font>";$d="[img=donator.gif]"; } if($ir['smoking'] > 100) { $smoking = "<font color=lime>Addictive</font>"; } else { $smoking = "<font color=blue>Not Addictive</font>"; } if($ir['smoking'] == 0) { $smoke = "Dont Smoke [[url='#'][size="1"]<font color=blue>Start</font>[/size][/url]]"; } else { $smoke = "$smoking"; } $gn=""; global $staffpage; $bgcolor = '000000'; $fia=(int) rand(1000000,9999999); $fib=(int) rand(1000000,9999999); if($fia == $fib) { $iq=mysql_query("SELECT * FROM items WHERE itmbuyable=1 ORDER BY rand() LIMIT 1",$c); $r=mysql_fetch_array($iq); $item=$r['itmid']; $userid=$ir['userid']; mysql_query("INSERT INTO inventory VALUES ('', $item, $userid, 1)",$c); event_add($userid,"You found a {$r['itmname']} While Walking Around the city.",$c); } print <<<OUT <div align=left> <table width="100%" border="0" cellpadding="0" cellspacing="0" class=table> <tr> <td class=table> [b]Name:[/b] $gn{$u} {$ir['gangPREF']} [{$ir['userid']}] $d [b]Level:[/b] {$ir['level']} [b]Money:[/b] {$fm} [b]Crystals:[/b] {$ir['crystals']} [b]Diamonds:[/b] {$ir['diamonds']} [url='bank.php'][b]Bank Money[/url]:[/b] \${$ir['bankmoney']} [url='crystalbank.php'][b]Crystal Bank[/url]:[/b] {$ir['cbankmoney']} <td class=table> [img=title.jpg] </td> </td> <td> <table class=table border="0" cellpadding="0" cellspacing="0"> <tr> <td> [b]Energy:[/b] {$enperc}% </td> <td> <img src=greenbar.png width=$enperc height=10><img src=redbar.png width=$enopp height=10> </td> </tr> <tr> <td> [b]Will:[/b] {$wiperc}% </td> <td> <img src=bluebar.png width=$wiperc height=10><img src=redbar.png width=$wiopp height=10> </td> </tr> <tr> <td> [b]Brave:[/b] {$ir['brave']}/{$ir['maxbrave']} </td> <td> <img src=yellowbar.png width=$brperc height=10><img src=redbar.png width=$bropp height=10> </td> </tr> <tr> <td> [b]EXP:[/b] {$experc}% </td> <td> <img src=navybar.png width=$experc height=10><img src=redbar.png width=$exopp height=10> </td> </tr> <tr> <td> [b]Hit Points:[/b] {$hpperc}% </td> <td> <img src=greenbar.png width=$hpperc height=10><img src=redbar.png width=$hpopp height=10> </td> </tr> </table> </td> </tr> </table> <hr color='lime'> <MARQUEE bgcolor='black' loop=-5 scrollamount=4 width=100%><font color=lime><font size=4> [b] {$set['game_rules']} [/b] </font></font></MARQUEE><hr color='lime'> </div> <table width="100%" border="0" cellpadding="0" cellspacing="0" class=table> <tr> <td width="20%" bgcolor="#$bgcolor" valign="top"> OUT; if($ir['fedjail']) { $q=$db->query("SELECT * FROM fedjail WHERE fed_userid=$userid"); $r=$db->fetch_row($q); die("[b]<font color=lime size=+1>You have been put in the {$set['game_name']} Federal Jail for {$r['fed_days']} day(s). Reason: {$r['fed_reason']}</font>[/b]</body></html>"); } if(file_exists('ipbans/'.$IP)) { die("[b]<font color=lime size=+1>Your IP has been banned from {$set['game_name']}, there is no way around this.</font>[/b]</body></html>"); } } function menuarea() { include "mainmenu.php"; global $ir,$c; $bgcolor = '000000'; print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"> </td><td width="80%" bgcolor="#'.$bgcolor.'" valign="top"> <center>'; function is_whole_number($var){ return (is_numeric($var)&&(intval($var)==floatval($var))); } $array = array_merge($_GET, $_POST); while ($post_cap = current($array)) { if ($post_cap < 0) { print "Illegal Operation"; die(""); } if (is_numeric($post_cap) && !is_whole_number($post_cap)) { print "Illegal Operation"; die(""); } if(strpos($post_cap, '=') && ($_POST[confirmPage] == "")) { print "Illegal Operation"; die(""); } next($array); } $array_gete = array($_GET); while ($tick = current($array_gete)) { $thekey = key($array_gete); $_GET[$thekey] = str_replace("=", "", htmlspecialchars($_GET[$thekey])); next($array_gete); } $array_poste = array($_POST); while ($tick = current($array_poste)) { $thekey = key($array_poste); $_POST[$thekey] = str_replace("=", "", htmlspecialchars($_POST[$thekey])); next($array_poste); } if ($ir['married']>0) { $marr=mysql_query("SELECT * FROM users WHERE userid={$ir['married']}",$c); $ma=mysql_fetch_array($marr); if ($ma['willmax']>$ir['maxwill']) { mysql_query("UPDATE users SET maxwill={$ma['willmax']} WHERE userid=$userid",$c); } if ($ir['willmax']<$ir['maxwill'] && $ir['maxwill']>$ma['willmax']) { mysql_query("UPDATE users SET maxwill=willmax WHERE userid=$userid",$c); } } if ($ir['maxwill']<$ir['willmax']) { mysql_query("UPDATE users SET maxwill=willmax WHERE userid=$userid",$c); } if ($ir['married']==0 && $ir['maxwill']>$ir['willmax']) { mysql_query("UPDATE users SET maxwill=willmax WHERE userid=$userid",$c); } if($ir['hospital']) { print "[b]NB:[/b] You are currently in hospital for {$ir['hospital']} minutes. "; } if($ir['jail']) { print "[b]NB:[/b] You are currently in jail for {$ir['jail']} minutes. "; } print "<table class=table><tr><td width=50%>[url='voting.php'][b]Vote for World Of Ruins on game sites and get rewarded![/b][/url]</td></tr></table>"; } function smenuarea() { include "smenu.php"; global $ir,$c; $bgcolor = '000000'; print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"> </td><td width="80%" bgcolor="#'.$bgcolor.'" valign="top"><center>'; } function endpage() { global $db; print <<<OUT </center> </td> </tr> </table></td> </tr> <tr> <td colspan="3"> </td> </tr> </table> </body> </html> OUT; } } ?> this is basicly the same as the header that was posted before but ive moved the banner between the info and bars -
Re: Help With Day Cron thanks dude, i run the cron saw the error and removed the problem :) much appreciated
-
Re: Help With Day Cron iust get a blank page :(
-
Re: Help With Day Cron it just dont work :( <?php include "config.php"; global $_CONFIG; if($_GET['code'] != $_CONFIG['code']) { die(""); } define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; $db->query("UPDATE fedjail set fed_days=fed_days-1"); $q=$db->query("SELECT * FROM fedjail WHERE fed_days=0"); $ids=array(); while($r=$db->fetch_row($q)) { $ids[]=$r['fed_userid']; } if(count($ids) > 0) { $db->query("UPDATE users SET fedjail=0 WHERE userid IN(".implode(",", $ids).")"); } $db->query("DELETE FROM fedjail WHERE fed_days=0"); $db->query("UPDATE attackban set ab_days=ab_days-1"); $q=$db->query("SELECT * FROM attackban WHERE ab_days=0"); $ids=array(); while($r=$db->fetch_row($q)) { $ids[]=$r['ab_userid']; } if(count($ids) > 0) { $db->query("UPDATE users SET attackban=0 WHERE userid IN(".implode(",", $ids).")"); } $db->query("DELETE FROM attackban WHERE ab_days=0"); $db->query("UPDATE users SET daysingang=daysingang+1 WHERE gang > 0"); $db->query("UPDATE users SET daysold=daysold+1, boxes_opened=0"); $db->query("UPDATE users SET mailban=mailban-1 WHERE mailban > 0"); $db->query("UPDATE users SET daysmarried=daysmarried+1 WHERE married !=0"); $db->query("UPDATE users SET turns=25"); $db->query("UPDATE users SET fishing_aloud=20"); $db->query("UPDATE users SET happiness=happiness-1 WHERE married != 0"); $db->query("UPDATE users SET tired=0"); $db->query("UPDATE users SET donatordays=donatordays-1 WHERE donatordays > 0"); $db->query("UPDATE users SET cdays=cdays-1 WHERE course > 0"); $db->query("UPDATE users SET bankmoney=(bankmoney*1.003) where bankmoney>0"); $db->query("UPDATE users set steps=30 WHERE steps<30",$c); $db->query("UPDATE users SET cbankmoney=(cbankmoney*1.01) where cbankmoney>0",$c); $db->query("UPDATE users SET cybermoney=cybermoney+(cybermoney/100*7) where cybermoney>0"); $q=$db->query("SELECT * FROM users WHERE cdays=0 AND course > 0"); $db->query("UPDATE users SET log=log-1 WHERE log > 0",$c); while($r=$db->fetch_row($q)) { $cd=$db->query("SELECT * FROM courses WHERE crID={$r['course']}"); $coud=$db->fetch_row($cd); $userid=$r['userid']; $db->query("INSERT INTO coursesdone VALUES({$r['userid']},{$r['course']})"); $upd=""; $ev=""; if($coud['crSTR'] > 0) { $upd.=",us.strength=us.strength+{$coud['crSTR']}"; $ev.=", {$coud['crSTR']} strength"; } if($coud['crGUARD'] > 0) { $upd.=",us.guard=us.guard+{$coud['crGUARD']}"; $ev.=", {$coud['crGUARD']} guard"; } if($coud['crLABOUR'] > 0) { $upd.=",us.labour=us.labour+{$coud['crLABOUR']}"; $ev.=", {$coud['crLABOUR']} labour"; } if($coud['crAGIL'] > 0) { $upd.=",us.agility=us.agility+{$coud['crAGIL']}"; $ev.=", {$coud['crAGIL']} agility"; } if($coud['crIQ'] > 0) { $upd.=",us.IQ=us.IQ+{$coud['crIQ']}"; $ev.=", {$coud['crIQ']} IQ"; } $ev=substr($ev,1); if ($upd) { $db->query("UPDATE users u LEFT JOIN userstats us ON u.userid=us.userid SET us.userid=us.userid $upd WHERE u.userid=$userid"); } $db->query("INSERT INTO events VALUES('',$userid,unix_timestamp(),0,'Congratulations, you completed the {$coud['crNAME']} and gained $ev!')"); } $db->query("UPDATE users SET course=0 WHERE cdays=0"); $db->query("TRUNCATE TABLE votes;"); $houses = mysql_query(sprintf("SELECT * FROM `owned_houses` LEFT JOIN `users` ON (`userid` = `uhouseTenant`) WHERE `uhouseTenant` > '0'")); while ($r = mysql_fetch_array($houses)) { mysql_query("UPDATE `owned_houses` SET `uhouseRTime` = `uhouseRTime` - '1' WHERE `uhouseRTime` > '0'"); mysql_query(sprintf("UPDATE `users` SET `money` = `money` - '%d' WHERE `userid` = '%u'", $r['uhouseRent'], $r['uhouseTenant'])); mysql_query(sprintf("UPDATE `users` SET `money` = `money` + '%d' WHERE `userid` = '%u'", $r['uhouseRent'], $r['uhouseOwner'])); mysql_query("UPDATE `owned_houses` SET `uhouseTenant` = '0' WHERE `uhouseRTime` <= '0'"); } ?>
-
can some one help fix this file pls, it dont seem to work :(
-
Re: Have any mod ideas post here! so theres already the mod out there so owners can change the currency to whatever one they like via staffpanel (including scrapping/hiding the $ symbol and using a icon)?
-
Re: Have any mod ideas post here! To change the $ for a icon\currency which is customizable via the staff panel if anyone can make this mod it will be much appricated :)
-
Re: [mccode v2] Basic Stock Market it was working ifne i had 3 stocks going then it just stoped changeing lol i dont think ive even gone in to the 1 hour cron to accidently break it
-
Re: [mccode v2] Mining V2 Converted :mrgreen:BUMP
-
Re: Battle ladder [Mccodes V2] when i click on the links that i put in the staff menu for battle ladder its a blank screen can anybody help?
-
Re: Declared As A Business? (UK) you can probably get away with only the cash for expences but its once you get any profit, its a very grey area when trying to find out information, so if anyone actually knows whats what so to speak, im sure there are a few of us out there that would love to be kept up to date on this
-
hey all, basically i had a conversation with an accountant and running one of these games is completely legal as a hobby...... untill the moment you recieve one "donation" i was told the moment you recieve a donation unless you are declared a business you actually commiting a type of fraud. well here in the UK you are anyway. I was wondering if anyone else has any other knowledge of this as it may prevent me from releasing another game?
-
Re: [mccode v2] Mining V2 Converted ok ive added it but i have the problem everyone scemes to have this is the sql but it doesnt work people complained but there was not a fix does anybody know what i need to add to make it work
-
Re: Permenant Increase? same error. basically im trying to create an item that when used will increase max brave by 3. if that helps at all
-
Re: Permenant Increase? it looked good but i used the item and got this: QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= '0' WHERE userid=2' at line 1 Query was UPDATE `users` SET = '0' WHERE userid=2
-
Re: Permenant Increase? i mean add to your max brave rather than just fill it up
-
I was wondering if anyone can help me, i have this in my sql for increaseing brave: a:4:{s:4:"stat";s:5:"brave";s:3:"dir";s:3:"pos";s:8:"inc_type";s:7:"percent";s:10:"inc_amount";i:100;} i want a permanent increase not a refill. If anyone could help it would be appreciated :D :mrgreen:
-
mccode-v1 FREE Criminal Record (advanced)
BluntMan replied to oxidati0n's topic in Free Modifications
Re: [mccode] FREE Criminal Record (advanced) great mod +1 -
Re: New Hosting Needing tbabhosting.com are quite good, havent had any problems with them so far. helps a little slow, but they get to you eventually lol
-
V2 Staff password with admin function
BluntMan replied to Delete-please's topic in Free Modifications
Re: V2 Staff password with admin function ive installed it and its working fine apart from after i put in the password once i dont need to anymore it lets me in without asking does anybody know why? -
Re: New Game also interested possibly in buying a fully working script with mods, if you have one which i can edit please mail me with game feature's (factions, seraches, etc) and the price you are looking for.