SRL Archive - Help

Detect if dead while walking with sps?


laakerules

2012-02-19 17:29:36

Is it possible. Just died while doing a sps walk and instead of say searching for a door or whatever it just kept on trying to walk? possible?

Drax

2012-02-19 18:03:40

I'm in the same mess you are in for my soulwars script :( Sps walking just wants to keep going until it finishes the walk path that is when the function or procedure ends. I was thinking that maybe SPS is not an option in my cause and need to look for something different. Maybe ObjDtm walking as when it cant find a point it ends the procedure.

So you could say.

 
Procedure Walk;
begin
if ObjDTM_Walk('84:22:4:3:7:67:43:3:7:43:63:3:7:40:76:3:7:28:72:4:73:8:73:27:98:30:98:9', 0, 100, 80, True) then
if ObjDTM_Walk('106:48:3:10:7:119:69:10:7:119:61:10:7:119:53:4:98:27:97:50:116:51:115:27', 0, 100, 80, True) then
if ObjDTM_Walk('73:66:3:1:7:95:47:1:7:123:80:3:7:128:96:4:69:57:70:73:84:73:83:57', 0, 100, 80, True) then
begin
WriteLn('Now at where ever')
end else WriteLn('Could not find where ever checking if dead');
end;

//
//Maybe.

function CheckingDead:Boolean;
begin
if FindBlackChatMessage('Oh dear, you are dead!') or FindBlackChatMessage('If you die, you must') then
begin
// Something
Result:=True;
end;

What do you think? That was the only way i was thinking to overcome my situtation.

laakerules

2012-02-19 18:21:51

Lol, i figured it out and got it to work! :P

Why do you have the

FindBlackChatMessage('If you die, you must') then

i didnt think it displayed that?

Drax

2012-02-19 18:26:34

From: laakerules
Lol, i figured it out and got it to work! :P

Why do you have the

FindBlackChatMessage('If you die, you must') then

i didnt think it displayed that?


Wow tell me how you did it please, iv been trying for like a month … and If you die, you must appears when you try to click the portal to leave the graveyard in soul wars when you in ghost form.

laakerules

2012-02-19 18:34:30

Ahhhh, so is that your like failsafe or something?

Drax

2012-02-19 18:36:15

From: laakerules
Ahhhh, so is that your like failsafe or something?


Yep, did you use my method or SPS? Got me interested.

kingarabian

2012-02-19 18:45:18

I guess if your walking on a path and that tile is no longer visible anymore then have your script detect lumbridge.

laakerules

2012-02-19 18:48:32

Ya thanks king, i got it though. I used sps…