2022-9-2 01:27:03

This commit is contained in:
小疯
2022-09-02 01:27:05 +08:00
parent c5a2595302
commit b3ddde5254
19 changed files with 313 additions and 2266 deletions

View File

@@ -1,5 +1,6 @@
#include "import.h"
#include "controller.hpp"
#include "controller.h"
#define MY_VERSION ("BuildTime " __DATE__ " " __TIME__)
char szGamePath[256];
int n_sleep_time = 10000;
@@ -509,7 +510,7 @@ int _reach_game_world(void* pThis, void* a2)
int _Inter_LoadEtc_dispatch_sig(void* pThis, void* pUser, char* a3)
{
int result = Inter_LoadEtc_dispatch_sig(pThis, pUser, a3);
printf("_Inter_LoadEtc_dispatch_sig begin");
LOG("_Inter_LoadEtc_dispatch_sig begin");
//typedef double(__cdecl* FN_sqrt)(_In_ double _X);
@@ -517,14 +518,14 @@ int _Inter_LoadEtc_dispatch_sig(void* pThis, void* pUser, char* a3)
CUserCharacInfo_getCurCharacNo getCurCharacNo = (CUserCharacInfo_getCurCharacNo)(0x080CBC4E);
int CurCharacNo = getCurCharacNo(pUser);
printf("CurCharacNo :%d", CurCharacNo);
LOG("CurCharacNo :%d", CurCharacNo);
CUserCharacInfo_getCurCharacName getCurCharacName = (CUserCharacInfo_getCurCharacName)0x8101028;
char* name = getCurCharacName(pUser);
printf("CurCharacName :%s", name);
LOG("CurCharacName :%s", name);
printf("_Inter_LoadEtc_dispatch_sig end");
LOG("_Inter_LoadEtc_dispatch_sig end");
return result;
}
@@ -550,8 +551,8 @@ void loga()
//ServerParameterScript::setDungeonOpen
//CodeHook::WriteUChar(MAIN_OFFSET(0x22069B), 0x01);
//ServerParameterScript::isDungeonOpen
//CodeHook::WriteUChar(MAIN_OFFSET(0x22069B), 0x01);
//ServerParameterScript::isDungeonOpen
CodeHook::WriteUChar(MAIN_OFFSET(0x220894), 0x01);
//Init DataManager
CodeHook::WriteUChar(MAIN_OFFSET(0x258E80), 0xEB);
@@ -623,14 +624,14 @@ void loga()
void PrintTag()
{
printf("\n");
printf("**********************************************************\n");
printf("* DNF Server Plugin V%d.%02d *\n", Ver, Patch);
printf("* *\n");
printf("* /\\ /\\ *\n");
printf("* *\n");
printf("* __ Auther:Larva *\n");
printf("* QQ Group:81411049 *\n");
printf("**********************************************************\n");
LOG("**********************************************************");
LOG(" DNF Server Plugin %s ", MY_VERSION);
LOG(" ");
LOG(" /\\ /\\ ");
LOG(" ");
LOG(" __ ");
LOG(" By:Vance ");
LOG("**********************************************************");
}