SRL Archive - News and General

Hi, hows it going?


Torrent of Flame

2011-12-13 13:30:53

Good. Good. How's the kids? Good. Alright. See you later.


Good day!

How goes it in the world of SRL?

It seems like an age ago I made an actual post of my own. Infact, it was on the 13th April! My god, which was to post the last piece of code I've written..

program SoulWars;
{$DEFINE SMART}
{$i SRL/SRL.scar}
{$i Reflection/Reflection.simba}

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

Players[0].Name := ''; // your username
Players[0].Pass := ''; // your password
Players[0].Nick := ''; // 3-4 letters of your username
Players[0].Active := True; //Use this player or not?
end;

var
Team: integer;
{////////////////////////////////////////////////////////////////////////////////
Load Path
Path tiles for walking
////////////////////////////////////////////////////////////////////////////////}
function LoadPath(Path:Integer): TPointArray;
var
i, t: integer;
begin
if(Path = 0) then
begin
SetLength(Result, 1);
Result[0] := Point(1890, 3164);
end;
if (Path = 1) then
{BLUE RUN FROM INITIAL SPAWN}
begin
SetLength(Result, 2);
Result[0] := Point(1806, 3234);
Result[1] := Point(1806, 3247); //To Supplies
end;
if (Path = 2) then
begin
SetLength(Result, i);
for t := 0 to High(i) do
Result[t] := [Point(1967, 3231), Point(1967, 3216),
Point(1951, 3216), Point(1938, 3228),
Point(1923, 3235), Point(1922, 3239),
Point(1908, 3247){GETS TO NW OF OUTER GRAVEYARD SPAWN}]
end;
end;
{////////////////////////////////////////////////////////////////////////////////
Walk the Path
Walks to places..
////////////////////////////////////////////////////////////////////////////////}
function WalkThePath(PathNo: integer): boolean;
var
p: integer;
Path: TPointArray;
begin
if not LoggedIn then
Exit;
Path := LoadPath(PathNo);
for p := 0 to High(Path) do
begin
WalkToTile(Path[p], 1, 0);
FFlag(0);
Result := True;
end;
end;
{////////////////////////////////////////////////////////////////////////////////
Which Team
Determines what team we will be playing for
////////////////////////////////////////////////////////////////////////////////}
function WhichTeam: boolean;
var
rTile, bTile: TPoint;
begin
rTile := TileToMM(Tile(1930, 3173));
bTile := TileToMM(Tile(1872,3151));
if not rs_OnMiniMap(rTile.X, rTile.Y) then
if not rs_OnMiniMap(bTile.X, bTile.Y) then
begin
Writeln('Not in a portal, exiting..');
Exit;
Result := False;
end else
if rs_OnMiniMap(rTile.X, rTile.Y) then
begin
Team := 0;
end else
Team := 1;
if Team = 0 then
begin
Writeln('Playing for Red Team.');
end else
Writeln('Playing for Blue Team.');
end;
{////////////////////////////////////////////////////////////////////////////////
Check Chats
Enters Balance Portal if the warning about zeal comes up
////////////////////////////////////////////////////////////////////////////////}
function CheckChats: boolean;
begin
Wait(2000+Random(250));
begin
if FindNPCChatText('Warning', Nothing) then
begin
ClickContinue(True, False);
end ;
Wait(1500+Random(250));
if FindNPCChatText('Enter portal.', ClickLeft) then
Result := True;
end;
end;
{////////////////////////////////////////////////////////////////////////////////
Enter Portal
Enters Balance Portal using reflection.
////////////////////////////////////////////////////////////////////////////////}
function Enter_Portal: Boolean;
var
x, y, portalID: Integer;
MSPoint: TPoint;
begin
portalID := GetObjectAt(Point(1890, 3163),0).ID;
if (portalID = 42031) then
begin
MSPoint := TileToMS(Point(1890, 3163), 10);
MMouse(MSPoint.x, MSPoint.y, 10, 5);
wait(100 + Random(30));
getMousePos(x, y);
Mouse(x, y, 1, 1, True);
Result := True;
Writeln('Clicked Balance Portal');
end;
CheckChats;
Wait(2000+Random(250));
WhichTeam;
end;
{////////////////////////////////////////////////////////////////////////////////
Leave Spawn
Leaves red or blue initial spawn points
////////////////////////////////////////////////////////////////////////////////}
function LeaveSpawn: boolean;
var
MSPoint: TPoint;
x, y: integer;
ITile: TTile;
begin
if Team = 0 then
begin
ITile := Point(1958, 3239);
end else
ITile := Point(1958, 3239);
begin
WalkToTile(ITile, 1, 0);
MakeCompass('W');
MSPoint := TileToMS(ITile, 1);
MMouse(MSPoint.x, MSPoint.y, 2, y-RandomRange(45,55));
wait(100 + Random(30));
getMousePos(x, y);
Mouse(x, y, 1, 1, True);
Writeln('Left Spawn Point');
Result := True;
end;
end;
{////////////////////////////////////////////////////////////////////////////////
The main Soul Wars runtime loop
Enters Balance Portal using reflection.
////////////////////////////////////////////////////////////////////////////////}
function Play_SW: boolean;
begin
if Team = 0 then
begin
//Do this shit
end;
if Team = 1 then
begin
//Do this shit
end;
end;
{////////////////////////////////////////////////////////////////////////////////
Script Setup
Standard Script Setting up stuff.
////////////////////////////////////////////////////////////////////////////////}
procedure Script_Setup;
begin
Smart_Signed := True;
Smart_Server := 59;
Smart_SuperDetail := False;
SetupSRL;
SetupReflection;
DeclarePlayers;
LoginPlayer;
end;

begin
Script_Setup;
WalkThePath(0);
Enter_Portal;
// LeaveSpawn;
//WalkThePath(1);
end.

In case you were curious..

Is everyone from.. about a year ago.. still knocking about?

Yeah how are you all! If you're curious about moi..

  • I got 2 A's and a B at A Level, in Sociology, ICT and Media, respectively
  • I have a job as a Web Developer
  • I'm currently learning ColdFusion and MySQL, due to my job as a Web Developer..
  • I got back with my girlfriend (:D)
  • I passed my driving test.. and got a car.
  • I've started training Karate every week

I might start on a little project back here, so if there's anything that the mighty MSI hasn't built yet, let me know!

See you around!

Josh
x

BraK

2011-12-13 14:32:03

you Lazy Market Mod >.> jk

Good to see your still kicking. We've had a good deal of promotions and some interesting rising stars lately. Hang around I'm sure you'll become familiar with most of them. The Kid are still the kids only we have a larger crowd around now a days. Reflection is done for at the moment which brings a lot of people our way. I would post more but then noone else would have anything else to say. :p

Richard

2011-12-13 14:34:28

Good to see you! Haven't talked in ages. Were those AS Levels or the whole things? Applied for uni anywhere?

Dgby714

2011-12-13 14:35:24

=) Nice to see you

Kyle Undefined

2011-12-13 14:37:02

Hoi!

It's been awhile man, glad to see everything is working out :) Congrats on the job! ColdFusion really is a pain to use though, and it's a little dated. I just landed a job as well, old company had a downsizing.

What kind of car did you get?

Hope to see you around more! :)

Hobbit

2011-12-13 14:51:09

Welcome Back :)

WT-Fakawi

2011-12-13 14:58:59

Hey TOF, good to read you're doing well! It's going well here, too.

Dervish

2011-12-13 15:03:41

ToF.. You've been somewhat a life changer for me you know.

I'm so happy to see/hear/read that your life has changed for the better. It is rare nowadays, when things tend to only worsen in this world of ours.

Happy to learn your life is going well ToF.

Gu3st...

2011-12-13 15:57:50

Great to see you again ToF! Your life sure looks promising!! Lucky you! :)

Sir R. M8gic1an

2011-12-13 17:04:12

Welcome back :)

-RM

Home

2011-12-13 17:10:43

Hey mate. Nice to see that you're doing well :)

~Home

jakeyboy29

2011-12-13 18:11:05

doing well mate, just in time to see me work on my colour sw script!

Torrent of Flame

2011-12-14 07:43:46

From: BraK
you Lazy Market Mod >.> jk

Good to see your still kicking. We've had a good deal of promotions and some interesting rising stars lately. Hang around I'm sure you'll become familiar with most of them. The Kid are still the kids only we have a larger crowd around now a days. Reflection is done for at the moment which brings a lot of people our way. I would post more but then noone else would have anything else to say.


I see, so… MSI owns SRL at the moment? Haha!


From: Richard
Good to see you! Haven't talked in ages. Were those AS Levels or the whole things? Applied for uni anywhere?


God! Was it that long ago we spoke? :p The whole things. Full A Levels. And nope, I got this job, which is what I want to do as a career, so I went to the source for experience, over getting an education first.

From: Camo Developer
Hoi!

It's been awhile man, glad to see everything is working out Congrats on the job! ColdFusion really is a pain to use though, and it's a little dated. I just landed a job as well, old company had a downsizing.

What kind of car did you get?

Hope to see you around more!


Thanks very much. I dont think it is a pain, nor is it that dated. Sure, its not as widespread as PHP is, but the use and application of it is much easier. It's basically HTML markup, its sort of like what SRL Library is to Scripting. It's cleaner and more efficient, and requires less $ and ? than PHP haha. :p

Also, it's a crap car. It's a Fiat Sciento Sporting. It's.. really.. cramped. It's made for dwarves and I'm 6'2".. so yeah. But it gets me to work and back so..!

From: Dervish
ToF.. You've been somewhat a life changer for me you know.

I'm so happy to see/hear/read that your life has changed for the better. It is rare nowadays, when things tend to only worsen in this world of ours.

Happy to learn your life is going well ToF.


I'm glad to hear that I've helped you out :)

Though your middle point.. a little bit cynical if I may say so! Ha!

From: Zyt3x
Great to see you again ToF! Your life sure looks promising!! Lucky you!


Nothing like hard work and determination ;)



And to WT-Fakawi, Dgby, Hobbit, Home and jakey, lovely to see you too :) Glad to see its all going strong in the world of SRL.

And to Rasta, hows it going! It's been forever. How's Uni? How's the relationships? You weren't having much luck last time we spoke :p Still doing creative writing etc?


It was nice to come back to see such warming welcome back's!

Thanks guys :)

Kyle Undefined

2011-12-14 07:47:58

Learn C# :p that's where the money is. Well, at least down here in Tampa.

Torrent of Flame

2011-12-14 08:14:06

From: Camo Developer
Learn C# :p that's where the money is. Well, at least down here in Tampa.


ColdFusion has good support over here, you can install Railo on your box and you're away, ColdFusion hosting's also reasonable over here and our hosts are great support wise and speed wise, so no trouble ha.

And considering I'd never heard of ColdFusion till about 3 months ago, I can half build an e-commerce website now (everything but the checkout procedure), so thats how easy it is to learn :p I plan to stick with this company for a while anyway, so there's no real trouble in finding a new company in search of a CF developer, cause this one does the job :)

Wizzup?

2011-12-14 08:21:33

Welcome. :)

ZephyrsFury

2011-12-14 08:22:30

Hey there ToFfeeApple. I don't know if that was actually a nickname I gave you but it was at the tip of my tongue. Looks like things are well for you, all the best! :)

NCDS

2011-12-14 08:58:52

Hey ToF! Glad to see you around and hear your 'success stories'! Always nice to hear how a fellow SRL'er is succeeding in the programming world.

Keep in touch man. :)

grats

2011-12-18 20:29:29

Hey! cool to see you around again :P I liked learning mysql, pretty fun stuff you can do with php & databases

Daniel

2011-12-19 06:09:37

Hey ToFfee Apple! :D

EDIT: Just realised that Erik stole my name I just made up for you! Grr!