Jump to content
MakeWebGames

pitbull305

Members
  • Posts

    12
  • Joined

  • Last visited

    Never

Everything posted by pitbull305

  1. Re: {Request}Streets im trying to learn the basic but even i can c that its so porrly coded and i was wondering if someone casn improve the securty on it and so fort
  2. Re: Bars? when u install game did u do the crons ? after u install it it give u 4 crons u need those for them to update if u dont got it then it work update
  3. OblivionWars Is One Of The Best Rpg Out There That Has The Most Unique System Ever And Items. The Game Is Base On a Hudge Veraity Its Not Only About War Its Also About The Simple Life And Ganster Life. It Has One Of The Best Supporting Staff And Members. Promo Code is Oblivion Give You 5000 Started Cash Dont Forget To Vote For Us And Spread Us Around Site: Removed - CE does not support wareZ
  4. Well guys i was hoping that someone could code a better streets then the lame one at mccodes ill post the code for mccodes one down here but if someone could make a way better one and more attactive and better scripted that would rock thanks and here the code <?php include "globals.php"; print "<h3>You are currently scavenging the streets</h3> "; if ($_GET['action'] != 'scavenge') { $turns=$ir['turns']; print "Holy smokes! You should scavenge for some serious shit dude. Maybe grab some money off the ground, or get some Experience... maybe even find a special item or two...? Start goin! You have {$turns} turns left for today and will be topped up to 100 at newday. "; print " <form method=post action=streets.php?action=scavenge><input type=hidden name=action value=scavenge><input type='text' name='steps' value='{$ir['turns']}'> <input type=submit value='scavenge'></form>"; } else { $steps=abs((int) $_POST['steps']); for($i=0;$i<$steps;$i++) { if ($ir['turns'] < 1) { print("You do NOT have enough steps to scavenge the streets any more. Come back at newday. "); }else { $chance = rand(1,15); $db->query("UPDATE users SET turns=turns-1 where userid=$userid",$c); if ($chance == 1) { $amnt=rand(50,200); if($ir['money'] > $amnt) { print "As you scavenge the streets you see a hobo; he asks you for \$$amnt and you tell him to piss off. Then he proceeds to smack the shit out of you. He takes the \$$amnt anyway. "; $db->query("UPDATE users SET money=money- {$amnt } where userid=$userid",$c); $ir['money']-=$amnt; } else { print "As you walk the streets you see a hobo he asks you for \$1 you tell him to piss off he smacks you over the head and looks in your wallet. Finding it almost empty he just runs off with it. "; $db->query("UPDATE users SET money=0 where userid=$userid",$c); $ir['money']=0; } } if ($chance == 2) { print "Nothing here. "; } if ($chance == 3) { $gained=rand(20,90)*$ir['level']; print "You found a bag of cash on the side walk you open it up and find [b] \$$gained[/b] was inside. "; $db->query("UPDATE users SET money=money+$gained where userid=$userid",$c); } if ($chance == 7) { print "You see a guy getting mugged, but you decide to keep walking. You don't want to be in his shoes anytime soon. "; } if ($chance == 4) { print "While exploring the streets you found some cash, but a hobo came quickly behind you and whacked you over the head. You lurch in suprise and the hobo takes the cash and runs off."; } if ($chance == 5) { $gain = rand(5,20); print "While searching the streets you found [b]$gain[/b] crystals."; $db->query("UPDATE users SET crystals=crystals+$gain where userid=$userid",$c); } if ($chance == 6) { $gain = rand(50,100)*(floor($ir['level']/2)+1); print "While searching the streets you found [b] \$$gain[/b]. "; $db->query("update users set money=money+$gain where userid=$userid",$c); } if ($chance == 8) { print "Nothing here. Just a few drunk bums. "; } if ($chance == 9) { print "You see a small item on the ground, and decide to pick it up... wonder what it is? (Hint, look in your inventory lol)"; $itemidexplore = 15; $db->query("INSERT INTO inventory VALUES('',$itemidexplore,$userid,1)",$c); ><rint"<br / br />"; } if ($chance == 10) { print "You see a syringe on the ground, and decide to pick it up. Looks deadly enough..."; $itemidexplore = 57; $db->query("INSERT INTO inventory VALUES('',$itemidexplore,$userid,1)",$c); ><rint"<br / br />"; print" "; } if ($chance == 11) { print "Nothing here. "; } if ($chance == 12) { print "Nothing here. "; } if ($chance == 13) { $expcur=(($ir['exp']+$ir['exp_needed'])/100); $exp=(($expcur)*rand(1,5)); print "You got in a scuffle with a bum, and WON you gained some EXP!! (Go have a look!) "; $db->query("UPDATE users SET exp=exp+$exp WHERE userid=$userid",$c); } if ($chance == 14) { print "Nothing here. "; } if ($chance == 15) { $hosptime=(int) rand(1,5); $loseruser = $ir['userid']; $reasonhosp = 'Stepped on a land mine while scavenging.'; $db->query("UPDATE users SET hospital=$hosptime WHERE userid=$loseruser",$c); $db->query("UPDATE users SET hospreason='$reasonhosp' WHERE userid=$loseruser",$c); event_add($ir['userid'],"You stepped on a land mine while exploring. Do be a bit more careful next time...",$c); die ("You stepped on a land mine. [b]Good news[/b]: You aren't dead [b]Bad News[/b]:You have to stop exploring and go into Recovery "); } $ir['turns']--; print"you have [b] {$ir['turns'] }[/b] steps left "; } } if($ir['turns']==0) { print "Sorry, all turns used! "; } else { print " <form method=post action=streets.php?action=scavenge><input type=hidden name=action value=scavenge><input type='text' name='steps' value=' {$ir['turns'] }'> <input type=submit value='scavenge'></form>"; } } $h->endpage; ?>
  5. It takes cash even if u have 0 and then u go into negative amount please help me fix   <?php include("globals.php"); echo '<h1>Brothel</h1>'; #### Prices ##############Bellow is females ok ############Bellow is the males ### $prices = array("##FEMALES##",'50000','70000','90000','40000',"##MALES##",'50000','60000','80000','70000'); if($_GET['act']) { $will = rand(1,5); $cost = abs(@intval($_POST['price'])); mysql_query("UPDATE users SET will=will+".$will.",money=money-".$cost." WHERE userid=".$ir['userid']) or die(mysql_error()); mysql_query("UPDATE users SET will=maxwill WHERE will>maxwill") or die(mysql_error()); echo 'You payed '.$_POST['who'].' '.money_formatter($cost).' to sleep with them, you gain '.$will.'% will.'; $h->endpage(); exit; } else { echo '<h3>Woman:</h3> <table border="1" cellspacing="0" class="table" width="50%"> <tr> <th>Name</th> <th>Price</th> <th>Rent</th> </tr> <tr> <td>Roxy</td> <td>'.money_formatter($prices[1]).'</td> <td><form action="'.$_SERVER['PHP_SELF'].'?act=buy" method="post"><input type="hidden" name="who" value="roxy"><input type="hidden" name="price" value="'.$prices[1].'"><input type="submit" value="Rent"></form></td> </tr> <tr> <td>Kelly</td> <td>'.money_formatter($prices[2]).'</td> <td><form action="'.$_SERVER['PHP_SELF'].'?act=buy" method="post"><input type="hidden" name="who" value="Kelly"><input type="hidden" name="price" value="'.$prices[2].'"><input type="submit" value="Rent"></form></td> </tr> <tr> <td>Shanique</td> <td>'.money_formatter($prices[3]).'</td> <td><form action="'.$_SERVER['PHP_SELF'].'?act=buy" method="post"><input type="hidden" name="who" value="Shanique"><input type="hidden" name="price" value="'.$prices[3].'"><input type="submit" value="Rent"></form></td> </tr> <tr> <td>Rhonda</td> <td>'.money_formatter($prices[4]).'</td> <td><form action="'.$_SERVER['PHP_SELF'].'?act=buy" method="post"><input type="hidden" name="who" value="Rhonda"><input type="hidden" name="price" value="'.$prices[4].'"><input type="submit" value="Rent"></form></td> </tr> </table> <h3>Men:</h3> <table border="1" cellspacing="0" class="table" width="50%"> <tr> <th>Name</th> <th>Price</th> <th>Rent</th> </tr> <tr> <td>Bill</td> <td>'.money_formatter($prices[6]).'</td> <td><form action="'.$_SERVER['PHP_SELF'].'?act=buy" method="post"><input type="hidden" name="who" value="Bill"><input type="hidden" name="price" value="'.$prices[6].'"><input type="submit" value="Rent"></form></td> </tr> <tr> <td>Marcus</td> <td>'.money_formatter($prices[7]).'</td> <td><form action="'.$_SERVER['PHP_SELF'].'?act=buy" method="post"><input type="hidden" name="who" value="Marcus"><input type="hidden" name="price" value="'.$prices[7].'"><input type="submit" value="Rent"></form></td> </tr> <tr> <td>Greg</td> <td>'.money_formatter($prices[8]).'</td> <td><form action="'.$_SERVER['PHP_SELF'].'?act=buy" method="post"><input type="hidden" name="who" value="Greg"><input type="hidden" name="price" value="'.$prices[8].'"><input type="submit" value="Rent"></form></td> </tr> <tr> <td>Sam</td> <td>'.money_formatter($prices[9]).'</td> <td><form action="'.$_SERVER['PHP_SELF'].'?act=buy" method="post"><input type="hidden" name="who" value="Sam"><input type="hidden" name="price" value="'.$prices[9].'"><input type="submit" value="Rent"></form></td> </tr> </table>'; } $h->endpage(); ?>
  6. Re: [mccode v2] Items Pic mod   Well here my problem when i change that in there and try to add a item i get a query error. It only happens when i change the obove lines and yes i did add the table into the database and everything and i have no idea y its not working its geting a bit frustrated but bewow ill post my staff_items where the problem is and anyhelp that u guys can give me i really apreciate it Error QUERY ERROR: Column count doesn't match value count at row 1 Query was INSERT INTO items VALUES('',3,'Test','test',2147483647,3500,1, '0', 'a:4:{s:4:"stat";s:6:"energy";s:3:"dir";s:3:"pos";s:8:"inc_type";s:6:"figure";s:10:"inc_amount";i:0;}', '0', 'a:4:{s:4:"stat";s:6:"energy";s:3:"dir";s:3:"pos";s:8:"inc_type";s:6:"figure";s:10:"inc_amount";i:0;}', '0', 'a:4:{s:4:"stat";s:6:"energy";s:3:"dir";s:3:"pos";s:8:"inc_type";s:6:"figure";s:10:"inc_amount";i:0;}', 0, 0,'Knife.jpg')   Staff_items.php problem $db->query("DELETE FROM items WHERE itmid={$_POST['itmid']}",$c); $efx1=$db->escape(serialize(array("stat" => $_POST['effect1stat'], "dir" => $_POST['effect1dir'], "inc_type" => $_POST['effect1type'], "inc_amount" => abs((int) $_POST['effect1amount'])))); $efx2=$db->escape(serialize(array("stat" => $_POST['effect2stat'], "dir" => $_POST['effect2dir'], "inc_type" => $_POST['effect2type'], "inc_amount" => abs((int) $_POST['effect2amount'])))); $efx3=$db->escape(serialize(array("stat" => $_POST['effect3stat'], "dir" => $_POST['effect3dir'], "inc_type" => $_POST['effect3type'], "inc_amount" => abs((int) $_POST['effect3amount'])))); $m=$db->query("INSERT INTO items VALUES('',{$_POST['itmtype']},'$itmname','$itmdesc',{$_POST['itmbuyprice']},{$_POST['itmsellprice']},$itmbuy, '{$_POST['effect1on']}', '$efx1', '{$_POST['effect2on']}', '$efx2', '{$_POST['effect3on']}', '$efx3', $weapon, $armor,'{$_POST['itmpic']}')"); print "The {$_POST['itmname']} Item was edited successfully."; stafflog_add("Edited item {$_POST['itmname']}"); } function newitemtype() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 2)   Second Part if($_POST['itmbuyable'] == 'on') { $itmbuy=1; } else { $itmbuy=0; } $efx1=$db->escape(serialize(array("stat" => $_POST['effect1stat'], "dir" => $_POST['effect1dir'], "inc_type" => $_POST['effect1type'], "inc_amount" => abs((int) $_POST['effect1amount'])))); $efx2=$db->escape(serialize(array("stat" => $_POST['effect2stat'], "dir" => $_POST['effect2dir'], "inc_type" => $_POST['effect2type'], "inc_amount" => abs((int) $_POST['effect2amount'])))); $efx3=$db->escape(serialize(array("stat" => $_POST['effect3stat'], "dir" => $_POST['effect3dir'], "inc_type" => $_POST['effect3type'], "inc_amount" => abs((int) $_POST['effect3amount'])))); $m=$db->query("INSERT INTO items VALUES('',{$_POST['itmtype']},'$itmname','$itmdesc',{$_POST['itmbuyprice']},{$_POST['itmsellprice']},$itmbuy, '{$_POST['effect1on']}', '$efx1', '{$_POST['effect2on']}', '$efx2', '{$_POST['effect3on']}', '$efx3', $weapon, $armor,'{$_POST['itmpic']}')"); print "The {$_POST['itmname']} Item was added to the game."; stafflog_add("Created item {$_POST['itmname']}"); } function give_item_form() { global $db,$ir,$c; if($ir['user_level'] > 3)   Anyhelp That u guys can provide me with would be greatly helpfull thank u
  7. Sql Query Problem REMOVED - Pasting illegal sources
  8. REMOVED - Pasting illegal sources
  9. Delete i fix it thanks :)
  10. Re: [mccode v2] Simple Job Specials where does this go im a complete noob sorry case 'newjobspec': newjobspec(); break; case 'jobspecedit': jobspecedit(); break; case 'jobspecdele': jobspecdele(); break;
  11. Re: Help With Mccode V2 i try that but i got a error but i just talk to my friend who has a v2 and he help me with the error i got it up and runing now thanks u can close this thread now
  12. ok hey guys i know this is my first post but i need help setting up my v2 i try to set it up many times and nothing is working if someone can give me a step by step setup that would be really great thanks
×
×
  • Create New...