brackets are messed up... the ELSE applies to the second IF, not the first (as it should).
Current
if (total == MAX)
{
if (total < sum)
{
System.out.println("total == MAX and is < sum.");
}
else
{
System.out.println("total is not equal...
Summoning is .5
Prayer is .5
HP is 1
Defense is 1
(Strength + Attack) is 13/10ths
and all of them are added up and multiplied by .25
***For mages and rangers, (Strength + Attack) is replaced by either Magic or Range. Magic or Range is then worth 3/2nds of 13/10ths
You grab their stats from...
using System;
namespace Application1
{
class Program
{
static void Main(string[] args)
{
double i = 0;
double sum = 0;
for (i = 0; i < 10; i++)
{
sum = sum + i;
}...
Never used AutoIT nor saw any code for it, but if it is similar to most other languages:
While 1=1
Send (“LEFT”)
Send (“RIGHT”)
WEnd
is an endless loop because 1 will always equal 1. You would need to use a variable and increment it to get out of the loop.
$x = 1
While...
Highest of the three:
Melee = (1/4)*((13/10)*($attack+$strength)+$defense+$hp+(1/2)*$prayer+(1/2)*$summoning)
Range = (1/4)*((13/10)*(3/2)*($range)+$defense+$hp+(1/2)*$prayer+(1/2)*$summoning);
Magic = (1/4)*((13/10)*(3/2)*($magic)+$defense+$hp+(1/2)*$prayer+(1/2)*$summoning);