SRL Archive - SRL Bugs

ItemActivated not working?


djborec

2012-02-06 10:43:03

Hello, I use it in loop so the waiting stops when item is activated but its not working for me.

edit:
Sorry its working ,just for 1st slot where are noted items its not working…

Coh3n

2012-02-06 14:08:08

Can you post the code you're using it with? It's working fine for me.

djborec

2012-02-06 19:50:26

From: Coh3n
Can you post the code you're using it with? It's working fine for me.


Here is part of script. I simply click on first item in inventory ,which are noted oak logs , then wait until item is Activated . But it never recognise that noted oak logs are selected or activeted ,so it trys to click there again and once again with mouse box and then end script.

I have changed line to
" until (GetColor(564,226)=16777215) or (EndScript); "
which simply check if there is white color at exact place and its working in that way ,so scripts is working with GetColor ,but not with ItemActivated


if not(EndScript) then
begin
SMART_DrawBox(intToBox(560, 210, 600, 240));
InvMouse(1,1);
waitT:=0;
repeat
wait(randomRange(100,150));
inc(waitT);
if ( (waitT mod 6)=0 ) then MouseBox(570,221,583,233,1);
if (waitT)>20 then EndScript:=true;
until ItemActivated(1) or (EndScript);

wait(randomRange(100,150));

Coh3n

2012-02-06 19:56:55

Oh, your item is noted! Just tested and that doesn't work for me either. I'll see what I can do.

E: Fixed in the next version.