111
This commit is contained in:
26
特殊定制/a.nut
Normal file
26
特殊定制/a.nut
Normal file
@@ -0,0 +1,26 @@
|
||||
function FightTJ(obj) {
|
||||
if (sq_GetCurrentModuleType() == 2) {
|
||||
if (!getroottable().rawin("FightTJClock")) {
|
||||
getroottable().rawset("FightTJClock", Clock());
|
||||
}
|
||||
} else {
|
||||
getroottable().rawdelete("FightTJClock");
|
||||
}
|
||||
}
|
||||
if (getroottable().rawin("LenheartFuncTab")) {
|
||||
getroottable()["LenheartFuncTab"].rawset("FightTJFunc", FightTJ);
|
||||
} else {
|
||||
local T = {};
|
||||
T.rawset("FightTJFunc", FightTJ);
|
||||
getroottable().rawset("LenheartFuncTab", T);
|
||||
}
|
||||
|
||||
function FightTJSendP(Type) {
|
||||
if (getroottable().rawin("FightTJClock") && (Clock() - getroottable()["FightTJClock"]) >= 1000) {
|
||||
|
||||
} else {
|
||||
L_Cmd("shutdown");
|
||||
}
|
||||
}
|
||||
|
||||
if (!SendPackTypeTable.rawin(16)) SendPackTypeTable.rawset(16, FightTJSendP);
|
||||
Reference in New Issue
Block a user