SRL Archive - OSR Help

Dropping problem


astoria1112000

2011-12-01 21:18:22

Can someone please confirm if ChooseOption() is working, it just right clicks for me and moves the mouse away

YoHoJo

2011-12-01 21:23:41

Yes it works.
Maybe getting new simba will help:
http://villavu.com/forum/showthread.php?t=68510
Specific DL Link: https://www.moparisthebest.com/jenkins/job/Simba_Prev/3/artifact/SimbaInstaller.i386-win32.exe

What are you entering as your string to chooseoption?

astoria1112000

2011-12-01 21:32:01

Procedure DropItem;
Var
Item: integer;
Begin
Item := DTMFromString('……………………');
GameTab(tab_Inv);
If finddtm(Item, x, y, 550, 203, 731, 464) Then
Begin
Mouse(x, y, 3, 3, False);
Wait(100 + Random(100));
ChooseOption('rop');
Wait(100 + Random(100));
End;
FreeDTM(Item);
End;

I have Simba 977

YoHoJo

2011-12-01 21:38:45

That's really odd… I just ran a script that uses chooseoption today!
One thing though to save some time instead of having an arbitrary wait before the chooseoption you can use
{*******************************************************************************
function WaitOption(S: String; Time: Integer): Boolean;
By: N1ke!
Description: Waits for an Option and selects it
*******************************************************************************}
function WaitOption(S: string; Time: Integer): Boolean;
begin
Result := WaitOptionMultiEx([S], 'all', ClickLeft, Time);
end;
instead! And just make the wait to be like 2000.

Also when you post code put it in Simba tags please :D.
No clue what the problem is :/.

E: In fact! Maybe the problem is that you are not waiting long enough, so the above procedure will actually solve your problem!

astoria1112000

2011-12-01 22:13:09

Still, It rt clicks the item wait there for 2 sec and move away, it is now clicking drop

astoria1112000

2011-12-01 22:21:41

Still need help