Hiya guys,
Currently making my first script and have found that i need to click in an inventory slot.
I have searched for the past hour trying to find how i would script this and not found anything.
Any help much appreciated
Printable View
Hiya guys,
Currently making my first script and have found that i need to click in an inventory slot.
I have searched for the past hour trying to find how i would script this and not found anything.
Any help much appreciated
Always the same slot?
Slot with a certain item in it?
Slot with any item at all in it?
I need to click a slot with an item in,
I'm trying to make an alcher, This is the first time i have EVER tried any form of scripting so i am a big noobie :).
I've managed to get my script to click the high alch but nothing else just yet.
Use MouseItem(SlotNumber, Left) SlotNumber must be an integer between 1-28 (read left to right, row by row for inventory position) and Left must be a boolean regarding whether or not you want to left click.
If it's alwas same slot, just use coordinates
Mouse(X, Y, 5, 5, True) (Replace X and Y with it's coordinates)
Ideally line up the item with where the alch spell is, so you just have to click same spot over and over.
So like
MouseItem(4, True);
or
MouseItem(4, Left);
Again sorry for being complete noob :)
Something like that yeah, type MouseItem into the function list search box on left side of simba and double click it and you can see how it works.
Coordinate click would be faster (barely) though :D.
But with mouseitem it's better for users, so they can have any inv setup and just enter which slot to click.
Would be more impressive to make own functions! But yeah Mouse/InvMouse are both simple , and SRL knowledge is important.
What :( I get a type mismatch from using this:
procedure click;
begin
MouseItem(1, true);
end;
'Type mismatch at line 216' :'(
Thanks home :D