SRL Archive - Help

CheckDead


Waddo

2011-07-24 16:23:51

is it just me or is check dead not working?

Coh3n

2011-07-24 16:53:00

Probably outdated. The way you die is RS has changed a lot, and I doubt anyone updated it.

BraK

2011-07-24 17:20:11

From: Coh3n
Probably outdated. The way you die is RS has changed a lot, and I doubt anyone updated it.


as in probably hasn't been updated since 2008ish era :p

~BraK

Main

2011-07-24 18:23:36

findnormal random still has a perfectly working finddead function, which is verryy annoying as my scripts requires character to die very often :(

Coh3n

2011-07-25 08:17:58

From: Main Ftw
findnormal random still has a perfectly working finddead function, which is verryy annoying as my scripts requires character to die very often :(

If it's "perfectly working" then there shouldn't be a problem?

masterBB

2011-07-25 08:28:27

It's a big problem if you have a perfect deadwalk or something. Cause it logs you out and sets you inactive.

NCDS

2011-07-25 08:30:21

SO alter FindNormalRandoms and call it locally from your script?

Coh3n

2011-07-25 08:53:55

I wanna say SRL has a variable that decides whether you logout after dying.

masterBB

2011-07-25 08:55:23

Reincarnate?

Coh3n

2011-07-25 08:56:15

From: masterBB
Reincarnate?
That sounds familiar.

BraK

2011-07-25 09:06:22

{*******************************************************************************
function FindDead: Boolean;
by: Stupid3ooo and Cazax
Description: Checks for text "Oh dear you are dead".
Logs out player if Reincarnate = False.
*******************************************************************************}
function FindDead: Boolean;
begin
Result := False;
if FindTextTPA(0, 0, MCX1, MCY1, MCX2, MCY2, 'dear', SmallChars, Nothing) then
if FindTextTPA(0, 0, MCX1, MCY1, MCX2, MCY2, 'dead', SmallChars, Nothing) then
begin
Inc(RandSolved[rand_Death]);
Result := True;
SaveToChatLog;
if (SRL_Procs[srl_OnFindDead] <> nil) then
SRL_Procs[srl_OnFindDead]();
if (Reincarnate) then exit;
TakeScreen('Found Dead');
LogOut;
Players[CurrentPlayer].Rand := 'Oh Dear You Are in Lumby';
Players[CurrentPlayer].Active := False;
end;
end;

ReinCarnate is a Global Var.

ReinCarnate:Boolean;

So setting ReinCarnate := True; will make it not log out.

~BraK

Nava2

2011-07-25 11:01:16

FindDead only works in Lumbridge, I think Waddo might want one for in Dung. :P

Waddo

2011-07-27 20:59:14

ah is that why then :/ and well done detective ;) I guess i best get onto making it, how do you create bmp masks in simba?

Nava2

2011-07-28 00:55:01

From: Waddo
ah is that why then :/ and well done detective ;) I guess i best get onto making it, how do you create bmp masks in simba?


You don't.. :P You make them outside of Simba. Paint (ugh) is a better option than trying through Simba. :)