SRL Archive - OSR Help

Anyway to make this easier?


Riley

2013-04-04 18:05:44

I'm scripting on a private server, and it sends you to a random place as their random event so people wont use ghost mouses.

What i need the bot to do while its in the random is basically this

program new;
begin
MoveMouse (743, 186);
Wait(500);
ClickMouse (743, 186, 1);
Wait (500);
MoveMouse (714, 308);
Wait(500);
ClickMouse (714, 308, 1);
Wait(500);
MoveMouse (263, 430);
Wait(500);
ClickMouse (263, 430, 1);
end.

Which is just going to the magic tab and clicking a teleport and clicking a option. which solves that random, is there any way to make the bot tell its in the random or easier way to make this happen?

Sjoe

2013-04-04 18:16:52

screenshot of random event?

Riley

2013-04-04 18:20:59

[ATTACH=CONFIG]20516[/ATTACH]

It just sends you here, just have to teleport out.

Sjoe

2013-04-04 18:37:16


Function GreenRandom: Boolean;
begin
Result := (CountcolorTolerance(1209420, MMx1, MMy1, MMx2, MMy2, 7) > 700);
end;


So if we get more than 700 pixels of green on the minimap, then GreenRandom will return true.
(those coords probably won't work on your private server, replace them with your default ones)

U can use this to call throughout your script or something

if GreenRandom then MyGetOutOfRandomStuff;

Edit: u just want it to steal silk right? if u want I'll make the script for u. Got no script projects going on :)
PM me for skype.

Riley

2013-04-04 20:00:26

Message sent :P and no the gem stall but sorta same thing lol