Log in

View Full Version : Detect if dead while walking with sps?



laakerules
02-19-2012, 10:29 PM
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
02-19-2012, 11:03 PM
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
02-19-2012, 11:21 PM
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
02-19-2012, 11:26 PM
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
02-19-2012, 11:34 PM
Ahhhh, so is that your like failsafe or something?

Drax
02-19-2012, 11:36 PM
Ahhhh, so is that your like failsafe or something?

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

kingarabian
02-19-2012, 11:45 PM
I guess if your walking on a path and that tile is no longer visible anymore then have your script detect lumbridge.

laakerules
02-19-2012, 11:48 PM
Ya thanks king, i got it though. I used sps...