I am working on converting OSR to lape.
Yes it will be like SRL-6. Yes it will have lots of dots, that is the point(pun intended)
Anybody want to help? You can pick it up at: https://github.com/officerBarbrady/SRL-OSR-lape
I am working on converting OSR to lape.
Yes it will be like SRL-6. Yes it will have lots of dots, that is the point(pun intended)
Anybody want to help? You can pick it up at: https://github.com/officerBarbrady/SRL-OSR-lape
What's so special about Lape? Like Pascal is fine tbh
cause we get to use dope stuff like thishttp://villavu.com/forum/showthread.php?t=107572. ive been dying to use a form in a script
View my OSR Script Repository!
Botted to max
Guides: How to Report Bugs to the Scripter
~~~~ Moved to Java. Currently Lurking ~~~~
from what ive done with them they were a mess. i could make a fancy looking one and get all the buttons to work and create a player file but i couldnt load or save players from/to the form for the life of me. not to mention the 100s of lines the form required to make and work. im pretty stoked if i get to use the form posted above
View my OSR Script Repository!
Botted to max
Guides: How to Report Bugs to the Scripter
~~~~ Moved to Java. Currently Lurking ~~~~
The same can be done in PS (it was actually, years ago), I just wrote it for SRL-6 which happens to be in Lape. I'm glad you're using it, though! I wasn't sure anyone would.
@Officer Barbrady; What is your plan of action for this? Are you taking the existing SRL-OSR and converting it to Lape, starting from scratch SRL-6 style, or something else?
My suggestion would be to literally copy SRL-6 and make it work with SRL-OSR. Better yet, we have an SRL-6-OSR branch in git (assuming everything goes well).![]()
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
My plan was to make it as close to SRL-6 as possible
I also wanted to re-do how the inventory functions worked. I like explode box is a better approach because it makes it much easier to add new functions.. and isn't a complete mind f***
But if @Flight; is doing something then I don't want to start anything
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
Explode box is similar to Grid, (buy Janilabo) Pretty much give it the bounds of the inventory then the rows and columns and you're set
Simba Code:function explodeBox(bx: TBox; rows, columns: integer): TBoxArray;
var
r, c, w, h, ew, eh, ow, oh, i, x, y: integer;
begin
if ((rows > 0) and (columns > 0) and (bx.X1 <= bx.X2) and (bx.Y1 <= bx.Y2)) then
begin
w := ((bx.X2 - bx.X1) + 1);
h := ((bx.Y2 - bx.Y1) + 1);
if (rows < 1) then
rows := 1
else
if (rows > h) then
rows := h;
if (columns < 1) then
columns := 1
else
if (columns > w) then
columns := w;
w := (w div columns);
h := (h div rows);
ew := (((bx.X2 - bx.X1) + 1) - (w * columns));
eh := (((bx.Y2 - bx.Y1) + 1) - (h * rows));
SetLength(result, (rows * columns));
y := bx.Y1;
for r := 0 to (rows - 1) do
begin
x := bx.X1;
if ((eh > 0) and (r < eh)) then
oh := 1
else
oh := 0;
for c := 0 to (columns - 1) do
begin
if ((ew > 0) and (c < ew)) then
ow := 1
else
ow := 0;
i := ((r * columns) + c);
result[i].X1 := x;
result[i].X2 := (x + (w - 1) + ow);
result[i].Y1 := y;
result[i].Y2 := (y + (h - 1) + oh);
x := (Result[i].X2 + 1);
end;
y := (result[i].Y2 + 1);
end;
end else
SetLength(result, 0);
end;
Making functions for the inventory is soo simple using a TBox array:
inventory.simba
Most of them would be much simplar but they where designed to be dynamic and edited for multiple revision of RS
I am indeed, but mine isn't just a simple conversion or even OSRS-version of SRL-6, it's somewhere between the two with so much built from scratch. I'd like to release what I have so far but I've not even started on the documentation nor an automatic update checker for the include, which is crucial.
Before it can be released I need a way to actively inform users of recent changes to AeroLib; does anyone have suggestions for this?
Current projects:
[ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]
"I won't fall in your gravity. Open your eyes,
you're the Earth and I'm the sky..."
Meh I just have a pastebin:
http://pastebin.com/u/barbrady
Does a getpage of raw Script version (http://pastebin.com/raw.php?i=yf87fYMd near instant) and if it needs update it does a getpage of the script
It's kinda bad for anything beyond a script though :S
I guess it would be more complicated with multiple files though and uploading stuff to pastebin is a pain in the ass
make a function in aerolib so when a user starts a script with the include it reads a pastbin raw page or google doc and has simba write a line of what the document contains?
Simba Code:begin //Start-Up
ClearDebug;
DeclarePlayer;
SetupSRL;
SetupAeroLib; //Something like this?
View my OSR Script Repository!
Botted to max
Guides: How to Report Bugs to the Scripter
~~~~ Moved to Java. Currently Lurking ~~~~
Well if you host it on googlecode you can use the raw text for an updater. If you look at our reflection include you can see how Meerkat made it so it will update multiple files quite easily just by adding an entry. I'm sure you could make a PHP script that would take the commit comments and show them on a live image that could be posted here.
“The long-lived and those who will die soonest lose the same thing. The present is all that they can give up, since that is all you have, and what you do not have, you cannot lose.” - Marcus Aurelius
So.. essentially you are saving .05 ms on start-up time by not using the explode box in the setup.
...Explode box does the same thing except the params are more understandable.Originally Posted by Olly
>> Didn't read codeOriginally Posted by 17 Turpinator
>> inventory is a global tboxarray which is declated on setupSRL;
GridBox is actually A LOT better for RuneScape inventory, because with it you can use custom size (dimensions) for the slots (TBoxArray). Exploding method doesn't support custom dimensions and it never allows you to have any space between the slots, whereas grid method does. That is the big difference...
Yes, exploding probably is maybe just a little easier to use (grid has few more parameters), but they are both pretty simple to use really.![]()
< the problem with explode box.
There are currently 1 users browsing this thread. (0 members and 1 guests)