ub3r |<1||3r*1337*
2006-07-03 13:38:21
I want to use the characters that are in SRL called, CharsNPC. I am using FindText to find this font, but when i call it, it says, CharsNPC is an unknown identifier… how can I use this font for my script?
btw, what does allow API calls do?
Wizzup?
2006-07-03 14:06:55
[php]function FindNpcChatText(txt: String): Boolean;
By: Kernel Klink or Stupid3000, font by Masquerader
Description: Get last chat message.
function ClickNpcChatText(txt: String): Boolean;
By: Kernel Klink or Stupid3000, font by Masquerader
Description:
Get last chat message.[/php]
ub3r |<1||3r*1337*
2006-07-03 14:15:22
But i want it to return the coordinates of the message into X, Y.
Wizzup?
2006-07-03 14:38:21
[php]function FindNpcChatText2(var Tx,Ty:Integer; xt: String): Boolean;
var
s:integer;
begin
s := CreateBitmapMaskFromText(txt, npcchars);
result:=FindBitmapMaskTolerance(s, Fx, Fy, 9, 348, 523, 471, 50, 10);
FreeBitmap(s);
end;
function ClickNpcChatText2(var Tx,Ty:Integer; txt: String): Boolean;
var
s:integer;
begin
s := CreateBitmapMaskFromText(txt, npcchars);
if FindBitmapMaskTolerance(s, tx, ty, 9, 348, 523, 471, 50, 10) then
begin
Mouse(tx + 5, ty + 8, 0, 0, True);
Result:=True;
end;
FreeBitmap(s);
end;[/php]
This?
Iamadam
2006-07-04 04:11:32
Allow API calls lets SCAR call windows functions. (I think)