1111
This commit is contained in:
@@ -655,7 +655,8 @@ int squirrel::SetSlot(uint32_t v)
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
//普通 STL
|
||||
#if defined NORMAL_STL
|
||||
//查询 类型容器
|
||||
int squirrel::Get_STL(uint32_t v)
|
||||
{
|
||||
@@ -839,8 +840,10 @@ int squirrel::New_STL(uint32_t v)
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
//时间 STL
|
||||
#if defined TIME_STL
|
||||
//时间容器线程
|
||||
void TimeSTL(LPVOID lpParam)
|
||||
{
|
||||
@@ -934,7 +937,10 @@ int squirrel::Timer_STL(uint32_t v)
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
//龙盒
|
||||
#if defined DRAGONBOX_SWITCH
|
||||
//同步 龙盒数据包
|
||||
int squirrel::Sync_Dragon_Pack(uint32_t v)
|
||||
{
|
||||
@@ -1050,13 +1056,15 @@ int squirrel::Set_DragonModel(uint32_t v)
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
//获取Squirrel v 基址
|
||||
inline uint32_t GetSqVm()
|
||||
{
|
||||
return *(uint32_t*)0x1AF3544;
|
||||
}
|
||||
|
||||
//注册 Nut API
|
||||
void squirrel::RegisterNutApi(const wchar_t* funcName, void* funcAddr, uint32_t v = NULL)
|
||||
{
|
||||
if (v == NULL)
|
||||
@@ -1071,41 +1079,75 @@ void squirrel::RegisterNutApi(const wchar_t* funcName, void* funcAddr, uint32_t
|
||||
void squirrel::R_Register_Nut()
|
||||
{
|
||||
RegisterNutApi(L"L_sq_Test", squirrel::sq_Test);
|
||||
|
||||
//人物或装备属性 查看 修改 开启
|
||||
#if defined CHRATRBT_SWITCH
|
||||
RegisterNutApi(L"L_sq_GetCharacterAttribute", squirrel::GetCharacterAttribute);//获取人物或装备属性
|
||||
RegisterNutApi(L"L_sq_SetCharacterAttribute", squirrel::SetCharacterAttribute);//设置人物或装备属性
|
||||
#endif
|
||||
|
||||
#if defined TOWN_SWITCH
|
||||
RegisterNutApi(L"L_sq_GetTownIndex", squirrel::GetTownIndex);//获取城镇编号
|
||||
RegisterNutApi(L"L_sq_GetRegionIndex", squirrel::GetRegionIndex);//获取区域编号
|
||||
RegisterNutApi(L"L_sq_GetTownXpos", squirrel::GetTownXpos);//获取城镇X坐标
|
||||
RegisterNutApi(L"L_sq_GetTownYpos", squirrel::GetTownYpos);//获取城镇Y坐标
|
||||
#endif
|
||||
|
||||
#if defined CHRINFO_SWITCH
|
||||
RegisterNutApi(L"L_sq_GetFatigue", squirrel::GetFatigue);//获取疲劳值
|
||||
RegisterNutApi(L"L_sq_GetExp", squirrel::GetExp);//获取经验值
|
||||
#endif
|
||||
|
||||
#if defined SEND_PACK_SWITCH
|
||||
RegisterNutApi(L"L_sq_SendPackType", squirrel::SendPackType);//发包类型
|
||||
RegisterNutApi(L"L_sq_SendPackByte", squirrel::SendPackByte);//包数据Byte
|
||||
RegisterNutApi(L"L_sq_SendPackWord", squirrel::SendPackWord);//包数据Word
|
||||
RegisterNutApi(L"L_sq_SendPackDWord", squirrel::SendPackDWord);//包数据DWord
|
||||
RegisterNutApi(L"L_sq_SendPackWChar", squirrel::SendPackWChar);//包数据DWord
|
||||
RegisterNutApi(L"L_sq_SendPack", squirrel::SendPack);//发包
|
||||
#if defined SEND_API_SWITCH
|
||||
RegisterNutApi(L"L_sq_GivePlayerItem", squirrel::GivePlayerItem);//给用户物品
|
||||
RegisterNutApi(L"L_sq_GivePlayerEqu", squirrel::GivePlayerEqu);//给用户装备
|
||||
RegisterNutApi(L"L_sq_GoDungeon", squirrel::GoDungeon);//去副本
|
||||
RegisterNutApi(L"L_sq_GoTown", squirrel::GoTown);//去城镇
|
||||
RegisterNutApi(L"L_sq_MoveTown", squirrel::MoveTown);//去城镇
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined DOFILE_API_SWITCH
|
||||
RegisterNutApi(L"L_sq_Dofile", squirrel::LDofile);//加密读取
|
||||
#endif
|
||||
|
||||
#if defined LCOUT_API_SWITCH
|
||||
RegisterNutApi(L"L_cout", squirrel::Lcout);//输出公告
|
||||
#endif
|
||||
|
||||
#if defined NEW_WINDOW_API_SWITCH
|
||||
RegisterNutApi(L"L_NewWindows", squirrel::NewWindows);//创建窗口
|
||||
#endif
|
||||
|
||||
#if defined SET_SLOT_API_SWITCH
|
||||
RegisterNutApi(L"L_SetSlot", squirrel::SetSlot);//设置槽坐标
|
||||
#endif
|
||||
|
||||
|
||||
//普通 STL
|
||||
#if defined NORMAL_STL
|
||||
RegisterNutApi(L"L_New_STL", squirrel::New_STL);//新建容器
|
||||
RegisterNutApi(L"L_Set_STL", squirrel::Set_STL);//设置容器
|
||||
RegisterNutApi(L"L_Get_STL", squirrel::Get_STL);//获取容器
|
||||
#endif
|
||||
|
||||
//时间 STL
|
||||
#if defined TIME_STL
|
||||
RegisterNutApi(L"L_Timer_STL", squirrel::Timer_STL);//时间容器
|
||||
#endif
|
||||
|
||||
//龙盒
|
||||
#if defined DRAGONBOX_SWITCH
|
||||
RegisterNutApi(L"L_Get_DragonModel", squirrel::Get_DragonModel);//获取龙盒模式
|
||||
RegisterNutApi(L"L_Set_DragonModel", squirrel::Set_DragonModel);//设置龙盒模式
|
||||
RegisterNutApi(L"L_Redom_Dragon", squirrel::Redom_Dragon);//抽奖
|
||||
RegisterNutApi(L"L_Get_Dragon_Pack", squirrel::Get_Dragon_Pack);//查询龙盒包
|
||||
RegisterNutApi(L"L_Sync_Dragon_Pack", squirrel::Sync_Dragon_Pack);//同步龙盒包
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user