SRL Archive - OSR Help

smithing/smelt x number


EtherFreak

2010-08-17 21:54:57

I am wondering if srl has a smithing function? I am also wondering how I can say smelt x number of bars, or x number of whatever. (i.e. enter 88 and hit return). I have searched, but I must not be searching for the right thing.

i luffs yeww

2010-08-18 02:48:33

Check smithing.scar. :) In Includes/SRL/SRL/skill/. Also, to enter a number, TypeSend(IntToStr(28 + Random(71)));. Will type a random number between 28 and 99 and press enter. ChooseOption('something'); to choose an option when you right click.

If you want more help, [email]panic._@live.com[/email]

EtherFreak

2010-08-19 00:53:43

Thank you. the TypeSend(IntToStr(28 + Random(71))); is what I was looking for. there is a problem though, and that is it types it too fast and sometimes does not get the second digit. TypeSend(IntToStr(88)); is what I am using, and sometimes I only get 8 instead of 88.

Tniffoc

2010-08-19 01:06:52

It could be that all you're getting is the second '8'. Try putting a delay before the TypeSend.


Wait(250 + random(250));
TypeSend(IntToStr(88));

If this fails you could always perform a little check with FindText.