
XCU53S
Members-
Posts
353 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by XCU53S
-
Re: crimes any one else got a working missions script? can you give it to me via PM
-
Re: Stats ok thanks i never looked at that table in the DB now the tricky bit editing attacking and gym
-
I want to no how to add a new stat say i call it 'accuracy' ? and also how would i make it so for projectile weapons (guns) this is the stat that is used to calculate damage done with projectile weapons instead of strength? :|
-
Re: crimes no luck still taking double may have to scrap missions and convert my script i made fot my other game using javascript.
-
Re: Game Ranks you aren't inserting it in the right place that means
-
Re: Simple Trades [V2] would say its good but when i send a trade and the player accepts i can begin trade it says your are already in a trade
-
Re: Game Ranks for V2 this is what you need to do to have it working: find this at the bottom of global_funcs.php: ?> Replace with: function get_gamerank($level, $housevalue, $stats) { $tp=($level*$level) * 3000 + ($hPRICE) + (($stats['strength']+$stats['agility']+$stats['guard']+$stats['labour']+$stats['IQ']) * 10); if ( $tp < 100000 ) { return "#1 First Newbie"; } else if ( $tp < 400000 ) { return "#2 Newbie"; } else if ( $tp < 1600000 ) { return "#3 Beginner"; } else if ( $tp < 6400000 ) { return "#4 Not Experienced"; } else if ( $tp < 25600000 ) { return "#5 Rookie"; } else if ( $tp < 102400000 ) { return "#6 Average"; } else if ( $tp < 409600000 ) { return "#7 Good"; } else if ( $tp < 819200000 ) { return "#8 Very Good"; } else if ( $tp < 3276800000 ) { return "#9 Greater Than Average"; } else if ( $tp < 13107200000 ) { return "#10 Experienced"; } else if ( $tp < 52428800000 ) { return "#11 Highly Experienced"; } else if ( $tp < 209715200000 ) { return "#12 Honoured"; } else if ( $tp < 838860800000 ) { return "#13 Highly Hounoured"; } else if ( $tp < 3355443200000 ) { return "#14 Respect King"; } else if ( $tp < 6655886400000 ) { return "#15 True Champion"; } } ?> Then add to index.php & viewuser.php(in index you should make a table to suit you index pages look) [b]Rank:[/b] ".get_gamerank($r['level'],$r['hPRICE'],$r)." this is 100% working so have fun.
-
Re: crimes so can anyone help me?
-
Re: [v2][v1]Special Events[v1][v2] i could try but i doubt i can as im still a new coder im sure a more experienced coder on the forum can easily do it though.
-
Re: [v2][v1]Special Events[v1][v2] P.S. i forgot to mention where to add lol you add it in to your index.php whre you want it to display it has been tested twice and is working 100%
-
Well im a still learning php so dont hate this is a little mod which tells you when it is a special day e.g. christmas. <? //Mod create by xcuses //This is freeware so you cannot redistribute this //Change the bellow to suit the event you want to add im sure you can //understand how to configure i yourself. $year="2008"; $month="12"; $day="25"; $hour="00"; $minute="00"; $second="00"; $event="Christmas"; //Under this line it the main part of the code do not edit $time=mktime($hour, $minute, $second, $month, $day, $year); $timecurrent=date('U'); $cdtime=$time-$timecurrent; $cdminutes=$cdtime/60; $cdhours=$cdtime/3600; $cddays=$cdhours/24; $cdmonths=$cddays/30; $cdyears=$cddays/365; echo "Time left till $event $cdtime seconds $cdminutes minutes $cdhours hours $cddays days $cdmonths months $cdyears years "; ?> <style type="text/css"> <!-- .style1 {font-size: 10px} --> </style> ok hope you like comment back on what you think. im happy for you to edit and change.
-
Re: crimes This is my criminal.php <?php $macropage="criminal.php"; include "globals.php"; if($ir['jail'] or $ir['hospital']) { die("This page cannot be accessed while in jail or hospital."); } $q2=$db->query("SELECT * FROM crimes ORDER BY crimeBRAVE ASC"); while ($r2=$db->fetch_row($q2)) { $crimes[]=$r2; } $q=$db->query("SELECT * FROM crimegroups ORDER by cgORDER ASC"); print "[b]Military Missions[/b] <table width='75%' cellspacing=1 class='table'><tr><th>Crime</th><th>Cost</th><th>Do</th></tr>"; while($r=$db->fetch_row($q)) { print "<tr><td colspan='3' class='h'>{$r['cgNAME']}</td></tr>"; foreach($crimes as $v) { if($v['crimeGROUP'] == $r['cgID']) { print "<tr><td>{$v['crimeNAME']}</td><td>{$v['crimeBRAVE']} Brave</td><td>[url='docrime.php?c={$v[']Do[/url]</td></tr>"; } } } print "</table>"; $h->endpage(); ?> this is my do crime.php: <?php $macropage="docrime.php?c={$_GET['c']}"; include "globals.php"; if($ir['jail'] or $ir['hospital']) { die("This page cannot be accessed while in jail or hospital."); } $_GET['c']=abs((int) $_GET['c']); if(!$_GET['c']) { print "Invalid crime"; } else { $q=mysql_query("SELECT * FROM crimes WHERE crimeID={$_GET['c']}",$c); $r=mysql_fetch_array($q); if($ir['brave'] < $r['crimeBRAVE']) { print "You do not have enough Brave to perform this crime."; } else { $ec="\$sucrate=".str_replace(array("LEVEL","CRIMEXP","EXP","WILL","IQ"), array($ir['level'], $ir['crimexp'], $ir['exp'], $ir['will'], $ir['IQ']),$r['crimePERCFORM']).";"; eval($ec); print $r['crimeITEXT']; $ir['brave']-=$r['crimeBRAVE']; mysql_query("UPDATE users SET brave={$ir['brave']} WHERE userid=$userid",$c); if(rand(1,100) <= $sucrate) { print str_replace("{money}",$r['crimeSUCCESSMUNY'],$r['crimeSTEXT']); $ir['money']+=$r['crimeSUCCESSMUNY']; $ir['crystals']+=$r['crimeSUCCESSCRYS']; $ir['exp']+=(int) ($r['crimeSUCCESSMUNY']/8); mysql_query("UPDATE users SET money={$ir['money']}, crystals={$ir['crystals']}, exp={$ir['exp']},crimexp=crimexp+{$r['crimeXP']} WHERE userid=$userid",$c); if($r['crimeSUCCESSITEM']) { item_add($userid, $r['crimeSUCCESSITEM'], 1); } } else { if(rand(1, 2) == 1) { print $r['crimeFTEXT']; } else { print $r['crimeJTEXT']; $db->query("UPDATE `users` SET `jail` = '$r[crimeJAILTIME]', `jail_reason` = '$r[crimeJREASON]' WHERE `userid` = '$userid'"); } } print " [url='docrime.php?c={$_GET[']Try Again[/url] [url='criminal.php']Crimes[/url]"; } } $h->endpage(); ?> the SQL is the one that happens with the installer.php
-
why do my crimes take double brave than they should btw i am running mccodes v2
-
Re: Custom Login.php well i haven't been doing games for long if you dont trust its ok if you do mail me. you see alot of people charging $30-$40 for custom ones
-
Re: Custom Login.php me and my mate can do it but we are new to using mccodes so we havent made previous logins but we have experience so state what you want through a PM and well sort it out if we cant do then well tell you thanks any more question?
-
Selling Custom login.php mods for V1 or V2 Are you bored with your current login? Do you think it Turns away players and custom? Well i am willing to make anyone a custom login for $10+ depending on how much you want how much time spent. You choose the layout and i make. If you interested contact me by PM or at [email protected] add me on msn or mail me there Thank have a good day :wink:
-
Re: omg wtf i dont get it LOL bbcode HTML are similar though <> you use them instead
-
Re: Swim Mod For V1&V2 [Free] Thanks for the Mod i modded it slightly to fit my game
-
Re: Item Type Upgrade :-o works great mate thanks:-o post the delete item type one soon :-D
-
Re: [site tools] auto backup your site yep the MySQL command doesnt seem to work i get the same error as above :roll: