Originally Posted by
Myke
This is very noticable, great work.
Only took around 5 minutes to fix a script after breaking from the update, though others might have had more dependencies.
Please check out the Tutorial, as I just updated it for today's update.
Also, here is a snippet showing the major difference with the new memory handling and how it can be used to speed up a script
Simba Code:
program Meh;
{$DEFINE SMART}
{$i Reflection/Reflection.simba}
var
Guard: TReflectNpc;
Me: TReflectLocalPlayer;
begin
Me.Username := 'UN';
Me.Password := 'Pass';
Me.Active := True;
Reflect.Setup;
Me.Login;
ClearDebug;
{ Old Way }
if Guard.Find('Guard') then
begin
Reflect.Mouse.Move(Reflect.Tiles.TileToMs(Guard.Tile), 2, 2);
Reflect.Mouse.Click(Mouse_Left);
while Guard.Health > 0 do
begin
//Antiban
//EatFood
Guard.Find('Guard'); //Have to find Guard again to 'Refresh' the record
end;
end;
if Guard.Find('Guard') then
begin
Reflect.Mouse.Move(Guard.GetMSPoint, 2, 2);
Reflect.Mouse.Click(Mouse_Left);
while Guard.GetHealth > 0 do //Guard.GetHealth is an actual function now, returning the guards current Health, so no need to 'refresh'
begin
//Antiban
//EatFood
end;
end;
end.