SRL Archive - OSR Help

checking if 'stunned' ?


imscaredtolosemymain

2012-03-12 09:38:24

How can i reliably find out if my character is 'stunned' while pickpocketing?

I am currently using this:

Procedure checkafterpunch;
Begin
Wait(RandomRange(650, 975));
if findblackchatmessage('hump') then
Begin
writeln('ok punch') //
pocket;
end;
if findblackchatmessage('glances') then
Begin
writeln ('arrgh im stunned');
wait (3000 + random (500));
end;
end;

But the above doesnt always seem to work. It could be that i am trying to 'read' it too soon? or more likely is the text changing slightly so simba cant read it?

I also tried to check the XP counter, but again the timing seems to be an issue, and the time taken for the XP to appear on the counter seems non linear.

is there a better way to do this, or any other tips more experienced members can tell me?



ps current exp/h (was closer to 137k after 12 mins but then i messed with it)

Time: 23 Minutes and 26 Seconds
We have gained 40990 Thieving Experience!
We are gaining 104878 Thieving Experience per Hour!

Flight

2012-03-12 09:48:08

Check out this nifty function I made:
http://villavu.com/forum/showthread.php?t=74087

imscaredtolosemymain

2012-03-12 09:56:15

wow thats great, if a bit beyond me :)

I will try to work out what it does and add it in thanks.

I always assumed the script i am doing for myself (rhymes with donkey wife lighters) already exists as a members script? The only way i can learn this stuff from scratch is breaking down each step and playing with it one function/procedure at a time, all good fun.