SRL Archive - Senior Scripts and Snippets

Goals


Boreas

2007-09-07 16:06:25

Here's what we are aiming for

2D items are not that hard to do. Most of the time a quick DTM and a Mouse will do it. However when scripters do more, things can get messy. Items.scar will make things simpler, so they can spend time on more interesting things. I think that this will make it too easy to be used in member apps, they need to learn the old fashioned way, but will be available to non members.


Automatic:
No guessing. Works 100% or at least with failsafes- ie I would rather it return false than return the wrong answer. No more creating DTMs/Bmps that need tweaking.

Efficient:
Only does what it needs to do. Why search the whole client for something when you know it has to be in one of 48 (or less) fixed places? Less getcolors and more math.

Check not search:
Especially when you already know something.

Provide Scripter with information:
Wouldn't you like to know what in each of your player's bank without logging in?

Modular:
Easy to update. Some high level functions and lots of low level functions that scripters can make their own high level functions with.

Well Documented:
In the function headers and comments on the lines as much as possible (I know I'm bad at that). Also, a changelog for each function within their headers would be nice.

Can you think of anything else?

The Claw

2007-09-07 19:49:22

How are we planning to identify the items? Give every single item a blacklist, then put them all into a massive case or something? So if the scripter does MakeInventory('9 iron', '18 coal'), it would go to the iron blacklist in the case, then search on the bankscreen or whatever then save the bankslot where its found?

Boreas

2007-09-08 00:27:14

That's the general idea.