ignite Posted November 20, 2007 Share Posted November 20, 2007 Could a mod please delete topic. Quote Link to comment Share on other sites More sharing options...
ignite Posted November 21, 2007 Author Share Posted November 21, 2007 Re: Strange attacking problem Bump Quote Link to comment Share on other sites More sharing options...
Godhand Posted November 21, 2007 Share Posted November 21, 2007 Re: Strange attacking problem Hm... Why not try attacking to find out the error output? That will help A LOT more. Quote Link to comment Share on other sites More sharing options...
ignite Posted November 22, 2007 Author Share Posted November 22, 2007 Re: Strange attacking problem I have and i said what the error was...just because theres no mysql error that doesn't mean thats it's working corrcetly. Quote Link to comment Share on other sites More sharing options...
Godhand Posted November 23, 2007 Share Posted November 23, 2007 Re: Strange attacking problem You don't understand what I meant. I was meaning you could show the parts in question (near it also) so it could make it a little easier. Quote Link to comment Share on other sites More sharing options...
ignite Posted November 24, 2007 Author Share Posted November 24, 2007 Re: Strange attacking problem All i get is you lost all your exp for running from the fight. Quote Link to comment Share on other sites More sharing options...
Jesse60905 Posted November 24, 2007 Share Posted November 24, 2007 Re: Strange attacking problem I had this exact same problem 2 days ago. Here is how to fix: HEADER.PHP FIND LINE 39: if($dosessh && $_SESSION['attacking']) REPLACE WITH: if($dosessh && $_SESSION['attacking'] && $ir['attacking']) I am 100% sure it works. Quote Link to comment Share on other sites More sharing options...
ignite Posted November 24, 2007 Author Share Posted November 24, 2007 Re: Strange attacking problem Cheers works now thanks very much +1. If you run from the fight you don't lose any exp low. Would you happen to know whyt the max damage delt is always one no matter what the users stats are Oh yer and it doesn't say the weapon name in the step so its "using your you hit..." Quote Link to comment Share on other sites More sharing options...
Godhand Posted November 25, 2007 Share Posted November 25, 2007 Re: Strange attacking problem Armor and look for maxdaamge and mindamage in the formula. (attack.php) SHOULD be either 4 or 8 been a while since I customized my attack.php. Quote Link to comment Share on other sites More sharing options...
ignite Posted November 25, 2007 Author Share Posted November 25, 2007 Re: Strange attacking problem (($r1['damage']*$youdata['strength']/$odata['guard'])*(rand(8000000,1200000)/10000)); $hitratio=min(50*$ir['agility']/$odata['agility'],95); if($userid==1) { $hitratio=100; } if(rand(1,100) <= $hitratio) { $q3=mysql_query("SELECT a.Defence FROM inventory iv LEFT JOIN items i ON iv.inv_itemid = i.itmid LEFT JOIN armour a ON i.itmid=a.item_ID WHERE i.itmtype=7 AND iv.inv_userid={$_GET['ID']} ORDER BY rand()", $c); if(mysql_num_rows($q3)) { $mydamage-=mysql_result($q3,0,0); } if($mydamage < 1) { $mydamage=1; } Well this is what iv'e got ill edit and see what happens. I think that the damge delt is always less than one so the formula just rounds it up to 1 Quote Link to comment Share on other sites More sharing options...
Godhand Posted November 26, 2007 Share Posted November 26, 2007 Re: Strange attacking problem I know I customized my damage formula because I didn't like some of it. Quote Link to comment Share on other sites More sharing options...
ignite Posted November 26, 2007 Author Share Posted November 26, 2007 Re: Strange attacking problem Can you post it ? Or help me sort mine ? Quote Link to comment Share on other sites More sharing options...
Godhand Posted November 28, 2007 Share Posted November 28, 2007 Re: Strange attacking problem I'd say first compare your equipment and number crunching with the armor your enemy is using. Also another thing to consider is that you can set min. damage above that. Just make sure to change if($mydamage < 1) { $mydamage=1; } into something like if($mydamage < 50) { $mydamage=50; } . Also where your looking at for damage configuration is (($r1['damage']*$youdata['strength']/$odata['guard'])*(rand(8000000,1200000)/10000)); which you CAN change. But if you want to make guard worth the same as strength for gym training change that into (($r1['damage']*$youdata['strength']-$odata['guard'])*(rand(8000000,1200000)/10000)); This will make similar levels be more closely related instead of divided by. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.