SRL Archive - OSR Help

I have never scripted before, i have an idea, and need help executing it


loltryffel

2014-08-19 15:12:09

[ATTACH=CONFIG]23840[/ATTACH]
Abs = absorption potion
ovl= overload
pray flick = double tap rapid heal

This would be my idea, it would be for nmz.
I have no idea how to do it, and if that is even possible to make.
I'd love if some1 gave me some tips on how to start, and what would be a good tutorial to use in such script, since none of which i saw on the tutorial section really are based on such script, where you just stand still and press stuff on the tabs

Incurable

2014-08-20 06:09:58

I have no idea what you want your script to do, but so long as you're willing to try new things, read the documentation (SRL-5 in your case for OSRS, someone please correct me if I'm wrong), and ask for help when you're stuck, the concepts explored in the tutorials can be used to create anything. For example, I used the concepts explained in The Mayor's tutorial (which is for a clay miner/banker) and used them to create an onion collector.

So, the best place for you to start would be here, before moving on to this. If you're having a lot of trouble using the outdated SRL-5 documentation with the OSRS include, then switch to RS3, use SRL-6, and use The Mayor's brilliant set of beginner tutorials to learn how to script for RS with Simba, then switch back to trying to make an OSRS script.

Good luck, and be sure to post your first script when it's ready! ;)

Eduard

2014-08-20 13:23:10

From: loltryffel
[ATTACH=CONFIG]23840[/ATTACH]
Abs = absorption potion
ovl= overload
pray flick = double tap rapid heal

This would be my idea, it would be for nmz.
I have no idea how to do it, and if that is even possible to make.
I'd love if some1 gave me some tips on how to start, and what would be a good tutorial to use in such script, since none of which i saw on the tutorial section really are based on such script, where you just stand still and press stuff on the tabs


In case of a script, it will not think for itself. So you have to determine every factor like a computer thinks.

In this case, you have to make if statements, that give the current state of the character:

For example:
Remember, this is psuedo code, the functions/procedure who are called should be written by yourself!

Procedure MainLoop;
begin
if(AbsorptionPotion = active) then
begin
if(OVLPotion = active) then
begin
OpenPrayerBook;
PrayFlick;
end else
DrinkOVLPotion;
end else
DrinkAbsorptionPotion;
OpenInventory;
end;