Author Topic: Smelting Script [fixed]  (Read 599 times)

%1

« Last Edit: July 30, 2013, 12:52:11 PM by %1 »

change For ( to for(

%1

Tried it, still messes up on  ##%##i <= %n
I dont see why because i just declared %i lol

Post that line as it is now, then. Cause that space is the only syntax error I see on that line.

Don't edit your posts with fixed. People who actually search can't find it if you do.

Quote
Here's my script. Doesnt let me exec it in console.
Code:
function AutoSmelt(%t,%n,%m)
{
For (%i = 1; %i <= %n; %i++)
{
%t1 = getrealtime();
        For (%i = 1; %i > 1; %i--)
        {
        %t2 = getrealtime();
                if (%t2 - %t1 = %t)
                {
                lob_smeltingBarsList.SetValue(%m);
                lob_doSmelting();
                }
        }
}
}


Console Output:
Code:
unction AutoSmelt(%t,%n,%m)
{
For (%i = 1; ##%##i <= %n; %i++)
{
%t1 = getrealtime();
        For (%i = 1; %i > 1; %i--)
        {
        %t2 = getrealtime();
                if (%t2 - %t1 = %t)
                {
                lob_smeltingBarsList.SetValue(%m);
                lob_doSmelting();
                }
        }
}
}

No idea where i went wrong. Thanks in advance