SRL Archive - OSR Help

New to simba scripting (OSR) need updated TuTs


cyanogen

2015-03-11 18:45:32

So, browsing tutorials while using some scripts I really want to start contributing to OSR's script catalog but I'm lost as to how I need to approach OSR scripts (which tools to use), and so far the tutorials I use (I read reflection and setting up for OSR) are outdated and kind of scattered. Questions

1.) Color or reflection? What are the benefits and drawbacks?

2.) What includes do I need to use reflection? Does SRL have them or the separate reflection include? Does SRL have implementations for things that reflection does not? (Like login player procedures in SMART) If I'm using only color can SRL provide everything for color like walking procedures and interactions and detections in chat box (Point me to a good color tutorial? (Updated)?)

3.)If color and reflection, what are the best uses for each, (updated tutorial for these?)

4.)How do I (what do I use for) do simple and essential tasks like login players in SMART, bank PIN

5.)Multiple player setup for OSR?

6.)Any relevant updated tutorials that use latest include revisions?

I'm sure other new scripters here are interested in this information as well.

I do have programming experience outside of simba (Java and C) and here is a thing I was working on a long time ago

https://www.dropbox.com/s/unmbnjculrkl65r/DreamBrimhaven.java?dl=0

Thanks for replies in advance.

Cinkupis

2015-03-30 16:38:43

Im gonna bump this with hopes that somebody posts a reply, since I kinda have the same questions

KeepBotting

2015-03-30 16:55:54

1) Reflection done right is superior to color. I don't think anyone will disagree with me on that. And here at SRL, thanks to the tireless efforts of our very own @elfyyy;, reflection is very much done right.

Color is generally regarded as more stable and will work if hooks break or Reflection goes out of date.

2) Color includes and reflection includes are different. For OSRS, you have essentially two options, split into two includes for each option.
  1. Color
  2. Reflection

You needn't confine yourself to a single one of these includes, you can use two or more of them at once. I suppose the optimal situation would be to write a script using Reflection, then rewrite it using color as a fallback.

Note that SRL-OSR is expected to undergo some changes in the near future (PascalScript –> Lape) and PascalScript Reflection is not maintained outside of hooks.

3) Reflection tutorials / color tutorials

4) You'd use the routines provided by whichever include you decide upon. Tutorials or documentation for the include will cover how to do it.

5) Skipping this one, I'm unfamiliar with multiplayer in OSRS includes.

6) All tutorials I've linked to in this post are updated and current (or have changed so little as makes no difference)

funnyman9292

2015-03-30 22:10:07

Thank you for clarifying this. @KeepBotting