The attached dll bypasses:
- PostMessageA: ggPMA
- SetCursorPos: ggSCP
Intention:
Ability to write i.e. poster-buy-bots (this will most likely not reach out for a levelbot).
Remember Aeonsoft Inc. still lets you buy them in 99pcs stacks.
This release won't really harm flyff but makes problems that aeonsoft didn't fix yet easier to deal with.
Example* Delphi Snippet for buying one 99-stack of RM posters from i.e. Lui
* trade window must be open
* windowmode 1024x768
* inventory at bottom right
* npc trade vindow at default position
* pixel 1,1 of client is circa pixel 1,1 of screen
* positions in this example might require some adjustment
* you do good if you put the quest window to the left of the tradebox from lui so if you dont hit ok due to a bit of lag, your char wont start walking arround in circles and stop buying posters
ggSCP(603, 275);
ggPMA(Hwnd, WM_LBUTTONDOWN, MK_LBUTTON, MakeLParam(603, 275));
sleep(50);
ggSCP(930, 560);
ggPMA(Hwnd, WM_LBUTTONUP, 0 , MakeLParam(930, 560));
sleep(50);
ggSCP(603, 373);
ggPMA(Hwnd, WM_LBUTTONDOWN, MK_LBUTTON, MakeLParam(603, 373));
ggPMA(Hwnd, WM_LBUTTONUP, 0 , MakeLParam(603, 373));
ggPMA(Hwnd, WM_LBUTTONDOWN, MK_LBUTTON, MakeLParam(603, 373));
ggPMA(Hwnd, WM_LBUTTONUP, 0 , MakeLParam(603, 373));
sleep(50);
ggSCP(471, 424);
ggPMA(Hwnd, WM_LBUTTONDOWN, MK_LBUTTON, MakeLParam(471, 424));
ggPMA(Hwnd, WM_LBUTTONUP, 0 , MakeLParam(471, 424));
sleep(250);
You could paste this i.e. in a TTimer.
Note for ggPMA: third parameter cannot be "NULL" in Delphi7, use 0 (numeric zero)
DLL Imports for Delphi:
function ggPMA(hFlyff, WM_KEYDOWN, vk_key,lParam: wParam): wParam
stdcall; external 'ggbp.dll';
function ggSCP(xpos, ypos: wParam): wParam
stdcall; external 'ggbp.dll';
DLL Imports for Visual Basic:
Private Declare Function ggPMA Lib "ggbp.dll" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Long) As Long
Private Declare Function ggSCP Lib "ggbp.dll" (ByVal xpos As Long, ByVal ypos As Long) As Long
DLL written and compiled in VS2005 Enterprise