Advertisement
Guest User

Untitled

a guest
Aug 20th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. program FightTest;
  2. {$DEFINE SMART}
  3. {$i reflection/Reflection.simba}
  4.  
  5. var
  6. MyPlayer: TReflectLocalPlayer;
  7.  
  8. procedure FightGuard;
  9. var
  10. Guard: TReflectNpc;
  11. Point: TPoint;
  12. begin
  13. while not MyPlayer.IsUnderAttack do
  14. begin
  15. if Guard.Find('Guard') then
  16. begin
  17. Point := Guard.GetMsPoint;
  18. Reflect.Mouse.Move(Point, 2, 2);
  19. Reflect.Mouse.Click(MOUSE_LEFT);
  20. While MyPlayer.IsMoving do
  21. Wait(50);
  22. end;
  23. end;
  24. end;
  25.  
  26. begin
  27. Reflect.Setup;
  28. MyPlayer.UserName := 'UN';
  29. MyPlayer.Password := 'Pass';
  30. MyPlayer.Login;
  31. repeat
  32. if MyPlayer.GetHealth < 20 then
  33. //Eat
  34. else
  35. FightGuard;
  36. until(False);
  37. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement