Need some help with a php calc?
The following is code for a calculator, which I can't get it to display the combat level, and can't see why?
Ideally I would like someone to throw questions to while I finish the script and others beyond this small project. But any help would be great.
The formula for the code is simple, Defence + 2 + highest level out of Attack, Strength, Magic, Ranged, Summoning.
Anyway I can't get it to display any combat level below calculate. I am not sure why?
I have not started to work on the next part which will say how many levels of each skill (listed above) till next combat level gain.
Did you write this code?
Your request is too broad. Can you post more specific portions of the code where the problem might lie?
View the calculator here http://runehints.com/combat2
Use Gaogier - to test it.
Everything works all but the levels required to level up a combat level (at the bottom after you calculated it and it has ":D" in its place.
Here is the combat formula again.
Defence + 2 + highest level out of Attack, Strength, Magic, Ranged, Summoning.
I need help working out the following formula into php.
combat level - level - 2 - def level - target level (either attack, strength, magic, ranged, summoning + 1
You do understand you are just calling those individual functions, echo combatLevel($_POST['attack'], $_POST['defence'], $_POST['strength'], $_POST['ranged'], $_POST['magic'], $_POST['summoning']); ....
i thought you wanted to add them up?
Oh i think i know what you are getting at... im a bit rusty although do you think something like this would work?
|All times are GMT +1. The time now is 07:06 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.