SRL Archive - SRL Snippets

TurnOffOnScreenXPPopup


Harry

2012-01-17 12:13:03

Herz:=DTMFromString('mbQAAAHicY2VgYNBlZWBQBmIrIDYDYn0gNgeKewKxGxCHQ7GSkhIcJyUlM+ycwcjADxRHx4xYMBgAAKPDBn0=');

procedure TurnOffOnScreenXPPopup;
var hx,hy:integer;
begin
if Players[CurrentPlayer].Booleans[94] then
Exit;
if FindDTM(Herz,hx,hy,MSX1,MSY1,MSX2,MSCY-30) then
begin
WriteLn('Found XP on-screen popup. Turning it off.');
MouseBox(521, 51, 546, 75, mouse_Right);
Wait(10+Random(100));
ChooseOption('op-up');
Players[CurrentPlayer].Booleans[94] := True;
end;
end;

Turns off those annoying on-screen XP popups. Seems to work 100% on any skill that pops up. :)

Booleans are for so it won't try to find the DTM if it's already toggled it off this script session. Should make a cleaner way to handle it (if it's already turned off it will run the DTM call every time, which isn't THAT bad, DTMs don't use too much CPU, but still..). Mousebox is XP counter interface.

Coh3n

2012-01-17 18:27:39

Is it just me or is there no pop up option when you right click the logos?

Harry

2012-01-17 18:38:25

Right click the XP counter thing right above your money pouch and the option should be there.

Coh3n

2012-01-17 19:18:25

From: Harry
Right click the XP counter thing right above your money pouch and the option should be there.
Ohh THAT XP thing. Lol, I was looking at the ones that pop up on the MS.

Narcle

2012-01-17 23:47:57

Only other way to confirm this is to read chat to see if it was disabled/enabled.