View Full Version : How do i make scar find and use items in inventory?
deviney
06-14-2007, 09:48 PM
Hi all
Its me again!!!
Hi i just came up with one of the best scripts to be released and guess what its so simple (i mean simple if you now how to do it).
OK... heres what i need help with;
First I need scar to right click an inventory item.
Second I need it to find a word (i could use other methods but i want to make sure its 100% going to find the right word
Third of all it not a usall word will this matter
O by the way this will be another script that hasnt ever been released on this website (I think unless members have it).
If you can anserew my question you will get rep and my respect
Regards
Deviney
bullzeye95
06-14-2007, 09:54 PM
I don't understand what the question is...
For right clicking on an inventory spot use this procedure I just made function ClickInvSpot(I: Integer; Left: Boolean): Boolean;
var
ItemPoint: TPoint;
begin
if(not(ExistsItem(I)))then
begin
Result:= False;
Exit;
end;
ItemPoint:= ItemCoords(I);
Mouse(ItemPoint.X, ItemPoint.Y, 0, 0, Left);
end;
deviney
06-14-2007, 09:59 PM
i mean i want it to right click it the select an option like drop or use or maybe even cancel. can it be done?
p.s thanks for the code but you didnt tell me how to use it or what it does. I wouldnt even no what item it would click on :) lol no worries anyway.
bullzeye95
06-14-2007, 10:19 PM
Ohh sorry :p
"I" is the inventory spot you want it to click, counting like:
1234
5678... so on.
"Left" is to click with the left mouse button or not. To select an option, the function is ChooseOption.
How do you plan on finding the item you want to click on?
Rune Hacker
06-14-2007, 11:50 PM
yeah bullzeye95, what you posted is too confusing, better off just showing them how to use it :p.
deviney, do you mean click a spefiic inventory spot or a speficif item? If its a spefic item, make a DTM, if not, use this:
Procedure ClickIt;
begin
MouseItem(1, False);
ClickOption('Drop', 2);
end;
in the MouseItem(1, False);, the 1 = the inventory spot, and the False = right click.
Then, the ClickOption('Drop', 2);, 'Drop' is the text it will look for in the menu, and the 2 = inventory (1 would be main screen)
bullzeye95
06-14-2007, 11:57 PM
Haha I forgot all about MouseItem :p
deviney
06-15-2007, 12:07 AM
haha this is grate which one is best (by that i mean less detectiable).
Thanks alot both get rep!!!
Rune Hacker
06-15-2007, 01:07 AM
haha this is grate which one is best (by that i mean less detectiable).
Thanks alot both get rep!!!
Just use what I showed, but add in random waits like Wait(500 + random(500)); and ty
Haha I forgot all about MouseItem :p
I just took a quick look in the SRL includes folder :p
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.