Syntax
2012-05-29 08:35:01
if FindObj(x, y,'use', 3359297, 5) then
Mouse(x, y, 2, 2, right);
ChooseOption('rop');
If this doesn't work can you guys give me a suggestion?
Thanks.
Peter
2012-05-29 08:56:06
Why not simply test it? Fill your invent with the item in question, and run that dropping technique, if it drops, then its successful! However you would probably have add a counter, otherwise by the look of that, it would be dropping whenever that item enters the invent.
Syntax
2012-05-29 09:09:02
From: Peter
Why not simply test it? Fill your invent with the item in question, and run that dropping technique, if it drops, then its successful! However you would probably have add a counter, otherwise by the look of that, it would be dropping whenever that item enters the invent.
Tried but won't right click for some reason
Parameter for Mouse is wrong, try Mouse(x,y,2,2,false);
[S]paz
2012-05-29 09:14:45
Add some writeln's in there to know if it doesn't work, what path it takes. I always do that when I can't get something working or don't follow the logic.
Syntax
2012-05-29 09:22:47
From: [S]paz
Add some writeln's in there to know if it doesn't work, what path it takes. I always do that when I can't get something working or don't follow the logic.
Hi mate, i thought this might work:
begin;
DropAll;
end;
does nothing though just stalls?
[S]paz
2012-05-29 09:25:05
Firstly, are you sure your script is running right. Secondly, are you sure DropAll still exists ( sorry been away form srl for 3 years, a lot has changed).
Harry
2012-05-29 09:27:19
Learn to properly use begin/ends. The way you're doing it, it will ALWAYS run ChooseOption('rop');, even if the FindObj failed.
Also check Inventory.simba, FindObj is terrible, especially for objects that aren't on the mainscreen.
Consider WaitOption over ChooseOption. They're better failsafed in general.
Syntax
2012-05-29 09:39:46
From: Harry
Learn to properly use begin/ends. The way you're doing it, it will ALWAYS run ChooseOption('rop');, even if the FindObj failed.
Also check Inventory.simba, FindObj is terrible, especially for objects that aren't on the mainscreen.
This is after all my first attempt at scripting. Thanks for the um, feedback though.
Syntax
2012-05-29 09:42:44
From: Er1k
Consider WaitOption over ChooseOption. They're better failsafed in general.
Thanks for the help buddy :) Will do so in the future.