Jump to content
MakeWebGames

SlanderDesign

Members
  • Posts

    106
  • Joined

  • Last visited

Everything posted by SlanderDesign

  1. Why use htmlentitles when you're stripping the tags? Plus, Magic Quotes isn't used for GRPG, if it was then most of the mysql_query(); 's would error/double slash quotes :S :S
  2. Two points: 1. GRPG does not come with a forum by default... 2. Don't use the user made forums, the main reason I say this is look where it says $_POST['topicname'] $_POST['topicname'] appears around 13 times and needs securing.
  3. This really wont be a free mod if anyone does code it ;)
  4. That actually helped me :thumbsup: Thank you Regards Linton
  5. They are many colour name mods around this forum. also if you check the free plugin page for GRPG you will see a vote made by vasey ;) Regards Linton
  6. Everyone here has fair points but, if MCC do take Ravan to court then MCC will be given a hell of a lot of money...(MATHS: Ravan sold around 400 copies, 400 * $15 = $6000. instead of the Mc Code Price ($80000) .) So in court the payout should be around 80k. This would be enough to GIVE Ravan victims the money back OR GIVE them a free V1 licence. Yes I sound like it's all MCC's fault, it's not. But they have made it so our games no longer work. Coursing loss of earnings. Anyway kinda sick of ranting. Regards Linton ;)
  7. I also fell victim to the Ravan Script fraud, I do not want to seek legal advise as I see MCC taking it's own action against Ravan Script. What I would like is some sort of support from MCC. You should all know by now that Ravan Script will not work without their site been online. Thus we have all been shut down by MCC's action. We have all lost a great deal in time and money. My idea of a great fix is that anyone that paid for Ravan Script show MCC the payment id to them in paypal. (I cant seem to find my licence file for Ravan Script), MCC then give the ravan victims a FREE Mcc V1 licence. Regards Linton.
  8. It's suppose to be a user friendly mod.... Just saying... Anyway nice mod. Regards Linton
  9. nope, the "real" GRPG script comes with bugs + extra bugs... Voting script is easy, the colour names shouldn't be to hard. I'll make the voting for you soon :) Regards Linton
  10. if(preg_match("/<[^<]+?>/is",$_POST['bugREPORT'])){ echo 'Report cannot be submitted for the following reason(s): [b]HTML found[/b]!';   Why not just striptags(); , Saves people typing out the bug again....? Or I maybe wrong :S
  11. XD this is from my complaints mod... Yeah no need for the mres ect, it did have text but it doesn't no more. Remove it if you want, but it's causing no errors. Regards Linton
  12. <?php include (DIRNAME(__FILE__) . '/header.php');   echo '<tr><td class="contenthead">List Of All Complaints</td></tr> <tr><td class="contentcontent">';   $result = mysql_query("SELECT * FROM `grpgusers` WHERE ".$user_class->city." ORDER BY `exp` DESC LIMIT 5"); while($line = mysql_fetch_array($result, MYSQL_ASSOC)) { echo "<div>".mysql_real_escape_string(strip_tags($line['id'])).". ".mysql_real_escape_string(strip_tags($line['username']))."</div>"; } include (DIRNAME(__FILE__) . '/footer.php'); ?> this only works for the EXP not stat's. Regards Linton. PS: Sorry I forgot about making this for you!
  13. If your looking for a background image I would suggest using some CSS. and EG would be: in the css of your header or style.css add this at the bottom. .menuh{ background-image:url(images/menuhead.png); display:block; } .menuc{ background-image:url(images/menucenter.png); padding-top:10px; background-repeat: repeat-y; .menuf{ background-image:url(images/menufooter.png); display:block; } then on mainmenu.php add this under <?php: echo '<div class="menuh"></div> <div class="menuc">'; then at the bottom after Logout add this: <div class='menuf'></div> </div>"; Hope this helps :)
  14. Base_64(); I'm sure most servers/hosts ect will allow the use of that?
  15. A few tears? :S I would say around 6 months and he could be able to code... I would also suggest using The Generic RPG engine. It is less complicated and also shows how to use HTML and PHP together. *Closing one tag and opening another* EG: <table><?php echo 'hello'; ?> </table> Regards Linton
  16. Good work.... Your game is nice, but why not sell mod packages?
  17. You asked for weapon slots, that's what I gave. @CrazyT, I don't plan on using GRPG anymore.
  18. Fortunately, I have made a mod for that, however I cannot give it for free. No pain, no gain... -.- Pointless post? Thanks - going to give it a shot :)
  19. I tested this again before the update a second ago.. It all seems to work...
  20. Yeah, I was busy when i made this :S I really should make a better one... One where players cant get billions from 1 attack :L As I just said... A secure attack.php UN TESTED! <?php include (DIRNAME(__FILE__) . '/header.php'); $newmoney = abs(intval($newmoney)); $error = ($user_class->energypercent < 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['attack'] == "") ? "You didn't choose someone to attack." : $error; $error = ($_GET['attack'] == $user_class->id) ? "You can't attack yourself." : $error; $error = ($_GET['attack'] == "+,WHERE,FROM,*,password") ? "WTF! Noob." : $error; $attack_person = new User($_GET['attack']); $error = ($attack_person->city != $user_class->city) ? "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 (isset($error)){ echo Message($error); include (DIRNAME)__FILE__) . '/footer.php'); exit; } $yourhp = $user_class->hp; $theirhp = $attack_person->hp; ?> <tr><td class="contenthead">Fight House</td></tr> <tr><td class="contentcontent">You are in a fight with <? echo $attack_person->formattedname ?>.</td></tr> <tr><td class="contentcontent"> <?php $wait = ($user_class->speed > $attack_person->speed) ? 1 : 0; while($yourhp > 0 && $theirhp > 0){ $damage = $attack_person->moddedstrength - $user_class->moddeddefense; $damage = ($damage < 1) ? 1 : $damage; if($wait == 0){ $yourhp = $yourhp - $damage; echo $attack_person->formattedname . " hit you for " . $damage . " damage using their ".$attack_person->weaponname.". "; } else { $wait = 0; } if($yourhp > 0) { $damage = $user_class->moddedstrength + $user_class->moddedstrength2 - $attack_person->moddeddefense; $damage = ($damage < 1) ? 1 : $damage; $theirhp = $theirhp - $damage; echo "You hit " . $attack_person->formattedname . " for " . $damage . " damage using your ".$user_class->weaponname.". "; } if($theirhp <= 0){ // attacker won $winner = $user_class->id; $theirhp = 0; $moneywon = floor($attack_person->money /10); $battlewon = 1 + $user_class->battlewon; $battlemoney = $moneywon + $user_class->battlemoney; $expwon = 150 - (25 * ($user_class-> level - $attack_person->level)); $expwon = ($expwon < 0) ? 0 : $expwon; $newexp = $expwon + $user_class->exp; $newmoney = $user_class->money + $moneywon; $result = mysql_query("UPDATE `grpgusers` SET `exp` = ".$newexp.", money = ".$newmoney.", `battlewon` = ".$battlewon.", `battlemoney` = ".$battlemoney." WHERE `id`=".$user_class->id."") or die(mysql_error()); $newmoney = $attack_person->money - $moneywon; $battlelost = $user_class->battlelost + 1; $battlemoney = $user_class->battlemoney - $moneywon; $result = mysql_query("UPDATE `grpgusers` SET `money` = ".$newmoney.", `hwho` = ".$user_class->username.", `hhow` = 'wasattacked', `hwhen` = ".date(g.":".i.":".sa,time()).", `hospital` = '1200', `battlelost` = ".$battlelost.", `battlemoney` = ".$battlemoney." WHERE `id`=".$attack_person->id."") or die(mysql_error()); Send_Event($attack_person->id, "You were hospitalized by ".$user_class->username." for 20 minutes."); echo Message("You hospitalized " . $attack_person->formattedname . ". You gain $expwon exp and stole $".$moneywon." from " . $attack_person->formattedname . "."); //give gang exp if ($user_class->gang != 0) { $gang = New Gang($user_class->gang); $newgangexp = $gang->exp + $expwon; $result = mysql_query("UPDATE `gangs` SET `exp` = ".$newgangexp." WHERE `id`=".$gang->id.""); } } if($yourhp <= 0){ // defender won $winner = $attack_person->id; $yourhp = 0; $battlewon = 1 + $attack_person->battlewon; $moneywon = floor($user_class->money /10); $battlemoney = $moneywon + $attack_person->battlemoney; $expwon = 100 - (25 * ($attack_person-> level - $user_class->level)); $expwon = ($expwon < 0) ? 0 : $expwon; $newexp = $expwon + $attack_person->exp; $newmoney = $attack_person->money + $moneywon; $result = mysql_query("UPDATE `grpgusers` SET `exp` = ".$newexp.", money = ".$newmoney.", `battlewon` = ".$battlewon.", `battlemoney` = ".$battlemoney." WHERE `id`=".$attack_person->id."") or die(mysql_error()); $newmoney = $user_class->money - $moneywon; $battlelost = $user_class->battlelost + 1; $battlemoney = $user_class->battlemoney - $moneywon; $result = mysql_query("UPDATE `grpgusers` SET `money` = ".$newmoney.", `hwho` = ".$attack_person->username.", `hhow` = 'attacked', `hwhen` = ".date(g.":".i.":".sa,time()).", `hospital` = '1200', `battlelost` = ".$battlelost.", `battlemoney` = ".$battlemoney." WHERE `id`=".$user_class->id."") or die(mysql_error()); Send_Event($user_class->id, "You were hospitalized by ".$attack_person->username." for 20 minutes."); echo Message($attack_person->formattedname . " Hospitalized you and stole $".$moneywon." from you."); //give gang exp if ($attack_user->gang != 0) { $gang = New Gang($attack_user->gang); $newgangexp = $gang->exp + $expwon; $result = mysql_query("UPDATE `gangs` SET `exp` = ".$newgangexp." WHERE `id`=".$gang->id."") or die(mysql_error()); } } } //put defense log into gang if ($attack_person->gang != 0) { $time = time(); $result= mysql_query("INSERT INTO `ganglog` (`timestamp`, gangid, attacker, defender, winner)"."VALUES (".$time.", ".$attack_person->gang.", ".$user_class->id.", ".$attack_person->id.", ".$winner.")") or die(mysql_error()); } //update users $newenergy = $user_class->energy - floor($user_class->energy * .10); $result = mysql_query("UPDATE `grpgusers` SET `hp` = ".$theirhp." WHERE `id`=".$attack_person->id."") or die(mysql_error()); $result = mysql_query("UPDATE `grpgusers` SET `hp` = ".$yourhp.", `energy` = ".$newenergy." WHERE `id`=".$user_class->id."") or die(mysql_error()); echo "</td></tr>"; include (DIRNAME(__FILE__) . '/footer.php'); ?>   Any errors pm me or post fix :)
  21. Ip hack been one of them ;)
  22. Nicely done SlanderDesign. I like it. :) Thanks, shame the noob didn't use the mod :/
  23. Oh and Danny is okay (Ishh) :L
  24. Can you show us the $_POST['hitlist'] please.. Or even better, show a respected member of the forum the whole script... EG: MagicTallGuy, Puuda (Jordan Palmer), DjKanna (kaine).
  25. Ohhh... Okay yeah, I should of made it clear only to use on new games :/ Sorry people :C
×
×
  • Create New...