adr.bot Posted May 2, 2015 Posted May 2, 2015 you need use script for mouse move and check for augment skillsmouse 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; Quote
Wanted Posted May 2, 2015 Author Posted May 2, 2015 which program you use? i get error with one i tried Quote
adr.bot Posted May 2, 2015 Posted May 2, 2015 On 5/2/2015 at 1:37 PM, Wanted said: 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 Quote
cuppacoffee Posted May 7, 2015 Posted May 7, 2015 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. Quote
adr.bot Posted May 7, 2015 Posted May 7, 2015 On 5/7/2015 at 3:48 PM, cuppacoffee said: 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 Quote
cuppacoffee Posted May 7, 2015 Posted May 7, 2015 Too bad... well, it was worth a try :)If anyone finds out let us know please ;) Quote
adr.bot Posted May 7, 2015 Posted May 7, 2015 An example should look like, i think be shorter way to detect skills but i know only this xdi 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. Quote
cuppacoffee Posted May 8, 2015 Posted May 8, 2015 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. Quote
temple13 Posted August 19, 2015 Posted August 19, 2015 I have no idea what to do with that script rofl, it will stop when I get a skill? I have to run it with adrenaline only? y.y Quote
FakeSmile Posted August 20, 2015 Posted August 20, 2015 Why there is no script like fast augment in l2phx. You just type /socialyes and you have your weapon augmented. Press again and another augment. Quote
adr.bot Posted August 20, 2015 Posted August 20, 2015 because adrenalin not support augment, thats why need use mouse move/click xd Quote
m44ti Posted August 21, 2015 Posted August 21, 2015 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. Quote
AlmostGood Posted August 21, 2015 Posted August 21, 2015 On 8/21/2015 at 4:20 PM, m44ti said: 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. Quote
eragontr Posted September 2, 2015 Posted September 2, 2015 (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 September 2, 2015 by eragontr Quote
Recommended Posts
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.