SRL Archive - OSR Help

DeclarePlayers, Nick, LoginPlayer, AntiRandomsetc.


YoHoJo

2013-03-05 21:37:50

Can someone post me an outline/skeleton/sample script of how all this should be set up using the SRL OSR git include

No multiplier necessary, but it would be nice to see though, but no biggie there!

Also do we currently have something that at least searches for nick to detect random and then logs out? If so, what do I call?

Le Jingle

2013-03-05 21:47:32

Here's what I've been using with the latest OSR

program DefaultOSR;
{$DEFINE SMART8}
{$include SRL-OSR/SRL/SRL.simba}
{$include SRL-OSR/SRL/misc/debug.simba}
{$include SRL-OSR/SRL/misc/smartgraphics.simba}

var
i, x, y : integer;
b : TBox;
s : string;
TPA : TPointArray;
top : Array of TOptions;

procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

Players[0].Name := '';
Players[0].Pass := '';
Players[0].Pin := '';

Players[0].Nick := '3 chars of your RSN go here for future random event detecting!';
Players[0].Active := True;
end;

begin
SetupSRL;
DeclarePlayers;
LoginPlayer;
end.

Here's what my folder paths look like as of current on Windows 7: (NOTE: unsure if they're to change later down the road)

SRL (EOC)

C:\Simba\Includes\SRL\core
C:\Simba\Includes\SRL\misc
C:\Simba\Includes\SRL\SRL.simba

and
SRL (OSR)

C:\Simba\Includes\SRL-OSR\SRL\core
C:\Simba\Includes\SRL-OSR\SRL\misc
C:\Simba\Includes\SRL-OSR\SRL\SRL.simba

Font Dir too:

YoHoJo

2013-03-05 21:49:04

Perfect thanks!

Is OSR Debug any diff than normal?
Also what's the SmartGraphics.simba for?

Any clue about using nick to search for randoms?

Le Jingle

2013-03-05 21:52:26

From: YoHoJo
Perfect thanks!

Is OSR Debug any diff than normal?
Also what's the SmartGraphics.simba for?

Any clue about using nick to search for randoms?


The include for debug and smartgraphics are just for development purposes, nothing important for basic script with those (forgot to remove for more basic layout).

Don't think the randoms are implemented yet, but I do remember Fawaki posting about it, and I hazily remember doing that in a couple scripts when I first joined SRL. I think it's used to help find your character's nick when a random event pops up on screen.

rj

2013-03-05 22:25:25

Not meaning to post off topic but I can't wait to use statchars to magically get the users fletching lvl