Jump to content
MakeWebGames

lucky3809

Members
  • Posts

    1,115
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by lucky3809

  1. your more then welcome to update it if you want to tezzmosis, but i wont be updating it, there is no need of updating it the main thing the requester wanted was for a player to be able to steal cash and crystals from other players, and that's exactly what it does.
  2. No personal issues with you... I am the one that helped you code your cmarket so no one can hack it and gave you info... Im telling you how it is the reality to owning a game/business... if you take it as a personal attack that is your own opinion. I don't care what you are doing, it was feedback in which you asked and i see it as not a personal attack like you and Peter may think it was., get real! con·struc·tive    [kuhn-struhk-tiv] Show IPA –adjective 1. constructing or tending to construct; helping to improve; promoting further development or advancement ( opposed to destructive): constructive criticism. 2. of, pertaining to, or of the nature of construction; structural. 3. deduced by inference or interpretation; inferential: constructive permission.
  3. The ads are annoying and speaks you want cash NOW!! no player in their right mind will donate you will effortlessly fail at even having paid customers because of those ads, I know this from several games I play, I research a players prospective and ads do not sit well with the whole minority of players... But if you wish to have them on there it will only hurt your pocket books and game, it wont be hurting anyone else... most people already know why the ads are there for you to collect a minimal payment for them to click on them... which again speaks your greedy not a good impression at all for a game! If you want to do better remove them, and relocate them to your forum but not on the game itself!!... what is a whole 20 cents compared to the price of donator status from your players? Kind of stupid to want that whole 20 cents or whatever that ad pays per click over your own advertising of donator status.. total EPIC FAIL!
  4. just one question if you have an mccode license and you bought these files and whole engine from them... why in the world are you willing to sell it for only $10 and nothing over that amount? Are you sure it's even a legit copy? Does not make sense you bought this engine for what it is on mccodes and selling it for $10 thats like a big gap from the original price. And are you even allowed to sell it without the license?
  5. change 6 to the number you want... dont want to sound harsh because you are just learning from this forum, but you really need to step outside of this forum and read up on php and mysql hun.. there are many websites that offer this... also there are many tuts for testing what each statement does... If you don't learn on your own your going to be hurting when you get your game up and going, and players find bugs in your script and your unable to fix them, and whatever else that may go wrong... php is really not that hard and not hard to read in the script... just use common sense you said it will only let you sell 6 ammo... well does the script not show the number 6 in several places? that only means that is the quantity that is allowed, which you can alter it to your own likings...its really easier to read then it looks at a glance...
  6. lol what happened to the pay server the .com you had your game on? It's the same as before nothing is done differently... (that i can see) lol. Oh yeah for your info to on graphics if you do not know you can not use a name brand picture that is copyright such as your tent you can face a huge law suit if that company see's that image.. just saying... Your equip does not take it away from the inventory so i can equip and still be able to have the same count and sell that count... and still have a free one equip might want to check your item remove function...
  7. This is unsecured... as for i have no time to add the special if statements... just did this for you to test it and get an idea... Dom is correct you do not need no database, i was thinking different... <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title></title> </head> <body> <?php $name=$_POST['name']; $email=$_POST['EMAIL']; $age=$_POST['AGE']; $message .="$name"; $message .= "\n"; $message .="$email"; $message .= "\n"; $message .="$age"; mail('[email protected]',$subject,$message); ?> <div class="common-padding clearfix"> <h4 class="secondary-dark">Welcome</h4>   <form method="post" action=""> NAME: <input type="text" size="15" maxlength="50" name="name"> EMAIL: <input type="text" size="15" maxlength="50" name="EMAIL"> AGE: <input type="number" size="15" maxlength="20" name="AGE"> <input type="submit" value="Send" name="submit"> </form> </body>
  8. I dunno i got that from the thread in which he added snikos ammo.. I did not code those lines.. I dont use that mod. I just posted what sniko has in the mod he uses... http://makewebgames.io/showthread.php/29033-mccode-v2-Ammo
  9. taken from the mod you are using you need too... now open attackwon.php and find:   $db->query("UPDATE users SET exp=exp+$expgain,money=money+$stole WHERE userid=$userid"); under it add $db->query("UPDATE users SET ammo=ammo-1 WHERE $userid=userid");   that takes off your ammo..
  10. <?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.<br /> <a href='index.php'>Back</a>"; $h->endpage(); exit; } else if ($r['ammo'] >= 1){ print "You Have NO Bullets Go Buy Some From The Ammo Shop <a href='index.php'>Back</a>"; $h->endpage(); exit; } else if ($_SESSION['attacklost'] == 1) { print "Only the losers of all their EXP attack when they've already lost.<br /> <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.<br /> <a href='index.php'>Back</a>"; $_SESSION['attacklost']=0; $h->endpage(); exit; } if($odata['hp'] == 1) { print "This player is unconscious.<br /> <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.<br /> <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.<br /> <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.<br /> <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.<br /> <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.<br /> <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.<br /> <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><br />\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><br />\n"; } else { print "<font color=red>{$_GET['nextstep']}. You tried to hit {$odata['username']} but missed ({$odata['hp']})</font><br />\n"; $_SESSION['attacklog'].="<font color=red>{$_GET['nextstep']}. {$ir['username']} tried to hit {$odata['username']} but missed ({$odata['hp']})</font><br />\n"; } if($odata['hp'] <= 0) { $odata['hp']=0; $_SESSION['attackwon']=$_GET['ID']; $db->query("UPDATE users SET hp=0 WHERE userid={$_GET['ID']}"); print "<br /> <b>What do you want to do with {$odata['username']} now?</b><br /> <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><br />\n"; $_SESSION['attacklog'].="<font color=blue>{$ns}. Using $oabbr $wep {$odata['username']} hit {$ir['username']} doing $dam damage ({$youdata['hp']})</font><br />\n"; } else { $ns=$_GET['nextstep']+1; print "<font color=red>{$ns}. {$odata['username']} tried to hit you but missed ({$youdata['hp']})</font><br />\n"; $_SESSION['attacklog'].="<font color=blue>{$ns}. {$odata['username']} tried to hit {$ir['username']} but missed ({$youdata['hp']})</font><br />\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:<br />"; 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><br />"; } } 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(); ?>
  11. So your telling me that this is ok... print "<a href="index.php">Back</a>"; anyways not going to argue... if you think you can help then do so, instead of turning this thread into an argumentative one...
  12. replace line 22-33 with else if ($r['ammo'] >= 1){ print "You Have NO Bullets Go Buy Some From The Ammo Shop <a href='http://index.php' target='_blank'>Back</a>"; $h->endpage(); exit; }
  13. actually no it does not work and lol... his problem with 29 look again!!! the if part equal had a space which caused his error... If you care to help then do so but stop shunning me danny for helping him the way i know how...lately you been all up in my chit stop getting into my business if you have any thing to say then help instead of criticizing!!
  14. my bad I added print " where it should have not went which was on this line... why did you end the if statement when you did? else if ($r['ammo'] >= 1){ print "You Have NO Bullets Go Buy Some From The Ammo Shop <a href='http://index.php' target='_blank'>Back</a>'; $h->endpage(); exit; } print " <a href='index.php'>Back</a>"; $h->endpage(); exit; } should be... else if ($r['ammo'] >= 1){ print "You Have NO Bullets Go Buy Some From The Ammo Shop <a href='http://index.php' target='_blank'>Back</a>"; $h->endpage(); exit; }
  15. as for using can't in a single quote either change it to can not or add the slash to it..and they've add the slash to that..
  16. Replace your top half with <?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='http://index.php' target='_blank'>Back</a>'; $h->endpage(); exit; } print " <a href='index.php'>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; }
  17. I will fix the script for you then i want you to match it up to your one that dont work and learn what your errors are...
  18. this is line 19-26 else if ($ir['hp'] <= 1) { print "Only the crazy attack when their unconscious.-----------------line 21 } else if ($r['ammo'] > = 1)---------------------line23 { print "You Have NO Bullets Go Buy Some From The Ammo Shop <a href="http://index.php" target="_blank">Back</a>"; $h->endpage(); exit; } see where i found that error? You will get another error after you fix it, which will then be line 25... i explained your problem above this post...
  19. nope wrong lol... this is your error print "Only the crazy attack when their unconscious. see whats missing? the end of the statement "; if the line indicates a perfect line with no errors the error is above that line or on the next one down.
  20. well his scripts are fine he just needs to learn echo and print.... if your using double quotes after print or echo you need to use single quotes inside that statement... I have already explained this to him... such as if your using... print " <a href=" ">Hello world</a>"; <---this is the wrong way in which is in all your scripts... you need to either have print ' <a href=" ">Hello world</a>'; or print " <a href=' '>Hello world</a>"; the end of your print or echo statements is "; or '; that is how you can tell if you are still inside a print/echo statement you should know the beginning is print" or print' anything inside of that needs the proper quotes....and slashes
  21. This shouldnt give you any errors. <?php include "globals.php"; ?> <html> <head> <script type="text/javascript" src="tabs.min.js"></script> <style type="text/css"> #explore { color:#6688DD; float:left; font-family:Cambria,Times New Roman,serif; font-size:1.3em; font-stretch:normal; font-style:italic; font-weight:normal; line-height:normal; width:100px; } #explore li a { background:#222222 none repeat scroll 0 0; /* Change this value to change the backgroud of the tabs */ display:block; font-size:0.8em; /* Change this value to change the font size in the tabs */ font-style:normal; font-weight:bold; margin:1px; padding:2px 6px 4px; text-align:left; text-decoration:none; width:90px; /* Change this value to change the width of the tabs */ } #explore li a:hover { background:#0A0A0A none repeat scroll 0 0; /* Change this value to change the color of when the tab is hovered over */ width:90px /* This value should be the same as the width of the tabs above */ } #explore li a.selected { background:#FFFFFF none repeat scroll 0 0; /* Change this value to change the color of the tab when it is active */ color:#000000; cursor:default; width:90px; /* This should also be the same as the two above widths */ } .container { background:#181818 none repeat scroll 0 0; /* Change this value to change the background color of the links container */ border:1px solid #222222; margin:20px auto; padding-top:2px; width:400px; /* Change this value to change the width of links container */ } .container p { padding:2px 12px 10px; text-align:left; } </style> </head> <body> <?php $tresder=(int) rand(100,999); if($ir['jail'] or $ir['hospital']) { die("This page cannot be accessed while in jail or hospital."); } $q = $db->query("SELECT u.*,c.* FROM users u LEFT JOIN cities c ON u.location=c.cityid WHERE (u.userid=$userid)"); $r = $db->fetch_row($q); echo ' <b>You begin exploring the area youre in, you see a bit that interests you.</b> <ul id="explore" class="idTabs">[*]<a href="http://#markplace" target="_blank">Market Place</a>[*]<a href="http://#smm" target="_blank">Serious Money Makers</a>[*]<a href="http://#darkside" target="_blank">Dark Side</a>[*]<a href="http://#statdept" target="_blank">Stats Dept.</a>[*]<a href="http://#mystery" target="_blank">Mysterious</a>[/list] <div class="container"> <ul id="markplace">[*]<a href="http://shops.php" target="_blank">Shops</a>[*]<a href="http://itemmarket.php" target="_blank">Item Market</a>[*]<a href="http://cmarket.php" target="_blank">Crystal Market</a>[/list] <ul id="smm">[*]<a href="http://monorail.php" target="_blank">Travel Agency</a>[*]<a href="http://estate.php" target="_blank">Estate Agent</a>[*]<a href="http://bank.php" target="_blank">City Bank</a> '; if($ir['location'] == 5) echo '[*]<a href="http://cyberbank.php" target="_blank">Cyber Bank</a>'; echo '</list> <ul id="darkside">[*]<a href="http://gangcentral.php" target="_blank">Gangs</a>[*]<a href="http://gangwars.php" target="_blank">Gang Wars</a>[*]<a href="http://fedjail.php" target="_blank">Federal Jail</a>[*]<a href="http://slotsmachine.php?tresde=$tresder" target="_blank">Slots Machine</a>[*]<a href="http://roulette.php?tresde=$tresder" target="_blank">Roulette</a>[*]<a href="http://lucky.php" target="_blank">Lucky Boxes</a>[/list] <ul id="statdept">[*]<a href="http://userlist.php" target="_blank">User List</a>[*]<a href="http://stafflist.php" target="_blank">'.$set['game_name'].' Staff</a>[*]<a href="http://halloffame.php" target="_blank">Hall of Fame</a>[*]<a href="http://stats.php" target="_blank">Game Stats</a>[*]<a href="http://usersonline.php" target="_blank">Users Online</a>[/list] <ul id="mystery">[*]<a href="http://crystaltemple.php" target="_blank">Crystal Temple</a></list></div> This is your referal link: http://'.$domain.'/register.php?REF='.$userid.' Every signup from this link earns you two valuable crystals! </body> </html> '; $h->endpage(); ?>
  22. This: print "[*]<a href="http://cyberbank.php" target="_blank">Cyber Bank</a>";} Should be: print "[*]<a href='http://cyberbank.php' target='_blank'>Cyber Bank</a>";} need to follow the print " rule if your using double quotes after print you need to use single ones inside the print " statement..
  23. Was bored lol.. here's some idea how to make your banner better, im no professional but love photoshop lol...
  24. put more backgound into it.maybe seeing how the mafia dude is cropped put him over a car or fence line
  25. that one is much better then previous ones
×
×
  • Create New...