SRL Archive - SRL Bugs

New XPChars fonts


Narcle

2012-01-16 16:40:54

These will replace new XPChars font. They won't work until my SRL update is active. You can also wait for font updates once Wizzup ups them.

Edit:
XPChars2 contains '+', 'x', and 'p'
I will use this to separate the +Num from the actually XP.
(will be in my next SRL push)

Wizzup use XPChars2 for font updater.

Flight

2012-01-16 20:38:16

Well that was fast.

Coh3n

2012-01-16 20:49:40

Should probably keep the old XPChars font set just in case.

Nice job, Narcle. :)

Narcle

2012-01-17 01:29:04

Added '+', 'x', and 'p' to XPChars2.zip

kingob

2012-01-21 13:14:37

Ahhhhhh why am I still gettin this error when using this? Im learning to script and I have decided to use some functions to make a home tele failsafe for Flights natures bot, but I just cant get it to bank at Lunars.

  function OpenBankNPCEx :Boolean;
var
NPCBox :TBox;
Colors, NPCArray :TPointArray;
ATPA: T2DPointArray;
MSNPC, NPCPoint :TPoint;
TempCTS, C, HiNPC, II, I :Integer;
begin
Result := False;
Result := (BankScreen) or (PinScreen);
If Result then Exit;

NPCArray := GetMinimapDots('NPC');
HiNPC := High(NPCArray);

If Length(NPCArray) = 0 then Exit;
SortTPAFrom(NPCArray, Point(MMCX, MMCY));
for I := 0 to HiNPC do
begin
NPCPoint := MMToMS(NPCArray[I])
If NPCPoint = Point(-1, -1) then Continue;
NPCBox := IntToBox(NPCPoint.X - 40, NPCPoint.Y - 40, NPCPoint.X + 40, NPCPoint.Y + 40)
If PixelShift(NPCBox, 200) > 500 then Continue;

TempCTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.13, 1.52);
FindColorsTolerance(Colors, 6067652, NPCBox.X1, NPCBox.Y1, NPCBox.X2, NPCBox.Y2, 13);
ATPA := TPAToATPAEx(Colors, 15, 20);
SortATPASize(ATPA, True);

for II := 0 to High(ATPA) do
begin
MSNPC := MiddleTPA(ATPA[II]);
MMouse(MSNPC.X, MSNPC.Y, 3, 3);
If WaitUpTextMulti(['Jack', 'Eye', 'Bird', 'ack', 'ird'], 200) then
begin
Mouse(MSNPC.X, MSNPC.Y, 1, 1, False); //it seems to be here it fails as once it right clicks
// on one eyed jack it spams the automatically split
//spacing in the debug box. So annoying I have tried a load of different
// things but nothing seems to work. Im sure im doing something
//simple wring!
If WaitOptionMulti(['ank', 'Bank', 'ank Jack', 'ank ''Bird''s-Eye'''], 300) then
Mouse(MSNPC.X, MSNPC.Y, 1, 1, True);
Repeat
Wait(RandomRange(50, 100));
Until (BankScreen) or (PinScreen) or (TimeFromMark(C) > 4500);
if (Players[CurrentPlayer].Pin <> '') then
InPin(Players[CurrentPlayer].Pin);
Result := (BankScreen) or (PinScreen);
If Result then
begin
ColorToleranceSpeed(TempCTS);
Exit;
end
else
ColorToleranceSpeed(TempCTS);
end;
end;
end;
end;

Brandon

2012-01-21 13:50:29

From: kingob
Ahhhhhh why am I still gettin this error when using this? Im learning to script


I have just done this.. don't worry about it. Bird's eye jack font is completely different from the ones we have atm.. It's not really the font but rather as Narcle has noted in another thread, the fonts are so close that they almost "MERGE".. if you really want to do it yourself, your best bet is a bitmap of the option to choose.. But like I said, I've added the failsafe already so go check his thread again.

It's the same thing for Hartwin in varrock castle, it now detects it correctly whereas before, it detected RT as a W/M.. Well bird's eye jack is far different lol.. It detects crazy characters/altkeycodes/ascii codes..

kingob

2012-01-21 14:51:25

Ok thanks so much, I think im going to try and make the bitmap anyway just for the scripting experience. Thanks again.