SRL Archive - SRL Bugs

Error in Rev. 367+....


RAM

2010-02-11 11:02:57

Error in Rev. 367+….

Running my version of "Ali" …works fine when I revert back to "366", but updating to 367+ results in the script stopping when it comes to selecting "a large"……

can't seem to pinpoint the changes in SRL , here is part of the procedure…maybe whoever updated it will know better…..

TPA := CombineTPA(CombineTPA(bTPA, wTPA), uTPA);
Texts := ['to cont', 'selection of runes', 'a large', 'xamine'];
for I := 0 to High(Texts) do
//wait(100);//R
begin
TextTPA := LoadTextTPA(Texts, NPCChars, H);
if (FindTextTPAinTPA(H, TextTPA, TPA, MTPA)) then
begin
debug('SortTPA');
Disguise('SortTPA');
wait(10);//R
SortTPAFrom(MTPA, Point(MCX1, MCY1));
wait(10);//R
Mouse(MTPA[0].X + RandomRange(-50, 50), MTPA[0].Y + RandomRange(-3, 5), 0, 0, True);
wait(10);//R


Edit: The script doesn't actually stop, it just fails to continue with the chat….

mastaraymond

2010-02-11 12:13:50

I've made some changes in the way LoadTextTPA works.. It now actually returns the height -> So you have to change your FindTextTPAinTPA:

if (FindTextTPAinTPA(H - 1, TextTPA, TPA, MTPA)) then

EDIT: Oh yeah, sheisse. Haven't thought of these errors.. Will fix the SVN.