SRL Archive - OSR Help

How do i check for uptext that is not the white option?


Khp

2013-09-29 14:27:27

I'm going to make a script to kill monsters in the wilds and i want to make sure i don't attack other players, so i want to make it check to see if the -13 from level-13. I figured out looting with FindObj ajd ChooseOptionEx, but the IsUpTextEx does not work quite the same and i can't get it to work. If someone could just give me a little example of how to do this, or point me in the direction of a tutorial or that script that uses this that would be awesome.

Thanks in advance!

Hoodz

2013-09-29 14:34:47

From: Khp
I'm going a script to monsters in the wilds and i want to make sure i don't attack other players, so i want to make it check to the -13 from level-13. I figured out looting with FindObjEx, but the IsUpTextEx does not work quite the same and i can't get it to work. If someone could just give me a little example of how to do this, or point me in the direction of a tutorial or that script that uses this that would be awesome.

Thanks in advance!


before making a script that loots with findobjectex, i want to tell you thats not going to work.. you really need to use tpa (aca)

Khp

2013-09-29 15:04:18

From: hoodz
before making a script that loots with findobjectex, i want to tell you thats not going to work.. you really need to use tpa (aca)


I have only used it for bones, runes and herbs but it's working pretty good for me.
And my bad i used FindObj with ChooseOptionEx.

procedure Loot;
var x, y: integer;
begin


if FindObj(x, y, 'ak', 12500678, 20) then
begin
Mouse(x, y, 3, 3, false);
// the attack procedure is basically the same
// I want to add like if (the green text of the uptext is part of level-13) then click option attack
ChooseOptionEx('one', 'all');
end;
wait(300+(ERand)+random(ERand));
Berry;
AntiBan;
end;

But I'll check out TPAs, because i have not a clue what that is lol