Kabbot - need help with lscript

05/25/2011 13:17 0wnU#1
Hi,

I am new to botting and i have come accross a strange issue.

I have a simple script for running in a square killing mob/collecting loot/potting. My code is below :

runSqu3000.txt :
Code:
*w,1000,-w,[run north 5 seconds],
lscript;Bot;attack.txt;1,
*w,1000,-w,[run north 5 seconds],
lscript;Bot;attack.txt;1,
*w,1000,-w,[run north 5 seconds],
lscript;Bot;attack.txt;1,
*d,1000,-d,[run east 5 seconds],
lscript;Bot;attack.txt;1,
*d,1000,-d,[run east 5 seconds],
lscript;Bot;attack.txt;1,
*d,1000,-d,[run east 5 seconds],
lscript;Bot;attack.txt;1,
*s,1000,-s,[run south 5 seconds],
lscript;Bot;attack.txt;1,
*s,1000,-s,[run south 5 seconds],
lscript;Bot;attack.txt;1,
*s,1000,-s,[run south 5 seconds],
lscript;Bot;attack.txt;1,
*a,1000,-a,[run west 5 seconds],
lscript;Bot;attack.txt;1,
*a,1000,-a,[run west 5 seconds],
lscript;Bot;attack.txt;1,
*a,1000,-a,[run west 5 seconds],
lscript;Bot;attack.txt;1,
attack.txt
Code:
u, 300,iscol;2502972;690;30,
    1,75,2,75,3,75,4,75,sp,u,sp,u,
    nomatch;6052862;664;739;1,F1,
    nomatch;16744001;655;756;1,F2,
    match;723607;624;740;1,stop,
endis;l,
These work wonderfully... i click the test button and presto.. i run around killing things untill i die then the script stops.

My problem is when i call runSqu3000.txt it runs forward for 1000 attackign anything. then the script repeats. so al i ever do is run forward (w) attack, run forward attack.. it never executes the code saying run left or right.

I call runSqu3000.txt with this code :
Code:
[Attack untill dead],
lscript;Bot;runSqu3000.txt;1,
Any help would be greatly apreciated.

Question answered in the help of the script editor.

Nested lScripts are not allowed. Time for a bit of a design re-plan i think.