SRL Archive - OSR Help

range guild npc


Feroc1ty

2010-12-19 17:47:05

cant find him, used this function and many variations tweaking values but i just cant get it down… could someone fix this up somehow i literally just gave up… if anyone helps ill finish up my archery guild script

as you can see i tried both using the tile (didn't work) and the tnpc.pixel but that's broken not sure if it's just for this NPC or on all of them

function ClickJudge(left:boolean):boolean;
var pt:TPoint;
begin
FindNPC(693,ticketVendor);
//pt := ticketVendor.tile;
//pt := TileToMS(PointToTile(pt), 0);
pt := ticketVendor.pixel;
//pt.y := pt.y - 50;
MMouse(pt.x,pt.y,5,5);
Sleep(100+random(100));
ClickMouse2(left);
Sleep(300+random(200));
end;

edit: figured out npcs id was 693 still cant manage to get it right though