SRL Archive - OSR Help

SoulSplit RSPS Combat Script


Chrisk1993

2012-10-18 00:33:39

I want to make a combat script I was wondering if anyone had a way of checking if it was still in combat before trying to attack something else. And I have looting but it never checks for charms before it attacks something else. Any advise/code would help loads, Thanks.

riwu

2012-10-18 00:53:59

You can use pixel shift functions to check if the player is animating, or if there is some kind of hit splash/hp bar when in combat you can use bitmap/TPA to check for them too.

Chrisk1993

2012-10-18 16:38:32

From: riwu
You can use pixel shift functions to check if the player is animating, or if there is some kind of hit splash/hp bar when in combat you can use bitmap/TPA to check for them too.


Thanks, I've never used pixelshift care to explain or link me to a tutorial?

procedure XpCounter;
begin
repeat
wait(1000);
until ((AveragePixelShift(IntToBox(456, 64, 510, 74), 500, 1000) > 1000));
end;


If this is right, how would i implement it to the attack procedure?