SRL Archive - RS3 Help

I keep getting banned after a few hours.


lanadekat

2014-12-20 15:36:56

Fresh acc ( I use another bot to lvl runecrafting and GAO for some combat lvl's ) and still I keep getting banned.
I edited the script a few times, added random things, but still got banned.

anyone know anything I can do?
It messes up sometimes ( like walking to the altar with empty inventory) , but not to mutch. Most my scripts mess up like that when they're not finished but none of them had any bans yet …
Do breaks help a lot? Since I never used breaks but never had any frequent bans like this.

here's my script:

program Nats;
{$DEFINE SMART}
{$I SRL-6/SRL.simba}
{$I SPS/lib/SPS-RS3.Simba}

const

MY_LOGINNAME = '';
MY_PASSWORD = '';
WORLD = 1;

RUINS_COLOR = 5044644;
RUINS_TOL = 15;
RUINS_SAT = 2.96;
RUINS_HUE = 0.10;

ALTAR_COLOR = 5656147;
ALTAR_TOL = 1;
ALTAR_SAT = 1.19;
ALTAR_HUE = 2.09;
//290 67

var

PBANK := [Point(188, 125), Point(194, 143), Point(206, 165), Point(201, 178), Point(195, 200), Point(195, 218), Point(182, 230), Point(164, 228)];
PALTAR := [Point(137, 107), Point(148, 118), Point(163, 134), Point(177, 148), Point(195, 174), Point(212, 192), Point(225, 207), Point(248, 227), Point(263, 244), Point(280, 260), Point(283, 274), Point(284, 295), Point(284, 321), Point(292, 338), Point(311, 358), Point(333, 382), Point(354, 401), Point(366, 412), Point(382, 424), Point(396, 438), Point(411, 454), Point(427, 468), Point(441, 500)];
PALTAR2 := [Point(135, 109), Point(152, 123), Point(183, 148), Point(208, 172), Point(239, 214), Point(286, 246), Point(324, 268), Point(339, 288), Point(358, 319), Point(380, 367), Point(411, 418), Point(429, 460), Point(442, 498)];
NATMAP, BANKMAP: TSPSArea;


procedure declarePlayers;
begin
WriteLn('Declaring players');
setLength(players, 1);
with players[0] do
begin
loginName := MY_LOGINNAME;
password := MY_PASSWORD;
bankPin := '';
world := WORLD;
isActive := true;
isMember := true;
end
currentPlayer := 0;
end;

procedure logUsIn;
begin
WriteLn('Logging in');
if not isLoggedIn then
begin
players[currentPlayer].login();
exitTreasure();
minimap.clickCompass();
mainscreen.setangle(MS_ANGLE_HIGH);
mainscreen.setZoom(true);
TabBackpack.open();
exitTreasure();
end;
end;

procedure TeleAntiban;
var
i: integer;

begin
i := random(120);
if i < 60 then
begin
case i of
1..4: boredHuman(false);
19..21: mouseMovingObject();
22..34: sleepAndMoveMouse(randomRange(100,6000));
35..45: begin
mouseOffClient(Random(4));
Wait(RandomRange(2000,2100));
end;
46..53: Wait(RandomRange(1500,1600));
54..60: pickUpMouse();
end;
end;
wait(12000);
wait(randomRange(250, 2000));
end;

procedure TeleAltar;
begin
lodestoneScreen.teleportTo(LOCATION_KARAMJA);
wait(randomRange(750, 1000));
if lodestonescreen.isopen() then TeleAltar();
end;

procedure TeleBank;
begin
lodestoneScreen.teleportTo(LOCATION_TAVERLEY);
wait(randomRange(500, 750));
if lodestonescreen.isopen() then TeleBank();
end;

procedure WalkAltar;
var
I : integer;
begin
WriteLn('walking to the nature altar');
I := Random(1);
Case i of
0:
begin
if NATMAP.walkPath(PALTAR) then
end;
1:
begin
if NATMAP.walkPath(PALTAR2) then
end;
end;
minimap.waitPlayerMoving()
end;

procedure WalkBank;
begin
WriteLn('walking to the nature altar');
if BANKMAP.walkPath(PBANK) then
minimap.waitPlayerMoving()
end;

procedure Bank();
var
I : integer;
begin
bankScreen.quickDeposit(QUICK_DEPOSIT_INVENTORY);
bankScreen.withdraw(1, WITHDRAW_AMOUNT_ALL, ['']);
bankScreen.close;
tabBackpack.waitWhileLocked;
end;

procedure OpenBank;
begin
bankScreen.open(BANK_NPC_BLUE);
wait(randomRange(500, 1000));
if bankScreen.isOpen then
Bank()
else
WriteLn('bank not opened')
end;

procedure EnterAltar;
var
x, y, i: integer;
TPA: TPointArray;
ATPA: T2DPointArray;
begin
wait(1500);
findColorsSpiralTolerance(x, y, TPA, RUINS_COLOR, mainScreen.getBounds(), 20, colorSetting(RUINS_TOL, RUINS_SAT, RUINS_HUE));

ATPA := TPA.toATPA(50, 50);
ATPA.filterBetween(9, 10);
ATPA.sortFromMidPoint(mainscreen.playerPoint);


for i := 0 to high(ATPA) do


mouse(middleTPA(ATPA[i]).x+random(-10,10),middleTPA(ATPA[i]).y+random(-10,10), MOUSE_MOVE);
if isMouseOverText(['Enter','nter'], 500) then
fastClick(MOUSE_LEFT);
wait(randomRange(3000, 4000));
end;

procedure MakeRunes;
var
x, y, i: integer;
TPA: TPointArray;
ATPA: T2DPointArray;
begin
wait(3000);
ClickMouse(292+random(-40,40), 21+random(-10,10), mouse_LEFT); // just a normal click here till I fix the findcolorspiraltolerance
wait(randomRange(4000, 6000));
end;

begin
addOnTerminate('scriptTerminate');
ClearDebug();
smartPlugins := ['d3d9.dll'];
smartEnableDrawing := false;
SetupSRL();
DisableSRLDebug := True;
NATMAP.Setup('Natmap', 'Runescape_Surface\', 8, 900.0, 0.40);
BANKMAP.setup('Bankmap', 'Runescape_Surface\');
repeat
if (not isLoggedIn()) then
begin
declarePlayers;
logUsIn;
end
TeleAltar;
TeleAntiban;
WalkAltar;
EnterAltar;
MakeRunes;
TeleBank;
TeleAntiban;
WalkBank;
OpenBank;
Bank;
Until(false);
End;

NKN

2014-12-20 15:47:49

Password.

Again.

Brandon

2014-12-20 15:49:13

@lanadekat; remove your username and password.

Clarity

2014-12-20 15:50:53

Also using ClickMouse without any mouse movement is pretty botlike.

lanadekat

2014-12-20 15:52:10

From: Brandon
@lanadekat; remove your username and password.


banned acc :p
I really think I have some attention problems since I can do something and a few second later don't know what I was doing … And sometimes it's something important I should remember …

lanadekat

2014-12-20 15:53:50

From: Clarity
Also using ClickMouse without any mouse movement is pretty botlike.


I'll try to replace that with some color detection since that's more stable. and probably also less bot like.

Camel

2014-12-20 15:54:27

Just on a scroll through, I found this.

I := Random(1);


You use this for the path deciding. Random(1) will always return 0. Do Random(2);

As for the bans, try adding in some mouse movement. Maybe shake the mouse around while its walking or waiting for the lodestone stuff.

Also, as Clarity said, if ClickMouse just teleports your mouse to the location, that would be the cause. (at least I think)

lanadekat

2014-12-20 15:58:16

From: Camel
Just on a scroll through, I found this.

I := Random(1);


You use this for the path deciding. Random(1) will always return 0. Do Random(2);



As for the bans, try adding in some mouse movement. Maybe shake the mouse around while its walking or waiting for the lodestone stuff.


The second path is currently broken I need to make the map bigger for that so I made it 1 instead of removing the code and adding it again later.
How do I let it do something while walking? Or do I have to let sps first walk to coordinate x,x then random mouse then coordinate x,x random mouse , … ?

ineedbot

2014-12-20 16:04:11

Also, it could be possible that your Jagex Cache is flagged or IP…Try deleting/changing these.

However I am botting just fine with a VPN on a VMWare using iKaramjaFisher on one account that farmed about 50m worth of fish with no ban so far.

lanadekat

2014-12-20 16:06:02

From: ineedbot
Also, it could be possible that your Jagex Cache is flagged or IP…Try deleting/changing these.


I doubt that since running another reflection bot for 6 hours doesn't get me banned. But running simba does. But i'll try that. Thanks for your help!

lanadekat

2014-12-20 16:11:20

From: ineedbot
Also, it could be possible that your Jagex Cache is flagged or IP…Try deleting/changing these.

However I am botting just fine with a VPN on a VMWare using iKaramjaFisher on one account that farmed about 50m worth of fish with no ban so far.


yea for me other scripts are also running fine but just not this one seems like they're watching nature runecrafting. Since prices are also rising.

Lipcot

2014-12-20 16:24:58

From: lanadekat
yea for me other scripts are also running fine but just not this one seems like they're watching nature runecrafting. Since prices are also rising.


try to avoid double posting please :p

OT: first, why dont you bank in edgeville? bank is closer to the lodestone. Second, are you taking breaks? how often does your antiban get called? i've found that the most effective antiban is getting your mouse offscreen, and maybe sleepandmove. Try doing your antiban in moments a human would, while waiting lodestone teleport, while entering the altar, while running.

i have a nature graahk runnner that's doing around 8-10 hours a day and have experienced 0 bans. I've seen your bots running around i believe, and they look really bot like, you are not even dressing them (if the ones i've seen are yours :p). try levelling their combat up, putting some clothes, maybe a staff.

lanadekat

2014-12-20 16:33:54

From: undorak7
try to avoid double posting please :p

OT: first, why dont you bank in edgeville? bank is closer to the lodestone. Second, are you taking breaks? how often does your antiban get called? i've found that the most effective antiban is getting your mouse offscreen, and maybe sleepandmove. Try doing your antiban in moments a human would, while waiting lodestone teleport, while entering the altar, while running.

i have a nature graahk runnner that's doing around 8-10 hours a day and have experienced 0 bans. I've seen your bots running around i believe, and they look really bot like, you are not even dressing them (if the ones i've seen are yours :p). try levelling their combat up, putting some clothes, maybe a staff.


indeed they could be mine lol, But I only ran a few acc's so far for +-6 hours each. I'll try to look into that. You're post gave me hope since it's the first time I'm having problems with bans and I wasn't sure if I was able to do it. I'm currently learning Dtm's to make sure it's in the altar when trying to create runes since sometimes it doesn't enter the altar.
About the bank: I thought taverley was the closest lol, but it doesn't matter that mutch I can change it later.

Justin

2014-12-20 16:41:39

"I use another bot to lvl runecrafting"

Maybe that bot is flagging you?

Lipcot

2014-12-20 18:43:49

From: lanadekat
indeed they could be mine lol, But I only ran a few acc's so far for +-6 hours each. I'll try to look into that. You're post gave me hope since it's the first time I'm having problems with bans and I wasn't sure if I was able to do it. I'm currently learning Dtm's to make sure it's in the altar when trying to create runes since sometimes it doesn't enter the altar.
About the bank: I thought taverley was the closest lol, but it doesn't matter that mutch I can change it later.


From: Justin
"I use another bot to lvl runecrafting"

Maybe that bot is flagging you?


what justin says is a pretty good possibillity, specially if you are using powerban or epic**it , or any of those bad injections/reflection bots!

lanadekat

2014-12-20 19:52:16

From: undorak7
what justin says is a pretty good possibillity, specially if you are using powerban or epic**it , or any of those bad injections/reflection bots!

@justin:
Yes indeed that's why I posted it.
I'm gonna try to lvl it myself on a new acc and look what's the outcome.

@undorak7
But yea I used 2 different bots a very popular one ( not to mention the name ) and one that only has like 50 users online most of the time( and uses reflection ). So I doubt that it's the problem but I will still try it though.

oftopic: our brain is great at "assuming" things if you think that square in the distance ( that you don't see clearly ) is a cirkel you're brain will make it a cirkel. It's just amazing how our brain fills in missing information by information is assumes to be real. just the same with the blind spot in our eyes

Camel

2014-12-20 20:03:42

From: lanadekat
How do I let it do something while walking?


You would have to OverRide the WalkPath function. (or walktoPos/blindwalk/whatever you're using). Then modify the overloaded function to move the mouse or check skills while walking.

I do this in my Air crafting script, if you're interested in doing this.

Justin

2014-12-20 23:54:36

From: lanadekat
@justin:
Yes indeed that's why I posted it.
I'm gonna try to lvl it myself on a new acc and look what's the outcome.

@undorak7
But yea I used 2 different bots a very popular one ( not to mention the name ) and one that only has like 50 users online most of the time( and uses reflection ). So I doubt that it's the problem but I will still try it though.

oftopic: our brain is great at "assuming" things if you think that square in the distance ( that you don't see clearly ) is a cirkel you're brain will make it a cirkel. It's just amazing how our brain fills in missing information by information is assumes to be real. just the same with the blind spot in our eyes


If you used PowerBot\RSBot for runecrafting, Jagex said they have "100% detection rate" for that bot

Lipcot

2014-12-20 23:56:33

From: lanadekat
…


just to let you know, to mention someone you must do the following.

1. place this: @
2. Username
3. place this: ";"

so it would be @undorak7;

akarigar

2014-12-21 00:14:46

From: Camel
You would have to OverRide the WalkPath function. (or walktoPos/blindwalk/whatever you're using). Then modify the overloaded function to move the mouse or check skills while walking.

I do this in my Air crafting script, if you're interested in doing this.


This isn't necessary. Since SPS' functions call TRSMinimap.waitPlayerMoving which calls SRL_Events[EVENT_ANTIBAN](), all you need to do is:


procedure myAntiBan();
begin
...
end;

begin
SRL_Events[EVENT_ANTIBAN] = @myAntiBan;
end.

cosmasjdz

2014-12-21 04:00:31

From: lanadekat
Fresh acc ( I use another bot to lvl runecrafting and GAO for some combat lvl's ) and still I keep getting banned.
I edited the script a few times, added random things, but still got banned.

anyone know anything I can do?
It messes up sometimes ( like walking to the altar with empty inventory) , but not to mutch. Most my scripts mess up like that when they're not finished but none of them had any bans yet …
Do breaks help a lot? Since I never used breaks but never had any frequent bans like this.

here's my script:

program Nats;
{$DEFINE SMART}
{$I SRL-6/SRL.simba}
{$I SPS/lib/SPS-RS3.Simba}

const

MY_LOGINNAME = '';
MY_PASSWORD = '';
WORLD = 1;

RUINS_COLOR = 5044644;
RUINS_TOL = 15;
RUINS_SAT = 2.96;
RUINS_HUE = 0.10;

ALTAR_COLOR = 5656147;
ALTAR_TOL = 1;
ALTAR_SAT = 1.19;
ALTAR_HUE = 2.09;
//290 67

var

PBANK := [Point(188, 125), Point(194, 143), Point(206, 165), Point(201, 178), Point(195, 200), Point(195, 218), Point(182, 230), Point(164, 228)];
PALTAR := [Point(137, 107), Point(148, 118), Point(163, 134), Point(177, 148), Point(195, 174), Point(212, 192), Point(225, 207), Point(248, 227), Point(263, 244), Point(280, 260), Point(283, 274), Point(284, 295), Point(284, 321), Point(292, 338), Point(311, 358), Point(333, 382), Point(354, 401), Point(366, 412), Point(382, 424), Point(396, 438), Point(411, 454), Point(427, 468), Point(441, 500)];
PALTAR2 := [Point(135, 109), Point(152, 123), Point(183, 148), Point(208, 172), Point(239, 214), Point(286, 246), Point(324, 268), Point(339, 288), Point(358, 319), Point(380, 367), Point(411, 418), Point(429, 460), Point(442, 498)];
NATMAP, BANKMAP: TSPSArea;


procedure declarePlayers;
begin
WriteLn('Declaring players');
setLength(players, 1);
with players[0] do
begin
loginName := MY_LOGINNAME;
password := MY_PASSWORD;
bankPin := '';
world := WORLD;
isActive := true;
isMember := true;
end
currentPlayer := 0;
end;

procedure logUsIn;
begin
WriteLn('Logging in');
if not isLoggedIn then
begin
players[currentPlayer].login();
exitTreasure();
minimap.clickCompass();
mainscreen.setangle(MS_ANGLE_HIGH);
mainscreen.setZoom(true);
TabBackpack.open();
exitTreasure();
end;
end;

procedure TeleAntiban;
var
i: integer;

begin
i := random(120);
if i < 60 then
begin
case i of
1..4: boredHuman(false);
19..21: mouseMovingObject();
22..34: sleepAndMoveMouse(randomRange(100,6000));
35..45: begin
mouseOffClient(Random(4));
Wait(RandomRange(2000,2100));
end;
46..53: Wait(RandomRange(1500,1600));
54..60: pickUpMouse();
end;
end;
wait(12000);
wait(randomRange(250, 2000));
end;

procedure TeleAltar;
begin
lodestoneScreen.teleportTo(LOCATION_KARAMJA);
wait(randomRange(750, 1000));
if lodestonescreen.isopen() then TeleAltar();
end;

procedure TeleBank;
begin
lodestoneScreen.teleportTo(LOCATION_TAVERLEY);
wait(randomRange(500, 750));
if lodestonescreen.isopen() then TeleBank();
end;

procedure WalkAltar;
var
I : integer;
begin
WriteLn('walking to the nature altar');
I := Random(1);
Case i of
0:
begin
if NATMAP.walkPath(PALTAR) then
end;
1:
begin
if NATMAP.walkPath(PALTAR2) then
end;
end;
minimap.waitPlayerMoving()
end;

procedure WalkBank;
begin
WriteLn('walking to the nature altar');
if BANKMAP.walkPath(PBANK) then
minimap.waitPlayerMoving()
end;

procedure Bank();
var
I : integer;
begin
bankScreen.quickDeposit(QUICK_DEPOSIT_INVENTORY);
bankScreen.withdraw(1, WITHDRAW_AMOUNT_ALL, ['']);
bankScreen.close;
tabBackpack.waitWhileLocked;
end;

procedure OpenBank;
begin
bankScreen.open(BANK_NPC_BLUE);
wait(randomRange(500, 1000));
if bankScreen.isOpen then
Bank()
else
WriteLn('bank not opened')
end;

procedure EnterAltar;
var
x, y, i: integer;
TPA: TPointArray;
ATPA: T2DPointArray;
begin
wait(1500);
findColorsSpiralTolerance(x, y, TPA, RUINS_COLOR, mainScreen.getBounds(), 20, colorSetting(RUINS_TOL, RUINS_SAT, RUINS_HUE));

ATPA := TPA.toATPA(50, 50);
ATPA.filterBetween(9, 10);
ATPA.sortFromMidPoint(mainscreen.playerPoint);


for i := 0 to high(ATPA) do


mouse(middleTPA(ATPA[i]).x+random(-10,10),middleTPA(ATPA[i]).y+random(-10,10), MOUSE_MOVE);
if isMouseOverText(['Enter','nter'], 500) then
fastClick(MOUSE_LEFT);
wait(randomRange(3000, 4000));
end;

procedure MakeRunes;
var
x, y, i: integer;
TPA: TPointArray;
ATPA: T2DPointArray;
begin
wait(3000);
ClickMouse(292+random(-40,40), 21+random(-10,10), mouse_LEFT); // just a normal click here till I fix the findcolorspiraltolerance
wait(randomRange(4000, 6000));
end;

begin
addOnTerminate('scriptTerminate');
ClearDebug();
smartPlugins := ['d3d9.dll'];
smartEnableDrawing := false;
SetupSRL();
DisableSRLDebug := True;
NATMAP.Setup('Natmap', 'Runescape_Surface\', 8, 900.0, 0.40);
BANKMAP.setup('Bankmap', 'Runescape_Surface\');
repeat
if (not isLoggedIn()) then
begin
declarePlayers;
logUsIn;
end
TeleAltar;
TeleAntiban;
WalkAltar;
EnterAltar;
MakeRunes;
TeleBank;
TeleAntiban;
WalkBank;
OpenBank;
Bank;
Until(false);
End;


Waits…….oh my… wait(3000), wait random(4000,6000). Its nothing more bot like they just use most simple statistical tools to get you banned. They compare average deviation diferences between waits and since random will be like very i mean very extremely even distributed its automatic ban. I can giv you research paper i done for school abour random waits. i mean 100 times is more than enough to say for sure you botted. human doesnt do that, their distribution diferences arent even. Use like gaussrangeint() or something. They way better. Also 1 walkpath doesnt help either.


Actually this paper was i needed to do 100 measurements on some part using different tools. But what? 100? i am more clever than that, i just used random() :D And it Didnt passed because of step histrogram haha…..Teacher said its obvious use of random() :D

Harrier

2014-12-21 05:12:03

From: undorak7
just to let you know, to mention someone you must do the following.

1. place this: @
2. Username
3. place this: ";"

so it would be @undorak7;

Only SRL mems can do that lol For us peasants we do [Mention.][./mention]

Solar

2014-12-21 07:19:35

From: Harrier
Only SRL mems can do that lol For us peasants we do [Mention.][./mention]


Pretty sure we can do that too @Harrier;

Harrier

2014-12-21 07:23:45

From: Solar
Pretty sure we can do that too @Harrier;

Hmmm, I swear I read that somewhere that it was SRL mem only for that O.o Guess I'm thinking about another forum

fastler

2014-12-21 09:06:08

http://docs.villavu.com/simba/scriptref/mouseandkeyboard.html#clickmouse

Yeah, I'd highly recommend changing ClickMouse. It is sufficient for flash games, but for rs that's a big red flag afaik.

lanadekat

2014-12-21 09:57:14

From: akarigar
This isn't necessary. Since SPS' functions call TRSMinimap.waitPlayerMoving which calls SRL_Events[EVENT_ANTIBAN](), all you need to do is:


procedure myAntiBan();
begin
...
end;

begin
SRL_Events[EVENT_ANTIBAN] = @myAntiBan;
end.

thanks that looks a lot easier!

From: Justin
If you used PowerBot\RSBot for runecrafting, Jagex said they have "100% detection rate" for that bot

yup, some people even got a "you used rsbot" somewhere I don't really know where.
Powerbot's answer to this was that they just call rsbot cus 90% of botters use it.

From: fastler
http://docs.villavu.com/simba/scriptref/mouseandkeyboard.html#clickmouse

Yeah, I'd highly recommend changing ClickMouse. It is sufficient for flash games, but for rs that's a big red flag afaik.


That wasn't a permanent solution but I'll change that asap since it really seems botlike

@Camel; sry wasn't able to add the quote anymore:

I got that I think, latest version is called aircrafter v4.4 right? And the walking is pretty confusing xD

From: cosmasjdz
Waits…….oh my… wait(3000), wait random(4000,6000). Its nothing more bot like they just use most simple statistical tools to get you banned. They compare average deviation diferences between waits and since random will be like very i mean very extremely even distributed its automatic ban. I can giv you research paper i done for school abour random waits. i mean 100 times is more than enough to say for sure you botted. human doesnt do that, their distribution diferences arent even. Use like gaussrangeint() or something. They way better. Also 1 walkpath doesnt help either.


Actually this paper was i needed to do 100 measurements on some part using different tools. But what? 100? i am more clever than that, i just used random() :D And it Didnt passed because of step histrogram haha…..Teacher said its obvious use of random() :D


what's the real difference between gaussrangeint() and randomrange()?
I have seen been used in other scripts but I don't get the difference.

cosmasjdz

2014-12-21 12:13:36

From: lanadekat
thanks that looks a lot easier!


yup, some people even got a "you used rsbot" somewhere I don't really know where.
Powerbot's answer to this was that they just call rsbot cus 90% of botters use it.



That wasn't a permanent solution but I'll change that asap since it really seems botlike

@Camel; sry wasn't able to add the quote anymore:

I got that I think, latest version is called aircrafter v4.4 right? And the walking is pretty confusing xD



what's the real difference between gaussrangeint() and randomrange()?
I have seen been used in other scripts but I don't get the difference.


Gaus range will give you big human like cluster like for example random between 1 and 2 would be distributed evenly but gauss range would be like 80 percent in the range of 1,3 to 1,5 so no botlike even distribution.

Lipcot

2014-12-21 14:06:36

From: Harrier
Hmmm, I swear I read that somewhere that it was SRL mem only for that O.o Guess I'm thinking about another forum


:p everyone can do it! its free!


lanadekat

2014-12-22 07:58:01

From: akarigar
This isn't necessary. Since SPS' functions call TRSMinimap.waitPlayerMoving which calls SRL_Events[EVENT_ANTIBAN](), all you need to do is:


procedure myAntiBan();
begin
...
end;

begin
SRL_Events[EVENT_ANTIBAN] = @myAntiBan;
end.


I tried this and I get an error:


Error: Operator "cmp_Equal" not compatible with types "Unknown" and "procedure()" at line 223
Compiling failed.

it's setup like this:


procedure WalkingAntiban; // still working on this
var
i: integer;
begin
i := random (1000);
begin
case i of
1..50: hoverSkill(SKILL_RUNECRAFTING);
50..100: smallRandomMouse();
100..200: pickUpMouse();
200..500: sleepAndMoveMouse(500 + gaussrangeint(2000)); // not sure if gassrangeint works here cus it probably needs 2 numbers ...
end;
end;
end;

begin
//basic stuff like setupSRL(); and stuff like that here
SRL_Events[EVENT_ANTIBAN] = @WalkingAntiban; // this is the error line
// repeat mainloop
end;

bonsai

2014-12-22 09:14:50

From: lanadekat


SRL_Events[EVENT_ANTIBAN] = @WalkingAntiban; // this is the error line


It's missing the ':' in the assignment…


SRL_Events[EVENT_ANTIBAN] := @WalkingAntiban; // this is the error line