Log in

View Full Version : CheckDead



Waddo
07-24-2011, 08:23 PM
is it just me or is check dead not working?

Coh3n
07-24-2011, 08:53 PM
Probably outdated. The way you die is RS has changed a lot, and I doubt anyone updated it.

BraK
07-24-2011, 09:20 PM
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
07-24-2011, 10:23 PM
findnormal random still has a perfectly working finddead function, which is verryy annoying as my scripts requires character to die very often :(

Coh3n
07-25-2011, 12:17 PM
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
07-25-2011, 12:28 PM
It's a big problem if you have a perfect deadwalk or something. Cause it logs you out and sets you inactive.

NCDS
07-25-2011, 12:30 PM
SO alter FindNormalRandoms and call it locally from your script?

Coh3n
07-25-2011, 12:53 PM
I wanna say SRL has a variable that decides whether you logout after dying.

masterBB
07-25-2011, 12:55 PM
Reincarnate?

Coh3n
07-25-2011, 12:56 PM
Reincarnate?That sounds familiar.

BraK
07-25-2011, 01:06 PM
{************************************************* ******************************
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
07-25-2011, 03:01 PM
FindDead only works in Lumbridge, I think Waddo might want one for in Dung. :P

Waddo
07-28-2011, 12:59 AM
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
07-28-2011, 04:55 AM
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. :)