Jump to content
MakeWebGames

Agon

Members
  • Posts

    120
  • Joined

  • Last visited

Everything posted by Agon

  1. turf Maybe make it like a turf thing too. Like make the groups North East South West. Mark different cities with this option. Give that user a bonus if they are fighting in their own turf. Have turf wars, where the highest scoring team for the week gets an experience boost for 7days. Give players the option to have a one time menu to choose turf. Just throwing it out there. Your idea inspired this one. Thanks!
  2. Er... my apologies. Nevermind. The bug I'm having is somewhere else in my game. I think.
  3. Oldy but goody Wow, nice to find this mod buried in here! Having a small issue I'm trying to figure out. Works great, but not displaying item names on output. Code appears to be good. Here's the snippet I'm working with:   print "<table width='100%' border='2'><tr style='background:red'><th>Name</th> <th>Ammount</th></tr>"; $z=mysql_query("SELECT * FROM inventory WHERE inv_userid={$_GET['ID']} ORDER BY inv_itemid DESC"); while($e=mysql_fetch_array($z)) { $t=mysql_query("SELECT * FROM items WHERE itmid={$e['inv_itemid']}",$c); $itm=mysql_fetch_array($t); print "\n<tr><td>[b]{$itm['itmname']}[/b]</td><td>[b]{$e['inv_qty']}[/b]</td></tr>"; }   My item names are turning up blank. Ideas? Suggestions?
  4. I think they have a big share of the cartography industry now.
  5. Curious   $mult = $r['level'] * $r['level']; $chance = min(($ir['crimexp']/$mult) * 50 + 1, 95); if(rand(1,100) < $chance) { $gain = $r['level'] * 5;   I'm curious as to how other game owners have adjusted these formulas for easier or harder busts. Is there another way to do this? Any Ideas, suggestions, input, would be greatly appreciated. Thanks
  6. Excellent point Zeggy.
  7. DOH!!!! I need new glasses! Thanks for the help Joshua.
  8. Hospital Reason when losing. I'm trying to add hospreason for when the attacker loses against a defender. I'm doing something wrong. Error Message is this: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''hospreason' = 'Lost to TestPlayer', WHERE (`userid`=1)' at line 1" Here's the code I'm trying:   $result = mysql_query("UPDATE `users` SET `money` = '".$newmoney."',`hospital` = '20','hospreason' = 'Lost to ".$attack_person['username']."', WHERE (`userid`=".$ir['userid'].")", $c) or die(mysql_error());   Having trouble figuring out what I'm doing wrong here.
  9. I've tried this out. Working on debugging. Will fix up asap. Issues: Need a check on inventory if the user has purchased a bomb. Event notifying user they have been bombed.
  10. My players are loving this mod! Thanks once again!
  11. I have figured out a way to manipulate the Stalemate feature using refresh. Just thought I'd let people know. So I think stopping refreshing is a good idea.
  12. I play your game from time to time, and know many of your players. Drop me a line if you would like Dementor. We should spark a new business relationship again. It's been a while since we chatted. Let me know if you are interested. Thanks!
  13. Another note people might want to know. Be prepared to lose your old armor table. Or deal with your players armor before installing this mod.
  14. "So you wish to merge a one click attack with the original 3 option attack ....which defeats the purpose of a one click attack :D" Actually, it remains a one click attack system with different outcomes.
  15. Try doing the sql like this: ALTER TABLE `users` ADD `equip_helmet` int(11) NOT NULL default '0', ADD `equip_boots` int(11) NOT NULL default '0', ADD `equip_breastplate` int(11) NOT NULL default '0', ADD `equip_leggings` int(11) NOT NULL default '0', ADD `equip_gloves` int(11) NOT NULL default '0',
  16. Ok, I think I got it. Find in attack.php:   if($theirhp <= 0){ // ATTACKER WINS AND UPDATES $winner = $ir['userid']; $theirhp = 0; $moneywon = floor($attack_person['money'] /10); $expwon = 100 - (25 * ($ir['level'] - $attack_person['level'])); $expwon = ($expwon < 0) ? 0 : $expwon; $newexp = $expwon + $ir['exp']; $newmoney = $ir['money'] + $moneywon; $result = mysql_query("UPDATE `users` SET `exp` = ".$newexp.", money = ".$newmoney." WHERE (`userid`=".$ir['userid'].")", $c) or die(mysql_error()); $newmoney = $attack_person['money'] - $moneywon; $result = mysql_query("UPDATE `users` SET `money` = ".$newmoney.", `hospital` = 30 WHERE (`userid`=".$attack_person['userid'].")", $c) or die(mysql_error()); event_add($attack_person['userid'], "You were hospitalized by ".$ir['username']." for 20 minutes.", $c); echo "<font color=white><center>You hospitalized " . $attack_person['username'] . ". You gain $expwon exp and stole $".$moneywon." from " . $attack_person['username'] . ".</center>"; }   And replace with:   if($theirhp <= 0){ // ATTACKER WINS AND UPDATES $winner = $ir['userid']; $theirhp = 0; $_SESSION['attackwon']=$_GET['ID']; $db->query("UPDATE users SET hp=0 WHERE userid={$_GET['ID']}"); print " [b]What do you want to do with {$odata['username']} now?[/b] <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='Torture Them' /></form> <form action='attacktake.php?ID={$_GET['ID']}' method='post'><input type='submit' value='Hurt Them' /></form> "; }   I think that's it.
  17. Hiya Hiya, I installed this on one of my games and loving the script. Thanks for the modifications. The challenge I am facing now is, merging attack outcomes with this new script. Trying to figure out how to get this old snippet of code to work right/merge with the new attack.php code. Snippet to direct to different outcomes:   if($odata['hp'] <= 0) { $odata['hp']=0; $_SESSION['attackwon']=$_GET['ID']; $db->query("UPDATE users SET hp=0 WHERE userid={$_GET['ID']}"); print " [b]What do you want to do with {$odata['username']} now?[/b] <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='Torture Them' /></form> <form action='attacktake.php?ID={$_GET['ID']}' method='post'><input type='submit' value='Hurt Them' /></form> "; }   Working on it right now, but if anyone with better skills than I would like to give it a shot. Thanks in advance!
  18. thanks Thanks sniko, zero, and zed for your help.
  19. Ok, I've added this too my hospital.php Basically it's so a user can trade 2 credits to remove 10 minutes from the hospital time.   [url='hospital.php?type=hospital']Remove 10 Minutes from Hospital time - 2 Credits[/url] if($_GET['type'] == "hospital") { if($ir['crystals'] <2) { die("You don't have enough credits!"); } else { mysql_query("UPDATE users SET crystals=crystals-2 WHERE userid=$userid",$c); mysql_query("UPDATE users SET hospital=hospital-10 WHERE userid=$userid",$c); } }   Ok, Here's my problem I am stuck on. If a user has less than 10 minutes hospital time, it puts them into a negative time. For example "You are currently in hospital for -10 minutes" Anyone know how I could fix this? Thanks in advance.  
  20. LOL HA HA HA if(($ir['userid'] != 1) && ($ir['userid'] != 2) && ($ir['userid'] != 3)){ echo 'You are not allowed in here!'; $h->endpage(); exit;} /Agon points and laughs at kcmajor
  21. Thanks Thanks.
  22. decent security thread Yet another forum thread trying to exploit security services for sale. Why not educate people on security?
  23. ffs Create a file, probably call it "footer.php" Put stuff in footer.php that you want to display. open header.php Create a table or space to put your footer near the bottom of the page. Use this code to display what is on the footer.php include "footer.php";
  24. my hospital queery this hosp query worked for me   $Hosp = mt_rand(20,100); mysql_query("UPDATE users SET hosp=hosp+$Hosp, hospreason='Hospitalized by a bomb' WHERE userid=$userid",$c);
  25. Thanks MTG
×
×
  • Create New...