This commit is contained in:
2024-09-29 16:52:10 +08:00
parent b2133d8463
commit 16be225768
19 changed files with 1860 additions and 180 deletions

View File

@@ -27,6 +27,12 @@ function L_drawMainCustomUI_All() {
L_Cmd("cmd.exe /c del Yosin_Game_Reloading.Sign");
//清空窗口
L_Windows_List = [];
//清空所有注册包
Pack_Control = {};
PushDamageFontDataFuncTab <- {};
PushDamageFontFuncTab <- {};
//清空活动图标窗口
getroottable().rawdelete("EventList_Obj");
//清空插件初始化状态
@@ -50,6 +56,10 @@ function L_drawMainCustomUI_All() {
getroottable().rawdelete("OnilneSign_Obj");
//全服竞拍
getroottable().rawdelete("ServerAuction_Obj");
//秒伤统计
getroottable().rawdelete("DamagePerSecond_Obj");
//皮肤仓库
getroottable().rawdelete("SkinHub_Obj");
} catch (exception) {
if (exception != "cannot open the file")
@@ -108,6 +118,7 @@ function L_drawMainCustomUI_All() {
});
}
// if (Clock() - getroottable().Lsnzz >= 50) {
// getroottable().Lsnzz = Clock();
// local T = {

View File

@@ -7,21 +7,8 @@
function L_getCurrentModuleDamageRate(obj) {
if (!obj)
return 1.0;
local rate;
if (getroottable().rawin("LenheartCurrentModuleDamageRate")) {
rate = 1.0 + getroottable()["LenheartCurrentModuleDamageRate"];
} else {
rate = 1.0;
}
local rate = 1.0;
//超时空伤害
if (getroottable().rawin("LenheartFiendModuleDamageRate")) {
rate *= getroottable()["LenheartFiendModuleDamageRate"];
} else {
rate *= 1.0;
}
//pvf伤害
local ClientRat = 1.0;
try {
ClientRat = getCurrentModuleDamageRate(obj).tofloat();
@@ -29,44 +16,5 @@ function L_getCurrentModuleDamageRate(obj) {
ClientRat = 1.0;
}
//副本伤害控制
try {
local stage = sq_GetGlobaludpModuleStage();
local dungeon = sq_GetDungeonByStage(stage);
local dungeonIndex = sq_GetDuegonIndex(dungeon);
local fbsh = 100;
foreach(id in DungeonIndex) {
if (dungeonIndex == id[0]) {
fbsh = id[1];
}
}
local nrate = fbsh.tofloat() / 100.0;
rate = rate.tofloat() * nrate;
} catch (exception) {
}
//职业伤害控制
try {
local LLJob = sq_getJob(obj);
local LLGrowT = sq_getGrowType(obj);
local LLLen = GrowType.len();
for (local i = 0; i< 11; ++i) {
if (i == LLLen) break;
if (LLJob == i) {
foreach(GR in GrowType[i]) {
if (LLGrowT == GR[0])
rate = rate.tofloat() * GR[1].tofloat();
}
}
}
} catch (exception) {
}
return (rate * ClientRat);
}

View File

@@ -19,14 +19,7 @@ function Sq_PushDamageData(ObjAddress, MySelfAddress, Value) {
}
function Sq_PushDamageFontData(ObjAddress, X, Y, Z, Value, Type, A1, A2) {
// print("MyCharacter: " + format("%02x", L_sq_RA(0x1AB7CDC)));
// print("ObjAddress: " + format("%02x", ObjAddress));
// print("A1: " + format("%02x", A1));
// print("A2: " + format("%02x", A2));
// print(" ");
// if (A2)
// print(format("%02x", L_Sq_GetObjectIsCharacter(A2)));
local Flag = true;
foreach(Func in PushDamageFontDataFuncTab) {
local Ret = Func(ObjAddress, X, Y, Z, Value, Type, A1, A2);