Sorry for posting again, trying to withdraw some maple logs
when I enter "aple" or "logs" as the mouse over text it opens bank, looks for the logs, but doesnt recognize it and it terminates the script.
I tried switching the item to fellstalk herbs and used that for mouse over text but it worked fine, just wont work with maple logs.
Any idea what might be going on?
Last edited by Adieux; 08-05-2014 at 01:51 AM.
Have the script check, after your withdraw function, to see what the backpack count is.
Is what i think the function is, it will return an integer, if the number it returns is less than 28, break out of the script, as you have no more logs left in the bank.backpack.count()
Hi nice tutorial i learned a few things from here , anyway i wanted to make a script to spread ashes for prayer skill ... i wanted to use the preset button code and action bar ... and i cant find the action bar code ... could somene help me please.
Thank You!
Thanks for replaying ...i found this code in iBuryBones script
Do you think this could work for me to ? didn't had time to testSimba Code:typeSend('1', false);
wait(randomRange(500, 700));
until tabBackpack.count() = 0 or chatbox.findAnyText(['ave any lef']);
Hi, I tested that code and it does work really well.. anyway i asked you maybe you have encounterd that code before and you may know if it would worked ...anyway thank you for your replyes
You should emphasize case sensitivity for isMouseOverText and chooseOption.select, in the sense of (['rop Logs']), not (['rop logs']). It wasn't entirely apparent for me at least, but I figured it out quickly enough.
Nice now i have a grasp of what is what. Now all that's left is the rest... which is a lot. My first attempt will probably be a bunch of copy and paste from all the scripts i have and see if i can make something work. Can't wait for action bar basics. Trying to find out how to press actionbar slot with a keyboard. Not with a mouse. Is there some kind of manual for these things in github? I found something there but i dont know if it's up to date.
You can click an action bar slot
Simba Code:mouseBox(actionbar.getSlotBox(1), MOUSE_LEFT);
Or you can type '1' using typeSend(text: string; pressEnter: boolean = true);
To type 1 and not press enter:
Simba Code:typeSend('1', false)
To type 1 and press enter:
Simba Code:typeSend('1', true)
but you will see pressEnter is actually true by default, so if you leave that parameter blank, it will resort to the default. So to press enter after typing you could simply:
Simba Code:typeSend('1')
I hope to finish the other sections sometime! You should open the include files in C:/simba/includes/srl6/lib/ and have a look at the function list on the left to see what's available.
procedure Spellcast; // Presses 1 to cast spell
begin
KeyDown(31);
wait(RandomRange(30, 100));
KeyUp(31);
end
I ended up finding this. (it's most human like key press?) The problem is the script does one loop (sometimes fails) then the second one comes and 100% fail. I assume it presses up and down while the bank is open or actionbar isn't loaded. Added a waitRandom but it didn't help.
Probably found the problem. Gonna try something.
very in depth guide I like it, very easy to understand
Forcan it be set to a range of angles? For example having it turn to an angle between 40 and 50 with a gaussian distribution or an normal distribution. I want to detect the vines in the Karamja Dungeon, so a west angle, I think it is west ha, would be best but don't want it to go exactly west each time.Simba Code:minimap.setAngle(45)
Would you use the mouseoverobject for picking up items as well ? can you write a little tutorial on looters ?
Hmm so would a looter be similar to
Code:program new; {$DEFINE SMART} {$I SRL-6/SRL.simba} procedure lootItem(); var x, y: integer; //we need to declare these variables since findObject outputs these begin if mainscreen.findObject(x, y, 925721, 11, ['ffigy'], MOUSE_RIGHT) then begin writeLn('We found an item!'); //if findObject results true, this will print chooseOption.select(['ake']); // this will choose ‘Take’ option in chooseOptions menu end; end; begin clearDebug(); setupSRL(); lootItem(); end.
This is beautiful.
I'm starting to wonder if there should be a line, or text, separating the original tutorial from the to be added sections. It's started to go from the basics to all of the inbuilt features of the client.
Edit: I mean a more dominate line.
There are currently 1 users browsing this thread. (0 members and 1 guests)