Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 22:14

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Calling a neuz function from outside

Discussion on Calling a neuz function from outside within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2017
Posts: 4
Received Thanks: 0
Question Calling a neuz function from outside

Hi there, being new to bot making, and trying to call a Insanity flyff neuz function from my program, but got a crash everytime trying to. Have passed so much time on it and can't solve that... need some help please...
Here's all needed informations and my trying:



And here's my code source:

Code:
typedef void (__fastcall * MyFoo)(void * client,DWORD trash, DWORD ConstantD, DWORD objBattid, DWORD zeroParam, DWORD thousParam, float fVal,DWORD targetID);
MyFoo launchMe;

DWORD getProcessBaseAdress(DWORD ProcessID);

char *flyffServer = "insanity flyff\0";

HWND neuzWindow = NULL;
DWORD neuzProcessID = NULL;
DWORD neuzRamAdress = NULL;
HANDLE neuzHandle = NULL;
DWORD clientAdr = NULL;

int main(){
    neuzWindow = FindWindowA(0,flyffServer);
    //--------------------------------------
    if(neuzWindow){
        GetWindowThreadProcessId(neuzWindow,&neuzProcessID);
		
        if(neuzProcessID){
            neuzHandle = OpenProcess(PROCESS_ALL_ACCESS,false,neuzProcessID);
			
            if(neuzHandle){
                neuzRamAdress = getProcessBaseAdress(neuzProcessID); // Extracting Neuz's base address

                if(neuzRamAdress){
                    launchMe = (MyFoo)((DWORD)neuzRamAdress + 0x5C400);
                    clientAdr = (DWORD)neuzRamAdress + 0x8D0DC0;
					
                    printf("Instruction: 0x%08X\n",launchMe);
                    printf("Client ADR: 0x%08X\n",clientAdr);
					
                    for(;;Sleep(100)){
                        //------------ init params ------------
						void * client = (void*)clientAdr;
                        DWORD trashDX = (DWORD)0x0000000B;
                        DWORD msge = (DWORD)0x0000001D;
                        DWORD selectedBattID = 0x04D4A929;
                        DWORD zeroParam = (DWORD) 0x00000000;
                        DWORD milleParam = 0x00010000;
                        float speedAtt = 0.07f;
                        DWORD targetID = 0x0089B964;
						
                        printf("0x%08X\n0x%08X\n0x%08X\n0x%08X\n0x%08X\n0x%08X\n%f\n0x%08X\n",
                            client,
                            trashDX,
                            msge,
                            selectedBattID,
                            zeroParam,
                            thousParam,
                            speedAtt,
                            targetID
						);
							
                            launchMe(client,trashDX,msge,selectedBattID,zeroParam,milleParam,speedAtt,targetID); // -> Error 
                            scanf("%d",&trashDX); // for blocking the program
                            return 0;
                    }
                }
                else printf("Unable to access to Neuz's Ram Adress\n");
            }
            else printf("Unable to obtain neuz's handle\n");
        }
        else printf("Unable to detect neuz's process ID\n");
    }
    else printf("Unable to detect neuz's window\n");
    return 0;
}

DWORD getProcessBaseAdress(DWORD ProcessID){
    HANDLE hModuleSnap = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, ProcessID);
    MODULEENTRY32 me32;
    me32.dwSize = sizeof(MODULEENTRY32);
    Module32First(hModuleSnap,&me32);
    return (DWORD) me32.modBaseAddr;
}
Thanks in advance...

PS: You can see KronaFlyff on the picture's dialog window, but it's just that i forgot to change the name of the project, it's really for Insanity flyff.
mssm1996 is offline  
Reply

Tags
attackbot, bot, crash, function, insanity flyff


Similar Threads Similar Threads
std::function of a function returning an std::function
11/11/2013 - C/C++ - 19 Replies
Nun muss ich nach langer Zeit auch mal wieder einen Thread erstellen, weil mir Google nicht mehr weiterhelfen kann. Ich verzweifle an Folgendem Vorhaben: #include <Windows.h> #include <string> #include <iostream> using namespace std;
Help, calling an ingame function
03/13/2010 - General Coding - 2 Replies
Im trying with my dll to set off the "set stat function". The one that u press when you add a stat point to str, dex or what ever. My goal is to make players able to set there Stats to whatever they use to have from an earlier saved point. So if you play against different sort of mobs or players you reform your stats to be suetable for that sertan task in just 1 second right where you stand. Im thinking this is very useful for many ppl here. So now i could use help with the actuall call of...
Help with calling this function!
03/13/2010 - 12Sky2 - 6 Replies
First off: sorry for my poor english! Im trying with my dll to set off the "set stat function". The one that u press when you add a stat point to str, dex or what ever. My goal is to make players able to set there Stats to whatever they use to have from an earlier saved point. So if you play against different sort of mobs or players you reform your stats to be suetable for that sertan task in just 1 second right where you stand. Im thinking this is very useful for many ppl here. So now i...
Calling function in a game
03/29/2009 - General Coding - 1 Replies
Hai guise, I'm a stupid morron but how can I make a hook in c++ that will use Gameplay::GetMoney(); to return the current amount of Gold I have? http://www.bilderkiste.org/show/original/0bba0c93 80a21de4810c1429cbc287c9/call.jpg
how to play cabal us outside us or cabal ph outside ph???
08/05/2008 - Cabal Online - 2 Replies
help!!!help!!! pleaseeeeeeeeeeeee



All times are GMT +1. The time now is 22:17.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.