
glg216
Members-
Posts
9 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by glg216
-
Re: Weapon with stats the way i did it on my game, is to add the extra stats on the item table. in the attack page you query for the weapon info and just add the extra stats to the $mydamage
-
+1 for helping me get this Cron_5 Min to work
glg216 replied to Joshua's topic in General Discussion
Re: +1 for helping me get this Cron_5 Min to work the problem is the if ($ir['race']==1). The variable is not filled with anything. You didn't query the data base to populate it. you can query to see who has the race =1 and then do a while statement in conjuction to the if statement. for better coding i recomment taking out the if and adding a where at the end of the query. do that for the three races and it will work $db->query("UPDATE `users` SET `brave`=LEAST(`brave`+((`maxbrave`/'5')+'0.5'), `maxbrave`), `hp`=LEAST(`hp`+(`maxhp`/'3'), `maxhp`), `will`=LEAST((`will`+'20'), `maxwill`), `energy`=IF(`donatordays`<>'0', LEAST(`energy`+(`maxenergy`/'6'), `maxenergy`), LEAST(`energy`+(`maxenergy`/'12.5'), `maxenergy` WHERE race=1))") ; -
Re: Level specific items this is where i updated it in the equip_weapon.php file. like i said i added a sql field to the item. that way you can also restrict other items and not just the weapons if(!in_array($_GET['type'], array("equip_primary", "equip_secondary"))) { print "This slot ID is not valid."; print " [url='inventory.php']>Back to Inventory[/url]"; $h->endpage(); exit; } // start $wepn = $r['itmminlvl']; $ulvl = $ir['level']; if ($ulvl < $wepn){ Print "you cant equipt this iteam, you dont meet the minum requirments. you are {$ir['level']}you need level to be level {$r['itmminlvl']}"; $h->endpage(); exit; }
-
Re: Level specific items the way i did it on my site is add another field in your sql. name it min_lvl. when they try to equip it do check for the min_lvl and the lvl of the user.
-
Re: Simple SQL Injection protection _ReapeR_ next time you try a SQL injection do it on your own game. i don't appreciate you hacking my game.
-
Re: battlearena to fix the issues add 'global $c;' inside all of the functions.
-
Re: stop same ip transfers i like the script, well done
-
Re: whore house i added a random for the out come. people will go to jail, the hospital or nothing
-
hi this is my first post. i liked the whore house mod. i made some changes to it. let me know what you guys think. this is for V2. <?php include "globals.php"; if($ir['jail'] or $ir['hospital']) { die("<font color='red'>This page cannot be accessed while in jail or hospital.</font>"); } ?> [img=pics/cities/eyes.jpg] <?php print " <h3>Hot Chick Petting Zoo</h3> <table border='1' width'90%' bordercolor='#939393'><th>Prostitute Name</th><th>Age</th><th>Sex</th><th>Price</th><th><center>Hire</th></tr><tr> <td><center>Jose </td><td><center>19</td><td><center>Female</td><td>20,000</td><td><center>[url='brothel.php?spend=male']Bang A Man Whore[/url]</td></tr><tr> <td><center>Stephine </td><td><center>20</td><td><center>Female</td><td>20,000</td><td><center>[url='brothel.php?spend=nurse']Bang A Naughty Nurse[/url]</td></tr><tr> <td><center>Heater </td><td><center>23</td><td><center>Female</td><td>20,000</td><td><center>[url='brothel.php?spend=school']Bang A Hot School Girl[/url]</td></tr><tr> <td><center>No name </td><td><center>???</td><td><center>Female</td><td>20,000</td><td><center>[url='brothel.php?spend=tran']Bang a Transvestite[/url]</td></tr><tr> <td><center>{$ir['username']} </td><td><center>your age</td><td><center>{$ir['gender']}</td><td>20,000</td><td><center>[url='brothel.php?spend=whoreout']Whore yourself out at a club.[/url]</td></tr><tr> <td><center>{$ir['username']} </td><td><center>your age</td><td><center>{$ir['gender']}</td><td>20,000</td><td><center>[url='brothel.php?spend=whoreout2']Whore yourself out on the streets.[/url]</td></tr><tr></table>"; if(isset ($_GET['spend'])) { srand ((double) microtime( )*1000000); $random_number = rand(1,1000); } if($_GET['spend'] == 'male') { if($ir['money'] <20000) { print " [b]Sorry, you don't have enough money[/b]"; } else if($ir['energy'] <6) { print " [b]Sorry, you dont have enough energy[/b]"; } else if ($random_number < 750) { mysql_query("UPDATE users SET money=money-20000,energy=energy-10,brave=maxbrave WHERE userid=$userid",$c); print " [b]You have paid $20,000 to get plowed by a man whore, this raised your brave to 100%[/b]"; } else if ($random_number > 750) { mysql_query("UPDATE users SET money=money-20000 WHERE userid=$userid",$c); print " [b]he took a look at you and ran, with your money in hand!"; } } else if($_GET['spend'] == 'school') { if($ir['money'] <20000) { print " [b]Sorry, you don't have enough money[/b]"; } else if($ir['energy'] <10) { print " [b]Sorry, you don't have enough energy[/b]"; } else if ($random_number < 600) { mysql_query("UPDATE users SET money=money-20000,energy=maxenergy WHERE userid=$userid",$c); print " [b]You have paid $20,000 for 2 hours with a hot school girl too bad you only lasted 5 minutes, it doesn't matter it raised your energy by 5 points[/b]"; } else if ($random_number > 600) { mysql_query("UPDATE users SET money=money-20000,hospital=hospital+5,`hospreason` = 'tried to get freaky with a hot school girl but got beat down.' WHERE userid=$userid",$c); print " [b]<font color='red'>you pay for fun. you undress yourself, she ties you down, and beat you. you stuck in the hospital for 5 minutes.</font>"; // here } } else if($_GET['spend'] == 'nurse') { if($ir['money'] <20000) { print " [b]Sorry Sir, you don't have enough money[/b]"; } else if($ir['energy'] <10) { print " [b]Sorry Sir, you don't have enough energy[/b]"; } else if ($random_number < 750) { mysql_query("UPDATE users SET money=money-20000,energy=energy-10,brave=maxbrave WHERE userid=$userid",$c); print " [b]You have paid $20,000 for 2 hours with a naughty nurse too bad you only lasted 5 minutes, it doesn't matter it raised your brave to 100%[/b]"; } else if ($random_number > 750) { mysql_query("UPDATE users SET money=money-20000 WHERE userid=$userid",$c); print " [b]<font color='red'>sorry she took your money, and you didn't get any</font>"; } } else if($_GET['spend'] == 'tran') { if($ir['money'] <20000) { print " [b]Sorry you don't have enough money[/b]"; } else if($ir['energy'] <10) { print " [b]Sorry you don't have enough energy[/b]"; } else { mysql_query("UPDATE users SET money=money-20000,energy=energy-10,brave=maxbrave,hp=hp-9 WHERE userid=$userid",$c); print " [b]You paided $20,000 to bang a transvestite "; print "and enjoyed your time and filled your brave to 100% but lost 9 HP points because you were the female.[/b]"; } } else if($_GET['spend'] == 'whoreout') { if($ir['energy'] <10) { print " [b]Sorry, you don't have enough energy[/b]"; } else if ($random_number < 500) { mysql_query("UPDATE users SET money=money+1000 WHERE userid=$userid",$c); print " [b]You Walk up to a woman and ask her if she is lonely, she says yes. you tell her that for 1,000 you will make her happy for one night, she pays you have earned 2,000.[/b]"; } else if ($random_number > 500) { mysql_query("UPDATE users SET money=money-500,jail=jail+5,`jail_reason` = 'tried to whore himself out but was turned down' WHERE userid=$userid",$c); print " [b]<font color='red'>You Walk up to a woman and ask her if she is lonely, she says no. she says that if you dont give her 500 she will call the cops. you give her the money but she calls the cops anyways.</font>"; } } else if($_GET['spend'] == 'whoreout2') { if($ir['energy'] <10) { print " [b]Sorry, you don't have enough energy[/b]"; } else if ($random_number < 400) { mysql_query("UPDATE users SET money=money+1500 WHERE userid=$userid",$c); print " [b]You Walk up to a woman and ask her if she is lonely, she says yes. you tell her that for 1,500 you will make happy for one night, she pays you have earned 1,500.[/b]"; } else if ($random_number > 400) { mysql_query("UPDATE users SET money=money+1500,hospital=hospital+5,`hospreason` = 'Whored himself out and caught crabs' WHERE userid=$userid",$c); print " [b]<font color='red'>You Walk up to a woman and ask her if she is lonely, she says yes. you tell her that for 1,500 you will make her happy for one night, she pays you have earned 1,500. the bad news is that she has crabs and now you do too.[/b]</font> "; } } $h->endpage(); ?> Please use the [code] ... [/code] tags