11111
This commit is contained in:
@@ -9,17 +9,18 @@ function L_drawMainCustomUI_All() {
|
||||
local obj = sq_getMyCharacter();
|
||||
if (!obj) return;
|
||||
|
||||
local RootTab = getroottable();
|
||||
|
||||
//获取与上一帧的dt
|
||||
if (!(getroottable().rawin("Rindro_DurationFlag"))) {
|
||||
if (!(RootTab.rawin("Rindro_DurationFlag"))) {
|
||||
Rindro_DurationFlag <- L_Getmicroseconds();
|
||||
Rindro_Duration <- 0;
|
||||
} else {
|
||||
local NowM = L_Getmicroseconds();
|
||||
Rindro_Duration = NowM - Rindro_DurationFlag;
|
||||
Rindro_Duration = (NowM - Rindro_DurationFlag) / 2;
|
||||
Rindro_DurationFlag = NowM;
|
||||
}
|
||||
|
||||
local RootTab = getroottable();
|
||||
//下帧执行任务事件
|
||||
if (RootTab.rawin("LenheartNextFrameFuncTab")) {
|
||||
foreach(Func in RootTab["LenheartNextFrameFuncTab"]) {
|
||||
@@ -31,158 +32,119 @@ function L_drawMainCustomUI_All() {
|
||||
}
|
||||
|
||||
//重载逻辑
|
||||
try {
|
||||
local Func = loadfile("Yosin_Game_Reloading.Sign", true);
|
||||
Func();
|
||||
L_Cmd("cmd.exe /c del Yosin_Game_Reloading.Sign");
|
||||
//清空窗口
|
||||
L_Windows_List = [];
|
||||
//清空所有注册包
|
||||
Pack_Control = {};
|
||||
|
||||
PushDamageFontDataFuncTab <- {};
|
||||
PushDamageFontFuncTab <- {};
|
||||
|
||||
//清空活动图标窗口
|
||||
getroottable().rawdelete("EventList_Obj");
|
||||
//清空插件初始化状态
|
||||
getroottable().rawdelete("LenheartPluginsInitFlag");
|
||||
|
||||
getroottable().rawdelete("RINDRO_GET_ITEM_FLAG");
|
||||
//特殊清空
|
||||
getroottable().rawdelete("OnlineAnnouncement_Obj");
|
||||
//血槽UI
|
||||
getroottable().rawdelete("HudUi_Obj");
|
||||
//交互UI
|
||||
getroottable().rawdelete("L_Each_Obj");
|
||||
|
||||
//战令
|
||||
getroottable().rawdelete("AradPass_Obj");
|
||||
//战斗力系统
|
||||
getroottable().rawdelete("CombatRankC_Obj");
|
||||
//刷图签到
|
||||
getroottable().rawdelete("FightSign_Obj");
|
||||
//希曼音乐会
|
||||
getroottable().rawdelete("MidsummerParty_Obj");
|
||||
//在线签到
|
||||
getroottable().rawdelete("OnilneSign_Obj");
|
||||
//全服竞拍
|
||||
getroottable().rawdelete("ServerAuction_Obj");
|
||||
//秒伤统计
|
||||
getroottable().rawdelete("DamagePerSecond_Obj");
|
||||
//皮肤仓库
|
||||
getroottable().rawdelete("SkinHub_Obj");
|
||||
|
||||
} catch (exception) {
|
||||
if (exception != "cannot open the file")
|
||||
print("Reloading Script Fail !!! \n" + exception);
|
||||
}
|
||||
|
||||
//
|
||||
local RootTab = getroottable();
|
||||
|
||||
|
||||
//尝试调用百级UI
|
||||
// if (getroottable().rawin("Lenheart_100UI_Event_BackGround")) Lenheart_100UI_Event_BackGround();
|
||||
// if (getroottable().rawin("Lenheart_100UI")) Lenheart_100UI(obj);
|
||||
Sq_ReloadLogic();
|
||||
|
||||
//初始化活动图标
|
||||
Lenheart_EventList_Fun(obj);
|
||||
|
||||
//加载注册Base函数窗口
|
||||
if (RootTab.rawin("LenheartBaseFuncTab")) {
|
||||
if (RINDRO_INIT_FLAG) {
|
||||
local LenheartFunc = RootTab["LenheartBaseFuncTab"];
|
||||
foreach(Func in LenheartFunc) {
|
||||
Func(obj);
|
||||
}
|
||||
local LenheartFunc = RootTab["LenheartBaseFuncTab"];
|
||||
foreach(Func in LenheartFunc) {
|
||||
Func(obj);
|
||||
}
|
||||
}
|
||||
|
||||
//加载注册Ex函数窗口
|
||||
if (RootTab.rawin("LenheartFuncTab")) {
|
||||
if (RINDRO_INIT_FLAG) {
|
||||
local LenheartFunc = RootTab["LenheartFuncTab"];
|
||||
foreach(Func in LenheartFunc) {
|
||||
Func(obj);
|
||||
}
|
||||
local LenheartFunc = RootTab["LenheartFuncTab"];
|
||||
foreach(Func in LenheartFunc) {
|
||||
Func(obj);
|
||||
}
|
||||
}
|
||||
|
||||
//所有插件初始化完毕
|
||||
if (!getroottable().rawin("LenheartPluginsInitFlag")) {
|
||||
if (RINDRO_INIT_FLAG) {
|
||||
local T = {
|
||||
op = 25001021,
|
||||
}
|
||||
Rindro_BaseToolClass.SendPackEx(T);
|
||||
getroottable().LenheartPluginsInitFlag <- true;
|
||||
local T = {
|
||||
op = 25001021,
|
||||
}
|
||||
Rindro_BaseToolClass.SendPackEx(T);
|
||||
getroottable().LenheartPluginsInitFlag <- true;
|
||||
}
|
||||
|
||||
//初始化Item信息
|
||||
if (!getroottable().rawin("RINDRO_GET_ITEM_FLAG")) {
|
||||
RINDRO_CONFIG <- Rindro_GetLocalConfig();
|
||||
getroottable().RINDRO_GET_ITEM_FLAG <- true;
|
||||
Rindro_BaseToolClass.SendPackEx({
|
||||
op = 20069005,
|
||||
md5 = Rindro_GetMd5()
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
// if (Clock() - getroottable().Lsnzz >= 50) {
|
||||
// getroottable().Lsnzz = Clock();
|
||||
// local T = {
|
||||
// op = 25001021,
|
||||
// }
|
||||
// Rindro_BaseToolClass.SendPackEx(T);
|
||||
// }
|
||||
|
||||
// if (!CNSquirrelAppendage.sq_IsAppendAppendage(obj, "appendage/curreny.nut")) {
|
||||
// local appendage1 = CNSquirrelAppendage.sq_AppendAppendage(obj, obj, 174, false, "appendage/curreny.nut", true);
|
||||
// }
|
||||
|
||||
// print(format("%02X", L_sq_RA(0x1B474D4)));
|
||||
// print(R_Mouse.IsLock());
|
||||
// print(format("%02X", L_sq_RA(0x3431de00 + 0x14)));
|
||||
// L_sq_WA(0x3431de00 + 0x14,200);
|
||||
// print(format("%02X", L_sq_RA(0x1AE94C4, "0x590+0x44+")));
|
||||
//外界主界面
|
||||
// if(L_sq_RA(0x1B474D4) == 0x3C7FB100)print(true);
|
||||
// else print(false);
|
||||
// print(CheckInOldW());
|
||||
// GetTownBaseBackgroundAddress();
|
||||
|
||||
// print(getroottable().WindowsShowABFlag);
|
||||
|
||||
// L_Sq_GetPlayerEachName();
|
||||
// Sout("%L",L_Sq_GetPlayerEachName());
|
||||
// print(Rindro_BaseToolClass.GetEachNpcId());
|
||||
|
||||
|
||||
|
||||
|
||||
// for (local i = 0; i< 400; i++) {
|
||||
// local WindowAddress = L_sq_GetWindowById(i);
|
||||
// if (WindowAddress != 0) print(format("%02X", WindowAddress));
|
||||
// if (WindowAddress == 0x39F56000) print(i);
|
||||
// }
|
||||
|
||||
// if (Clock() - getroottable().SINNU >= 10) {
|
||||
// getroottable().SINNU = Clock();
|
||||
// L_sq_MoveTown(1, 1, 474, 249);
|
||||
// }
|
||||
|
||||
// print(sq_GetCurrentModuleType());
|
||||
// Rindro_BaseToolClass.T_DrawDynamicAni(obj, "common/luke/newtile/02_success_back_1.ani", 430, 210 + 26, "卢克阻截开始" + AHSJKDNJKA);
|
||||
}
|
||||
|
||||
// AHSJKDNJKA <- Clock();
|
||||
// getroottable().SINNU <- Clock();
|
||||
// L_NewWindows("Lenheart", 56, 0x1);
|
||||
// L_Sq_CallFunc(0xE6E070, "int", FFI_THISCALL, ["int", "int", "int", "int"], 0x01ADE090, 56, 0, 0);
|
||||
// getroottable().Lsnzz <- Clock();
|
||||
|
||||
// dofile("sqr/Base/_Tool/Json.nut");
|
||||
|
||||
// print(T);
|
||||
// print(T);
|
||||
|
||||
|
||||
|
||||
// Register_DPS_Pack(1, function(Jso) {
|
||||
// printT(Jso);
|
||||
// });
|
||||
|
||||
|
||||
// local asos = sq_CreateAICharacter(900);
|
||||
// asos.setCurrentPos(sq_getMyCharacter().getXPos() + 100, sq_getMyCharacter().getYPos(), 0);
|
||||
// sq_AddObject(sq_getMyCharacter(), asos, OBJECTTYPE_VIRTUALCHARACTER, false);
|
||||
// sq_ChangeDrawLayer(asos, ENUM_DRAWLAYER_CLOSEBACK);
|
||||
|
||||
|
||||
// L_sq_GoDungeon(1504);
|
||||
|
||||
CargoType <- 0;
|
||||
Sq_GetExeStr_Map[21910] <- function(Index) {
|
||||
CargoType = 0;
|
||||
return 21910;
|
||||
}
|
||||
Sq_GetExeStr_Map[21911] <- function(Index) {
|
||||
CargoType = 1;
|
||||
return 21911;
|
||||
}
|
||||
Rindro_Haker.LoadHook(0xE67800, ["int", "int"],
|
||||
function(args) {
|
||||
//点击了仓库转移物品
|
||||
if (args[0] == 0x2B) {
|
||||
if (CargoType == 0) {
|
||||
printf("点击个人仓库转移物品");
|
||||
local T = {
|
||||
op = 21091001,
|
||||
type = 0,
|
||||
}
|
||||
Rindro_BaseToolClass.SendPackEx(T);
|
||||
return [0];
|
||||
}
|
||||
if (CargoType == 1) {
|
||||
printf("点击账号仓库转移物品");
|
||||
local T = {
|
||||
op = 21091001,
|
||||
type = 1,
|
||||
}
|
||||
Rindro_BaseToolClass.SendPackEx(T);
|
||||
return [0];
|
||||
}
|
||||
}
|
||||
return null;
|
||||
},
|
||||
function(args) {
|
||||
// print(666);
|
||||
// print(format("%02x", args.pop()));
|
||||
// TTTAni <- args.pop();
|
||||
return null;
|
||||
});
|
||||
|
||||
|
||||
|
||||
// function onAttack_Swordman(obj, damager, boundingBox, isStuck)
|
||||
// {
|
||||
// local Mon = sq_GetCNRDObjectToActiveObject(damager);
|
||||
// Mon.setHp(0, null, true);
|
||||
// }
|
||||
|
||||
// function getCurrentModuleDamageRate(obj) {
|
||||
// local LLJob = sq_getJob(obj);
|
||||
// local LLGrowT = sq_getGrowType(obj);
|
||||
// if (LLJob == 0 && LLGrowT == 2)
|
||||
// return 2100000000.0;
|
||||
|
||||
// return 1.0;
|
||||
// }
|
||||
|
||||
// function onStartDungeon_Swordman(obj) {
|
||||
// print(666);
|
||||
// obj.setEnableDamageBox(false);
|
||||
// }
|
||||
Reference in New Issue
Block a user