更新荒古装备
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
文件用途:获取伤害倍率
|
||||
*/
|
||||
RindroDamageRate <- 1.0;
|
||||
RindroDamageRateChanageAddFunc <- {};
|
||||
RindroDamageRateChanageRideFunc <- {};
|
||||
|
||||
function L_getCurrentModuleDamageRate(obj) {
|
||||
if (!obj)
|
||||
@@ -17,6 +19,18 @@ function L_getCurrentModuleDamageRate(obj) {
|
||||
ClientRat = 1.0;
|
||||
}
|
||||
|
||||
local AddRate = 0;
|
||||
foreach (Func in RindroDamageRateChanageAddFunc) {
|
||||
AddRate += Func();
|
||||
}
|
||||
ClientRat += AddRate;
|
||||
|
||||
local RideRate = 1.0;
|
||||
foreach (Func in RindroDamageRateChanageRideFunc) {
|
||||
RideRate *= Func();
|
||||
}
|
||||
ClientRat *= RideRate;
|
||||
|
||||
return (RindroDamageRate * ClientRat);
|
||||
}
|
||||
|
||||
|
||||
@@ -284,6 +284,61 @@ function Sq_GetExeStr_Event(Index) {
|
||||
return Index;
|
||||
}
|
||||
|
||||
getroottable().DrawAppendCallBackFunc <- {};
|
||||
Rindro_Haker.LoadHook(0x67C560, ["pointer", "int", "int", "int", "int", "void"],
|
||||
function(args) {
|
||||
foreach(Func in DrawAppendCallBackFunc) {
|
||||
Func(args);
|
||||
}
|
||||
return null;
|
||||
},
|
||||
function(args) {
|
||||
|
||||
return null;
|
||||
});
|
||||
|
||||
|
||||
/*
|
||||
local Flag = L_Sq_CallFunc(0x59E3D0, "bool", FFI_MS_CDECL, ["int", "int", "int", "int"], ReadPath, ReadBuffer, AllocSize, ReadSizeBuffer);
|
||||
if (Flag) {
|
||||
return {
|
||||
Buffer = Reader,
|
||||
Size = ReadSizeer.readInt()
|
||||
};
|
||||
} else return null;
|
||||
*/
|
||||
|
||||
// HOOK读取AP脚本
|
||||
// Rindro_Haker.LoadHook(0x121A100, ["int", "int", "int", "int", "int","bool"],
|
||||
// function(args) {
|
||||
// return null;
|
||||
// },
|
||||
// function(args) {
|
||||
// print(NativePointer(L_sq_I2P(args[1])).readUnicodeString());
|
||||
// if (NativePointer(L_sq_I2P(args[1])).readUnicodeString() == "SQR/../etc/rindro/ancientrelic/ancientrelic.nut") {
|
||||
// printf("加载AP脚本");
|
||||
// local str = "function sq_AddFunctionName(appendage)\n{\n}\n print(778899);";
|
||||
// NativePointer(L_sq_I2P(args[4])).writeInt(str.len());
|
||||
// NativePointer(L_sq_I2P(args[2])).writeByteArray(str);
|
||||
// }
|
||||
// return null;
|
||||
// });
|
||||
|
||||
|
||||
// getroottable().onAttackParentCallBackFunc <- {};
|
||||
// Rindro_Haker.LoadHook(0x9CFF50, ["pointer", "int", "int", "int", "int", "int"],
|
||||
// function(args) {
|
||||
// foreach(Func in onAttackParentCallBackFunc) {
|
||||
// Func(args);
|
||||
// }
|
||||
// return null;
|
||||
// },
|
||||
// function(args) {
|
||||
|
||||
// return null;
|
||||
// });
|
||||
|
||||
|
||||
|
||||
// //hook打开窗口
|
||||
// Rindro_Haker.LoadHook(0xE6E070, ["int","int","int","int","void"],
|
||||
|
||||
Reference in New Issue
Block a user