
Strats
Members-
Posts
649 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Strats
-
Re: Hacked :( Thanks, I know about that it's annoying me lol I added a little thing that shows users their accuracy hits and misses. For some reason that shows up until you hit someone then it goes :S
-
Re: [?5]Login & Register[v1+v2] Yea maybe you post what your selling
-
Re: Hacked :( Are you a retard? LMAO!! Maybe he should post his game I'll have someone hack his, wonder if he will still be laughing then lol Hahahaha Try It Lmao, I'd Be Laughing Because 1) You Got Hacked Of Jameo 2) You're Obviously The Retard For Not Protecting 3) You Cried On A Public Forum After You're Own Idiocy. 4) You're Game If I Remeber Sucks And Is Called Wrestling Wars ... www.wrestling-wars.com 5) You're Game Still Has The Installer File Active (Retard) 6) I Couldn't Think Of A 6th Reason But The Above 5 Make My Point Clear (Btw If The Game Name I Found Was Wrong, Then Someone Else Wanted To Be You In That Case It Gives Me A 6th Reason) U.n.l.u.c.k.y If You Ask Me. Oh And Nice Game, Or Whats Gona Be Left Of It :) Lol Thank you for joining and helping me out :-P I had forgotten about the installer file. And My game does not suck lol It's only been open 2 weeks and already have a bunch of things that no other game has yet :lol: And for that I am happy
-
Re: Mccodes V2 crime formula help Lol Glad this topic popped up I had some problems understanding it too
-
Re: Bank Layout V2 Really Like it! You got your first +1!
-
Add, Edit, Delete House Upgrades from Staff Panel
Strats replied to Becon's topic in Free Modifications
Re: Add, Edit, Delete House Upgrades from Staff Panel Someone sent it to me ages ago for free and I have never looked at it or used cause I wasn't sure about it. Glad I haven't now -
Re: help with crons Send me a private message if you are still having trouble and I will explain how to set them out
-
Re: [mccode v2] workin cyberbank Does any one actually have a nice working cyber bank? lol secure of course
-
Re: Auto quantify If you want I can post up my inventory for you. It quantifies every thing as it goes in. Unless you only want the small code.
-
Re: Think your a good coder? Again I am not sure what you mean. I would still want the normal war options like ending war lol
-
Re: Hacked :( That muppet came back on my game to try again I waited for a min to see if he could make himself Admin but he didn't Not sure if he could. But I blocked him new Ip :lol:
-
Re: Think your a good coder? Nah not a time limit lol Just stop 1 gang warring 5 at a time lol I would prefer them to only war 3
-
Re: Hacked :( Exactly! My game is a bit plain right now, Lots to work on but I have a handful of people playing. They all understand that I am learning and working pretty much all of the time on making it better and improving. Without the support from people In here (The nice ones) I would never be able to do this, I would not be able to learn from my mistakes. I think if you don't want to help people, don't reply to these posts.
-
Re: Think your a good coder? I do not understand what you just said.
-
Re: [V2] Attack request Here is my attack.php <?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. [url='index.php']Back[/url]"; $h->endpage(); exit; } else if ($_SESSION['attacklost'] == 1) { print "Only the losers of all their EXP attack when they've already lost. [url='index.php']Back[/url]"; $_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. [url='index.php']Back[/url]"; $_SESSION['attacklost']=0; $h->endpage(); exit; } if($odata['hp'] == 1) { print "This player is unconscious. [url='index.php']> Back[/url]"; $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. [url='index.php']> Back[/url]"; $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. [url='hospital.php']> Back[/url]"; $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. [url='index.php']> Back[/url]"; $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. [url='jail.php']> Back[/url]"; $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. [url='index.php']> Back[/url]"; $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. [url='index.php']> Home[/url]"; $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"; $db->query("UPDATE users SET totalhits=totalhits+1 WHERE userid=$userid",$c); } 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"; $db->query("UPDATE users SET totalmisses=totalmisses+1 WHERE userid=$userid",$c); } 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 "[url='attack.php?nextstep=$ns&ID={$_GET[']{$r['itmname']}[/url] "; } } 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(); ?> I did try to have a mess around to stop players gaining too much exp. But i could not work it. Could some one highlight the correct area of the code so I can try again? And maybe give me an example of hot to make it so perhaps when you get to level 50 the most exp you can get is 30% Level 100 most exp you can get is 20% Something like that so I can play about till I get it how I want.
-
[MCCODES V1 +V2] So who's viewing your profile
Strats replied to Uridium's topic in Free Modifications
Re: [MCCODES V1 +V2] So who's viewing your profile Lol this would of been fun -
Re: Hacked :( Yea I brought them when I had a busy job lol Now I aint got work :( But lots of time to learn and have fun lol
-
Re: Hacked :( I know that, I brought my codes about 2 years ago now. I had no idea what to do no idea about how buggy they were. I only saw what they could on games. I understand more now and can see I have to learn alot more, to protect my game myself.
-
Re: [mccode v2] Weather Gym [$1.00] Just got your email. Looks nice, Will try to install this tomorrow when I am more awake.. :lol:
-
Re: Think your a good coder? Yea the limit is a good idea.
-
Re: Think your a good coder? I'll ask him
-
Re: Think your a good coder? The layout is fine , for now lol I want a mod so that people can pick what they want in their donator packs and it shows how much it would be for the donator pack. Also a better gang mod, Not letting anyone boot a member from a gang during war. (Unless it's staff) Not letting anyone leave the gang during war. Not letting anyone join a gang during war. Being able to take surrenders lol Only letting a gang war 3 gangs at a time. If a gang has say 5 low levels around about level 4 - 20 Then if a gang want to war them then they must have the around about the same levels in their gang. I just hate seeing 5 level 200's warring gangs that are level 20. It bugs me lol. I still want the other basic functions too.
-
Re: Think your a good coder? Yup I have brought it. I would like something a bit extra added
-
Re: Think your a good coder? I also have an idea for a new donator system if anyone thinks they could take a crack at it
-
Re: Will Modification Lol I do it all the time