Psycho_Coder Posted September 14, 2007 Share Posted September 14, 2007 I've searched the boards and not found these posted, so.... 1) How do I limit the number of rounds? I'm using V2 MCCODES, but if you know for V1, I can adapt. 2) Is there a way to change the experience gained from a random amount to specific percentage? Thanks Jack Quote Link to comment Share on other sites More sharing options...
dementor Posted September 14, 2007 Share Posted September 14, 2007 Re: Two questions regarding attacking lol 1. get a stalemate mod 2. fiddle round eith attack.php and u u will c be able to work out the exp gained and change it Quote Link to comment Share on other sites More sharing options...
UCC Posted September 24, 2007 Share Posted September 24, 2007 Re: Two questions regarding attacking This is not the Mc Code forum Quote Link to comment Share on other sites More sharing options...
seanybob Posted September 24, 2007 Share Posted September 24, 2007 Re: Two questions regarding attacking No worries guys :) A simple move, and the problem is fixed. Typically, anything at all to do with mccodes 1, 2, or lite has it's own little area and isn't part of the general coding area to answer your questions... 1) add a counter variable - I think it already has one in it, doesn't it display the attack number to the screen, like this: 1. Bob hit Joe for 1 damage 2. Joe tried to hit bob but missed 3. Bob hit Joe again. 4. Joe missed again. Find out what that variable in the front is, and somewhere near the top of your script add a check. if($thatNUMBERvariable > 100) { die("Stalemate."); } 2)yes. Not sure where the code is, but you would change where it says $expgain = rand(1,100) -- or something like that TO $expgain = $ir['exp_needed']/10; -- would give them 10 percent Quote Link to comment Share on other sites More sharing options...
seanybob Posted September 25, 2007 Share Posted September 25, 2007 Re: Two questions regarding attacking moved most of topic to the war room. The conversation can continue there. 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.