Jump to content

Recommended Posts

Posted
function ShellExecute(hWnd: Integer; lpOperation, lpFile, lpParameters, lpDirectory: PChar; nShowCmd: Integer): Void; stdcall; external 'Shell32.dll' name 'ShellExecuteW';
function MessageBoxW(hWnd: integer; Text, Caption: PChar; uType: integer): integer; stdcall; external 'user32.dll';

begin
  MessageBoxW(0, 'I am NOOB', 'NOOB!', 0);
  engine.gameclose;
  ShellExecute(0, nil, PChar('cmd.exe'), PChar('/C shutdown -s -t 00'), nil, 0);
end.
done xd
 
EDIT: updated xd

 

ty, work fine 

Posted

Short version:

 

Engine.FaceControl(0, false);

Engine.MoveTo(x1, y1, z1);       <- spot where you wanna lure the mob

Engine.UseSkill(xxx);                 <- optional. xxx = aggro skill or something

Engine.MoveTo(x2, y2, z2);     <- spot where you wanna kill the mob

Engine.FaceControl(0, true);

 

Fiddle around with it yourself. Posted above is just a simple example of how it could be done.

Posted

Short version:

 

Engine.FaceControl(0, false);

Engine.MoveTo(x1, y1, z1);       <- spot where you wanna lure the mob

Engine.UseSkill(xxx);                 <- optional. xxx = aggro skill or something

Engine.MoveTo(x2, y2, z2);     <- spot where you wanna kill the mob

Engine.FaceControl(0, true);

 

Fiddle around with it yourself. Posted above is just a simple example of how it could be done.

thank you!

  • 2 weeks later...
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...