Jump to content

Recommended Posts

Posted

you need use script for mouse move and check for augment skills
mouse click script part here

function SetCursorPos(x, y : integer): boolean; stdcall; external 'user32.dll';
function mouse_event(dwFlags, dx, dy, dwData: byte; dwExtraInfo: integer): void; stdcall; external 'user32.dll';

procedure mouseClick(x, y, _delay : integer); 
begin
SetCursorPos(x, y);
mouse_event($0002, 0, 0, 0, 0);
delay(_delay);
mouse_event($0004, 0, 0, 0, 0);
end;
Posted

which program you use? i get error with one i tried

i give to you script wich use mouse click, you need start write to where click and etc example 

 

 

function SetCursorPos(x, y : integer): boolean; stdcall; external 'user32.dll';
function mouse_event(dwFlags, dx, dy, dwData: byte; dwExtraInfo: integer): void; stdcall; external 'user32.dll';

procedure mouseClick(x, y, _delay : integer); 
begin
SetCursorPos(x, y);
mouse_event($0002, 0, 0, 0, 0);
delay(_delay);
mouse_event($0004, 0, 0, 0, 0);
end;

begin
while true do begin
delay(100);
mouseClick(171,465,200);
end;
end.

continue by self, gl hf

Posted

adr.bot you seem like the guy to ask for help for Adrenaline scripts. I am thinking to try and make an augment script and I have one question/problem: is there any way to get Adrenaline to detect base stat augs (ei. +1 STR/CON/etc)? Checking for a specific skill is pretty easy (hint to others: it is basically in the script help pdf with very little modification needed) but I cannot seem to find any ID or anything for base stat augs... so... HALP if you know a trick.

 

Thanks.

Posted

adr.bot you seem like the guy to ask for help for Adrenaline scripts. I am thinking to try and make an augment script and I have one question/problem: is there any way to get Adrenaline to detect base stat augs (ei. +1 STR/CON/etc)? Checking for a specific skill is pretty easy (hint to others: it is basically in the script help pdf with very little modification needed) but I cannot seem to find any ID or anything for base stat augs... so... HALP if you know a trick.

 

Thanks.

i dont know how detect +1str/con/men etc

Posted

An example should look like, i think be shorter way to detect skills but i know only this xd
i think with this example be easier understand :D gl hf

function keybd_event(bVk,bScan:byte;dwFlags,dwExtraInfo: integer): integer;  stdcall; external 'user32.dll';
function SetCursorPos(x, y : integer): boolean; stdcall; external 'user32.dll';
function mouse_event(dwFlags, dx, dy, dwData: byte; dwExtraInfo: integer): void; stdcall; external 'user32.dll';

procedure pressKey(hexCode: BYTE);
begin
  keybd_event(hexCode, 45, 1, 0 );
  delay(200);
end;

procedure mouseClick(x, y, _delay : integer); 
begin
SetCursorPos(x, y);
mouse_event($0002, 0, 0, 0, 0);
delay(_delay);
mouse_event($0004, 0, 0, 0, 0);
end;

procedure augments;
var obj: TL2Effect;
begin
while 
(SkillList.ByID(3124, obj)) or
(SkillList.ByID(3259, obj)) do delay(3000);
end;

begin
while Engine.Status = lsOnline do begin
delay(100);
mouseClick(403,726,400);	///mouse click
SetCursorPos(133, 339);		///mouse move
pressKey($62);			///press key 2
pressKey($65);			///press key 5 for add gemstone count
delay(500);
augments;			///and check procedure augments for skill detect
end;
end.
Posted

Yeah my idea of doing it was to detect if skill XXX was available for our char. Still got no idea on how to detect STR/CON/INT etc... don't know if there is a way to read either char base stats and detect a change in eg. CON or if it is possible to read stats like p.atk and react on a change there. Would not be ideal since augs give +patk/mdef/hp as well but perhaps it would be a starting point.

  • 3 months later...
Posted

mb u can do this by using Engine.BypassToServer('', True);

in the winhex there should be smth like $ + item name or item id to make the action with item u want.

Posted

mb u can do this by using Engine.BypassToServer('', True);

in the winhex there should be smth like $ + item name or item id to make the action with item u want.

nope, its completely other packet.

  • 2 weeks later...
Posted (edited)

Hello guys, i tried to do adr.bot script but i couldnt do it.First i wanna ask how can we read our actions.in l2tower we can record our actions? can i record in l2adrenaline too?

And second i cant stop script when i started.Its in while loop always.is there a shortcut to stop script?

And third adr.bot can you make script like the video works?Thx all =)

 

https://www.youtube.com/watch?v=8DEeOBikeFI

 

Edit: Server is l2sp.eu also video is from l2sp.eu i guess.everything same.

Edited by eragontr

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...