Jump to content
MakeWebGames

joker313

Members
  • Posts

    75
  • Joined

  • Last visited

    Never

Everything posted by joker313

  1. Re: [mccode v2] Inventory Recode   Ok checked, and yeah it would have to be with your iteminfo.php. Though, I don't see what your talking about, because the iteminfo.php looks fine here. Maybe a screenshot? I'll try and help ya out :) http://i463.photobucket.com/albums/qq354/Albenski/iteminfo.jpg here is a screen shot of how my items shift to 1 side any clue why
  2. Re: [MCCODES V2] 100% Working Copy Enhanced Schooling i am still gettin the same error
  3. Re: [mccode v2] Inventory Recode Nice i give you +1 on the way it looks on my game but i got a question why is it when i click on a items info my screen stretched all the way to the right ??
  4. Re: [MCCODES V2] 100% Working Copy Enhanced Schooling i have tryed everything thats has been posted and i keep getting this Error QUERY ERROR: Column count doesn't match value count at row 1 Query was INSERT INTO courses VALUES(NULL, 'Cooking 101', 'Learn How To Cook', 'You Take A Few Cooking Classes', 'You Completed This Course', '100', '10000', '1', '1', '2', '', '', '', '', '1', '1', '1', '1', '1') Any clues how to fix this and it dont show the drop down for the item to give like in the screen shot :mrgreen:
  5. I got got the mod where you have all the options to make the better courses its all installed on my game the links it opens up to add the courses but it wont show that the course was made and wont post it for people to use them any tips Help out a Super Noob Please :mrgreen:
  6. Re: [mccode v2] Fishing Mod     I would love to use your mod when you get it done just for thre fact i have been given a ticket for fishing in real life lol
  7. i did not make this code i found it on this site here and installed it to my game and closed out the window to it but everything works fine but 1 part it tells me ((( You gain 100 exp and stole $0 from Detroit_Juggalo )) but i dont get no exp and no money every time i attack. i am super new to all this its not funny i cant find where i got the attack.php from but this is it can anyone show me how to set up the exp and the money Mobster Battles The fight Ratio is 1.3333333333333% You are in a Battle with Detroit_Juggalo You come in with your 9mm hand gun With a Strenght of 612500 (+35%) Takes their turn to swing at you! Detroit_Juggalo hit you for 52 damage using their Cross Bow. You swing at them! You hit Detroit_Juggalo for 918 damage using your 9mm hand gun. You hospitalized Detroit_Juggalo. You gain 100 exp and stole $0 from Detroit_Juggalo. You earnt 2 respect for your gang!   <?php $menuhide=0; $atkpage=1; include "globals.php"; $user_class=$ir; $q=$db->query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid={$_GET['ID']}"); $attack_person=$db->fetch_row($q); $qo=$db->query("SELECT i.* FROM items i WHERE i.itmid={$user_class['equip_primary']}"); $user_class1=$db->fetch_row($qo); $q1=$db->query("SELECT i.* FROM items i WHERE i.itmid={$user_class['equip_armor']}"); $user_class2=$db->fetch_row($q1); $weapon= "{$user_class1['itmname']}"; if(mysql_num_rows($qo) == 0) { $weapon="Fists"; } $eq=$db->query("SELECT i.* FROM items i WHERE i.itmid IN({$attack_person['equip_primary']})"); if(mysql_num_rows($eq) == 0) { $wep="Fists"; } else { $cnt=0; while($r=$db->fetch_row($eq)) { $enweps[]=$r; $cnt++; } $weptouse=rand(0,$cnt-1); $wep=$enweps[$weptouse]['itmname']; } $enperc=(int) ($ir['energy']/$ir['maxenergy']*100); $gq=$db->query("SELECT * FROM gangs WHERE gangID={$attack_person['gang']}"); $ga=$db->fetch_row($gq); $error = ($enperc < 25) ? "You need to have at least 25% of your energy if you want to attack someone." : $error; $error = ($user_class['jail'] > 0) ? "You can't attack someone if you are in jail." : $error; $error = ($user_class['hospital'] > 0) ? "You can't attack someone if you are in the hospital." : $error; $error = ($_GET['ID'] == "") ? "You didn't choose someone to attack." : $error; $error = ($_GET['ID'] == $userid) ? "You can't attack yourself." : $error; $error = ($attack_person['location'] != $user_class['location']) ? "You must be in the same city as the person you are attacking. Duh." : $error; $error = ($attack_person['username'] == "") ? "That person doesn't exist." : $error; $error = ($attack_person['hospital'] > 0) ? "You can't attack someone that is in the hospital." : $error; $error = ($attack_person['jail'] > 0) ? "You can't attack someone that is in jail." : $error; //$error = ($user_class['level'] > 5 && $attack_person['level'] < 6) ? "You can't attack someone that is level 5 or below because you are higher than level 5." : $error; ////////////// ^^ if you like to have it so noobs stay alive longer ?><div id="main " style="a"><center><?PHP if (isset($error)){ echo ($error); $h->endpage(); exit; } if ($user_class['energy'] >= $user_class['maxenergy']/4) { $user_class['energy']-= floor($user_class['maxenergy']/4); $me=floor($user_class['maxenergy']/4); $db->query("UPDATE users SET energy=energy- {$me} WHERE userid=$userid"); $_SESSION['attacklog']=""; $_SESSION['attackdmg']=0; } $yourhp = $user_class['hp']; $theirhp = $attack_person['hp']; $damagestat = number_format($user_class['strength']) ; $itstat = $user_class1['weapon']; $damplu = $damagestat * ($itstat*100); $ratio=($user_class['level']*100)/($attack_person['level']*100); print "<center>Mobster Battles <font color=yellow>The fight Ratio is ".$ratio."%</font> You are in a Battle with ".$attack_person['username']." </center>"; echo " You come in with your ".$weapon." With a Strenght of ".$damplu." (+".$itstat."%) "; $wait = ($user_class['agility'] > $attack_person['agility']) ? 1 : 0; $hospital = 600; $qo=$db->query("SELECT i.* FROM items i WHERE i.itmid IN({$attack_person['equip_primary']})"); $r1=$db->fetch_row($qo); $qo=$db->query("SELECT i.* FROM items i WHERE i.itmid IN({$attack_person['equip_primary']})"); $r2=$db->fetch_row($qo); $damage = (int) (($user_class1['weapon']*$user_class['strength']/($attack_person['guard']/1.5))); $theirdamage = (int) (($r1['weapon']*$attack_person['strength']/($user_class['guard']/1.5))); while($yourhp > 0 && $theirhp > 0){ $damage = ($damage < 1) ? 1 : $damage; $theirdamage = ($theirdamage < 1) ? 1 : $theirdamage; if($wait == 0){ $yourhp = $yourhp - $theirdamage; echo "<font color=red>".$attack_person['usename']."Takes their turn to swing at you!</font> "; echo $attack_person['username']. " hit you for " .number_format($theirdamage). " damage using their ".$wep.". "; } else { $wait = 0; } if($yourhp > 0) { $damage = (int) (($user_class1['weapon']*$user_class['strength']/($attack_person['guard']/1.5))); $damage = ($damage < 1) ? 1 : $damage; $theirhp = $theirhp - $damage; echo "<font color=green>You swing at them!</font> "; echo "You hit " .$attack_person['username']. " for " . number_format($damage) . " damage using your ".$weapon.". "; } if($theirhp <= 0){ // attacker won $winner = $user_class['ID']; $theirhp = 0; $moneywon = floor($attack_person['money'] /10); $expwon = 150 - (25 * ($user_class['level'] - $attack_person['level'])); $expwon = ($expwon < 0) ? 0 : $expwon; $hosptime=20; $hospreason = "Attacked by ".$user_class['username']."" ; $newexp = $expwon + $user_class['exp']; $newmoney = $user_class['money'] + $moneywon; $result = $db->query("UPDATE `users` SET `exp` = '".$newexp."', money = '".$newmoney."' WHERE `userid`='".$user_class['userid']."'"); $newmoney = $attack_person['money'] - $moneywon; $result = $db->query("UPDATE `users` SET `hp`= 1,`hospital` ='".$hosptime."', `money` = '".$newmoney."', `hospreason` = '".$hospreason."' WHERE `userid`='".$attack_person['userid']."'"); $atklog=mysql_escape_string($_SESSION['attacklog']); $db->query("INSERT INTO attacklogs VALUES('',".$user_class['userid'].",".$attack_person['userid'].",'won',unix_timestamp(),".$moneywon.",'$atklog');"); event_add($attack_person['userid'], "You were hospitalized by ".$user_class['username']." for 20 minutes."); $final ="<center>You hospitalized " .$attack_person['username']. ". You gain $expwon exp and stole $".$moneywon." from " .$attack_person['username']. ". </center>"; $pwnd =""; $warq=$db->query("SELECT * FROM gangwars WHERE (warDECLARER={$user_class['gang']} AND warDECLARED={$attack_person['gang']}) OR (warDECLARED={$user_class['gang']} AND warDECLARER={$attack_person['gang']})"); if ($db->num_rows($warq) > 0) { $war=$db->fetch_row($warq); $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT-2 WHERE gangID={$attack_person['gang']}"); $ga['gangRESPECT']-=2; $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT+2 WHERE gangID={$user_class['gang']}"); $pwnd =" You earnt 2 respect for your gang!"; } if ($ga['gangRESPECT']<=0 && $attack_person['gang']) { $db->query("UPDATE users SET gang=0 WHERE gang={$attack_person['gang']}"); $db->query("DELETE FROM gangs WHERE gangRESPECT<='0'"); $db->query("DELETE FROM gangwars WHERE warDECLARER={$ga['gangID']} or warDECLARED={$ga['gangID']}"); } $bots=array(96,94,5,97,98,99,142,138,138,140,141,146,143,144,145);//Your Battle Tent Bots $moneys=array(96 =>5000,94 =>5000,5 => 500,97 => 5000, 98 => 500, 99 => 10000, 142 => 1500,138 =>10000,140 =>10000,141 =>10000,146 =>20000,143 =>15000,144 =>15000,145 =>15000); if(in_array($attack_person['userid'],$bots)) { $gain=$moneys[$attack_person['userid']]; $db->query("UPDATE users SET money=money+$gain WHERE userid=$userid",$c); $finalbot =""; $finalbot =" Congrats, for beating the Challenge Bot {$attack_person['username']}, you have earnt \$$gain!"; } } if($yourhp <= 0){ // defender won $winner = $attack_person['ID']; $yourhp = 0; $moneywon = floor($user_class['money'] /10); $expwon = 100 - (25 * ($attack_person['level'] - $user_class['level'])); $expwon = ($expwon < 0) ? 0 : $expwon; $hosplost = "Lost to ".$attack_person['username']."" ; $hosptime=20; $newexp = $expwon + $attack_person['exp']; $newmoney = $attack_person['money'] + $moneywon; $result = $db->query("UPDATE `users` SET `exp` = '".$newexp."', money = '".$newmoney."' WHERE `userid`='".$attack_person['userid']."'"); $newmoney = $user_class['money'] - $moneywon; $result = $db->query("UPDATE `users` SET `hp`= 1,`hospital` ='".$hosptime."' ,`money` = '".$newmoney."', `hospreason` = '".$hosplost."' WHERE `userid`='".$user_class['userid']."'"); $atklog=mysql_escape_string($_SESSION['attacklog']); $db->query("INSERT INTO attacklogs VALUES('',".$attack_person['userid'].",".$user_class['userid'].",'won',unix_timestamp(),".$moneywon.",'$atklog');"); $final = $attack_person2 . " beat you and stole $".$moneywon." from you."; $pwnd =""; $warq=$db->query("SELECT * FROM gangwars WHERE (warDECLARER={$user_class['gang']} AND warDECLARED={$attack_person['gang']}) OR (warDECLARED={$user_class['gang']} AND warDECLARER={$attack_person['gang']})"); if ($db->num_rows($warq) > 0) { $war=$db->fetch_row($warq); $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT+1 WHERE gangID={$attack_person['gang']}"); $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT-1 WHERE gangID={$user_class['gang']}"); $pwnd =" You lost 1 respect for your gang!"; } } } echo "$final"; echo "$pwnd "; echo "$finalbot"; $h->endpage(); ?></div></center>
  8. Re: [uPDATE] V2 extract Users from Bots when adding to Battletent Nice thanks added it and it worked the 1st time i have never played with PHP untill i found this site you all on here are great help
  9. Re: [mccode v2] Fishing Mod i installed this mod it all works fine but 1 thing when it says its giving out EXP% it dont move the EXP% bar at all u don't get it any one know why
  10. Re: [mccode v2] Weather Gym [$1.00] i love this mod i added it to my game thanks for the update installed it on the 1st try and it when thru i give u +5 for this one
  11. Re: [mccode v2] Weather Gym [$1.00] nice work i got this mod and cant wait to put it on my game and i like the demo account to see it in action http://convictsunleashed.com/demo nice work
  12. Re: [mccode v2] Upgraded Brothel so far its all working for me but when i buy hoes it keeps taking my money but still shows this and i bought 3 hoes Sign up to the brothel with your bought hoes and gain some money each day. You currenltly have 0 meaning you earn 5000 a day! We have now taken your cash and you have now joined why wont it add the Hoes count i bought
  13. Re: [REVIEW] Organized Gangstas - Please review!! Yeah i am going to change it all around still getting the feel of things. But yeah thanks for all the replays
  14. Re: [REVIEW] Organized Gangstas - Please review!! Thanks man but im not in to all the red and black i am goin to recode it 85% what i am doing i am teaching myself and asking questions as i go Thanks again for the replay
  15. Title: Organized Gangstas Site URL: http://organizedgangstas.com Site Description: My 1st game i am doing well learning as i go from this site Thanks PHP-Games Staff and other Members on the site for all the help and info Please give me any feed backs you can the game is still being worked on and being tested If you would like to check out the game please use Username: test Password: test Hope to hear for you all soon :mrgreen:
  16. Re: [REVIEW] Pimps Street - 3rd Version nice didnt have no trouble around the game
  17. Re: [review pls]Crime-Mobsters[underconstrution still] nice game clean look
  18. Re: [mccodes v2]New and improved inventory code sources for free! good job here i was like i am so going to screw up and it worked fins i give u a +1
  19. Re: [mccode v2] Index.php Update nice i give u mad props this code worked for me easy on 1st try nice codeing i am new to all this
  20. Re: [mccode v2] Yet Another Attack nice i installed this code and worked with no probs thanks i am new to this and starting to understand these mods a lil better
  21. Re: [mccode v2] usersonline.php wow installed and worked on 1st try nice i am learning this too
  22. Detroit Mobsters http://www.detroitmobsters.com The streets of Detroit are in dire distress. Will you aid in its destruction or try to rebuild amongst the chaos. Join other players and prove your street smarts. In a city reduced to anarchy. Only a select few can survive to restore order. Do you have what it takes. Well Prove it! :mrgreen:
  23. Re: [REVIEW] Thug Mayhem - Please Review!!! i joined and it is a cool game
  24. Re: [REVIEW] Crime-Network.com - Please review! i login on the demo game looks nice didn't seem to run slow on my end
×
×
  • Create New...