What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Add Method for opening new gifts in update please?

Status
Not open for further replies.

JoeBobJr

Member
Joined
Oct 25, 2014
Messages
151
Reaction score
0
If it is possible could you add a method so we can make a plugin that will open the new gifts we are getting every 30m so when AFK we are still getting gifts?
 
Well making one for the Christmas gifts wasn't really worth it since they were only here for a short time.

These gifts are suppose to be here for good they are not leaving so a plugin for this would be excellent.
 
Code:
SetTitleMatchMode, 2
loop
{
	WinGet, hwnd , ID, - ArcheAge
	MsgLeftClick(25, 1000, hwnd)a
	Random, sleeptime , 45000, 125000
	sleep sleeptime
}



MsgLeftClick(x, y, hwnd) {
	
	PostMessage, 0x200, 0, ((y<<16)^x), , ahk_id%hwnd%         ;WN_MOUSEMOVE
	Random, sleeptime , 100, 220
	sleep sleeptime
	PostMessage, 0x200, 0, ((y<<16)^x), , ahk_id%hwnd%         ;WN_MOUSEMOVE
  PostMessage, 0x201, 0x0001, ((y<<16)^x), , ahk_id%hwnd%         ;WM_LBUTTONDOWN
	
	Random, sleeptime , 100, 220
	sleep sleeptime
	PostMessage, 0x200, 0, ((y<<16)^x), , ahk_id%hwnd%         ;WN_MOUSEMOVE
  PostMessage, 0x202 , 0, ((y<<16)^x), , ahk_id%hwnd%               ;WM_LBUTTONUP
}

Heres a pretty simplistic AHK script that will get those gifts for you. It also work if the game is in background. Your free to modify it to support multiple clients if you so desire
 
it could also somewhat easily be ported to a c# plugin, but it still would send a click so no real point.
 
"Out" would need to add this to the API if you want a plugin for it. Would love to see it too. I actually wonder if the 30minute cooldown is client or server side. If it were client side you could constantly send the packet to receive it.
 
the cooldown is kept when you restart the game, so at the very least its also server side. Altho i wouldnt put it past XLgame to not validate the timer when receiving the "getgift" message xD.
 
the cooldown is kept when you restart the game, so at the very least its also server side. Altho i wouldnt put it past XLgame to not validate the timer when receiving the "getgift" message xD.

That's what I meant. It is most likely not validated. Just a configuration option to block the client clicking the button. Imagine the amount of ArcheBuddy sales this could produce.
 
but its also one of those things that is very easy to search and prove from logs on Trion and or XL side xD (this dude x got 8 gift within 2min, ban he and watch all that share ip and watch their contacts)
 
That's what I meant. It is most likely not validated. Just a configuration option to block the client clicking the button. Imagine the amount of ArcheBuddy sales this could produce.

Something like that not being validated would be lazyness lvl 1M, we know XL's code is full of exploits, but that would be a major noob mistake which I doubt that even them would do it.

Nevertheless adding a click option, you could put a script with a timer to click every 32M and it should be fine, if only they put a method allowing you to do such a thing.
 
to send a physical click to it, you dont need a method. Youd need to get the handle your plugin is attached to (i dont think there a 100% way, but a method similar to the one im using to get the pid would do)

Code:
PostMessage(hwnd,0x200, 0,((y<<16)|x)); //first move the mouse virtually inside the window
Thread.Sleep(100);
PostMessage(hwnd,0x200, 0,((y<<16)|x)); //move it again just in case the user is also moving the mouse
PostMessage(hwnd,0x201, 1,((y<<16)|x)); //click the position
Thread.Sleep(50);
PostMessage(hwnd,0x200, 0,((y<<16)|x)); //move it again just in case the user is also moving the mouse
PostMessage(hwnd,0x202, 0,((y<<16)|x)); //release the click


combine that with a way for your plugin to get and remember the hwnd its linked to something similar to https://www.thebuddyforum.com/arche.../199699-pid-archeage-exe-process-running.html, but get the hwnd instead of the pid or just get both (the handle would be process.MainWindowHandle). and tadam, any of your plugin can send click anywhere on the screen of the archeage process its linked to.

It works even if the game is minimized or not in focus


edit:
After looking through the public members of Archebuddy.dll i found one called GetGameClientHandle(), it return a pointer to an int. Im not sure if it return the window handle or something else (cant test right now due to AB being unupdated),
 
Last edited:
to send a physical click to it, you dont need a method. Youd need to get the handle your plugin is attached to (i dont think there a 100% way, but a method similar to the one im using to get the pid would do)

Code:
PostMessage(hwnd,0x200, 0,((y<<16)|x)); //first move the mouse virtually inside the window
Thread.Sleep(100);


PostMessage(hwnd,0x200, 0,((y<<16)|x)); //move it again just in case the user is also moving the mouse
PostMessage(hwnd,0x201, 1,((y<<16)|x)); //click the position
Thread.Sleep(50);
PostMessage(hwnd,0x200, 0,((y<<16)|x)); //move it again just in case the user is also moving the mouse
PostMessage(hwnd,0x202, 0,((y<<16)|x)); //release the click


combine that with a way for your plugin to get and remember the hwnd its linked to something similar to https://www.thebuddyforum.com/arche.../199699-pid-archeage-exe-process-running.html, but get the hwnd instead of the pid or just get both (the handle would be process.MainWindowHandle). and tadam, any of your plugin can send click anywhere on the screen of the archeage process its linked to.

It works even if the game is minimized or not in focus


edit:
After looking through the public members of Archebuddy.dll i found one called GetGameClientHandle(), it return a pointer to an int. Im not sure if it return the window handle or something else (cant test right now due to AB being unupdated),

Plz let us know if you manage to get it working, currently traveling for work, when I come back I would give it a try with AHK if that doesn't work, that's too good of an opportunity to miss.
 
Code:
SetTitleMatchMode, 2
loop.....
[/QUOTE]

Cheers for that , but a plugin would be much more needed. Running multiple bots in grindmode , and a passive side plugin which clicks it would be amazing.

Otherwise I gotta make a macro which cycles through the windows all 30 min.
 
Status
Not open for further replies.
Back
Top