-
Posts
218 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by AnonymousUser
-
fixed for ( $i = 0; $time_difference >= $lengths[$i]; $i++ ) { $lengths[$i] = (array_key_exists($i, $lengths) ? $lengths[$i] : 1); $time_difference = $time_difference / $lengths[$i]; } $time_difference = round($time_difference); $date = $time_difference . ' ' . $unit[$i] . (($time_difference > 1 OR $time_difference < 1)?'s':'') . ' ago';
-
[MCcode v2] Advanced spying script [$10 USD]
AnonymousUser replied to radio_active's topic in Paid Modifications
lol then update the screen shot :p -
i purchased it... these are suggestions after buying the product :) and yes those too would be great additions as it doesn't have those functions either
-
I have a few suggestions for this mod i would like to see added :) 1. Ability to enable/disable chat. 2. Ability to close certain 'windows' or chat rooms Other then those 2 things its a really great modification and so simple to install it practically does the work for you! Well Done Dave! :cool: Ohhh & SMILIES!!! :D
-
all these views and no help lol
-
KTExchange.php <?php require "globals.php"; if($ir['jail'] or $ir['hospital']) { print "This page cannot be accessed while in jail or hospital."; } if(!$_GET['spend']) { print "Welcome to the Kill Tokens Exchange Center!<br /> You have <b>{$ir['killtoken']}</b> Kill Tokens.<br /> <table width='55%' border='1' > <tr colspan='5' background='header.jpg'> <th><b>Kill Token exchange:</b></th></tr> <td background=images/background.gif> <table width='100%'><b> <a href='KTExchange.php?spend=IQ'>IQ - 5 IQ per Kill Tokens</a><br /> <a href='KTExchange.php?spend=labour3'>Trade for Labour Points - 50 Labour Points per Kill Token</a><br /> <a href='KTExchange.php?spend=guard3'>Trade for Defense - 50 Defense per Kill Token</a><br /> <a href='KTExchange.php?spend=agility3'>Trade for Agility - 50 Speed per Kill Token</a><br /> <a href='KTExchange.php?spend=strength3'>Trade for Strength - 50 strength per Kill Token</a><br /> <a href='KTExchange.php?spend=money'>Money - \$500 per Kill Token</a><br /> <a href='KTExchange.php?spend=crys'>Crystals - 1 per Kill Token</a><br /></table></tr></td>"; } else if($_GET['spend'] == 'IQ') { print "Type in the amount of Kill Tokens you want to swap for IQ.<br /> You have <b>{$ir['killtoken']}</b> Kill Tokens.<br /> One Kill Tokens = 50 IQ.<form action='KTExchange.php?spend=IQ2' method='post'><input type='text' name='killtoken' /><br /><input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'IQ2') { $_POST['killtoken']=(int) $_POST['killtoken']; if($_POST['killtoken'] <= 0 || $_POST['killtoken'] > $ir['killtoken']) { print "Error, you either do not have enough Kill Tokens or did not fill out the form.<br /> <a href='KTExchange.php?spend=IQ'>Back</a>"; } else { $iqgain=$_POST['killtoken']*5; $_POST['killtoken']=strip_tags($_POST['killtoken']); $_POST['killtoken']=abs((int)($_POST['killtoken'])); mysql_query("UPDATE users SET killtoken=killtoken-{$_POST['killtoken']} WHERE userid=$userid",$c); mysql_query("UPDATE userstats SET IQ=IQ+$iqgain WHERE userid=$userid",$c); print "You traded {$_POST['killtoken']} Kill Tokens for $iqgain IQ."; } } else if($_GET['spend'] == 'labour3') { print "Type in the amount of Kill Tokens you want to swap for labour points.<br /> You have <b>{$ir['killtoken']}</b> Kill Tokens.<br /> One Kill Tokens = 50 labour points.<form action='KTExchange.php?spend=labour4' method='post'><input type='text' name='killtoken' /><br /><input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'labour4') { $_POST['killtoken']=(int) $_POST['killtoken']; if($_POST['killtoken'] <= 0 || $_POST['killtoken'] > $ir['killtoken']) { print "Error, you either do not have enough Kill Tokens or did not fill out the form.<br /> <a href='KTExchange.php?spend=labour3'>Back</a>"; } else { $labourgain=$_POST['killtoken']*50; $_POST['killtoken']=strip_tags($_POST['killtoken']); $_POST['killtoken']=abs((int)($_POST['killtoken'])); mysql_query("UPDATE users SET killtoken=killtoken-{$_POST['killtoken']} WHERE userid=$userid",$c); mysql_query("UPDATE userstats SET labour=labour+$labourgain WHERE userid=$userid",$c); print "You traded {$_POST['killtoken']} Kill Tokens for $labourgain labour points."; } } else if($_GET['spend'] == 'guard3') { print "Type in the amount of Kill Tokens you want to swap for Defense.<br /> You have <b>{$ir['killtoken']}</b> Kill Tokens.<br /> One Kill Tokens = 500 Defense.<form action='KTExchange.php?spend=guard4' method='post'><input type='text' name='killtoken' /><br /><input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'guard4') { $_POST['killtoken']=(int) $_POST['killtoken']; $_POST['killtoken']=strip_tags($_POST['killtoken']); $_POST['killtoken']=abs((int)($_POST['killtoken'])); if($_POST['killtoken'] <= 0 || $_POST['killtoken'] > $ir['killtoken']) { print "Error, you either do not have enough Kill Tokens or did not fill out the form.<br /> <a href='KTExchange.php?spend=guard3'>Back</a>"; } else { $guardgain=$_POST['killtoken']*50; $_POST['killtoken']=strip_tags($_POST['killtoken']); $_POST['killtoken']=abs((int)($_POST['killtoken'])); mysql_query("UPDATE users SET killtoken=killtoken-{$_POST['killtoken']} WHERE userid=$userid",$c); mysql_query("UPDATE userstats SET guard=guard+$guardgain WHERE userid=$userid",$c); print "You traded {$_POST['killtoken']} Kill Tokens for $guardgain Defense."; } } else if($_GET['spend'] == 'agility3') { print "Type in the amount of Kill Tokens you want to swap for Agility.<br /> You have <b>{$ir['killtoken']}</b> Kill Tokens.<br /> One Kill Tokens = 500 Agility.<form action='KTExchange.php?spend=agility4' method='post'><input type='text' name='killtoken' /><br /><input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'agility4') { $_POST['killtoken']=(int) $_POST['killtoken']; if($_POST['killtoken'] <= 0 || $_POST['killtoken'] > $ir['killtoken']) { print "Error, you either do not have enough Kill Tokens or did not fill out the form.<br /> <a href='KTExchange.php?spend=agility3'>Back</a>"; } else { $agilitygain=$_POST['killtoken']*50; $_POST['killtoken']=strip_tags($_POST['killtoken']); $_POST['killtoken']=abs((int)($_POST['killtoken'])); mysql_query("UPDATE users SET killtoken=killtoken-{$_POST['killtoken']} WHERE userid=$userid",$c); mysql_query("UPDATE userstats SET agility=agility+$agilitygain WHERE userid=$userid",$c); print "You traded {$_POST['killtoken']} Kill Tokens for $agilitygain Agility."; } } else if($_GET['spend'] == 'strength3') { print "Type in the amount of Kill Tokens you want to swap for Strength.<br /> You have <b>{$ir['killtoken']}</b> Kill Tokens.<br /> One Kill Tokens = 500 Strength.<form action='KTExchange.php?spend=strength4' method='post'><input type='text' name='killtoken' /><br /><input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'strength4') { $_POST['killtoken']=(int) $_POST['killtoken']; if($_POST['killtoken'] <= 0 || $_POST['killtoken'] > $ir['killtoken']) { print "Error, you either do not have enough Kill Tokens or did not fill out the form.<br /> <a href='KTExchange.php?spend=strength3'>Back</a>"; } else { $strengthgain=$_POST['killtoken']*50; $_POST['killtoken']=strip_tags($_POST['killtoken']); $_POST['killtoken']=abs((int)($_POST['killtoken'])); mysql_query("UPDATE users SET killtoken=killtoken-{$_POST['killtoken']} WHERE userid=$userid",$c); mysql_query("UPDATE userstats SET strength=strength+$strengthgain WHERE userid=$userid",$c); print "You traded {$_POST['killtoken']} Kill Tokens for $strengthgain Strength."; } } else if($_GET['spend'] == 'money') { print "Type in the amount of Kill Tokens you want to swap for \$\$\$.<br /> You have <b>{$ir['killtoken']}</b> Kill Tokens.<br /> One Kill Tokens = \$500.<form action='KTExchange.php?spend=money2' method='post'><input type='text' name='killtoken' /><br /><input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'money2') { $_POST['killtoken']=(int) $_POST['killtoken']; if($_POST['killtoken'] <= 0 || $_POST['killtoken'] > $ir['killtoken']) { print "Error, you either do not have enough Kill Tokens or did not fill out the form.<br /> <a href='KTExchange.php?spend=money'>Back</a>"; } else { $iqgain=$_POST['killtoken']*5; $_POST['killtoken']=strip_tags($_POST['killtoken']); $_POST['killtoken']=abs((int)($_POST['killtoken'])); $_POST['money']=strip_tags($_POST['money']); $_POST['money']=abs($_POST['money']); mysql_query("UPDATE users SET killtoken=killtoken-{$_POST['killtoken']},money=money+$iqgain WHERE userid=$userid",$c); print "You traded {$_POST['killtoken']} Kill Tokens for \$$iqgain."; } } else if($_GET['spend'] == 'crys') { print "Type in the amount of Kill Tokens you want to swap for crystals.<br /> You have <b>{$ir['killtoken']}</b> Kill Tokens.<br /> One Kill Token = 1 Crystal .<form action='KTExchange.php?spend=crys2' method='post'><input type='text' name='killtoken' /><br /><input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'crys2') { $_POST['killtoken']=(int) $_POST['killtoken']; if($_POST['killtoken'] <= 0 || $_POST['killtoken'] > $ir['killtoken']) { print "Error, you either do not have enough Kill Tokens or did not fill out the form.<br /> <a href='KTExchange.php?spend=crys'>Back</a>"; } else { $crystalgain=$_POST['killtoken']*1; $_POST['killtoken']=strip_tags($_POST['killtoken']); $_POST['killtoken']=abs((int)($_POST['killtoken'])); $_POST['crystals']=strip_tags($_POST['crystals']); $_POST['money']=abs($_POST['money']); mysql_query("UPDATE users SET killtoken=killtoken-{$_POST['killtoken']},crystals=crystals+$crystalgain WHERE userid=$userid",$c); print "You traded {$_POST['killtoken']} Kill Tokens for $crystalgain crystals."; } } $h->endpage(); ?> Add this to your attack files... under $_SESSION['attacking'] = 0; $db->query("UPDATE users SET killtoken=killtoken+1 WHERE userid=$userid"); Run Query ALTER TABLE `users` ADD `killtoken` TINYINT( 3 ) NOT NULL DEFAULT '0';
-
function DateTime_Parse($time_stamp) { $time_difference = ($_SERVER['REQUEST_TIME']-$time_stamp); $unit = array( 'second', 'minute', 'hour', 'day', 'week', 'month', 'year' ); $lengths = array( 60, 60, 24, 7, 4.35, 12 ); for ( $i = 0; $time_difference >= $lengths[$i]; $i++ ) { $time_difference = $time_difference / $lengths[$i]; } $time_difference = round($time_difference); $date = $time_difference . ' ' . $unit[$i] . (($time_difference > 1 OR $time_difference < 1)?'s':'') . ' ago'; return $date; } line 20...
-
thanks guys... @ RulerofZu -- yes there is an Item description for the items table it's ['itemdesc'] im still looking around for better ways so if you have one in mind that could help people who search for this kinda stuff in the future it would be greatly appreciated :)
-
How would I got about adding an Item Description Upon Hover?:confused::confused:
-
Looking for Login, Register and In-Game Template Coding included... Post your prices or send me a message
-
Great Mod! works perfectly! +1
-
Make an item that will have your "Will" or whatever not reduce for a random amount of time rand(60,120) 1min to 2 for mccode v2 ??
-
streets.php here is just a better look of it so everything isnt all bunched up <?php /* EXPLORE THE STREETS CREATED BY: Lithium ~ 03/01/2010 UPDATED BY: Curt ~ 08/03/2011 This feature is 100% free. Enjoy. */ include(DIRNAME(__FILE__) ."/globals.php"); ?> <table cellpadding="4" style="width: 415px; margin-top: 20px;" align="center"> <tr> <td style="background-image: url('images/gradbg.gif'); background-repeat: no-repeat;"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="401" style="background-image: url('images/newsbarhead.gif');" colspan="2" height="20" align="center"> <span class="title">Explore the Streets</span></br> </td> </tr> <tr> <td colspan="2" class="newspost" align="center"> <?php if(!$ir['street_turns']) { echo "You can't explore anymore today!"; $h->endpage(); exit; } if($ir['hospital']) { echo "You can't explore while injured."; $h->endpage(); exit; } if($ir['jail']) { echo"You can't explore while in jail."; $h->endpage(); exit; } $l = $db->query("SELECT * FROM `streets` WHERE (`location` = '{$ir['location']}' OR `location` = '0') ORDER BY RAND() LIMIT 1"); if($_GET['step'] == 'explore') { $db->query("UPDATE `users` SET `street_turns` = `street_turns` - '1' WHERE `userid` = $userid"); $ir['street_turns']-=1; if($db->num_rows($l)) { $step = mysql_fetch_assoc($l); $str = $step['reward']; @eval("\$str = $str;"); if ($step['reward_type'] == 'hospital') { $db->query("UPDATE `users` SET `hp` = '1', `hospital` = '{$str}', `hospreason` = '{$step['reason']}' WHERE `userid` = $userid"); } else if ($step['reward_type'] == 'jail') { $db->query("UPDATE `users` SET `jail` = '{$str}', `jailreason` = '{$step['reason']}' WHERE `userid` = $userid"); } else if ($step['reward_type'] == 'item') { item_add($userid, $str, 1); } else if ($step['reward_type'] == 'robbed') { if ($ir['money']<$str) { $str=$ir['money']; } $db->query("UPDATE `users` SET `money` = `money` - '$str' WHERE `userid` = $userid"); } else if ($step['reward_type'] == 'nothing') {} else { $db->query("UPDATE `users` SET `".$step['reward_type']."` = `".$step['reward_type']."` + '$str' WHERE `userid` = $userid"); } $what = array('{money}','{crystals}','{hospital}','{jail}' ,'{nothing}','{item}','{robbed}','{exp}'); $for = is_numeric($str) ? number_format($str) : $str; echo str_replace($what, $for, stripslashes(htmlspecialchars($step['text']))); } ?> <center> </br><a href="streets.php?step=explore">Continue Exploring</a> </br><a href="index.php">Back Home</a> </br>You have <?php echo $ir['street_turns']; ?> turns left.</center> <?php } else { ?> </ br><a href="streets.php?step=explore">Explore The City</a> </ br>You have <?php echo $ir['street_turns']; ?> turns left. <?php } ?> </td> </tr> </table> </td> </tr> </table> <?php $h->endpage(); ?>
-
Suggestion... First off great mod... it just needs a little work on the layout. it calls for images but you left none, and the lettering of the streets and the staff streets need some breaks in between so that the corresponding box description is aligned with the input box... but all in all good mod :) thanks Curt
-
let me know if your interested in this small little task send me a message or reply and ill get back to you when i have a chance