-
Posts
2,491 -
Joined
-
Last visited
-
Days Won
196
Content Type
Profiles
Forums
Events
Everything posted by Dayo
-
would of been better if you asked a moderator to move it, DW a mod will see it soon enough and remove the other one XD
-
Your best bet would be to read throgh the scripts once yo have looked over them it realy isnt that hard to understand (if you know PHP, if you dont you will find it hard (with or without any help)) PS any need for the other topic?
-
Today i read a post about McCodes not offering any documentation so i have decided to make some documentation up for the Gangster legends Script, it can be found here. I am still writing it so please bare with me, i should have 0.8.0 wrote up by next weekend. Please can you give me suggestions on what you would like added!
-
yea i see the problems, maby ill add the option so you can connect to DB1 for english or DB2 for freng or DB3 for spanish etc ... would this fix any interaction issus?
-
Hiya before i release V1.0.0 im going to release V0.8.0, this is basicly a cleaned up version of GL 0.7.5 (please note not all the files have been cleaned up). Features File structure improved greatly Crimes can be edited very easily by editing the varables in config.php The download link can be found here. If you find any errors please report them here.
-
yea just the core coding so that they would only have to edit one file rather then going throgh every file :P
-
Well ATM I can easily do it so that the admin can add one file and be able to change the language across the whole game, so if they wanted there site to be in german only it would be just a quick file upload.
-
Had an idea over the night, would anyone like the option to have more then one language, with this all you would have to do is include a file (eg en.php, de.php etc..) then with those files your users can choose a default they would like to use. But i personaly couldent include the translations (unless i used google translate :P knew i should of listened in my german/french c lasses at school). What do people think?
-
Due to the code tags, some mods will show this error Parse error: syntax error, unexpected T_STRING in path/to/file.php on line [color=green]XX[/color] If you have copied a modification from here open up, notepad and press CTRL+G and type in the number that would be insted of the green XX's. Now you are on that line you will notice the BBcode engin will replace a link like <a href='index.php'>index</a> with <a href=[color=red]"[/color]http://index.php[color=red]"[/color] target=[color=red]"[/color]_blank[color=red]"[/color]>index</a> This is the root of the error what you have to do is replace the double quotes (hilighted in red) with single quotes ( ' ) If the error persists but on a diffrent line go throgh this again!
-
http://cddesigns.org/fbga/
-
Mmmmm I like jelly babies but what flavour? :P
-
yes if he was to sell the domain aswell people wouldent care but look at his post so im sure mccodes wouldet be happy you distributing there engine (even if you specified you had to get a licence)
-
Just to state i have no intention of selling i just want to see what people think my site is worth. Now with that out the way how mch do you think my site themercenary.net is worth? Pros Unique game-play/style Custom design Much more advanced version of the GL scripts Secure Lots of features (unique mods that i have never seen on any GL game) You can add to the current game features with no effort ie new missions, locations, (location specific pages) etc ... Forum (main structure made, needs a little work) Ability to have several servers ie a beta server, english server, american server etc... Lots of weapon images (like 100 diffrent items) Cronless - you dont need to spend loads of money on cpanel hosting (i have it currenty on a £10 a year host) Cons Needs a few features Some of the GUI needs updating (currently doing that now) Limites space to work with There is no advertisment User base is very small (like 100 atm with only a few active) ill add more to the lists as i think of them all i want is honest valuations.
-
he can not sell it legaly, he even said it has paid mods :/
-
then you can not re distribute the paid mods ...
-
1 template is messed up plus lol @ Strictly Copyright © Mafia Country. All Rights Reserved. 2011-2012 the template + mods are all free
-
DW ignore this post
-
why not just replace $db->query("UPDATE users SET exp=exp+$expgain,money=money+$stole WHERE userid=$userid"); with $db->query("UPDATE users SET exp=exp+$expgain,money=money+$stole,ammo=ammo-1 WHERE userid=$userid"); plus you put $userid=userid what would result in a sql error ;)
-
seriously danny what is the point of you even posting? as for his `prints` being fine is this fine? print "You Have NO Bullets Go Buy Some From The Ammo Shop <a href='http://index.php' target='_blank'>Back</a>'; DONT EVEN POST IF YOU HAVENT EVEN SPENT THE TIME READING THE PROBLEMS [/rant] BMW11 try this <?php $menuhide=1; $atkpage=1; include "globals.php"; $_GET['ID'] == (int) $_GET['ID']; if(!$_GET['ID']) { print "WTF you doing, bro?"; $h->endpage(); exit; } else if($_GET['ID'] == $userid) { print "Only the crazy attack themselves."; $h->endpage(); exit; } else if ($ir['hp'] <= 1){ print "Only the crazy attack when their unconscious."; } else if ($r['ammo'] >= 1){ print "You Have NO Bullets Go Buy Some From The Ammo Shop <a href='index.php' target='_blank'>Back</a>"; $h->endpage(); exit; } else if ($_SESSION['attacklost'] == 1) { print "Only the losers of all their EXP attack when they've already lost. <a href='index.php'>Back</a>"; $_SESSION['attacklost']=0; $h->endpage(); exit; } //get player data $youdata=$ir; $q=$db->query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid={$_GET['ID']}"); $odata=$db->fetch_row($q); $myabbr=($ir['gender']=="Male") ? "his" : "her"; $oabbr=($ir['gender']=="Male") ? "his" : "her"; if($ir['attacking'] && $ir['attacking'] != $_GET['ID']) { print "Bad, bad, bad girl. <a href='index.php'>Back</a>"; $_SESSION['attacklost']=0; $h->endpage(); exit; } if($odata['hp'] == 1) { print "This player is unconscious. <a href='index.php'>> Back</a>"; $h->endpage(); $_SESSION['attacking']=0; $ir['attacking']=0; $db->query("UPDATE users SET attacking=0 WHERE userid=$userid"); exit; } else if($odata['hospital']) { print "This player is in hospital. <a href='index.php'>> Back</a>"; $h->endpage(); $_SESSION['attacking']=0; $ir['attacking']=0; $db->query("UPDATE users SET attacking=0 WHERE userid=$userid"); exit; } else if($ir['hospital']) { print "While in hospital you can't attack. <a href='hospital.php'>> Back</a>"; $h->endpage(); $_SESSION['attacking']=0; $ir['attacking']=0; $db->query("UPDATE users SET attacking=0 WHERE userid=$userid"); exit; } else if($odata['jail']) { print "This player is in jail. <a href='index.php'>> Back</a>"; $h->endpage(); $_SESSION['attacking']=0; $ir['attacking']=0; $db->query("UPDATE users SET attacking=0 WHERE userid=$userid"); exit; } else if($ir['jail']) { print "While in jail you can't attack. <a href='jail.php'>> Back</a>"; $h->endpage(); $_SESSION['attacking']=0; $ir['attacking']=0; $db->query("UPDATE users SET attacking=0 WHERE userid=$userid"); exit; } else if($odata['travelling']) { print "That player is travelling. <a href='index.php'>> Back</a>"; $h->endpage(); $_SESSION['attacking']=0; $ir['attacking']=0; $db->query("UPDATE users SET attacking=0 WHERE userid=$userid"); exit; } print "<table width=100%><tr><td colspan=2 align=center>"; if($_GET['wepid']) { if($_SESSION['attacking']==0 && $ir['attacking'] == 0) { if ($youdata['energy'] >= $youdata['maxenergy']/2) { $youdata['energy']-= floor($youdata['maxenergy']/2); $me=floor($youdata['maxenergy']/2); $db->query("UPDATE users SET energy=energy- {$me} WHERE userid=$userid"); $_SESSION['attacklog']=""; $_SESSION['attackdmg']=0; } else { print "You can only attack someone when you have 50% energy"; $h->endpage(); exit; } } $_SESSION['attacking']=1; $ir['attacking']=$odata['userid']; $db->query("UPDATE users SET attacking={$ir['attacking']} WHERE userid=$userid"); $_GET['wepid'] = (int) $_GET['wepid']; $_GET['nextstep'] = (int) $_GET['nextstep']; //damage if($_GET['wepid'] != $ir['equip_primary'] && $_GET['wepid'] != $ir['equip_secondary']) { print "Stop trying to abuse a game bug. You can lose all your EXP for that. <a href='index.php'>> Home</a>"; $db->query("UPDATE users SET exp=0 where userid=$userid",$c); die(""); } $qo=$db->query("SELECT i.* FROM items i WHERE i.itmid={$_GET['wepid']}"); $r1=$db->fetch_row($qo); $mydamage=(int) (($r1['weapon']*$youdata['strength']/($odata['guard']/1.5))*(rand(8000,12000)/10000)); $hitratio=max(10,min(60*$ir['agility']/$odata['agility'],95)); if(rand(1,100) <= $hitratio ) { $q3=$db->query("SELECT i.armor FROM items i WHERE itmid={$odata['equip_armor']} ORDER BY rand()"); if($db->num_rows($q3)) { $mydamage-=$db->fetch_single($q3); } if($mydamage < -100000) { $mydamage=abs($mydamage); } else if($mydamage < 1) { $mydamage=1; } $crit=rand(1,40); if($crit==17) { $mydamage*=rand(20,40)/10; } else if($crit==25 or $crit == 8) { $mydamage/=(rand(20,40)/10); } $mydamage=round($mydamage); $odata['hp']-=$mydamage; if($odata['hp']==1) { $odata['hp']=0;$mydamage+=1; } $db->query("UPDATE users SET hp=hp-$mydamage WHERE userid={$_GET['ID']}"); print "<font color=red>{$_GET['nextstep']}. Using your {$r1['itmname']} you hit {$odata['username']} doing $mydamage damage ({$odata['hp']})</font>\n"; $_SESSION['attackdmg']+=$mydamage; $_SESSION['attacklog'].="<font color=red>{$_GET['nextstep']}. Using {$myabbr} {$r1['itmname']} {$ir['username']} hit {$odata['username']} doing $mydamage damage ({$odata['hp']})</font>\n"; } else { print "<font color=red>{$_GET['nextstep']}. You tried to hit {$odata['username']} but missed ({$odata['hp']})</font>\n"; $_SESSION['attacklog'].="<font color=red>{$_GET['nextstep']}. {$ir['username']} tried to hit {$odata['username']} but missed ({$odata['hp']})</font>\n"; } if($odata['hp'] <= 0) { $odata['hp']=0; $_SESSION['attackwon']=$_GET['ID']; $db->query("UPDATE users SET hp=0 WHERE userid={$_GET['ID']}"); print " <b>What do you want to do with {$odata['username']} now?</b> <form action='attackwon.php?ID={$_GET['ID']}' method='post'><input type='submit' value='Mug Them' /></form> <form action='attackbeat.php?ID={$_GET['ID']}' method='post'><input type='submit' value='Hospitalize Them' /></form> <form action='attacktake.php?ID={$_GET['ID']}' method='post'><input type='submit' value='Leave Them' /></form>"; } else { //choose opp gun $eq=$db->query("SELECT i.* FROM items i WHERE i.itmid IN({$odata['equip_primary']}, {$odata['equip_secondary']})"); if(mysql_num_rows($eq) == 0) { $wep="Fists"; $dam=(int)((((int) ($odata['strength']/$ir['guard']/100)) +1)*(rand(8000,12000)/10000)); } else { $cnt=0; while($r=$db->fetch_row($eq)) { $enweps[]=$r; $cnt++; } $weptouse=rand(0,$cnt-1); $wep=$enweps[$weptouse]['itmname']; $dam=(int) (($enweps[$weptouse]['weapon']*$odata['strength']/($youdata['guard']/1.5))*(rand(8000,12000)/10000)); } $hitratio=max(10,min(60*$odata['agility']/$ir['agility'],95)); if(rand(1,100) <= $hitratio) { $q3=$db->query("SELECT i.armor FROM items i WHERE itmid={$ir['equip_armor']} ORDER BY rand()"); if($db->num_rows($q3)) { $dam-=$db->fetch_single($q3); } if($dam < -100000) { $dam=abs($dam); } else if($dam < 1) { $dam=1; } $crit=rand(1,40); if($crit==17) { $dam*=rand(20,40)/10; } else if($crit==25 or $crit == 8) { $dam/=(rand(20,40)/10); } $dam=round($dam); $youdata['hp']-=$dam; if ($youdata['hp']==1) { $dam+=1; $youdata['hp']=0; } $db->query("UPDATE users SET hp=hp-$dam WHERE userid=$userid"); $ns=$_GET['nextstep']+1; print "<font color=blue>{$ns}. Using $oabbr $wep {$odata['username']} hit you doing $dam damage ({$youdata['hp']})</font>\n"; $_SESSION['attacklog'].="<font color=blue>{$ns}. Using $oabbr $wep {$odata['username']} hit {$ir['username']} doing $dam damage ({$youdata['hp']})</font>\n"; } else { $ns=$_GET['nextstep']+1; print "<font color=red>{$ns}. {$odata['username']} tried to hit you but missed ({$youdata['hp']})</font>\n"; $_SESSION['attacklog'].="<font color=blue>{$ns}. {$odata['username']} tried to hit {$ir['username']} but missed ({$youdata['hp']})</font>\n"; } if($youdata['hp'] <= 0) { $youdata['hp']=0; $_SESSION['attacklost']=1; $db->query("UPDATE users SET hp=0 WHERE userid=$userid"); print "<form action='attacklost.php?ID={$_GET['ID']}' method='post'><input type='submit' value='Continue' />"; } } } else if ($odata['hp'] < 5) { print "You can only attack those who have health"; $h->endpage(); exit; } else if ($ir['gang'] == $odata['gang'] && $ir['gang'] > 0) { print "You are in the same gang as {$odata['username']}! What are you smoking today dude!"; $h->endpage(); exit; } else if ($youdata['energy'] < $youdata['maxenergy']/2) { print "You can only attack someone when you have 50% energy"; $h->endpage(); exit; } else if ($youdata['location'] != $odata['location']) { print "You can only attack someone in the same location!"; $h->endpage(); exit; } else { } print "</td></tr>"; if($youdata['hp'] <= 0 || $odata['hp'] <= 0) { print "</table>"; } else { $vars['hpperc']=round($youdata['hp']/$youdata['maxhp']*100); $vars['hpopp']=100-$vars['hpperc']; $vars2['hpperc']=round($odata['hp']/$odata['maxhp']*100); $vars2['hpopp']=100-$vars2['hpperc']; $mw=$db->query("SELECT i.* FROM items i WHERE i.itmid IN({$ir['equip_primary']}, {$ir['equip_secondary']})"); print "<tr><td colspan=2 align='center'>Attack with:"; if($db->num_rows($mw) > 0) { while($r=$db->fetch_row($mw)) { if(!$_GET['nextstep']) { $ns=1; } else { $ns=$_GET['nextstep']+2; } if($r['itmid']==$ir['equip_primary']) { print "<b>Primary Weapon:</b> "; } if($r['itmid']==$ir['equip_secondary']) { print "<b>Secondary Weapon:</b> "; } print "<a href='attack.php?nextstep=$ns&ID={$_GET['ID']}&wepid={$r['itmid']}'>{$r['itmname']}</a>"; } } else { print "You have nothing to fight with."; } print "</table>"; print "<table width='50%' align='center'><tr><td align=right>Your Health: </td><td><img src=greenbar.png width={$vars['hpperc']} height=10><img src=redbar.png width={$vars['hpopp']} height=10></td><tr><td align=right>Opponents Health: </td><td><img src=greenbar.png width={$vars2['hpperc']} height=10><img src=redbar.png width={$vars2['hpopp']} height=10></td></tr></table>"; } $h->endpage(); ?> on lines 35-36 you had } { what i think was causing the error i havent tested the rest of the script but scanned throgh it and it looks ok
-
in 2009 1059 people joined out of 1059 people 34 are still active (posted within a month) the folowing link shows the people who joined between 30/12/2008 - 01/01/20010 and posted within the last month http://makewebgames.io/memberlist.php?s=&ausername=&homepage=&field1=&field2=&field3=&field4=&icq=&aim=&msn=&yahoo=&skype=&postslower=&postsupper=&joindateafter=2008-12-30&joindatebefore=2010-01-01&lastpostafter=2011-05-01&lastpostbefore=&sort=username&order= btw i agree some posts should be locked but not all as there would be so many spam threads. we would have to make a whole new forum for mod suport before 20XX Also there are only 150 odd people who have posted within a month so about 20% of our active members have been here for 2 years :/ infact 62 of the 150 odd active members have been here 2+ years :/
-
Hiya im currently re-making the forum for The Mercenarys, Im making it all from scratch (all but the BBCodes (i used NBBC)) I will be adding the option to make a topic/reply shortly if you see any bugs can you please contact me at [email protected] the forum can be found at http://www.themercenary.net/forum.php Also the Gym will be finished today/tomorow
-
yea ill go throgh it all before i release it ;)
-
what space it out a bit with tabs?
-
1) yea that will be done within the next update 2) Im going throgh file by file and recoding most of it as some of it is just usless here is an example :) Before: if($_POST['crime'] == "1" ){ if (rand(0,100) <= $crime_information[0]) { echo "You were successful in pickpocketing somebody. You received $ ".$payout.",- from the crime"; $suc = "yes"; } else { if (rand(0,3) == "1" ) { echo "You failed to commit the crime."; } else { $jail = "yes"; echo "You failed to commit the crime and the cops caught you."; }// if random jail. }// if random crime. }// crime 1 if($_POST['crime'] == "2" ){ if (rand(0,100) <= $crime_information[1]) { echo "You were successful in robbing a gas station.<br />You received $ ".$payout.",- from the crime"; $suc = "yes"; } else { if (rand(0,3) == "1" ) { echo "You failed to commit the crime."; } else { $jail = "yes"; echo "You failed to commit the crime and the cops caught you."; }// if random jail. }// if random crime. }// crime 2 if($_POST['crime'] == "3" ){ if (rand(0,100) <= $crime_information[2]) { echo "You were successful in robbing a general store. You received $ ".$payout.",- from the crime"; $suc = "yes"; } else { if (rand(0,3) == "1" ) { echo "You failed to commit the crime."; } else { $jail = "yes"; echo "You failed to commit the crime and the cops caught you."; }// if random jail. }// if random crime. }// crime 3 if($_POST['crime'] == "4" ){ if (rand(0,100) <= $crime_information[3]) { echo "You were successful in robbing a federal bank. You received $ ".$payout.",- from the crime"; $suc = "yes"; } else { if (rand(0,3) == "1" ) { echo "You failed to commit the crime."; } else { $jail = "yes"; echo "You failed to commit the crime and the cops caught you."; }// if random jail. }// if random crime. }// crime 4 if($_POST['crime'] == "5" ){ if (rand(0,100) <= $crime_information[4]) { echo "You were successful in robbing a casino. You received $ ".$payout.",- from the crime"; $suc = "yes"; } else { if (rand(0,3) == "1" ) { echo "You failed to commit the crime."; } else { $jail = "yes"; echo "You failed to commit the crime and the cops caught you."; }// if random jail. }// if random crime. }// crime 5 After: if (in_array($_POST['crime'], array(1, 2, 3, 4, 5, 6))) { if (rand(0, 100) <=$crime_information[($_POST['crime']-1)]) { $suc="yes"; echo str_replace('{money}', $payout, $crime_success_text[$_POST['crime']]); } else if (rand(1, 3)==1) { $jail="yes"; echo "You failed to commit the crime and the cops caught you."; } else { echo "You failed to commit the crime."; } }
-
dw about this ;)