funnyman9292
2015-03-31 19:16:40
Hey all, I'm trying to create a script that will get your player thru the runescape training preformed at beginning of game. My issue is that I can't get my player to click through the chat. Here's my code [PHP]
program RUNME;
{$DEFINE SMART}
{$DEFINE WALKER}
{$i AeroLib/AeroLib.Simba}
{$i Reflection/Reflection.simba}
var MyPlayer: TReflectLocalPlayer;
procedure DeclarePlayers;
begin
MyPlayer.Username := 'Deleted';
MyPlayer.Password := 'Deleted';
MyPlayer.Pin := '';
MyPlayer.Active := True;
MyPlayer.Login;
end;
procedure FindTheMan;
var AllNpcs: TReflectNpcArray;
OurNpc: TReflectNpc;
Point: Tpoint;
begin
AllNpcs.GetAll;//Loads all Npcs into 'AllNpcs'
AllNpcs.Get('RuneScape Guide');// loads all Npcs with name 'RuneScape Guide into 'AllNpcs'
if OurNpc.Find('RuneScape Guide') then //Loads the closest Npc with Name 'Runescape Guide' and returns true if found
begin
Point := OurNpc.GetMsPoint;
HumanMMouse(Point, 2, 2);
FastClick(MOUSE_LEFT);
TReflectionChat.NpcClickToContinue: Boolean; //This was a suggestion I found, doesn't work.
end;
end;
begin
initAL();
Reflect.Setup;
DeclarePlayers;
FindTheMan;
end. [/PHP]
program RUNME;
{$DEFINE SMART}
{$DEFINE WALKER}
{$i AeroLib/AeroLib.Simba}
{$i Reflection/Reflection.simba}
var MyPlayer: TReflectLocalPlayer;
procedure DeclarePlayers;
begin
MyPlayer.Username := 'Deleted';
MyPlayer.Password := 'Deleted';
MyPlayer.Pin := '';
MyPlayer.Active := True;
MyPlayer.Login;
end;
procedure FindTheMan;
var AllNpcs: TReflectNpcArray;
OurNpc: TReflectNpc;
Point: Tpoint;
begin
AllNpcs.GetAll;//Loads all Npcs into 'AllNpcs'
AllNpcs.Get('RuneScape Guide');// loads all Npcs with name 'RuneScape Guide into 'AllNpcs'
if OurNpc.Find('RuneScape Guide') then //Loads the closest Npc with Name 'Runescape Guide' and returns true if found
begin
Point := OurNpc.GetMsPoint;
HumanMMouse(Point, 2, 2);
FastClick(MOUSE_LEFT);
TReflectionChat.NpcClickToContinue: Boolean; //This was a suggestion I found, doesn't work.
end;
end;
begin
initAL();
Reflect.Setup;
DeclarePlayers;
FindTheMan;
end. [/PHP]