PDA

View Full Version : Help with SS script



stjimmy4747
05-14-2013, 05:23 PM
okay im trying to make a scipt in the server SoulSplit that cuts magic trees south of seers and banks the logs and returns. Im very new to scripting and with the help of a few guides i have managed to get it to click the magic trees and cut them untill the inv is full but i have to manually bank, i was wondering if you guys could help me add walking to the bank and banking then returning, also if i could get some advice on whether there is anything wrong with what i have done so far it would be great but like i said i expect a lot of errors as i am really new.Also if anyone could show how to make it repeat untill the inventory is full that would be cool too, atm i have to stop it bank etc.

program ClickObject;
{$i srl/srl.simba}
Procedure FindObjectTPA;
var
tmpCTS, l, r:Integer;
ObjectTPA:TPointArray;
begin
MouseSpeed:=15;
tmpCTS := GetToleranceSpeed;
SetColorToleranceSpeed(2);
SetToleranceSpeed2Modifiers(0.00, 0.00);
if FindColorsTolerance(ObjectTPA, 11335928, 8, 25, 518, 359, 30) then
begin
SetColorToleranceSpeed(tmpCTS);
SetToleranceSpeed2Modifiers(0.02, 0.02);
L := High(ObjectTPA);
mmouse((ObjectTPA[r].x), (ObjectTPA[r].y), 2, 2);
wait(randomrange(100, 150));
clickmouse2(mouse_left);
Writeln('We found the Object');
wait(randomrange(10000, 15500));
end;
Writeln('We did not find the object');
repeat
FindObjectTPA;
until(false)
end;
begin
FindObjectTPA;
end.

Kerk
05-18-2013, 02:06 AM
Easiest way to do so is after your inventory is full, draynor teleport,bank,north nez teleport, click far east of minimap