SRL Archive - OSR Help

Unknown declaration "scrollToItemDTM"


kaizz

2014-08-05 07:11:14

Hey guys.

I'm really new to botting with simba so i'm not sure why im getting this error on most of the scripts that im trying to use,

"Exception in Script: Unknown declaration "scrollToItemDTM" at line X, column X"

Any help would be appreciated :)

KeepBotting

2014-08-05 07:22:00

Be sure you have download and installed all the required includes for your script

theorange

2014-08-05 07:50:51

like keepbotting said, make sure all your include are up to do.

In the future when you receive this error, it means you are calling a function/method that hasn't been defined yet.

So if that method was from say the SRL include, you know that you didn't add the include files properly or need to update them.
If the function/method you are calling was from your own code that you wrote, that means you either didn't define the function, or the function isn't defined before the piece of code that is calling it.

Flight

2014-08-05 07:51:53

Which script is this?

kaizz

2014-08-05 08:34:26

There's a couple that i can list.

CatherbyCooker(1.0_1)
AlKharidCooker(2.0)
[AL]DroiFletch

Flight

2014-08-05 08:48:13

From: kaizz
There's a couple that i can list.

CatherbyCooker(1.0_1)
AlKharidCooker(2.0)
[AL]DroiFletch


Right, the scripts that run on AL. In every script you'll want to change 'scrollToItemDTM' to 'scrollToItem' and use the TItem as a parameter rather than a DTM (integer). Here's an example:

Before:

procedure doBanking();
var
Coins : TItem;
begin
if scrollToItemDTM(Coins.DTM, fPnt) then
withdrawPointEx(fPnt, 1000, ['Coins','oins']);
end;
After:

procedure doBanking();
var
Coins : TItem;
begin
if scrollToItem(Coins, fPnt) then
withdrawPointEx(fPnt, 1000, ['Coins','oins']);
end;

See the difference? Do the same in all the scripts that use the function 'scrollToItemDTM'.

kaizz

2014-08-05 09:51:13

It worked! Thank you very much!