Impulse script error

09/15/2011 08:47 pinky1#1
I am trying to make some scripts with Impulse Resurgence (Kabbot) and keep getting errors. The script works for a few minutes then stops, getting the error about the bot cannot run, an error would cause the bot to crash...

The script is this:

u,
iscol;<color code>;<x-coordinate>;<y-coordinate>,
1,2,3,4,5,6,7,
endis;l,

the same one from the TUT. for some reason it stops working.

I was also making one where my seg would heal after the other party members hp goes below a certain lvl, and that one worked. I was wondering if i could use 2 iscol commands in a loop, like the script above. i cant seem to make it work.

any advice,tips or feed back would be great, thanks
09/15/2011 16:19 0wnU#2
u,
iscol;<color code>;<x-coordinate>;<y-coordinate>,
1,2,3,4,5,6,7,
endis;l,


the above script with the correct colors should never error. If this is erroring after a certain amount of time let me know how long its taking and i will have a look through that code (tbh i dont think its the code as i havent ever had this fail)
Things to note... Is it failing on the first loop? How long has it taken to fail? what is the error message.


in regards to running two iscoll commands... if you mean somethign liek this....
Code:
u,
iscol;<color code>;<x-coordinate>;<y-coordinate>,
    u,
    iscol;<color code>;<x-coordinate>;<y-coordinate>,
        1,2,3,4,5,6,7,
    endis;l,
endis;l,
This is called nesting. This is not possible at the moment but is somethign i am looking into. However, by being a bit clever, this below would work fine with the same effect...
Code:
u,
iscol;<color code>;<x-coordinate>;<y-coordinate>,
    match;<color code>;<x-coordinate>;<y-coordinate>;7,
        1,2,3,4,5,6,7,
endis;l,
09/15/2011 23:56 pinky1#3
The error message is:
"There is an error in your script that would have crashed the bot if ran."

The script ran for about an hour before this message came up. Then any script i run gives me the same message after a few seconds. Can the scripts be run with the pot and loot bots? or do they interfere?
09/16/2011 06:15 Vaidas B#4
I think they can, try copying your script into the script editor and recolor, that might show you your problem.
09/16/2011 22:37 pinky1#5
How do i know whats wrong if i re-color it? it seems to work for a while then stop. seems kinda random. maybe its just my comp being weird.

Edit*
any script i use, on any computer i have crashes like this eventually. i have no idea why...