Jump to content
MakeWebGames

parelem

Members
  • Posts

    89
  • Joined

  • Last visited

    Never

Everything posted by parelem

  1. Re: Odd attack problem it wasn't happening to me either until a few day days ago, and it only happens to a few people, during some of their attacks.
  2. Re: Odd attack problem what's happening is NOT happening AFTER the fight, it is DURING the fight. They never make it to the end, it happens on the second or third hit. i fixed the sessions problems long ago.
  3. Re: Odd attack problem i don't have a legal version because there is a problem with the codes? that logic is amazing, i guess no one has a legal copy of the codes then. this is a real problem with the codes, I've seen it on other games as well and there's nothing in the code that would indicate WHY it happens so it isn't an easy fix.
  4. Re: Odd attack problem no, that doesn't solve the problem. users are still getting this
  5. Re: Surrender bug find list($_POST['war']) = $db->fetch_row($q); replace with $_POST['war'] = $db->fetch_single($q);
  6. Re: Odd attack problem bump
  7. Today a few of my users have told me they are running into a problem attacking. When they attack anyone, and require more than one hit, they lose all of their energy and some experience. They also get "You can only attack someone when you have 50% energy," only a few users are having this problem, while attacking works perfectly fine for everyone else. I should also note, I have no changed anything in my attack system in a few months. Any ideas?
  8. Re: Need Help Badly   ALTER TABLE `users` ADD `business` int( 11 ) NOT NULL default '0', ALTER TABLE `users` ADD `dib` int( 11 ) NOT NULL default '0';
  9. Re: Better than Quantifying   comes with, does not always mean is implemented in.
  10. Re: [FREE] Bodyguard V2.0   find if($odata['hp'] == 1) { print "This player is unconscious. [url='index.php']> Back[/url]"; $h->endpage(); $_SESSION['attacking']=0; $ir['attacking']=0; $db->query("UPDATE users SET attacking=0 WHERE userid=$userid"); exit; }   after it add   elseif($odata['protected']) { print "This users is protected by his bodyguard you are unable to get past the bodyguard"; $h->endpage(); $_SESSION['attacking']=0; $ir['attacking']=0; exit; }   and don't use the attack code Josh supplied
  11. Re: [Free] [v1] Monkey Slaves If you make it a percentage, people could lose LARGE amounts. Whereas, if you base it on number of slaves owned, it will be a relatively small amount, considering how Wookard has the mod at the moment.
  12. Re: [Free] [v1] Monkey Slaves   if ($rand=='6') { $randcash=mt_rand(1,150); $cash=($ir['cronies']*$randcash); $safecash=mysql_real_escape_string($cash); echo "Your Cronies were robbed of $$safecash!"; echo " [url='cronies.php?go=search']Try Again[/url]"; if( $safecash > $ir['money']) { $safecash = $ir['money']); } $db->query("UPDATE users SET money=money-'$safecash' WHERE userid=$userid"); $db->query("UPDATE users SET cronies_hunger=cronies_hunger-20 WHERE userid=$userid"); $h->endpage(); exit; }
  13. Re: Event ADD bump
  14. Re: Event ADD hmm...can't get it to work. any ideas, anyone?
  15. Re: Event ADD it goes in cron_hour.php
  16. Re: Event ADD i don't think the v2 OC cron works at all, but i'm not sure what's wrong with it   while($r=$db->fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } $db->query("UPDATE gangs SET gangCHOURS=gangCHOURS-1 WHERE gangCRIME>0"); $q=$db->query("SELECT g.*,oc.* FROM gangs g LEFT JOIN orgcrimes oc ON g.gangCRIME=oc.ocID WHERE g.gangCRIME > 0 AND g.gangCHOURS = 0"); while($r=$db->fetch_row($q)) { $suc=rand(0,1); if($suc) { $log=$r['ocSTARTTEXT'].$r['ocSUCCTEXT']; $muny=(int) (rand($r['ocMINMONEY'],$r['ocMAXMONEY'])); $log=str_replace(array("{muny}","'"),array($muny,"''"),$log); $db->query("UPDATE gangs SET gangMONEY=gangMONEY+$muny,gangCRIME=0 WHERE gangID={$r['gangID']}"); $db->query("INSERT INTO oclogs VALUES ('',{$r['ocID']},{$r['gangID']}, '$log', 'success', $muny, '{$r['ocNAME']}', unix_timestamp())"); $i=$db->insert_id(); $qm=$db->query("SELECT * FROM users WHERE gang={$r['gangID']}"); while($rm=$db->fetch_row($qm)) { event_add($rm['userid'],"Your Gang's Organised Crime Succeeded. Go [url='oclog.php?ID=$i']here[/url] to view the details.",$c); } } else { $log=$r['ocSTARTTEXT'].$r['ocFAILTEXT']; $muny=0; $log=str_replace(array("{muny}","'"),array($muny,"''"),$log); $db->query("UPDATE gangs SET gangCRIME=0 WHERE gangID={$r['gangID']}"); $db->query("INSERT INTO oclogs VALUES ('',{$r['ocID']},{$r['gangID']}, '$log', 'failure', $muny, '{$r['ocNAME']}', unix_timestamp())"); $i=$db->insert_id(); $qm=$db->query("SELECT * FROM users WHERE gang={$r['gangID']}"); while($rm=$db->fetch_row($qm)) { event_add($rm['userid'],"Your Gang's Organised Crime Failed. Go [url='oclog.php?ID=$i']here[/url] to view the details.",$c); } } }   $i=mysql_insert_id($c); $qm=mysql_query("SELECT * FROM users WHERE gang={$r['gangID']}",$c);   was missing the $c, i'll add it and test.
  17. Re: Event ADD bump
  18. Re: Event ADD it's coded into the cron, but it doesn't seem to work.
  19. Re: whorehouse stock v2 codes do not come with a whorehouse, there are however, various whorehouse mods you can purchase.
  20. Re: Make Money from Your Site with these tips ! I like AdSTER, they have the ads in php, so its virtually lag free
  21. Re: battletent - only one npc showing at a time this gives me an error 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 '' at line 1 Query was SELECT count(*) FROM challengesbeaten WHERE npcid= changed   $q2=$db->query("SELECT count(*) FROM challengesbeaten WHERE npcid=$v"); $times=$db->fetch_single($q2);   to   $q2=$db->query("SELECT count(*) FROM challengesbeaten WHERE npcid=$userid"); $times=$db->fetch_single($q2);   and it works
  22. Re: [mccode v2] Crystal Reserve Mod FREE VERSION [/mccode v2] exactly what's the error? is it actually giving an sql error, or is it just not updating? the only thing i can really see the problem being is that its not the right type, so you might have to do some type casting: (integer)(donatorcrystalbank*(1/10))
  23. Re: [mccode v2] Crystal Reserve Mod FREE VERSION [/mccode v2]   if you have donatorcrystalbank setup as BIGINT like recommended, adding one tenth percent interest, (donatorcrystalbank*(1/10)), will be impossible unless the user has >10 crystals, since it will do integer division.
  24. Re: FREE ADVANCED USERSONLINE MOD     $query = mysql_query("SELECT * FROM `cities` WHERE `cityid` = '".$ir["location"]."'"); $result = mysql_fetch_array($query); $location = $result["cityname"];
  25. Re: Some Body Help Me Plz that function is actually backwards, here's a working one:   function itemm_remove() { global $db,$ir,$c,$userid,$h; $q=$db->query("SELECT im.*,i.* FROM itemmarket im LEFT JOIN items i ON im.imITEM=i.itmid WHERE imID={$_GET['ID']} AND imADDER=$userid"); if(!$db->num_rows($q)) { print "Error, either this item does not exist, or you are not the owner. [url='itemmarket.php']> Back[/url]"; } $r=$db->fetch_row($q); item_add($userid, $r['imITEM'], 1); $i=($db->insert_id()) ? $db->insert_id() : 99999; $db->query("DELETE FROM itemmarket WHERE imID={$_GET['ID']}"); $db->query("INSERT INTO imremovelogs VALUES ('', {$r['imITEM']}, {$r['imADDER']}, $userid, {$r['imID']}, $i, unix_timestamp(), '{$ir['username']} removed a {$r['itmname']} from the item market.')"); print "Item removed from market! [url='itemmarket.php']> Back[/url]"; $h->endpage(); exit; }
×
×
  • Create New...