Advertisement
Guest User

Untitled

a guest
Jan 26th, 2015
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. type
  2. EWalkStyle = (wsRegular, wsSPS);
  3. TOnWalkEvent = procedure(Sender:TObject; var myPos: TPoint; doContinue: Boolean); // extra param say I found something on the minimap I want to stop by?
  4.  
  5. TOnMouseEvent = function(Sender: TObject; b: TBox): Boolean;
  6. (* Call this in mouse, if hook returns true exit.
  7.  
  8. procedure w_clickMouse(box:TBox; btn:Int32);
  9. begin
  10. if (Assigned(@OnMouseEvent)) then
  11. if (OnMouseEvent(Self, b)) then
  12. Exit; // mouse has been performed!!
  13.  
  14. {$IFDEF SRL_MOUSE}
  15. mouse.click(box, btn);
  16. {$ELSE}
  17. RaiseException('Not implmented yet');
  18. {$ENDIF}
  19. end;
  20. *)
  21.  
  22.  
  23. TWhileWalkingEvent = procedure(Sender: TObject);
  24. {
  25. Call this in your waitflag.. in the waiting loop
  26. or what should really be done imo is add "hooks?" to override your
  27. flag/whatever else. eg (so someones could use SRL's.. that has a hook etc.)
  28.  
  29. if (@funcWaitFlag <> nil) thenn
  30. funcWaitFlag()
  31. else
  32. W_WaitFlag();
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement