trips
2015-05-20 19:05:45
Hello,
Could someone help me out on my script?
I have the code:
What it does is climb the ladders in the sara/zammy side of the respawn base at castle wars. What I want to do is add a function to my script where it determines if I have died so it can go back up the ladder and repeat. ATM I just have it as a procedure in my script that loops.
I need to make a function like function inRespawn(): or something and outRespawn(): but I don't really know how. I could provide my script if needed.
Could someone help me out on my script?
I have the code:
procedure climbLadders();
var
x, y, i: integer;
begin
if not isLoggedIn() then
exit;
minimap.setAngle(Random(360));
wait(randomRange(2000, 3000));
if mainscreen.findObject(x, y, 4411735, 4, colorSetting(2, 0.16, 0.28), mainscreen.playerPoint, 50, 30, 50, ['adder'], MOUSE_LEFT) then //sara ladder
exit()
else mainscreen.findObject(x, y, 3033169, 6, colorSetting(2, 0.11, 0.97), mainscreen.playerPoint, 50, 50, 10, ['imb', 'adder'], MOUSE_LEFT); //zammy ladder
end;What it does is climb the ladders in the sara/zammy side of the respawn base at castle wars. What I want to do is add a function to my script where it determines if I have died so it can go back up the ladder and repeat. ATM I just have it as a procedure in my script that loops.
I need to make a function like function inRespawn(): or something and outRespawn(): but I don't really know how. I could provide my script if needed.